@@ -87,7 +87,7 @@ int ShardGroupAnalyzer::analysis(uint64_t tenant_id)
8787// 1. Partition function does not require equality
8888// 2. The number of partitions is not required to be equal
8989// (this is to ensure that the ShardGroup will not be broken up when adding partitions)
90- int ShardGroupAnalyzer::build_prefix_key (const ObTableSchema & table, TablePrefixKey& prefix_key)
90+ int ShardGroupAnalyzer::build_prefix_key (const ObSimpleTableSchemaV2 & table, TablePrefixKey& prefix_key)
9191{
9292 int ret = OB_SUCCESS;
9393 const ObString& table_name = table.get_table_name_str ();
@@ -100,7 +100,7 @@ int ShardGroupAnalyzer::build_prefix_key(const ObTableSchema& table, TablePrefix
100100int ShardGroupAnalyzer::build_prefix_map (uint64_t tenant_id, ShardGroupPrefixMap& prefix_map)
101101{
102102 int ret = OB_SUCCESS;
103- ObArray<const ObTableSchema *> table_schemas;
103+ ObArray<const ObSimpleTableSchemaV2 *> table_schemas;
104104 // In the case of shardgroup, just process standlone table, not process tablegroup
105105 if (OB_FAIL (StatFinderUtil::get_need_balance_table_schemas_in_tenant (schema_guard_, tenant_id, table_schemas))) {
106106 LOG_WARN (" fail get schemas in tenant" , K (tenant_id), K (ret));
@@ -109,7 +109,7 @@ int ShardGroupAnalyzer::build_prefix_map(uint64_t tenant_id, ShardGroupPrefixMap
109109 for (int64_t i = 0 ; i < table_schemas.count () && OB_SUCC (ret); ++i) {
110110 ObIArray<TablePrefixValue>* prefix_info_array = NULL ;
111111 TablePrefixKey prefix_key;
112- const ObTableSchema & table = *table_schemas.at (i);
112+ const ObSimpleTableSchemaV2 & table = *table_schemas.at (i);
113113 const ObString& table_name = table.get_table_name_str ();
114114 if (OB_FAIL (build_prefix_key (table, prefix_key))) {
115115 LOG_WARN (" fail extract prefix" , K (ret), K (table_name), K (ret));
@@ -415,7 +415,7 @@ int ShardGroupAnalyzer::add_to_shardgroup(ObIArray<TablePrefixValue>& cur_shard,
415415 return ret;
416416}
417417
418- int ShardGroupAnalyzer::next (ObIArray<const ObTableSchema *>& schemas)
418+ int ShardGroupAnalyzer::next (ObIArray<const ObSimpleTableSchemaV2 *>& schemas)
419419{
420420 int ret = OB_SUCCESS;
421421 if (cur_shard_group_idx_ >= shard_groups_.count ()) {
@@ -586,7 +586,7 @@ int TableGroupAnalyzer::next(const share::schema::ObPartitionSchema*& partition_
586586int PartitionTableAnalyzer::analysis (const uint64_t tenant_id)
587587{
588588 int ret = OB_SUCCESS;
589- common::ObArray<const share::schema::ObTableSchema *> my_table_schemas;
589+ common::ObArray<const share::schema::ObSimpleTableSchemaV2 *> my_table_schemas;
590590 if (OB_UNLIKELY (OB_INVALID_ID == tenant_id)) {
591591 ret = OB_INVALID_ARGUMENT;
592592 LOG_WARN (" invalid argument" , K (ret), K (tenant_id));
@@ -596,7 +596,7 @@ int PartitionTableAnalyzer::analysis(const uint64_t tenant_id)
596596 } else {
597597 table_schemas_.reset ();
598598 for (int64_t i = 0 ; OB_SUCC (ret) && i < my_table_schemas.count (); ++i) {
599- const share::schema::ObTableSchema * table_schema = my_table_schemas.at (i);
599+ const share::schema::ObSimpleTableSchemaV2 * table_schema = my_table_schemas.at (i);
600600 int64_t part_num = 0 ;
601601 if (OB_UNLIKELY (nullptr == table_schema)) {
602602 ret = OB_ERR_UNEXPECTED;
@@ -621,7 +621,7 @@ int PartitionTableAnalyzer::analysis(const uint64_t tenant_id)
621621 return ret;
622622}
623623
624- int PartitionTableAnalyzer::next (const share::schema::ObTableSchema *& table_schema)
624+ int PartitionTableAnalyzer::next (const share::schema::ObSimpleTableSchemaV2 *& table_schema)
625625{
626626 int ret = OB_SUCCESS;
627627 table_schema = nullptr ;
@@ -636,7 +636,7 @@ int PartitionTableAnalyzer::next(const share::schema::ObTableSchema*& table_sche
636636int NonPartitionTableAnalyzer::analysis (const uint64_t tenant_id)
637637{
638638 int ret = OB_SUCCESS;
639- common::ObArray<const share::schema::ObTableSchema *> table_schemas;
639+ common::ObArray<const share::schema::ObSimpleTableSchemaV2 *> table_schemas;
640640 common::ObArray<const share::schema::ObTablegroupSchema*> tg_schemas;
641641 common::ObArray<const share::schema::ObPartitionSchema*> target_schemas;
642642 if (OB_UNLIKELY (OB_INVALID_ID == tenant_id)) {
@@ -649,7 +649,7 @@ int NonPartitionTableAnalyzer::analysis(const uint64_t tenant_id)
649649 LOG_WARN (" fail to get tablegroup schemas in tenant" , K (ret), K (tenant_id));
650650 } else {
651651 for (int64_t i = 0 ; OB_SUCC (ret) && i < table_schemas.count (); ++i) {
652- const ObTableSchema * schema = table_schemas.at (i);
652+ const ObSimpleTableSchemaV2 * schema = table_schemas.at (i);
653653 int64_t part_num = 0 ;
654654 if (OB_UNLIKELY (NULL == schema)) {
655655 ret = OB_ERR_UNEXPECTED;
0 commit comments