ClickHouse/tests/queries/0_stateless/02996_analyzer_prewhere_projection.sql
2024-02-20 14:24:43 +01:00

8 lines
422 B
SQL

SET allow_suspicious_low_cardinality_types=1;
CREATE TABLE t__fuzz_0 (`i` LowCardinality(Int32), `j` Int32, `k` Int32, PROJECTION p (SELECT * ORDER BY j)) ENGINE = MergeTree ORDER BY i SETTINGS index_granularity = 1;
INSERT INTO t__fuzz_0 Select number, number, number FROM numbers(100);
SELECT * FROM t__fuzz_0 PREWHERE 7 AND (i < 2147483647) AND (j IN (2147483646, -2, 1))
SETTINGS allow_experimental_analyzer = true;