ClickHouse/tests/queries/0_stateless/02962_analyzer_constant_set.sql
2024-01-13 06:14:57 +03:00

16 lines
352 B
SQL

DROP TABLE IF EXISTS test_parallel_index;
CREATE TABLE test_parallel_index
(
z UInt64,
INDEX i z TYPE set(8)
)
ENGINE = MergeTree
ORDER BY ();
insert into test_parallel_index select number from numbers(10);
select sum(z) from test_parallel_index where z = 2 or z = 7 or z = 13 or z = 17 or z = 19 or z = 23;
DROP TABLE test_parallel_index;