[Enhancement] Reorder tablet_balanced column of partitions_meta system table for better compatibility (#61665)
Signed-off-by: wyb <wybb86@gmail.com>
This commit is contained in:
parent
97db7e7e94
commit
0bca11047d
|
|
@ -55,8 +55,8 @@ SchemaScanner::ColumnDesc SchemaPartitionsMetaScanner::_s_columns[] = {
|
|||
{"MAX_CS", TypeDescriptor::from_logical_type(TYPE_DOUBLE), sizeof(double), false},
|
||||
{"STORAGE_PATH", TypeDescriptor::create_varchar_type(sizeof(Slice)), sizeof(Slice), false},
|
||||
{"STORAGE_SIZE", TypeDescriptor::from_logical_type(TYPE_BIGINT), sizeof(int64_t), false},
|
||||
{"METADATA_SWITCH_VERSION", TypeDescriptor::from_logical_type(TYPE_BIGINT), sizeof(int64_t), false},
|
||||
{"TABLET_BALANCED", TypeDescriptor::from_logical_type(TYPE_BOOLEAN), sizeof(bool), false},
|
||||
{"METADATA_SWITCH_VERSION", TypeDescriptor::from_logical_type(TYPE_BIGINT), sizeof(int64_t), false},
|
||||
};
|
||||
|
||||
SchemaPartitionsMetaScanner::SchemaPartitionsMetaScanner()
|
||||
|
|
@ -304,13 +304,13 @@ Status SchemaPartitionsMetaScanner::fill_chunk(ChunkPtr* chunk) {
|
|||
break;
|
||||
}
|
||||
case 30: {
|
||||
// METADATA_SWITCH_VERSION
|
||||
fill_column_with_slot<TYPE_BIGINT>(column.get(), (void*)&info.metadata_switch_version);
|
||||
// TABLET_BALANCED
|
||||
fill_column_with_slot<TYPE_BOOLEAN>(column.get(), (void*)&info.tablet_balanced);
|
||||
break;
|
||||
}
|
||||
case 31: {
|
||||
// TABLET_BALANCED
|
||||
fill_column_with_slot<TYPE_BOOLEAN>(column.get(), (void*)&info.tablet_balanced);
|
||||
// METADATA_SWITCH_VERSION
|
||||
fill_column_with_slot<TYPE_BIGINT>(column.get(), (void*)&info.metadata_switch_version);
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -61,8 +61,8 @@ public class PartitionsMetaSystemTable {
|
|||
.column("MAX_CS", ScalarType.createType(PrimitiveType.DOUBLE))
|
||||
.column("STORAGE_PATH", ScalarType.createVarchar(NAME_CHAR_LEN))
|
||||
.column("STORAGE_SIZE", ScalarType.createType(PrimitiveType.BIGINT))
|
||||
.column("METADATA_SWITCH_VERSION", ScalarType.createType(PrimitiveType.BIGINT))
|
||||
.column("TABLET_BALANCED", ScalarType.createType(PrimitiveType.BOOLEAN))
|
||||
.column("METADATA_SWITCH_VERSION", ScalarType.createType(PrimitiveType.BIGINT))
|
||||
.build(), TSchemaTableType.SCH_PARTITIONS_META);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1518,8 +1518,8 @@ struct TPartitionMetaInfo {
|
|||
27: optional i64 version_epoch
|
||||
28: optional Types.TTxnType version_txn_type = Types.TTxnType.TXN_NORMAL
|
||||
29: optional i64 storage_size
|
||||
30: optional i64 metadata_switch_version
|
||||
31: optional bool tablet_balanced
|
||||
30: optional bool tablet_balanced
|
||||
31: optional i64 metadata_switch_version
|
||||
}
|
||||
|
||||
struct TGetPartitionsMetaResponse {
|
||||
|
|
|
|||
Loading…
Reference in New Issue