mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-14 02:12:21 +00:00
Fix test
This commit is contained in:
parent
3c1f20a0ba
commit
e9daa05d8f
@ -1,14 +1,14 @@
|
|||||||
tab1 0 0
|
tab1 0 0
|
||||||
tab2 0 0
|
tab2 0 0
|
||||||
tab1 0 0
|
tab1 1 1
|
||||||
tab2 0 0
|
tab2 1 1
|
||||||
tab1 10000000 10000000 -- Expected non-zero memory after loading primary keys
|
tab1 1 1
|
||||||
tab2 10000000 10000000
|
tab2 1 1
|
||||||
tab1 0 0
|
tab1 1 1
|
||||||
tab2 0 0
|
tab2 0 0
|
||||||
1 a
|
1 a
|
||||||
2 b
|
2 b
|
||||||
3 c
|
3 c
|
||||||
1 x
|
1 x
|
||||||
2 y
|
2 y
|
||||||
3 z
|
3 z
|
||||||
|
@ -16,8 +16,8 @@ INSERT INTO tab2 VALUES (1, 'x'), (2, 'y'), (3, 'z');
|
|||||||
-- Check primary key memory before loading (this checks if it's not loaded yet) for both tables
|
-- Check primary key memory before loading (this checks if it's not loaded yet) for both tables
|
||||||
SELECT
|
SELECT
|
||||||
table,
|
table,
|
||||||
round(primary_key_bytes_in_memory, -7),
|
primary_key_bytes_in_memory == 0,
|
||||||
round(primary_key_bytes_in_memory_allocated, -7)
|
primary_key_bytes_in_memory_allocated == 0
|
||||||
FROM system.parts
|
FROM system.parts
|
||||||
WHERE
|
WHERE
|
||||||
database = currentDatabase()
|
database = currentDatabase()
|
||||||
@ -31,8 +31,8 @@ SYSTEM LOAD PRIMARY KEY;
|
|||||||
-- Ensure .reference file has non-zero values here to reflect expected primary key loading
|
-- Ensure .reference file has non-zero values here to reflect expected primary key loading
|
||||||
SELECT
|
SELECT
|
||||||
table,
|
table,
|
||||||
round(primary_key_bytes_in_memory, -7),
|
primary_key_bytes_in_memory > 0,
|
||||||
round(primary_key_bytes_in_memory_allocated, -7)
|
primary_key_bytes_in_memory_allocated > 0
|
||||||
FROM system.parts
|
FROM system.parts
|
||||||
WHERE
|
WHERE
|
||||||
database = currentDatabase()
|
database = currentDatabase()
|
||||||
@ -45,8 +45,8 @@ SYSTEM UNLOAD PRIMARY KEY;
|
|||||||
-- Verify primary key memory after unloading for both tables
|
-- Verify primary key memory after unloading for both tables
|
||||||
SELECT
|
SELECT
|
||||||
table,
|
table,
|
||||||
round(primary_key_bytes_in_memory, -7),
|
primary_key_bytes_in_memory == 0,
|
||||||
round(primary_key_bytes_in_memory_allocated, -7)
|
primary_key_bytes_in_memory_allocated == 0
|
||||||
FROM system.parts
|
FROM system.parts
|
||||||
WHERE
|
WHERE
|
||||||
database = currentDatabase()
|
database = currentDatabase()
|
||||||
@ -59,8 +59,8 @@ SYSTEM LOAD PRIMARY KEY tab1;
|
|||||||
-- Verify that only one table's primary key is loaded
|
-- Verify that only one table's primary key is loaded
|
||||||
SELECT
|
SELECT
|
||||||
table,
|
table,
|
||||||
round(primary_key_bytes_in_memory, -7),
|
primary_key_bytes_in_memory > 0,
|
||||||
round(primary_key_bytes_in_memory_allocated, -7)
|
primary_key_bytes_in_memory_allocated > 0
|
||||||
FROM system.parts
|
FROM system.parts
|
||||||
WHERE
|
WHERE
|
||||||
database = currentDatabase()
|
database = currentDatabase()
|
||||||
|
Loading…
Reference in New Issue
Block a user