Revert "Simplify expectations in tests to avoid flakyness"

This reverts commit 9048098107.
This commit is contained in:
Pablo Marcos 2024-04-19 08:10:20 +02:00
parent 4cab58d4af
commit 2bfe78455e
2 changed files with 7 additions and 7 deletions

View File

@ -1,9 +1,9 @@
1 1
100000000 140000000
0 0
0 0
1 1
100000000 140000000
1
1 1
1 1
100000000 100000000
100000000 140000000
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 primary_key_bytes_in_memory > 0, primary_key_bytes_in_memory_allocated > 0 FROM system.parts WHERE database = currentDatabase() AND table = 'test';
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';
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 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 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 s != '' FROM test LIMIT 1;
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 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');
SYSTEM UNLOAD PRIMARY KEY;