mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-17 13:13:36 +00:00
1. fix ut fail.
This commit is contained in:
parent
212b86aa19
commit
de3aad085d
@ -979,24 +979,24 @@ TEST_P(CoordinationTest, SnapshotableHashMapDataSize)
|
||||
|
||||
world.disableSnapshotMode();
|
||||
world.insert("world", n1);
|
||||
EXPECT_EQ(world.getApproximateDataSize(), 94);
|
||||
EXPECT_EQ(world.getApproximateDataSize(), 98);
|
||||
world.updateValue("world", [&](Node & value) { value = n2; });
|
||||
EXPECT_EQ(world.getApproximateDataSize(), 96);
|
||||
EXPECT_EQ(world.getApproximateDataSize(), 98);
|
||||
|
||||
world.erase("world");
|
||||
EXPECT_EQ(world.getApproximateDataSize(), 0);
|
||||
|
||||
world.enableSnapshotMode();
|
||||
world.insert("world", n1);
|
||||
EXPECT_EQ(world.getApproximateDataSize(), 94);
|
||||
EXPECT_EQ(world.getApproximateDataSize(), 98);
|
||||
world.updateValue("world", [&](Node & value) { value = n2; });
|
||||
EXPECT_EQ(world.getApproximateDataSize(), 190);
|
||||
EXPECT_EQ(world.getApproximateDataSize(), 196);
|
||||
|
||||
world.clearOutdatedNodes();
|
||||
EXPECT_EQ(world.getApproximateDataSize(), 96);
|
||||
EXPECT_EQ(world.getApproximateDataSize(), 98);
|
||||
|
||||
world.erase("world");
|
||||
EXPECT_EQ(world.getApproximateDataSize(), 96);
|
||||
EXPECT_EQ(world.getApproximateDataSize(), 98);
|
||||
|
||||
world.clear();
|
||||
EXPECT_EQ(world.getApproximateDataSize(), 0);
|
||||
|
@ -157,7 +157,7 @@ SOURCE(CLICKHOUSE(HOST 'localhost' PORT tcpPort() TABLE 'source_table'))
|
||||
LAYOUT(FLAT())
|
||||
LIFETIME(MIN 0 MAX 1000)
|
||||
COMMENT 'Test dictionary with comment';
|
||||
)sql",
|
||||
sql",
|
||||
R"sql(CREATE DICTIONARY `2024_dictionary_with_comment`
|
||||
(
|
||||
`id` UInt64,
|
||||
|
Loading…
Reference in New Issue
Block a user