feat: region procedure service (#137)
* feat: adds region service and procedure service * refactor: adds procedure service for ddl and region task * feat: adds QueryProcedureRequest * feat: improve ProcedureStateResponse and MigrateRegionRequest * fix: forgot headers * fix: remove cluster_id in MigrateRegionRequest * refactor: rename Procedure to ProcedureService * chore: rename peer * fix: forgot java Procedure
This commit is contained in:
+170
-177
@@ -426,7 +426,7 @@ func (x *TruncateTableTask) GetTruncateTable() *v1.TruncateTableExpr {
|
||||
return nil
|
||||
}
|
||||
|
||||
type SubmitDdlTaskRequest struct {
|
||||
type DdlTaskRequest struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
@@ -434,18 +434,18 @@ type SubmitDdlTaskRequest struct {
|
||||
Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
|
||||
// Types that are assignable to Task:
|
||||
//
|
||||
// *SubmitDdlTaskRequest_CreateTableTask
|
||||
// *SubmitDdlTaskRequest_DropTableTask
|
||||
// *SubmitDdlTaskRequest_AlterTableTask
|
||||
// *SubmitDdlTaskRequest_TruncateTableTask
|
||||
// *SubmitDdlTaskRequest_CreateTableTasks
|
||||
// *SubmitDdlTaskRequest_DropTableTasks
|
||||
// *SubmitDdlTaskRequest_AlterTableTasks
|
||||
Task isSubmitDdlTaskRequest_Task `protobuf_oneof:"task"`
|
||||
// *DdlTaskRequest_CreateTableTask
|
||||
// *DdlTaskRequest_DropTableTask
|
||||
// *DdlTaskRequest_AlterTableTask
|
||||
// *DdlTaskRequest_TruncateTableTask
|
||||
// *DdlTaskRequest_CreateTableTasks
|
||||
// *DdlTaskRequest_DropTableTasks
|
||||
// *DdlTaskRequest_AlterTableTasks
|
||||
Task isDdlTaskRequest_Task `protobuf_oneof:"task"`
|
||||
}
|
||||
|
||||
func (x *SubmitDdlTaskRequest) Reset() {
|
||||
*x = SubmitDdlTaskRequest{}
|
||||
func (x *DdlTaskRequest) Reset() {
|
||||
*x = DdlTaskRequest{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_greptime_v1_meta_ddl_proto_msgTypes[7]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
@@ -453,13 +453,13 @@ func (x *SubmitDdlTaskRequest) Reset() {
|
||||
}
|
||||
}
|
||||
|
||||
func (x *SubmitDdlTaskRequest) String() string {
|
||||
func (x *DdlTaskRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*SubmitDdlTaskRequest) ProtoMessage() {}
|
||||
func (*DdlTaskRequest) ProtoMessage() {}
|
||||
|
||||
func (x *SubmitDdlTaskRequest) ProtoReflect() protoreflect.Message {
|
||||
func (x *DdlTaskRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_greptime_v1_meta_ddl_proto_msgTypes[7]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
@@ -471,128 +471,127 @@ func (x *SubmitDdlTaskRequest) ProtoReflect() protoreflect.Message {
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use SubmitDdlTaskRequest.ProtoReflect.Descriptor instead.
|
||||
func (*SubmitDdlTaskRequest) Descriptor() ([]byte, []int) {
|
||||
// Deprecated: Use DdlTaskRequest.ProtoReflect.Descriptor instead.
|
||||
func (*DdlTaskRequest) Descriptor() ([]byte, []int) {
|
||||
return file_greptime_v1_meta_ddl_proto_rawDescGZIP(), []int{7}
|
||||
}
|
||||
|
||||
func (x *SubmitDdlTaskRequest) GetHeader() *RequestHeader {
|
||||
func (x *DdlTaskRequest) GetHeader() *RequestHeader {
|
||||
if x != nil {
|
||||
return x.Header
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *SubmitDdlTaskRequest) GetTask() isSubmitDdlTaskRequest_Task {
|
||||
func (m *DdlTaskRequest) GetTask() isDdlTaskRequest_Task {
|
||||
if m != nil {
|
||||
return m.Task
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *SubmitDdlTaskRequest) GetCreateTableTask() *CreateTableTask {
|
||||
if x, ok := x.GetTask().(*SubmitDdlTaskRequest_CreateTableTask); ok {
|
||||
func (x *DdlTaskRequest) GetCreateTableTask() *CreateTableTask {
|
||||
if x, ok := x.GetTask().(*DdlTaskRequest_CreateTableTask); ok {
|
||||
return x.CreateTableTask
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *SubmitDdlTaskRequest) GetDropTableTask() *DropTableTask {
|
||||
if x, ok := x.GetTask().(*SubmitDdlTaskRequest_DropTableTask); ok {
|
||||
func (x *DdlTaskRequest) GetDropTableTask() *DropTableTask {
|
||||
if x, ok := x.GetTask().(*DdlTaskRequest_DropTableTask); ok {
|
||||
return x.DropTableTask
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *SubmitDdlTaskRequest) GetAlterTableTask() *AlterTableTask {
|
||||
if x, ok := x.GetTask().(*SubmitDdlTaskRequest_AlterTableTask); ok {
|
||||
func (x *DdlTaskRequest) GetAlterTableTask() *AlterTableTask {
|
||||
if x, ok := x.GetTask().(*DdlTaskRequest_AlterTableTask); ok {
|
||||
return x.AlterTableTask
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *SubmitDdlTaskRequest) GetTruncateTableTask() *TruncateTableTask {
|
||||
if x, ok := x.GetTask().(*SubmitDdlTaskRequest_TruncateTableTask); ok {
|
||||
func (x *DdlTaskRequest) GetTruncateTableTask() *TruncateTableTask {
|
||||
if x, ok := x.GetTask().(*DdlTaskRequest_TruncateTableTask); ok {
|
||||
return x.TruncateTableTask
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *SubmitDdlTaskRequest) GetCreateTableTasks() *CreateTableTasks {
|
||||
if x, ok := x.GetTask().(*SubmitDdlTaskRequest_CreateTableTasks); ok {
|
||||
func (x *DdlTaskRequest) GetCreateTableTasks() *CreateTableTasks {
|
||||
if x, ok := x.GetTask().(*DdlTaskRequest_CreateTableTasks); ok {
|
||||
return x.CreateTableTasks
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *SubmitDdlTaskRequest) GetDropTableTasks() *DropTableTasks {
|
||||
if x, ok := x.GetTask().(*SubmitDdlTaskRequest_DropTableTasks); ok {
|
||||
func (x *DdlTaskRequest) GetDropTableTasks() *DropTableTasks {
|
||||
if x, ok := x.GetTask().(*DdlTaskRequest_DropTableTasks); ok {
|
||||
return x.DropTableTasks
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *SubmitDdlTaskRequest) GetAlterTableTasks() *AlterTableTasks {
|
||||
if x, ok := x.GetTask().(*SubmitDdlTaskRequest_AlterTableTasks); ok {
|
||||
func (x *DdlTaskRequest) GetAlterTableTasks() *AlterTableTasks {
|
||||
if x, ok := x.GetTask().(*DdlTaskRequest_AlterTableTasks); ok {
|
||||
return x.AlterTableTasks
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type isSubmitDdlTaskRequest_Task interface {
|
||||
isSubmitDdlTaskRequest_Task()
|
||||
type isDdlTaskRequest_Task interface {
|
||||
isDdlTaskRequest_Task()
|
||||
}
|
||||
|
||||
type SubmitDdlTaskRequest_CreateTableTask struct {
|
||||
type DdlTaskRequest_CreateTableTask struct {
|
||||
CreateTableTask *CreateTableTask `protobuf:"bytes,2,opt,name=create_table_task,json=createTableTask,proto3,oneof"`
|
||||
}
|
||||
|
||||
type SubmitDdlTaskRequest_DropTableTask struct {
|
||||
type DdlTaskRequest_DropTableTask struct {
|
||||
DropTableTask *DropTableTask `protobuf:"bytes,3,opt,name=drop_table_task,json=dropTableTask,proto3,oneof"`
|
||||
}
|
||||
|
||||
type SubmitDdlTaskRequest_AlterTableTask struct {
|
||||
type DdlTaskRequest_AlterTableTask struct {
|
||||
AlterTableTask *AlterTableTask `protobuf:"bytes,4,opt,name=alter_table_task,json=alterTableTask,proto3,oneof"`
|
||||
}
|
||||
|
||||
type SubmitDdlTaskRequest_TruncateTableTask struct {
|
||||
type DdlTaskRequest_TruncateTableTask struct {
|
||||
TruncateTableTask *TruncateTableTask `protobuf:"bytes,5,opt,name=truncate_table_task,json=truncateTableTask,proto3,oneof"`
|
||||
}
|
||||
|
||||
type SubmitDdlTaskRequest_CreateTableTasks struct {
|
||||
type DdlTaskRequest_CreateTableTasks struct {
|
||||
CreateTableTasks *CreateTableTasks `protobuf:"bytes,6,opt,name=create_table_tasks,json=createTableTasks,proto3,oneof"`
|
||||
}
|
||||
|
||||
type SubmitDdlTaskRequest_DropTableTasks struct {
|
||||
type DdlTaskRequest_DropTableTasks struct {
|
||||
DropTableTasks *DropTableTasks `protobuf:"bytes,7,opt,name=drop_table_tasks,json=dropTableTasks,proto3,oneof"`
|
||||
}
|
||||
|
||||
type SubmitDdlTaskRequest_AlterTableTasks struct {
|
||||
type DdlTaskRequest_AlterTableTasks struct {
|
||||
AlterTableTasks *AlterTableTasks `protobuf:"bytes,8,opt,name=alter_table_tasks,json=alterTableTasks,proto3,oneof"`
|
||||
}
|
||||
|
||||
func (*SubmitDdlTaskRequest_CreateTableTask) isSubmitDdlTaskRequest_Task() {}
|
||||
func (*DdlTaskRequest_CreateTableTask) isDdlTaskRequest_Task() {}
|
||||
|
||||
func (*SubmitDdlTaskRequest_DropTableTask) isSubmitDdlTaskRequest_Task() {}
|
||||
func (*DdlTaskRequest_DropTableTask) isDdlTaskRequest_Task() {}
|
||||
|
||||
func (*SubmitDdlTaskRequest_AlterTableTask) isSubmitDdlTaskRequest_Task() {}
|
||||
func (*DdlTaskRequest_AlterTableTask) isDdlTaskRequest_Task() {}
|
||||
|
||||
func (*SubmitDdlTaskRequest_TruncateTableTask) isSubmitDdlTaskRequest_Task() {}
|
||||
func (*DdlTaskRequest_TruncateTableTask) isDdlTaskRequest_Task() {}
|
||||
|
||||
func (*SubmitDdlTaskRequest_CreateTableTasks) isSubmitDdlTaskRequest_Task() {}
|
||||
func (*DdlTaskRequest_CreateTableTasks) isDdlTaskRequest_Task() {}
|
||||
|
||||
func (*SubmitDdlTaskRequest_DropTableTasks) isSubmitDdlTaskRequest_Task() {}
|
||||
func (*DdlTaskRequest_DropTableTasks) isDdlTaskRequest_Task() {}
|
||||
|
||||
func (*SubmitDdlTaskRequest_AlterTableTasks) isSubmitDdlTaskRequest_Task() {}
|
||||
func (*DdlTaskRequest_AlterTableTasks) isDdlTaskRequest_Task() {}
|
||||
|
||||
type SubmitDdlTaskResponse struct {
|
||||
type DdlTaskResponse struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
|
||||
// Key is the identifier for the ddl task.
|
||||
Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
|
||||
Pid *ProcedureId `protobuf:"bytes,2,opt,name=pid,proto3" json:"pid,omitempty"`
|
||||
// Returns if table created.
|
||||
// TODO(jeremy): remove it?
|
||||
TableId *TableId `protobuf:"bytes,4,opt,name=table_id,json=tableId,proto3" json:"table_id,omitempty"`
|
||||
@@ -600,8 +599,8 @@ type SubmitDdlTaskResponse struct {
|
||||
TableIds []*TableId `protobuf:"bytes,5,rep,name=table_ids,json=tableIds,proto3" json:"table_ids,omitempty"`
|
||||
}
|
||||
|
||||
func (x *SubmitDdlTaskResponse) Reset() {
|
||||
*x = SubmitDdlTaskResponse{}
|
||||
func (x *DdlTaskResponse) Reset() {
|
||||
*x = DdlTaskResponse{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_greptime_v1_meta_ddl_proto_msgTypes[8]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
@@ -609,13 +608,13 @@ func (x *SubmitDdlTaskResponse) Reset() {
|
||||
}
|
||||
}
|
||||
|
||||
func (x *SubmitDdlTaskResponse) String() string {
|
||||
func (x *DdlTaskResponse) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*SubmitDdlTaskResponse) ProtoMessage() {}
|
||||
func (*DdlTaskResponse) ProtoMessage() {}
|
||||
|
||||
func (x *SubmitDdlTaskResponse) ProtoReflect() protoreflect.Message {
|
||||
func (x *DdlTaskResponse) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_greptime_v1_meta_ddl_proto_msgTypes[8]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
@@ -627,33 +626,33 @@ func (x *SubmitDdlTaskResponse) ProtoReflect() protoreflect.Message {
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use SubmitDdlTaskResponse.ProtoReflect.Descriptor instead.
|
||||
func (*SubmitDdlTaskResponse) Descriptor() ([]byte, []int) {
|
||||
// Deprecated: Use DdlTaskResponse.ProtoReflect.Descriptor instead.
|
||||
func (*DdlTaskResponse) Descriptor() ([]byte, []int) {
|
||||
return file_greptime_v1_meta_ddl_proto_rawDescGZIP(), []int{8}
|
||||
}
|
||||
|
||||
func (x *SubmitDdlTaskResponse) GetHeader() *ResponseHeader {
|
||||
func (x *DdlTaskResponse) GetHeader() *ResponseHeader {
|
||||
if x != nil {
|
||||
return x.Header
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *SubmitDdlTaskResponse) GetKey() []byte {
|
||||
func (x *DdlTaskResponse) GetPid() *ProcedureId {
|
||||
if x != nil {
|
||||
return x.Key
|
||||
return x.Pid
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *SubmitDdlTaskResponse) GetTableId() *TableId {
|
||||
func (x *DdlTaskResponse) GetTableId() *TableId {
|
||||
if x != nil {
|
||||
return x.TableId
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *SubmitDdlTaskResponse) GetTableIds() []*TableId {
|
||||
func (x *DdlTaskResponse) GetTableIds() []*TableId {
|
||||
if x != nil {
|
||||
return x.TableIds
|
||||
}
|
||||
@@ -711,75 +710,69 @@ var file_greptime_v1_meta_ddl_proto_rawDesc = []byte{
|
||||
0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74,
|
||||
0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, 0x75, 0x6e, 0x63, 0x61, 0x74, 0x65, 0x54,
|
||||
0x61, 0x62, 0x6c, 0x65, 0x45, 0x78, 0x70, 0x72, 0x52, 0x0d, 0x74, 0x72, 0x75, 0x6e, 0x63, 0x61,
|
||||
0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x22, 0x8b, 0x05, 0x0a, 0x14, 0x53, 0x75, 0x62, 0x6d,
|
||||
0x69, 0x74, 0x44, 0x64, 0x6c, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
|
||||
0x12, 0x37, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b,
|
||||
0x32, 0x1f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d,
|
||||
0x65, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x65, 0x61, 0x64, 0x65,
|
||||
0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x4f, 0x0a, 0x11, 0x63, 0x72, 0x65,
|
||||
0x61, 0x74, 0x65, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x18, 0x02,
|
||||
0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e,
|
||||
0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61,
|
||||
0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x48, 0x00, 0x52, 0x0f, 0x63, 0x72, 0x65, 0x61, 0x74,
|
||||
0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x49, 0x0a, 0x0f, 0x64, 0x72,
|
||||
0x6f, 0x70, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x18, 0x03, 0x20,
|
||||
0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76,
|
||||
0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x44, 0x72, 0x6f, 0x70, 0x54, 0x61, 0x62, 0x6c, 0x65,
|
||||
0x54, 0x61, 0x73, 0x6b, 0x48, 0x00, 0x52, 0x0d, 0x64, 0x72, 0x6f, 0x70, 0x54, 0x61, 0x62, 0x6c,
|
||||
0x65, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x4c, 0x0a, 0x10, 0x61, 0x6c, 0x74, 0x65, 0x72, 0x5f, 0x74,
|
||||
0x61, 0x62, 0x6c, 0x65, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32,
|
||||
0x20, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65,
|
||||
0x74, 0x61, 0x2e, 0x41, 0x6c, 0x74, 0x65, 0x72, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73,
|
||||
0x6b, 0x48, 0x00, 0x52, 0x0e, 0x61, 0x6c, 0x74, 0x65, 0x72, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54,
|
||||
0x61, 0x73, 0x6b, 0x12, 0x55, 0x0a, 0x13, 0x74, 0x72, 0x75, 0x6e, 0x63, 0x61, 0x74, 0x65, 0x5f,
|
||||
0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b,
|
||||
0x32, 0x23, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d,
|
||||
0x65, 0x74, 0x61, 0x2e, 0x54, 0x72, 0x75, 0x6e, 0x63, 0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c,
|
||||
0x65, 0x54, 0x61, 0x73, 0x6b, 0x48, 0x00, 0x52, 0x11, 0x74, 0x72, 0x75, 0x6e, 0x63, 0x61, 0x74,
|
||||
0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x52, 0x0a, 0x12, 0x63, 0x72,
|
||||
0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x73,
|
||||
0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d,
|
||||
0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65,
|
||||
0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x48, 0x00, 0x52, 0x10, 0x63, 0x72,
|
||||
0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x12, 0x4c,
|
||||
0x0a, 0x10, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x74, 0x61, 0x73,
|
||||
0x6b, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74,
|
||||
0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x44, 0x72, 0x6f, 0x70,
|
||||
0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x48, 0x00, 0x52, 0x0e, 0x64, 0x72,
|
||||
0x6f, 0x70, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x12, 0x4f, 0x0a, 0x11,
|
||||
0x61, 0x6c, 0x74, 0x65, 0x72, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x74, 0x61, 0x73, 0x6b,
|
||||
0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69,
|
||||
0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x41, 0x6c, 0x74, 0x65, 0x72,
|
||||
0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x48, 0x00, 0x52, 0x0f, 0x61, 0x6c,
|
||||
0x74, 0x65, 0x72, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x42, 0x06, 0x0a,
|
||||
0x04, 0x74, 0x61, 0x73, 0x6b, 0x22, 0xd1, 0x01, 0x0a, 0x15, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74,
|
||||
0x44, 0x64, 0x6c, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
|
||||
0x38, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32,
|
||||
0x20, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65,
|
||||
0x74, 0x61, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65,
|
||||
0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79,
|
||||
0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x34, 0x0a, 0x08, 0x74,
|
||||
0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e,
|
||||
0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x22, 0x85, 0x05, 0x0a, 0x0e, 0x44, 0x64, 0x6c, 0x54,
|
||||
0x61, 0x73, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x37, 0x0a, 0x06, 0x68, 0x65,
|
||||
0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x72, 0x65,
|
||||
0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x65,
|
||||
0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61,
|
||||
0x64, 0x65, 0x72, 0x12, 0x4f, 0x0a, 0x11, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x61,
|
||||
0x62, 0x6c, 0x65, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21,
|
||||
0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74,
|
||||
0x61, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73,
|
||||
0x6b, 0x48, 0x00, 0x52, 0x0f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65,
|
||||
0x54, 0x61, 0x73, 0x6b, 0x12, 0x49, 0x0a, 0x0f, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x74, 0x61, 0x62,
|
||||
0x6c, 0x65, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e,
|
||||
0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61,
|
||||
0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x52, 0x07, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x49,
|
||||
0x64, 0x12, 0x36, 0x0a, 0x09, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x05,
|
||||
0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e,
|
||||
0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x52,
|
||||
0x08, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x73, 0x2a, 0x23, 0x0a, 0x0b, 0x44, 0x64, 0x6c,
|
||||
0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0a, 0x0a, 0x06, 0x43, 0x72, 0x65, 0x61,
|
||||
0x74, 0x65, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x72, 0x6f, 0x70, 0x10, 0x01, 0x32, 0x6b,
|
||||
0x0a, 0x07, 0x44, 0x64, 0x6c, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x60, 0x0a, 0x0d, 0x53, 0x75, 0x62,
|
||||
0x6d, 0x69, 0x74, 0x44, 0x64, 0x6c, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x26, 0x2e, 0x67, 0x72, 0x65,
|
||||
0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x53, 0x75,
|
||||
0x62, 0x6d, 0x69, 0x74, 0x44, 0x64, 0x6c, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65,
|
||||
0x73, 0x74, 0x1a, 0x27, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31,
|
||||
0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x44, 0x64, 0x6c, 0x54,
|
||||
0x61, 0x73, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x3c, 0x5a, 0x3a, 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, 0x2f, 0x6d, 0x65, 0x74, 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
||||
0x33,
|
||||
0x2e, 0x44, 0x72, 0x6f, 0x70, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x48, 0x00,
|
||||
0x52, 0x0d, 0x64, 0x72, 0x6f, 0x70, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x12,
|
||||
0x4c, 0x0a, 0x10, 0x61, 0x6c, 0x74, 0x65, 0x72, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x74,
|
||||
0x61, 0x73, 0x6b, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x72, 0x65, 0x70,
|
||||
0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x41, 0x6c, 0x74,
|
||||
0x65, 0x72, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x48, 0x00, 0x52, 0x0e, 0x61,
|
||||
0x6c, 0x74, 0x65, 0x72, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x55, 0x0a,
|
||||
0x13, 0x74, 0x72, 0x75, 0x6e, 0x63, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f,
|
||||
0x74, 0x61, 0x73, 0x6b, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x67, 0x72, 0x65,
|
||||
0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x54, 0x72,
|
||||
0x75, 0x6e, 0x63, 0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x48,
|
||||
0x00, 0x52, 0x11, 0x74, 0x72, 0x75, 0x6e, 0x63, 0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65,
|
||||
0x54, 0x61, 0x73, 0x6b, 0x12, 0x52, 0x0a, 0x12, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74,
|
||||
0x61, 0x62, 0x6c, 0x65, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b,
|
||||
0x32, 0x22, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d,
|
||||
0x65, 0x74, 0x61, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54,
|
||||
0x61, 0x73, 0x6b, 0x73, 0x48, 0x00, 0x52, 0x10, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61,
|
||||
0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x12, 0x4c, 0x0a, 0x10, 0x64, 0x72, 0x6f, 0x70,
|
||||
0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, 0x07, 0x20, 0x01,
|
||||
0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31,
|
||||
0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x44, 0x72, 0x6f, 0x70, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54,
|
||||
0x61, 0x73, 0x6b, 0x73, 0x48, 0x00, 0x52, 0x0e, 0x64, 0x72, 0x6f, 0x70, 0x54, 0x61, 0x62, 0x6c,
|
||||
0x65, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x12, 0x4f, 0x0a, 0x11, 0x61, 0x6c, 0x74, 0x65, 0x72, 0x5f,
|
||||
0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28,
|
||||
0x0b, 0x32, 0x21, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e,
|
||||
0x6d, 0x65, 0x74, 0x61, 0x2e, 0x41, 0x6c, 0x74, 0x65, 0x72, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54,
|
||||
0x61, 0x73, 0x6b, 0x73, 0x48, 0x00, 0x52, 0x0f, 0x61, 0x6c, 0x74, 0x65, 0x72, 0x54, 0x61, 0x62,
|
||||
0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x42, 0x06, 0x0a, 0x04, 0x74, 0x61, 0x73, 0x6b, 0x22,
|
||||
0xea, 0x01, 0x0a, 0x0f, 0x44, 0x64, 0x6c, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f,
|
||||
0x6e, 0x73, 0x65, 0x12, 0x38, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20,
|
||||
0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76,
|
||||
0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48,
|
||||
0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x2f, 0x0a,
|
||||
0x03, 0x70, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x72, 0x65,
|
||||
0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x50, 0x72,
|
||||
0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, 0x65, 0x49, 0x64, 0x52, 0x03, 0x70, 0x69, 0x64, 0x12, 0x34,
|
||||
0x0a, 0x08, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b,
|
||||
0x32, 0x19, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d,
|
||||
0x65, 0x74, 0x61, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x52, 0x07, 0x74, 0x61, 0x62,
|
||||
0x6c, 0x65, 0x49, 0x64, 0x12, 0x36, 0x0a, 0x09, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64,
|
||||
0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69,
|
||||
0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65,
|
||||
0x49, 0x64, 0x52, 0x08, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x73, 0x2a, 0x23, 0x0a, 0x0b,
|
||||
0x44, 0x64, 0x6c, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0a, 0x0a, 0x06, 0x43,
|
||||
0x72, 0x65, 0x61, 0x74, 0x65, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x72, 0x6f, 0x70, 0x10,
|
||||
0x01, 0x42, 0x3c, 0x5a, 0x3a, 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, 0x2f, 0x6d, 0x65, 0x74, 0x61, 0x62,
|
||||
0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
}
|
||||
|
||||
var (
|
||||
@@ -797,24 +790,25 @@ func file_greptime_v1_meta_ddl_proto_rawDescGZIP() []byte {
|
||||
var file_greptime_v1_meta_ddl_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
||||
var file_greptime_v1_meta_ddl_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
|
||||
var file_greptime_v1_meta_ddl_proto_goTypes = []interface{}{
|
||||
(DdlTaskType)(0), // 0: greptime.v1.meta.DdlTaskType
|
||||
(*CreateTableTask)(nil), // 1: greptime.v1.meta.CreateTableTask
|
||||
(*CreateTableTasks)(nil), // 2: greptime.v1.meta.CreateTableTasks
|
||||
(*DropTableTask)(nil), // 3: greptime.v1.meta.DropTableTask
|
||||
(*DropTableTasks)(nil), // 4: greptime.v1.meta.DropTableTasks
|
||||
(*AlterTableTask)(nil), // 5: greptime.v1.meta.AlterTableTask
|
||||
(*AlterTableTasks)(nil), // 6: greptime.v1.meta.AlterTableTasks
|
||||
(*TruncateTableTask)(nil), // 7: greptime.v1.meta.TruncateTableTask
|
||||
(*SubmitDdlTaskRequest)(nil), // 8: greptime.v1.meta.SubmitDdlTaskRequest
|
||||
(*SubmitDdlTaskResponse)(nil), // 9: greptime.v1.meta.SubmitDdlTaskResponse
|
||||
(*v1.CreateTableExpr)(nil), // 10: greptime.v1.CreateTableExpr
|
||||
(*Partition)(nil), // 11: greptime.v1.meta.Partition
|
||||
(*v1.DropTableExpr)(nil), // 12: greptime.v1.DropTableExpr
|
||||
(*v1.AlterExpr)(nil), // 13: greptime.v1.AlterExpr
|
||||
(*v1.TruncateTableExpr)(nil), // 14: greptime.v1.TruncateTableExpr
|
||||
(*RequestHeader)(nil), // 15: greptime.v1.meta.RequestHeader
|
||||
(*ResponseHeader)(nil), // 16: greptime.v1.meta.ResponseHeader
|
||||
(*TableId)(nil), // 17: greptime.v1.meta.TableId
|
||||
(DdlTaskType)(0), // 0: greptime.v1.meta.DdlTaskType
|
||||
(*CreateTableTask)(nil), // 1: greptime.v1.meta.CreateTableTask
|
||||
(*CreateTableTasks)(nil), // 2: greptime.v1.meta.CreateTableTasks
|
||||
(*DropTableTask)(nil), // 3: greptime.v1.meta.DropTableTask
|
||||
(*DropTableTasks)(nil), // 4: greptime.v1.meta.DropTableTasks
|
||||
(*AlterTableTask)(nil), // 5: greptime.v1.meta.AlterTableTask
|
||||
(*AlterTableTasks)(nil), // 6: greptime.v1.meta.AlterTableTasks
|
||||
(*TruncateTableTask)(nil), // 7: greptime.v1.meta.TruncateTableTask
|
||||
(*DdlTaskRequest)(nil), // 8: greptime.v1.meta.DdlTaskRequest
|
||||
(*DdlTaskResponse)(nil), // 9: greptime.v1.meta.DdlTaskResponse
|
||||
(*v1.CreateTableExpr)(nil), // 10: greptime.v1.CreateTableExpr
|
||||
(*Partition)(nil), // 11: greptime.v1.meta.Partition
|
||||
(*v1.DropTableExpr)(nil), // 12: greptime.v1.DropTableExpr
|
||||
(*v1.AlterExpr)(nil), // 13: greptime.v1.AlterExpr
|
||||
(*v1.TruncateTableExpr)(nil), // 14: greptime.v1.TruncateTableExpr
|
||||
(*RequestHeader)(nil), // 15: greptime.v1.meta.RequestHeader
|
||||
(*ResponseHeader)(nil), // 16: greptime.v1.meta.ResponseHeader
|
||||
(*ProcedureId)(nil), // 17: greptime.v1.meta.ProcedureId
|
||||
(*TableId)(nil), // 18: greptime.v1.meta.TableId
|
||||
}
|
||||
var file_greptime_v1_meta_ddl_proto_depIdxs = []int32{
|
||||
10, // 0: greptime.v1.meta.CreateTableTask.create_table:type_name -> greptime.v1.CreateTableExpr
|
||||
@@ -825,24 +819,23 @@ var file_greptime_v1_meta_ddl_proto_depIdxs = []int32{
|
||||
13, // 5: greptime.v1.meta.AlterTableTask.alter_table:type_name -> greptime.v1.AlterExpr
|
||||
5, // 6: greptime.v1.meta.AlterTableTasks.tasks:type_name -> greptime.v1.meta.AlterTableTask
|
||||
14, // 7: greptime.v1.meta.TruncateTableTask.truncate_table:type_name -> greptime.v1.TruncateTableExpr
|
||||
15, // 8: greptime.v1.meta.SubmitDdlTaskRequest.header:type_name -> greptime.v1.meta.RequestHeader
|
||||
1, // 9: greptime.v1.meta.SubmitDdlTaskRequest.create_table_task:type_name -> greptime.v1.meta.CreateTableTask
|
||||
3, // 10: greptime.v1.meta.SubmitDdlTaskRequest.drop_table_task:type_name -> greptime.v1.meta.DropTableTask
|
||||
5, // 11: greptime.v1.meta.SubmitDdlTaskRequest.alter_table_task:type_name -> greptime.v1.meta.AlterTableTask
|
||||
7, // 12: greptime.v1.meta.SubmitDdlTaskRequest.truncate_table_task:type_name -> greptime.v1.meta.TruncateTableTask
|
||||
2, // 13: greptime.v1.meta.SubmitDdlTaskRequest.create_table_tasks:type_name -> greptime.v1.meta.CreateTableTasks
|
||||
4, // 14: greptime.v1.meta.SubmitDdlTaskRequest.drop_table_tasks:type_name -> greptime.v1.meta.DropTableTasks
|
||||
6, // 15: greptime.v1.meta.SubmitDdlTaskRequest.alter_table_tasks:type_name -> greptime.v1.meta.AlterTableTasks
|
||||
16, // 16: greptime.v1.meta.SubmitDdlTaskResponse.header:type_name -> greptime.v1.meta.ResponseHeader
|
||||
17, // 17: greptime.v1.meta.SubmitDdlTaskResponse.table_id:type_name -> greptime.v1.meta.TableId
|
||||
17, // 18: greptime.v1.meta.SubmitDdlTaskResponse.table_ids:type_name -> greptime.v1.meta.TableId
|
||||
8, // 19: greptime.v1.meta.DdlTask.SubmitDdlTask:input_type -> greptime.v1.meta.SubmitDdlTaskRequest
|
||||
9, // 20: greptime.v1.meta.DdlTask.SubmitDdlTask:output_type -> greptime.v1.meta.SubmitDdlTaskResponse
|
||||
20, // [20:21] is the sub-list for method output_type
|
||||
19, // [19:20] is the sub-list for method input_type
|
||||
19, // [19:19] is the sub-list for extension type_name
|
||||
19, // [19:19] is the sub-list for extension extendee
|
||||
0, // [0:19] is the sub-list for field type_name
|
||||
15, // 8: greptime.v1.meta.DdlTaskRequest.header:type_name -> greptime.v1.meta.RequestHeader
|
||||
1, // 9: greptime.v1.meta.DdlTaskRequest.create_table_task:type_name -> greptime.v1.meta.CreateTableTask
|
||||
3, // 10: greptime.v1.meta.DdlTaskRequest.drop_table_task:type_name -> greptime.v1.meta.DropTableTask
|
||||
5, // 11: greptime.v1.meta.DdlTaskRequest.alter_table_task:type_name -> greptime.v1.meta.AlterTableTask
|
||||
7, // 12: greptime.v1.meta.DdlTaskRequest.truncate_table_task:type_name -> greptime.v1.meta.TruncateTableTask
|
||||
2, // 13: greptime.v1.meta.DdlTaskRequest.create_table_tasks:type_name -> greptime.v1.meta.CreateTableTasks
|
||||
4, // 14: greptime.v1.meta.DdlTaskRequest.drop_table_tasks:type_name -> greptime.v1.meta.DropTableTasks
|
||||
6, // 15: greptime.v1.meta.DdlTaskRequest.alter_table_tasks:type_name -> greptime.v1.meta.AlterTableTasks
|
||||
16, // 16: greptime.v1.meta.DdlTaskResponse.header:type_name -> greptime.v1.meta.ResponseHeader
|
||||
17, // 17: greptime.v1.meta.DdlTaskResponse.pid:type_name -> greptime.v1.meta.ProcedureId
|
||||
18, // 18: greptime.v1.meta.DdlTaskResponse.table_id:type_name -> greptime.v1.meta.TableId
|
||||
18, // 19: greptime.v1.meta.DdlTaskResponse.table_ids:type_name -> greptime.v1.meta.TableId
|
||||
20, // [20:20] is the sub-list for method output_type
|
||||
20, // [20:20] 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_meta_ddl_proto_init() }
|
||||
@@ -938,7 +931,7 @@ func file_greptime_v1_meta_ddl_proto_init() {
|
||||
}
|
||||
}
|
||||
file_greptime_v1_meta_ddl_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*SubmitDdlTaskRequest); i {
|
||||
switch v := v.(*DdlTaskRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
@@ -950,7 +943,7 @@ func file_greptime_v1_meta_ddl_proto_init() {
|
||||
}
|
||||
}
|
||||
file_greptime_v1_meta_ddl_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*SubmitDdlTaskResponse); i {
|
||||
switch v := v.(*DdlTaskResponse); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
@@ -963,13 +956,13 @@ func file_greptime_v1_meta_ddl_proto_init() {
|
||||
}
|
||||
}
|
||||
file_greptime_v1_meta_ddl_proto_msgTypes[7].OneofWrappers = []interface{}{
|
||||
(*SubmitDdlTaskRequest_CreateTableTask)(nil),
|
||||
(*SubmitDdlTaskRequest_DropTableTask)(nil),
|
||||
(*SubmitDdlTaskRequest_AlterTableTask)(nil),
|
||||
(*SubmitDdlTaskRequest_TruncateTableTask)(nil),
|
||||
(*SubmitDdlTaskRequest_CreateTableTasks)(nil),
|
||||
(*SubmitDdlTaskRequest_DropTableTasks)(nil),
|
||||
(*SubmitDdlTaskRequest_AlterTableTasks)(nil),
|
||||
(*DdlTaskRequest_CreateTableTask)(nil),
|
||||
(*DdlTaskRequest_DropTableTask)(nil),
|
||||
(*DdlTaskRequest_AlterTableTask)(nil),
|
||||
(*DdlTaskRequest_TruncateTableTask)(nil),
|
||||
(*DdlTaskRequest_CreateTableTasks)(nil),
|
||||
(*DdlTaskRequest_DropTableTasks)(nil),
|
||||
(*DdlTaskRequest_AlterTableTasks)(nil),
|
||||
}
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
@@ -979,7 +972,7 @@ func file_greptime_v1_meta_ddl_proto_init() {
|
||||
NumEnums: 1,
|
||||
NumMessages: 9,
|
||||
NumExtensions: 0,
|
||||
NumServices: 1,
|
||||
NumServices: 0,
|
||||
},
|
||||
GoTypes: file_greptime_v1_meta_ddl_proto_goTypes,
|
||||
DependencyIndexes: file_greptime_v1_meta_ddl_proto_depIdxs,
|
||||
|
||||
Reference in New Issue
Block a user