Update test

This commit is contained in:
Alexander Gololobov 2023-07-21 09:57:32 +02:00
parent fe7cff5c1c
commit 0c2ea94efe
2 changed files with 4 additions and 3 deletions

View File

@ -1,6 +1,6 @@
SELECT count()
FROM t_02156_merge1
PREWHERE (k = 3) AND notEmpty(v)
PREWHERE notEmpty(v) AND (k = 3)
2
SELECT count()
FROM t_02156_merge2

View File

@ -1,4 +1,5 @@
SET optimize_move_to_prewhere = 1;
SET enable_multiple_prewhere_read_steps = 1;
DROP TABLE IF EXISTS t_02156_mt1;
DROP TABLE IF EXISTS t_02156_mt2;
@ -8,8 +9,8 @@ DROP TABLE IF EXISTS t_02156_merge1;
DROP TABLE IF EXISTS t_02156_merge2;
DROP TABLE IF EXISTS t_02156_merge3;
CREATE TABLE t_02156_mt1 (k UInt32, v String) ENGINE = MergeTree ORDER BY k;
CREATE TABLE t_02156_mt2 (k UInt32, v String) ENGINE = MergeTree ORDER BY k;
CREATE TABLE t_02156_mt1 (k UInt32, v String) ENGINE = MergeTree ORDER BY k SETTINGS min_bytes_for_wide_part=0;
CREATE TABLE t_02156_mt2 (k UInt32, v String) ENGINE = MergeTree ORDER BY k SETTINGS min_bytes_for_wide_part=0;
CREATE TABLE t_02156_log (k UInt32, v String) ENGINE = Log;
CREATE TABLE t_02156_dist (k UInt32, v String) ENGINE = Distributed(test_shard_localhost, currentDatabase(), t_02156_mt1);