ClickHouse/tests/queries/0_stateless/03031_tuple_elimination_analyzer.sql
2024-03-25 20:34:24 +00:00

10 lines
279 B
SQL

DROP TABLE IF EXISTS test;
SET allow_suspicious_low_cardinality_types = true, allow_experimental_analyzer = true;
CREATE TABLE test (`id` LowCardinality(UInt32)) ENGINE = MergeTree ORDER BY id AS SELECT 0;
SELECT tuple(tuple(id) = tuple(1048576)) FROM test;
DROP TABLE test;