mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 15:42:02 +00:00
Improve condition in case the default column consumes slightly more memory
It never happened in the few hundreds of tests I ran successfully, but we'd rather be safe than sorry.
This commit is contained in:
parent
da5b9582a9
commit
858b7e55d0
@ -28,7 +28,8 @@ function test()
|
||||
SYSTEM FLUSH LOGS;
|
||||
WITH memory_1 AS (SELECT memory_usage FROM system.query_log WHERE current_database = currentDatabase() AND query_id='$uuid_1' AND type = 'QueryFinish' as memory_1),
|
||||
memory_2 AS (SELECT memory_usage FROM system.query_log WHERE current_database = currentDatabase() AND query_id='$uuid_2' AND type = 'QueryFinish' as memory_2)
|
||||
SELECT memory_1.memory_usage <= 1.2 * memory_2.memory_usage FROM memory_1, memory_2;"
|
||||
SELECT memory_1.memory_usage <= 1.2 * memory_2.memory_usage OR
|
||||
memory_2.memory_usage <= 1.2 * memory_1.memory_usage FROM memory_1, memory_2;"
|
||||
}
|
||||
|
||||
test ""
|
||||
|
Loading…
Reference in New Issue
Block a user