feat: add insert into logical plan in request (#231)

* feat: insert into logical plan

* chore: make all

* feat: use TableName instead

* chore: make all

* chore: per review
This commit is contained in:
discord9
2025-04-18 20:03:23 +08:00
committed by GitHub
parent b6d9cffd43
commit e82b0158cd
5 changed files with 2031 additions and 223 deletions
+236 -137
View File
@@ -264,6 +264,7 @@ type QueryRequest struct {
// *QueryRequest_Sql
// *QueryRequest_LogicalPlan
// *QueryRequest_PromRangeQuery
// *QueryRequest_InsertIntoPlan
Query isQueryRequest_Query `protobuf_oneof:"query"`
}
@@ -327,6 +328,13 @@ func (x *QueryRequest) GetPromRangeQuery() *PromRangeQuery {
return nil
}
func (x *QueryRequest) GetInsertIntoPlan() *InsertIntoPlan {
if x, ok := x.GetQuery().(*QueryRequest_InsertIntoPlan); ok {
return x.InsertIntoPlan
}
return nil
}
type isQueryRequest_Query interface {
isQueryRequest_Query()
}
@@ -343,12 +351,75 @@ type QueryRequest_PromRangeQuery struct {
PromRangeQuery *PromRangeQuery `protobuf:"bytes,3,opt,name=prom_range_query,json=promRangeQuery,proto3,oneof"`
}
type QueryRequest_InsertIntoPlan struct {
InsertIntoPlan *InsertIntoPlan `protobuf:"bytes,4,opt,name=insert_into_plan,json=insertIntoPlan,proto3,oneof"`
}
func (*QueryRequest_Sql) isQueryRequest_Query() {}
func (*QueryRequest_LogicalPlan) isQueryRequest_Query() {}
func (*QueryRequest_PromRangeQuery) isQueryRequest_Query() {}
func (*QueryRequest_InsertIntoPlan) isQueryRequest_Query() {}
// A temporary solution for executing insert into table SELECT .. with logical plan
// since substrait to logical plan doesn't support dml yet.
type InsertIntoPlan struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
TableName *TableName `protobuf:"bytes,1,opt,name=table_name,json=tableName,proto3" json:"table_name,omitempty"`
LogicalPlan []byte `protobuf:"bytes,2,opt,name=logical_plan,json=logicalPlan,proto3" json:"logical_plan,omitempty"`
}
func (x *InsertIntoPlan) Reset() {
*x = InsertIntoPlan{}
if protoimpl.UnsafeEnabled {
mi := &file_greptime_v1_database_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *InsertIntoPlan) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*InsertIntoPlan) ProtoMessage() {}
func (x *InsertIntoPlan) ProtoReflect() protoreflect.Message {
mi := &file_greptime_v1_database_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use InsertIntoPlan.ProtoReflect.Descriptor instead.
func (*InsertIntoPlan) Descriptor() ([]byte, []int) {
return file_greptime_v1_database_proto_rawDescGZIP(), []int{3}
}
func (x *InsertIntoPlan) GetTableName() *TableName {
if x != nil {
return x.TableName
}
return nil
}
func (x *InsertIntoPlan) GetLogicalPlan() []byte {
if x != nil {
return x.LogicalPlan
}
return nil
}
type InsertRequests struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
@@ -360,7 +431,7 @@ type InsertRequests struct {
func (x *InsertRequests) Reset() {
*x = InsertRequests{}
if protoimpl.UnsafeEnabled {
mi := &file_greptime_v1_database_proto_msgTypes[3]
mi := &file_greptime_v1_database_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -373,7 +444,7 @@ func (x *InsertRequests) String() string {
func (*InsertRequests) ProtoMessage() {}
func (x *InsertRequests) ProtoReflect() protoreflect.Message {
mi := &file_greptime_v1_database_proto_msgTypes[3]
mi := &file_greptime_v1_database_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -386,7 +457,7 @@ func (x *InsertRequests) ProtoReflect() protoreflect.Message {
// Deprecated: Use InsertRequests.ProtoReflect.Descriptor instead.
func (*InsertRequests) Descriptor() ([]byte, []int) {
return file_greptime_v1_database_proto_rawDescGZIP(), []int{3}
return file_greptime_v1_database_proto_rawDescGZIP(), []int{4}
}
func (x *InsertRequests) GetInserts() []*InsertRequest {
@@ -413,7 +484,7 @@ type InsertRequest struct {
func (x *InsertRequest) Reset() {
*x = InsertRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_greptime_v1_database_proto_msgTypes[4]
mi := &file_greptime_v1_database_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -426,7 +497,7 @@ func (x *InsertRequest) String() string {
func (*InsertRequest) ProtoMessage() {}
func (x *InsertRequest) ProtoReflect() protoreflect.Message {
mi := &file_greptime_v1_database_proto_msgTypes[4]
mi := &file_greptime_v1_database_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -439,7 +510,7 @@ func (x *InsertRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use InsertRequest.ProtoReflect.Descriptor instead.
func (*InsertRequest) Descriptor() ([]byte, []int) {
return file_greptime_v1_database_proto_rawDescGZIP(), []int{4}
return file_greptime_v1_database_proto_rawDescGZIP(), []int{5}
}
func (x *InsertRequest) GetTableName() string {
@@ -474,7 +545,7 @@ type DeleteRequests struct {
func (x *DeleteRequests) Reset() {
*x = DeleteRequests{}
if protoimpl.UnsafeEnabled {
mi := &file_greptime_v1_database_proto_msgTypes[5]
mi := &file_greptime_v1_database_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -487,7 +558,7 @@ func (x *DeleteRequests) String() string {
func (*DeleteRequests) ProtoMessage() {}
func (x *DeleteRequests) ProtoReflect() protoreflect.Message {
mi := &file_greptime_v1_database_proto_msgTypes[5]
mi := &file_greptime_v1_database_proto_msgTypes[6]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -500,7 +571,7 @@ func (x *DeleteRequests) ProtoReflect() protoreflect.Message {
// Deprecated: Use DeleteRequests.ProtoReflect.Descriptor instead.
func (*DeleteRequests) Descriptor() ([]byte, []int) {
return file_greptime_v1_database_proto_rawDescGZIP(), []int{5}
return file_greptime_v1_database_proto_rawDescGZIP(), []int{6}
}
func (x *DeleteRequests) GetDeletes() []*DeleteRequest {
@@ -527,7 +598,7 @@ type DeleteRequest struct {
func (x *DeleteRequest) Reset() {
*x = DeleteRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_greptime_v1_database_proto_msgTypes[6]
mi := &file_greptime_v1_database_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -540,7 +611,7 @@ func (x *DeleteRequest) String() string {
func (*DeleteRequest) ProtoMessage() {}
func (x *DeleteRequest) ProtoReflect() protoreflect.Message {
mi := &file_greptime_v1_database_proto_msgTypes[6]
mi := &file_greptime_v1_database_proto_msgTypes[7]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -553,7 +624,7 @@ func (x *DeleteRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use DeleteRequest.ProtoReflect.Descriptor instead.
func (*DeleteRequest) Descriptor() ([]byte, []int) {
return file_greptime_v1_database_proto_rawDescGZIP(), []int{6}
return file_greptime_v1_database_proto_rawDescGZIP(), []int{7}
}
func (x *DeleteRequest) GetTableName() string {
@@ -588,7 +659,7 @@ type RowInsertRequests struct {
func (x *RowInsertRequests) Reset() {
*x = RowInsertRequests{}
if protoimpl.UnsafeEnabled {
mi := &file_greptime_v1_database_proto_msgTypes[7]
mi := &file_greptime_v1_database_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -601,7 +672,7 @@ func (x *RowInsertRequests) String() string {
func (*RowInsertRequests) ProtoMessage() {}
func (x *RowInsertRequests) ProtoReflect() protoreflect.Message {
mi := &file_greptime_v1_database_proto_msgTypes[7]
mi := &file_greptime_v1_database_proto_msgTypes[8]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -614,7 +685,7 @@ func (x *RowInsertRequests) ProtoReflect() protoreflect.Message {
// Deprecated: Use RowInsertRequests.ProtoReflect.Descriptor instead.
func (*RowInsertRequests) Descriptor() ([]byte, []int) {
return file_greptime_v1_database_proto_rawDescGZIP(), []int{7}
return file_greptime_v1_database_proto_rawDescGZIP(), []int{8}
}
func (x *RowInsertRequests) GetInserts() []*RowInsertRequest {
@@ -637,7 +708,7 @@ type RowInsertRequest struct {
func (x *RowInsertRequest) Reset() {
*x = RowInsertRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_greptime_v1_database_proto_msgTypes[8]
mi := &file_greptime_v1_database_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -650,7 +721,7 @@ func (x *RowInsertRequest) String() string {
func (*RowInsertRequest) ProtoMessage() {}
func (x *RowInsertRequest) ProtoReflect() protoreflect.Message {
mi := &file_greptime_v1_database_proto_msgTypes[8]
mi := &file_greptime_v1_database_proto_msgTypes[9]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -663,7 +734,7 @@ func (x *RowInsertRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use RowInsertRequest.ProtoReflect.Descriptor instead.
func (*RowInsertRequest) Descriptor() ([]byte, []int) {
return file_greptime_v1_database_proto_rawDescGZIP(), []int{8}
return file_greptime_v1_database_proto_rawDescGZIP(), []int{9}
}
func (x *RowInsertRequest) GetTableName() string {
@@ -691,7 +762,7 @@ type RowDeleteRequests struct {
func (x *RowDeleteRequests) Reset() {
*x = RowDeleteRequests{}
if protoimpl.UnsafeEnabled {
mi := &file_greptime_v1_database_proto_msgTypes[9]
mi := &file_greptime_v1_database_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -704,7 +775,7 @@ func (x *RowDeleteRequests) String() string {
func (*RowDeleteRequests) ProtoMessage() {}
func (x *RowDeleteRequests) ProtoReflect() protoreflect.Message {
mi := &file_greptime_v1_database_proto_msgTypes[9]
mi := &file_greptime_v1_database_proto_msgTypes[10]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -717,7 +788,7 @@ func (x *RowDeleteRequests) ProtoReflect() protoreflect.Message {
// Deprecated: Use RowDeleteRequests.ProtoReflect.Descriptor instead.
func (*RowDeleteRequests) Descriptor() ([]byte, []int) {
return file_greptime_v1_database_proto_rawDescGZIP(), []int{9}
return file_greptime_v1_database_proto_rawDescGZIP(), []int{10}
}
func (x *RowDeleteRequests) GetDeletes() []*RowDeleteRequest {
@@ -742,7 +813,7 @@ type RowDeleteRequest struct {
func (x *RowDeleteRequest) Reset() {
*x = RowDeleteRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_greptime_v1_database_proto_msgTypes[10]
mi := &file_greptime_v1_database_proto_msgTypes[11]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -755,7 +826,7 @@ func (x *RowDeleteRequest) String() string {
func (*RowDeleteRequest) ProtoMessage() {}
func (x *RowDeleteRequest) ProtoReflect() protoreflect.Message {
mi := &file_greptime_v1_database_proto_msgTypes[10]
mi := &file_greptime_v1_database_proto_msgTypes[11]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -768,7 +839,7 @@ func (x *RowDeleteRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use RowDeleteRequest.ProtoReflect.Descriptor instead.
func (*RowDeleteRequest) Descriptor() ([]byte, []int) {
return file_greptime_v1_database_proto_rawDescGZIP(), []int{10}
return file_greptime_v1_database_proto_rawDescGZIP(), []int{11}
}
func (x *RowDeleteRequest) GetTableName() string {
@@ -834,7 +905,7 @@ var file_greptime_v1_database_proto_rawDesc = []byte{
0x19, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x66,
0x66, 0x65, 0x63, 0x74, 0x65, 0x64, 0x52, 0x6f, 0x77, 0x73, 0x48, 0x00, 0x52, 0x0c, 0x61, 0x66,
0x66, 0x65, 0x63, 0x74, 0x65, 0x64, 0x52, 0x6f, 0x77, 0x73, 0x42, 0x0a, 0x0a, 0x08, 0x72, 0x65,
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x99, 0x01, 0x0a, 0x0c, 0x51, 0x75, 0x65, 0x72, 0x79,
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xe2, 0x01, 0x0a, 0x0c, 0x51, 0x75, 0x65, 0x72, 0x79,
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x03, 0x73, 0x71, 0x6c, 0x18, 0x01,
0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x03, 0x73, 0x71, 0x6c, 0x12, 0x23, 0x0a, 0x0c, 0x6c,
0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, 0x5f, 0x70, 0x6c, 0x61, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28,
@@ -843,70 +914,81 @@ var file_greptime_v1_database_proto_rawDesc = []byte{
0x75, 0x65, 0x72, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x72, 0x65,
0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6d, 0x52, 0x61, 0x6e,
0x67, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x48, 0x00, 0x52, 0x0e, 0x70, 0x72, 0x6f, 0x6d, 0x52,
0x61, 0x6e, 0x67, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x07, 0x0a, 0x05, 0x71, 0x75, 0x65,
0x72, 0x79, 0x22, 0x46, 0x0a, 0x0e, 0x49, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x73, 0x12, 0x34, 0x0a, 0x07, 0x69, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x73, 0x18,
0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65,
0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
0x74, 0x52, 0x07, 0x69, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x73, 0x22, 0x7a, 0x0a, 0x0d, 0x49, 0x6e,
0x73, 0x65, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x74,
0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
0x09, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2d, 0x0a, 0x07, 0x63, 0x6f,
0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x67, 0x72,
0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e,
0x52, 0x07, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x6f, 0x77,
0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x72, 0x6f,
0x77, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x46, 0x0a, 0x0e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65,
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x12, 0x34, 0x0a, 0x07, 0x64, 0x65, 0x6c, 0x65,
0x74, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x72, 0x65, 0x70,
0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65,
0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x07, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x73, 0x22, 0x81,
0x01, 0x0a, 0x0d, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
0x61, 0x6e, 0x67, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x47, 0x0a, 0x10, 0x69, 0x6e, 0x73,
0x65, 0x72, 0x74, 0x5f, 0x69, 0x6e, 0x74, 0x6f, 0x5f, 0x70, 0x6c, 0x61, 0x6e, 0x18, 0x04, 0x20,
0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76,
0x31, 0x2e, 0x49, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x49, 0x6e, 0x74, 0x6f, 0x50, 0x6c, 0x61, 0x6e,
0x48, 0x00, 0x52, 0x0e, 0x69, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x49, 0x6e, 0x74, 0x6f, 0x50, 0x6c,
0x61, 0x6e, 0x42, 0x07, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x22, 0x6a, 0x0a, 0x0e, 0x49,
0x6e, 0x73, 0x65, 0x72, 0x74, 0x49, 0x6e, 0x74, 0x6f, 0x50, 0x6c, 0x61, 0x6e, 0x12, 0x35, 0x0a,
0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
0x0b, 0x32, 0x16, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e,
0x54, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x09, 0x74, 0x61, 0x62, 0x6c, 0x65,
0x4e, 0x61, 0x6d, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x6c, 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, 0x5f,
0x70, 0x6c, 0x61, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x6c, 0x6f, 0x67, 0x69,
0x63, 0x61, 0x6c, 0x50, 0x6c, 0x61, 0x6e, 0x22, 0x46, 0x0a, 0x0e, 0x49, 0x6e, 0x73, 0x65, 0x72,
0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x12, 0x34, 0x0a, 0x07, 0x69, 0x6e, 0x73,
0x65, 0x72, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x72, 0x65,
0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x52,
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x07, 0x69, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x73, 0x22,
0x7a, 0x0a, 0x0d, 0x49, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01,
0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12,
0x34, 0x0a, 0x0b, 0x6b, 0x65, 0x79, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x03,
0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e,
0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x52, 0x0a, 0x6b, 0x65, 0x79, 0x43, 0x6f,
0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x6f, 0x77, 0x5f, 0x63, 0x6f, 0x75,
0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x72, 0x6f, 0x77, 0x43, 0x6f, 0x75,
0x6e, 0x74, 0x22, 0x4c, 0x0a, 0x11, 0x52, 0x6f, 0x77, 0x49, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x52,
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x12, 0x37, 0x0a, 0x07, 0x69, 0x6e, 0x73, 0x65, 0x72,
0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74,
0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x6f, 0x77, 0x49, 0x6e, 0x73, 0x65, 0x72, 0x74,
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x07, 0x69, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x73,
0x22, 0x58, 0x0a, 0x10, 0x52, 0x6f, 0x77, 0x49, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61,
0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e,
0x61, 0x6d, 0x65, 0x12, 0x25, 0x0a, 0x04, 0x72, 0x6f, 0x77, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28,
0x0b, 0x32, 0x11, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e,
0x52, 0x6f, 0x77, 0x73, 0x52, 0x04, 0x72, 0x6f, 0x77, 0x73, 0x22, 0x4c, 0x0a, 0x11, 0x52, 0x6f,
0x77, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x12,
0x37, 0x0a, 0x07, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b,
0x32, 0x1d, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52,
0x6f, 0x77, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52,
0x07, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x73, 0x22, 0x58, 0x0a, 0x10, 0x52, 0x6f, 0x77, 0x44,
0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a,
0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
0x52, 0x09, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x25, 0x0a, 0x04, 0x72,
0x6f, 0x77, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x67, 0x72, 0x65, 0x70,
0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x6f, 0x77, 0x73, 0x52, 0x04, 0x72, 0x6f,
0x77, 0x73, 0x32, 0xaa, 0x01, 0x0a, 0x10, 0x47, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x44,
0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x12, 0x45, 0x0a, 0x06, 0x48, 0x61, 0x6e, 0x64, 0x6c,
0x65, 0x12, 0x1c, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e,
0x47, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
0x1d, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x72,
0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4f,
0x0a, 0x0e, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73,
0x12, 0x1c, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47,
0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d,
0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x72, 0x65,
0x70, 0x74, 0x69, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x28, 0x01, 0x42,
0x51, 0x0a, 0x0e, 0x69, 0x6f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76,
0x31, 0x42, 0x08, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5a, 0x35, 0x67, 0x69, 0x74,
0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65,
0x54, 0x65, 0x61, 0x6d, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2d, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f,
0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
0x2d, 0x0a, 0x07, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b,
0x32, 0x13, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43,
0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x52, 0x07, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x1b,
0x0a, 0x09, 0x72, 0x6f, 0x77, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28,
0x0d, 0x52, 0x08, 0x72, 0x6f, 0x77, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x46, 0x0a, 0x0e, 0x44,
0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x12, 0x34, 0x0a,
0x07, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a,
0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c,
0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x07, 0x64, 0x65, 0x6c, 0x65,
0x74, 0x65, 0x73, 0x22, 0x81, 0x01, 0x0a, 0x0d, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65,
0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e,
0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x61, 0x62, 0x6c, 0x65,
0x4e, 0x61, 0x6d, 0x65, 0x12, 0x34, 0x0a, 0x0b, 0x6b, 0x65, 0x79, 0x5f, 0x63, 0x6f, 0x6c, 0x75,
0x6d, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x67, 0x72, 0x65, 0x70,
0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x52, 0x0a,
0x6b, 0x65, 0x79, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x6f,
0x77, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x72,
0x6f, 0x77, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x4c, 0x0a, 0x11, 0x52, 0x6f, 0x77, 0x49, 0x6e,
0x73, 0x65, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x12, 0x37, 0x0a, 0x07,
0x69, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e,
0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x6f, 0x77, 0x49,
0x6e, 0x73, 0x65, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x07, 0x69, 0x6e,
0x73, 0x65, 0x72, 0x74, 0x73, 0x22, 0x58, 0x0a, 0x10, 0x52, 0x6f, 0x77, 0x49, 0x6e, 0x73, 0x65,
0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x62,
0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74,
0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x25, 0x0a, 0x04, 0x72, 0x6f, 0x77, 0x73,
0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d,
0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x6f, 0x77, 0x73, 0x52, 0x04, 0x72, 0x6f, 0x77, 0x73, 0x22,
0x4c, 0x0a, 0x11, 0x52, 0x6f, 0x77, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x73, 0x12, 0x37, 0x0a, 0x07, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x73, 0x18,
0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65,
0x2e, 0x76, 0x31, 0x2e, 0x52, 0x6f, 0x77, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x52, 0x07, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x73, 0x22, 0x58, 0x0a,
0x10, 0x52, 0x6f, 0x77, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18,
0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65,
0x12, 0x25, 0x0a, 0x04, 0x72, 0x6f, 0x77, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11,
0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x6f, 0x77,
0x73, 0x52, 0x04, 0x72, 0x6f, 0x77, 0x73, 0x32, 0xaa, 0x01, 0x0a, 0x10, 0x47, 0x72, 0x65, 0x70,
0x74, 0x69, 0x6d, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x12, 0x45, 0x0a, 0x06,
0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x12, 0x1c, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d,
0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e,
0x76, 0x31, 0x2e, 0x47, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f,
0x6e, 0x73, 0x65, 0x12, 0x4f, 0x0a, 0x0e, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x73, 0x12, 0x1c, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65,
0x2e, 0x76, 0x31, 0x2e, 0x47, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76,
0x31, 0x2e, 0x47, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
0x73, 0x65, 0x28, 0x01, 0x42, 0x51, 0x0a, 0x0e, 0x69, 0x6f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74,
0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x08, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,
0x5a, 0x35, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x72, 0x65,
0x70, 0x74, 0x69, 0x6d, 0x65, 0x54, 0x65, 0x61, 0x6d, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69,
0x6d, 0x65, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x72, 0x65, 0x70,
0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
@@ -921,55 +1003,59 @@ func file_greptime_v1_database_proto_rawDescGZIP() []byte {
return file_greptime_v1_database_proto_rawDescData
}
var file_greptime_v1_database_proto_msgTypes = make([]protoimpl.MessageInfo, 11)
var file_greptime_v1_database_proto_msgTypes = make([]protoimpl.MessageInfo, 12)
var file_greptime_v1_database_proto_goTypes = []interface{}{
(*GreptimeRequest)(nil), // 0: greptime.v1.GreptimeRequest
(*GreptimeResponse)(nil), // 1: greptime.v1.GreptimeResponse
(*QueryRequest)(nil), // 2: greptime.v1.QueryRequest
(*InsertRequests)(nil), // 3: greptime.v1.InsertRequests
(*InsertRequest)(nil), // 4: greptime.v1.InsertRequest
(*DeleteRequests)(nil), // 5: greptime.v1.DeleteRequests
(*DeleteRequest)(nil), // 6: greptime.v1.DeleteRequest
(*RowInsertRequests)(nil), // 7: greptime.v1.RowInsertRequests
(*RowInsertRequest)(nil), // 8: greptime.v1.RowInsertRequest
(*RowDeleteRequests)(nil), // 9: greptime.v1.RowDeleteRequests
(*RowDeleteRequest)(nil), // 10: greptime.v1.RowDeleteRequest
(*RequestHeader)(nil), // 11: greptime.v1.RequestHeader
(*DdlRequest)(nil), // 12: greptime.v1.DdlRequest
(*ResponseHeader)(nil), // 13: greptime.v1.ResponseHeader
(*AffectedRows)(nil), // 14: greptime.v1.AffectedRows
(*PromRangeQuery)(nil), // 15: greptime.v1.PromRangeQuery
(*Column)(nil), // 16: greptime.v1.Column
(*Rows)(nil), // 17: greptime.v1.Rows
(*InsertIntoPlan)(nil), // 3: greptime.v1.InsertIntoPlan
(*InsertRequests)(nil), // 4: greptime.v1.InsertRequests
(*InsertRequest)(nil), // 5: greptime.v1.InsertRequest
(*DeleteRequests)(nil), // 6: greptime.v1.DeleteRequests
(*DeleteRequest)(nil), // 7: greptime.v1.DeleteRequest
(*RowInsertRequests)(nil), // 8: greptime.v1.RowInsertRequests
(*RowInsertRequest)(nil), // 9: greptime.v1.RowInsertRequest
(*RowDeleteRequests)(nil), // 10: greptime.v1.RowDeleteRequests
(*RowDeleteRequest)(nil), // 11: greptime.v1.RowDeleteRequest
(*RequestHeader)(nil), // 12: greptime.v1.RequestHeader
(*DdlRequest)(nil), // 13: greptime.v1.DdlRequest
(*ResponseHeader)(nil), // 14: greptime.v1.ResponseHeader
(*AffectedRows)(nil), // 15: greptime.v1.AffectedRows
(*PromRangeQuery)(nil), // 16: greptime.v1.PromRangeQuery
(*TableName)(nil), // 17: greptime.v1.TableName
(*Column)(nil), // 18: greptime.v1.Column
(*Rows)(nil), // 19: greptime.v1.Rows
}
var file_greptime_v1_database_proto_depIdxs = []int32{
11, // 0: greptime.v1.GreptimeRequest.header:type_name -> greptime.v1.RequestHeader
3, // 1: greptime.v1.GreptimeRequest.inserts:type_name -> greptime.v1.InsertRequests
12, // 0: greptime.v1.GreptimeRequest.header:type_name -> greptime.v1.RequestHeader
4, // 1: greptime.v1.GreptimeRequest.inserts:type_name -> greptime.v1.InsertRequests
2, // 2: greptime.v1.GreptimeRequest.query:type_name -> greptime.v1.QueryRequest
12, // 3: greptime.v1.GreptimeRequest.ddl:type_name -> greptime.v1.DdlRequest
5, // 4: greptime.v1.GreptimeRequest.deletes:type_name -> greptime.v1.DeleteRequests
7, // 5: greptime.v1.GreptimeRequest.row_inserts:type_name -> greptime.v1.RowInsertRequests
9, // 6: greptime.v1.GreptimeRequest.row_deletes:type_name -> greptime.v1.RowDeleteRequests
13, // 7: greptime.v1.GreptimeResponse.header:type_name -> greptime.v1.ResponseHeader
14, // 8: greptime.v1.GreptimeResponse.affected_rows:type_name -> greptime.v1.AffectedRows
15, // 9: greptime.v1.QueryRequest.prom_range_query:type_name -> greptime.v1.PromRangeQuery
4, // 10: greptime.v1.InsertRequests.inserts:type_name -> greptime.v1.InsertRequest
16, // 11: greptime.v1.InsertRequest.columns:type_name -> greptime.v1.Column
6, // 12: greptime.v1.DeleteRequests.deletes:type_name -> greptime.v1.DeleteRequest
16, // 13: greptime.v1.DeleteRequest.key_columns:type_name -> greptime.v1.Column
8, // 14: greptime.v1.RowInsertRequests.inserts:type_name -> greptime.v1.RowInsertRequest
17, // 15: greptime.v1.RowInsertRequest.rows:type_name -> greptime.v1.Rows
10, // 16: greptime.v1.RowDeleteRequests.deletes:type_name -> greptime.v1.RowDeleteRequest
17, // 17: greptime.v1.RowDeleteRequest.rows:type_name -> greptime.v1.Rows
0, // 18: greptime.v1.GreptimeDatabase.Handle:input_type -> greptime.v1.GreptimeRequest
0, // 19: greptime.v1.GreptimeDatabase.HandleRequests:input_type -> greptime.v1.GreptimeRequest
1, // 20: greptime.v1.GreptimeDatabase.Handle:output_type -> greptime.v1.GreptimeResponse
1, // 21: greptime.v1.GreptimeDatabase.HandleRequests:output_type -> greptime.v1.GreptimeResponse
20, // [20:22] is the sub-list for method output_type
18, // [18:20] is the sub-list for method input_type
18, // [18:18] is the sub-list for extension type_name
18, // [18:18] is the sub-list for extension extendee
0, // [0:18] is the sub-list for field type_name
13, // 3: greptime.v1.GreptimeRequest.ddl:type_name -> greptime.v1.DdlRequest
6, // 4: greptime.v1.GreptimeRequest.deletes:type_name -> greptime.v1.DeleteRequests
8, // 5: greptime.v1.GreptimeRequest.row_inserts:type_name -> greptime.v1.RowInsertRequests
10, // 6: greptime.v1.GreptimeRequest.row_deletes:type_name -> greptime.v1.RowDeleteRequests
14, // 7: greptime.v1.GreptimeResponse.header:type_name -> greptime.v1.ResponseHeader
15, // 8: greptime.v1.GreptimeResponse.affected_rows:type_name -> greptime.v1.AffectedRows
16, // 9: greptime.v1.QueryRequest.prom_range_query:type_name -> greptime.v1.PromRangeQuery
3, // 10: greptime.v1.QueryRequest.insert_into_plan:type_name -> greptime.v1.InsertIntoPlan
17, // 11: greptime.v1.InsertIntoPlan.table_name:type_name -> greptime.v1.TableName
5, // 12: greptime.v1.InsertRequests.inserts:type_name -> greptime.v1.InsertRequest
18, // 13: greptime.v1.InsertRequest.columns:type_name -> greptime.v1.Column
7, // 14: greptime.v1.DeleteRequests.deletes:type_name -> greptime.v1.DeleteRequest
18, // 15: greptime.v1.DeleteRequest.key_columns:type_name -> greptime.v1.Column
9, // 16: greptime.v1.RowInsertRequests.inserts:type_name -> greptime.v1.RowInsertRequest
19, // 17: greptime.v1.RowInsertRequest.rows:type_name -> greptime.v1.Rows
11, // 18: greptime.v1.RowDeleteRequests.deletes:type_name -> greptime.v1.RowDeleteRequest
19, // 19: greptime.v1.RowDeleteRequest.rows:type_name -> greptime.v1.Rows
0, // 20: greptime.v1.GreptimeDatabase.Handle:input_type -> greptime.v1.GreptimeRequest
0, // 21: greptime.v1.GreptimeDatabase.HandleRequests:input_type -> greptime.v1.GreptimeRequest
1, // 22: greptime.v1.GreptimeDatabase.Handle:output_type -> greptime.v1.GreptimeResponse
1, // 23: greptime.v1.GreptimeDatabase.HandleRequests:output_type -> greptime.v1.GreptimeResponse
22, // [22:24] is the sub-list for method output_type
20, // [20:22] is the sub-list for method input_type
20, // [20:20] is the sub-list for extension type_name
20, // [20:20] is the sub-list for extension extendee
0, // [0:20] is the sub-list for field type_name
}
func init() { file_greptime_v1_database_proto_init() }
@@ -1020,7 +1106,7 @@ func file_greptime_v1_database_proto_init() {
}
}
file_greptime_v1_database_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*InsertRequests); i {
switch v := v.(*InsertIntoPlan); i {
case 0:
return &v.state
case 1:
@@ -1032,7 +1118,7 @@ func file_greptime_v1_database_proto_init() {
}
}
file_greptime_v1_database_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*InsertRequest); i {
switch v := v.(*InsertRequests); i {
case 0:
return &v.state
case 1:
@@ -1044,7 +1130,7 @@ func file_greptime_v1_database_proto_init() {
}
}
file_greptime_v1_database_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*DeleteRequests); i {
switch v := v.(*InsertRequest); i {
case 0:
return &v.state
case 1:
@@ -1056,7 +1142,7 @@ func file_greptime_v1_database_proto_init() {
}
}
file_greptime_v1_database_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*DeleteRequest); i {
switch v := v.(*DeleteRequests); i {
case 0:
return &v.state
case 1:
@@ -1068,7 +1154,7 @@ func file_greptime_v1_database_proto_init() {
}
}
file_greptime_v1_database_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*RowInsertRequests); i {
switch v := v.(*DeleteRequest); i {
case 0:
return &v.state
case 1:
@@ -1080,7 +1166,7 @@ func file_greptime_v1_database_proto_init() {
}
}
file_greptime_v1_database_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*RowInsertRequest); i {
switch v := v.(*RowInsertRequests); i {
case 0:
return &v.state
case 1:
@@ -1092,7 +1178,7 @@ func file_greptime_v1_database_proto_init() {
}
}
file_greptime_v1_database_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*RowDeleteRequests); i {
switch v := v.(*RowInsertRequest); i {
case 0:
return &v.state
case 1:
@@ -1104,6 +1190,18 @@ func file_greptime_v1_database_proto_init() {
}
}
file_greptime_v1_database_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*RowDeleteRequests); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_greptime_v1_database_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*RowDeleteRequest); i {
case 0:
return &v.state
@@ -1131,6 +1229,7 @@ func file_greptime_v1_database_proto_init() {
(*QueryRequest_Sql)(nil),
(*QueryRequest_LogicalPlan)(nil),
(*QueryRequest_PromRangeQuery)(nil),
(*QueryRequest_InsertIntoPlan)(nil),
}
type x struct{}
out := protoimpl.TypeBuilder{
@@ -1138,7 +1237,7 @@ func file_greptime_v1_database_proto_init() {
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_greptime_v1_database_proto_rawDesc,
NumEnums: 0,
NumMessages: 11,
NumMessages: 12,
NumExtensions: 0,
NumServices: 1,
},