diff --git a/be/test/olap/delta_writer_test.cpp b/be/test/olap/delta_writer_test.cpp index 7db9e129e58d7dc..678794365c03c46 100644 --- a/be/test/olap/delta_writer_test.cpp +++ b/be/test/olap/delta_writer_test.cpp @@ -104,6 +104,7 @@ static void create_tablet_request(int64_t tablet_id, int32_t schema_hash, TCreateTabletReq* request) { request->tablet_id = tablet_id; request->__set_version(1); + request->partition_id = 10001; request->tablet_schema.schema_hash = schema_hash; request->tablet_schema.short_key_column_count = 6; request->tablet_schema.keys_type = TKeysType::AGG_KEYS; @@ -267,6 +268,7 @@ static void create_tablet_request_with_sequence_col(int64_t tablet_id, int32_t s bool enable_mow = false) { request->tablet_id = tablet_id; request->__set_version(1); + request->partition_id = 30004; request->tablet_schema.schema_hash = schema_hash; request->tablet_schema.short_key_column_count = 2; request->tablet_schema.keys_type = TKeysType::UNIQUE_KEYS; diff --git a/be/test/olap/engine_storage_migration_task_test.cpp b/be/test/olap/engine_storage_migration_task_test.cpp index 5107aafb5528ed9..3b1f99efb3f9e81 100644 --- a/be/test/olap/engine_storage_migration_task_test.cpp +++ b/be/test/olap/engine_storage_migration_task_test.cpp @@ -102,6 +102,7 @@ static void create_tablet_request_with_sequence_col(int64_t tablet_id, int32_t s TCreateTabletReq* request) { request->tablet_id = tablet_id; request->__set_version(1); + request->partition_id = 10001; request->tablet_schema.schema_hash = schema_hash; request->tablet_schema.short_key_column_count = 2; request->tablet_schema.keys_type = TKeysType::UNIQUE_KEYS; diff --git a/be/test/olap/memtable_memory_limiter_test.cpp b/be/test/olap/memtable_memory_limiter_test.cpp index 9771fb324c67722..91e9e9dfc7c9c9c 100644 --- a/be/test/olap/memtable_memory_limiter_test.cpp +++ b/be/test/olap/memtable_memory_limiter_test.cpp @@ -33,6 +33,7 @@ static void create_tablet_request(int64_t tablet_id, int32_t schema_hash, TCreateTabletReq* request) { request->tablet_id = tablet_id; request->__set_version(1); + request->partition_id = 30002; request->tablet_schema.schema_hash = schema_hash; request->tablet_schema.short_key_column_count = 3; request->tablet_schema.keys_type = TKeysType::AGG_KEYS; diff --git a/be/test/olap/ordered_data_compaction_test.cpp b/be/test/olap/ordered_data_compaction_test.cpp index 173396c94ffbb92..f93b9d9935ff3f3 100644 --- a/be/test/olap/ordered_data_compaction_test.cpp +++ b/be/test/olap/ordered_data_compaction_test.cpp @@ -271,6 +271,7 @@ class OrderedDataCompactionTest : public ::testing::Test { std::string json_rowset_meta = R"({ "rowset_id": 540085, "tablet_id": 15674, + "partition_id": 10000, "txn_id": 4045, "tablet_schema_hash": 567997588, "rowset_type": "BETA_ROWSET", diff --git a/be/test/olap/path_gc_test.cpp b/be/test/olap/path_gc_test.cpp index 67ed23b8fde7235..54edad8b9de4f44 100644 --- a/be/test/olap/path_gc_test.cpp +++ b/be/test/olap/path_gc_test.cpp @@ -54,6 +54,7 @@ TEST(PathGcTest, GcTabletAndRowset) { auto create_tablet = [&](int64_t tablet_id) { auto tablet_meta = std::make_shared(); tablet_meta->_tablet_id = tablet_id; + tablet_meta->set_partition_id(10000); tablet_meta->set_tablet_uid({tablet_id, 0}); tablet_meta->set_shard_id(tablet_id % 4); tablet_meta->_schema_hash = tablet_id; diff --git a/be/test/olap/remote_rowset_gc_test.cpp b/be/test/olap/remote_rowset_gc_test.cpp index 28d69fe8a74e9d2..3727f3b8764197d 100644 --- a/be/test/olap/remote_rowset_gc_test.cpp +++ b/be/test/olap/remote_rowset_gc_test.cpp @@ -112,6 +112,7 @@ static void create_tablet_request_with_sequence_col(int64_t tablet_id, int32_t s TCreateTabletReq* request) { request->tablet_id = tablet_id; request->__set_version(1); + request->partition_id = 30003; request->tablet_schema.schema_hash = schema_hash; request->tablet_schema.short_key_column_count = 2; request->tablet_schema.keys_type = TKeysType::UNIQUE_KEYS; diff --git a/be/test/olap/rowid_conversion_test.cpp b/be/test/olap/rowid_conversion_test.cpp index e161c89a58114d4..6105737a4180dc0 100644 --- a/be/test/olap/rowid_conversion_test.cpp +++ b/be/test/olap/rowid_conversion_test.cpp @@ -223,6 +223,7 @@ class TestRowIdConversion : public testing::TestWithParam data_dir = std::make_shared(lTestDir); TabletMetaSharedPtr tablet_meta = std::make_shared(); tablet_meta->_tablet_id = 1; + tablet_meta->set_partition_id(10000); tablet_meta->_schema = tablet_schema; auto tablet = std::make_shared(tablet_meta, data_dir.get(), "test_str"); char* tmp_str = (char*)malloc(20); diff --git a/be/test/olap/tablet_cooldown_test.cpp b/be/test/olap/tablet_cooldown_test.cpp index 124380220f85b33..50379b77aab882e 100644 --- a/be/test/olap/tablet_cooldown_test.cpp +++ b/be/test/olap/tablet_cooldown_test.cpp @@ -267,6 +267,7 @@ class TabletCooldownTest : public testing::Test { static void create_tablet_request_with_sequence_col(int64_t tablet_id, int32_t schema_hash, TCreateTabletReq* request) { request->tablet_id = tablet_id; + request->partition_id = 30003; request->__set_version(1); request->tablet_schema.schema_hash = schema_hash; request->tablet_schema.short_key_column_count = 2; diff --git a/be/test/runtime/load_stream_test.cpp b/be/test/runtime/load_stream_test.cpp index 247f9c6b6b5c9cb..f57623081d345ac 100644 --- a/be/test/runtime/load_stream_test.cpp +++ b/be/test/runtime/load_stream_test.cpp @@ -142,6 +142,7 @@ void construct_schema(OlapTableSchemaParam* schema) { static void create_tablet_request(int64_t tablet_id, int32_t schema_hash, TCreateTabletReq* request) { request->tablet_id = tablet_id; + request->partition_id = 30001; request->__set_version(1); request->tablet_schema.schema_hash = schema_hash; request->tablet_schema.short_key_column_count = 6; diff --git a/be/test/vec/olap/vertical_compaction_test.cpp b/be/test/vec/olap/vertical_compaction_test.cpp index 3fa639937d081a3..13db760f48d106d 100644 --- a/be/test/vec/olap/vertical_compaction_test.cpp +++ b/be/test/vec/olap/vertical_compaction_test.cpp @@ -273,6 +273,7 @@ class VerticalCompactionTest : public ::testing::Test { std::string json_rowset_meta = R"({ "rowset_id": 540081, "tablet_id": 15673, + "partition_id": 10000, "tablet_schema_hash": 567997577, "rowset_type": "BETA_ROWSET", "rowset_state": "VISIBLE",