refactor: rename PartitionExprVersion (#309)
Signed-off-by: WenyXu <wenymedia@gmail.com>
This commit is contained in:
@@ -594,7 +594,7 @@ type InsertRequest struct {
|
||||
|
||||
RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"`
|
||||
Rows *v1.Rows `protobuf:"bytes,2,opt,name=rows,proto3" json:"rows,omitempty"`
|
||||
PartitionRuleVersion *v1.PartitionRuleVersion `protobuf:"bytes,3,opt,name=partition_rule_version,json=partitionRuleVersion,proto3" json:"partition_rule_version,omitempty"`
|
||||
PartitionExprVersion *v1.PartitionExprVersion `protobuf:"bytes,3,opt,name=partition_expr_version,json=partitionExprVersion,proto3" json:"partition_expr_version,omitempty"`
|
||||
}
|
||||
|
||||
func (x *InsertRequest) Reset() {
|
||||
@@ -643,9 +643,9 @@ func (x *InsertRequest) GetRows() *v1.Rows {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *InsertRequest) GetPartitionRuleVersion() *v1.PartitionRuleVersion {
|
||||
func (x *InsertRequest) GetPartitionExprVersion() *v1.PartitionExprVersion {
|
||||
if x != nil {
|
||||
return x.PartitionRuleVersion
|
||||
return x.PartitionExprVersion
|
||||
}
|
||||
return nil
|
||||
}
|
||||
@@ -657,7 +657,7 @@ type DeleteRequest struct {
|
||||
|
||||
RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"`
|
||||
Rows *v1.Rows `protobuf:"bytes,2,opt,name=rows,proto3" json:"rows,omitempty"`
|
||||
PartitionRuleVersion *v1.PartitionRuleVersion `protobuf:"bytes,3,opt,name=partition_rule_version,json=partitionRuleVersion,proto3" json:"partition_rule_version,omitempty"`
|
||||
PartitionExprVersion *v1.PartitionExprVersion `protobuf:"bytes,3,opt,name=partition_expr_version,json=partitionExprVersion,proto3" json:"partition_expr_version,omitempty"`
|
||||
}
|
||||
|
||||
func (x *DeleteRequest) Reset() {
|
||||
@@ -706,9 +706,9 @@ func (x *DeleteRequest) GetRows() *v1.Rows {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *DeleteRequest) GetPartitionRuleVersion() *v1.PartitionRuleVersion {
|
||||
func (x *DeleteRequest) GetPartitionExprVersion() *v1.PartitionExprVersion {
|
||||
if x != nil {
|
||||
return x.PartitionRuleVersion
|
||||
return x.PartitionExprVersion
|
||||
}
|
||||
return nil
|
||||
}
|
||||
@@ -2133,7 +2133,7 @@ type BulkInsertRequest struct {
|
||||
//
|
||||
// *BulkInsertRequest_ArrowIpc
|
||||
Body isBulkInsertRequest_Body `protobuf_oneof:"body"`
|
||||
PartitionRuleVersion *v1.PartitionRuleVersion `protobuf:"bytes,3,opt,name=partition_rule_version,json=partitionRuleVersion,proto3" json:"partition_rule_version,omitempty"`
|
||||
PartitionExprVersion *v1.PartitionExprVersion `protobuf:"bytes,3,opt,name=partition_expr_version,json=partitionExprVersion,proto3" json:"partition_expr_version,omitempty"`
|
||||
}
|
||||
|
||||
func (x *BulkInsertRequest) Reset() {
|
||||
@@ -2189,9 +2189,9 @@ func (x *BulkInsertRequest) GetArrowIpc() *v1.ArrowIpc {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *BulkInsertRequest) GetPartitionRuleVersion() *v1.PartitionRuleVersion {
|
||||
func (x *BulkInsertRequest) GetPartitionExprVersion() *v1.PartitionExprVersion {
|
||||
if x != nil {
|
||||
return x.PartitionRuleVersion
|
||||
return x.PartitionExprVersion
|
||||
}
|
||||
return nil
|
||||
}
|
||||
@@ -2763,22 +2763,22 @@ var file_greptime_v1_region_server_proto_rawDesc = []byte{
|
||||
0x6e, 0x49, 0x64, 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, 0x12, 0x57, 0x0a, 0x16, 0x70, 0x61,
|
||||
0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x76, 0x65, 0x72,
|
||||
0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x65, 0x78, 0x70, 0x72, 0x5f, 0x76, 0x65, 0x72,
|
||||
0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67, 0x72, 0x65,
|
||||
0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69,
|
||||
0x6f, 0x6e, 0x52, 0x75, 0x6c, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x14, 0x70,
|
||||
0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x75, 0x6c, 0x65, 0x56, 0x65, 0x72, 0x73,
|
||||
0x6f, 0x6e, 0x45, 0x78, 0x70, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x14, 0x70,
|
||||
0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x78, 0x70, 0x72, 0x56, 0x65, 0x72, 0x73,
|
||||
0x69, 0x6f, 0x6e, 0x22, 0xac, 0x01, 0x0a, 0x0d, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65,
|
||||
0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f,
|
||||
0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e,
|
||||
0x49, 0x64, 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, 0x12, 0x57, 0x0a, 0x16, 0x70, 0x61, 0x72,
|
||||
0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x76, 0x65, 0x72, 0x73,
|
||||
0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x65, 0x78, 0x70, 0x72, 0x5f, 0x76, 0x65, 0x72, 0x73,
|
||||
0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67, 0x72, 0x65, 0x70,
|
||||
0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f,
|
||||
0x6e, 0x52, 0x75, 0x6c, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x14, 0x70, 0x61,
|
||||
0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x75, 0x6c, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69,
|
||||
0x6e, 0x45, 0x78, 0x70, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x14, 0x70, 0x61,
|
||||
0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x78, 0x70, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69,
|
||||
0x6f, 0x6e, 0x22, 0x80, 0x01, 0x0a, 0x0c, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75,
|
||||
0x65, 0x73, 0x74, 0x12, 0x3f, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20,
|
||||
0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76,
|
||||
@@ -2979,11 +2979,11 @@ var file_greptime_v1_region_server_proto_rawDesc = []byte{
|
||||
0x70, 0x63, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74,
|
||||
0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x72, 0x72, 0x6f, 0x77, 0x49, 0x70, 0x63, 0x48,
|
||||
0x00, 0x52, 0x08, 0x61, 0x72, 0x72, 0x6f, 0x77, 0x49, 0x70, 0x63, 0x12, 0x57, 0x0a, 0x16, 0x70,
|
||||
0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x76, 0x65,
|
||||
0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x65, 0x78, 0x70, 0x72, 0x5f, 0x76, 0x65,
|
||||
0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67, 0x72,
|
||||
0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x72, 0x74, 0x69, 0x74,
|
||||
0x69, 0x6f, 0x6e, 0x52, 0x75, 0x6c, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x14,
|
||||
0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x75, 0x6c, 0x65, 0x56, 0x65, 0x72,
|
||||
0x69, 0x6f, 0x6e, 0x45, 0x78, 0x70, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x14,
|
||||
0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x78, 0x70, 0x72, 0x56, 0x65, 0x72,
|
||||
0x73, 0x69, 0x6f, 0x6e, 0x42, 0x06, 0x0a, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x22, 0x46, 0x0a, 0x10,
|
||||
0x4d, 0x69, 0x74, 0x6f, 0x4d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x49, 0x6e, 0x66, 0x6f,
|
||||
0x12, 0x32, 0x0a, 0x15, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x6d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73,
|
||||
@@ -3104,7 +3104,7 @@ var file_greptime_v1_region_server_proto_goTypes = []interface{}{
|
||||
(*v1.QueryContext)(nil), // 40: greptime.v1.QueryContext
|
||||
(*v1.ResponseHeader)(nil), // 41: greptime.v1.ResponseHeader
|
||||
(*v1.Rows)(nil), // 42: greptime.v1.Rows
|
||||
(*v1.PartitionRuleVersion)(nil), // 43: greptime.v1.PartitionRuleVersion
|
||||
(*v1.PartitionExprVersion)(nil), // 43: greptime.v1.PartitionExprVersion
|
||||
(*meta.Partition)(nil), // 44: greptime.v1.meta.Partition
|
||||
(*v1.ModifyColumnTypes)(nil), // 45: greptime.v1.ModifyColumnTypes
|
||||
(*v1.SetTableOptions)(nil), // 46: greptime.v1.SetTableOptions
|
||||
@@ -3147,9 +3147,9 @@ var file_greptime_v1_region_server_proto_depIdxs = []int32{
|
||||
5, // 23: greptime.v1.region.InsertRequests.requests:type_name -> greptime.v1.region.InsertRequest
|
||||
6, // 24: greptime.v1.region.DeleteRequests.requests:type_name -> greptime.v1.region.DeleteRequest
|
||||
42, // 25: greptime.v1.region.InsertRequest.rows:type_name -> greptime.v1.Rows
|
||||
43, // 26: greptime.v1.region.InsertRequest.partition_rule_version:type_name -> greptime.v1.PartitionRuleVersion
|
||||
43, // 26: greptime.v1.region.InsertRequest.partition_expr_version:type_name -> greptime.v1.PartitionExprVersion
|
||||
42, // 27: greptime.v1.region.DeleteRequest.rows:type_name -> greptime.v1.Rows
|
||||
43, // 28: greptime.v1.region.DeleteRequest.partition_rule_version:type_name -> greptime.v1.PartitionRuleVersion
|
||||
43, // 28: greptime.v1.region.DeleteRequest.partition_expr_version:type_name -> greptime.v1.PartitionExprVersion
|
||||
0, // 29: greptime.v1.region.QueryRequest.header:type_name -> greptime.v1.region.RegionRequestHeader
|
||||
9, // 30: greptime.v1.region.CreateRequests.requests:type_name -> greptime.v1.region.CreateRequest
|
||||
27, // 31: greptime.v1.region.CreateRequest.column_defs:type_name -> greptime.v1.region.RegionColumnDef
|
||||
@@ -3181,7 +3181,7 @@ var file_greptime_v1_region_server_proto_depIdxs = []int32{
|
||||
55, // 57: greptime.v1.region.TruncateRequest.time_ranges:type_name -> greptime.v1.TimeRanges
|
||||
56, // 58: greptime.v1.region.RegionColumnDef.column_def:type_name -> greptime.v1.ColumnDef
|
||||
57, // 59: greptime.v1.region.BulkInsertRequest.arrow_ipc:type_name -> greptime.v1.ArrowIpc
|
||||
43, // 60: greptime.v1.region.BulkInsertRequest.partition_rule_version:type_name -> greptime.v1.PartitionRuleVersion
|
||||
43, // 60: greptime.v1.region.BulkInsertRequest.partition_expr_version:type_name -> greptime.v1.PartitionExprVersion
|
||||
29, // 61: greptime.v1.region.SyncRequest.mito_manifest_info:type_name -> greptime.v1.region.MitoManifestInfo
|
||||
30, // 62: greptime.v1.region.SyncRequest.metric_manifest_info:type_name -> greptime.v1.region.MetricManifestInfo
|
||||
1, // 63: greptime.v1.region.Region.Handle:input_type -> greptime.v1.region.RegionRequest
|
||||
|
||||
Reference in New Issue
Block a user