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:
Pablo Marcos 2024-04-18 18:02:53 +02:00
parent c28af20e2a
commit 9048098107
3 changed files with 8 additions and 8 deletions

2
contrib/azure vendored

@ -1 +1 @@
Subproject commit b90fd3c6ef3185f5be3408056567bca0854129b6
Subproject commit ad2d3d423565b8a8e7b7ec863eae9318a8283878

View File

@ -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

View File

@ -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;