Skip to content

Commit

Permalink
fix ut
Browse files Browse the repository at this point in the history
  • Loading branch information
dataroaring committed Dec 6, 2023
1 parent ebb20e5 commit ceea522
Show file tree
Hide file tree
Showing 11 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions be/test/olap/delta_writer_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions be/test/olap/engine_storage_migration_task_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions be/test/olap/memtable_memory_limiter_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions be/test/olap/ordered_data_compaction_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions be/test/olap/path_gc_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ TEST(PathGcTest, GcTabletAndRowset) {
auto create_tablet = [&](int64_t tablet_id) {
auto tablet_meta = std::make_shared<TabletMeta>();
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;
Expand Down
1 change: 1 addition & 0 deletions be/test/olap/remote_rowset_gc_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions be/test/olap/rowid_conversion_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ class TestRowIdConversion : public testing::TestWithParam<std::tuple<KeysType, b
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",
Expand Down
1 change: 1 addition & 0 deletions be/test/olap/segcompaction_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ class SegCompactionTest : public testing::Test {
std::shared_ptr<DataDir> data_dir = std::make_shared<DataDir>(lTestDir);
TabletMetaSharedPtr tablet_meta = std::make_shared<TabletMeta>();
tablet_meta->_tablet_id = 1;
tablet_meta->set_partition_id(10000);
tablet_meta->_schema = tablet_schema;
auto tablet = std::make_shared<Tablet>(tablet_meta, data_dir.get(), "test_str");
char* tmp_str = (char*)malloc(20);
Expand Down
1 change: 1 addition & 0 deletions be/test/olap/tablet_cooldown_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions be/test/runtime/load_stream_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions be/test/vec/olap/vertical_compaction_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit ceea522

Please sign in to comment.