mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-11 08:52:06 +00:00
Simplify expectations in tests to avoid flakyness
The CI is injecting random values to detect flaky tests. Whenever the index_granularity was changed, the result did not have the right expectations.
This commit is contained in:
parent
c28af20e2a
commit
9048098107
2
contrib/azure
vendored
2
contrib/azure
vendored
@ -1 +1 @@
|
||||
Subproject commit b90fd3c6ef3185f5be3408056567bca0854129b6
|
||||
Subproject commit ad2d3d423565b8a8e7b7ec863eae9318a8283878
|
@ -1,9 +1,9 @@
|
||||
100000000 140000000
|
||||
1 1
|
||||
0 0
|
||||
0 0
|
||||
100000000 140000000
|
||||
1 1
|
||||
1
|
||||
100000000 100000000
|
||||
100000000 140000000
|
||||
1 1
|
||||
1 1
|
||||
0 0
|
||||
0 0
|
||||
|
@ -3,7 +3,7 @@ CREATE TABLE test (s String) ENGINE = MergeTree ORDER BY s SETTINGS index_granul
|
||||
|
||||
INSERT INTO test SELECT randomString(1000) FROM numbers(100000);
|
||||
|
||||
SELECT round(primary_key_bytes_in_memory, -7), round(primary_key_bytes_in_memory_allocated, -7) FROM system.parts WHERE database = currentDatabase() AND table = 'test';
|
||||
SELECT primary_key_bytes_in_memory > 0, primary_key_bytes_in_memory_allocated > 0 FROM system.parts WHERE database = currentDatabase() AND table = 'test';
|
||||
|
||||
SYSTEM UNLOAD PRIMARY KEY {CLICKHOUSE_DATABASE:Identifier}.test;
|
||||
|
||||
@ -14,11 +14,11 @@ CREATE TABLE test2 (s String) ENGINE = MergeTree ORDER BY s SETTINGS index_granu
|
||||
|
||||
INSERT INTO test2 SELECT randomString(1000) FROM numbers(100000);
|
||||
|
||||
SELECT round(primary_key_bytes_in_memory, -7), round(primary_key_bytes_in_memory_allocated, -7) FROM system.parts WHERE database = currentDatabase() AND table IN ('test', 'test2');
|
||||
SELECT primary_key_bytes_in_memory > 0, primary_key_bytes_in_memory_allocated > 0 FROM system.parts WHERE database = currentDatabase() AND table IN ('test', 'test2');
|
||||
|
||||
SELECT s != '' FROM test LIMIT 1;
|
||||
|
||||
SELECT round(primary_key_bytes_in_memory, -7), round(primary_key_bytes_in_memory_allocated, -7) FROM system.parts WHERE database = currentDatabase() AND table IN ('test', 'test2');
|
||||
SELECT primary_key_bytes_in_memory > 0, primary_key_bytes_in_memory_allocated > 0 FROM system.parts WHERE database = currentDatabase() AND table IN ('test', 'test2');
|
||||
|
||||
SYSTEM UNLOAD PRIMARY KEY;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user