Skip to content

Commit

Permalink
Update test
Browse files Browse the repository at this point in the history
  • Loading branch information
davenger committed Jul 21, 2023
1 parent fe7cff5 commit 0c2ea94
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
@@ -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
Expand Down
5 changes: 3 additions & 2 deletions tests/queries/0_stateless/02156_storage_merge_prewhere.sql
@@ -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;
Expand All @@ -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);
Expand Down

0 comments on commit 0c2ea94

Please sign in to comment.