ClickHouse/tests/queries/0_stateless/02377_analyzer_in_function_set.sql
2022-10-24 10:22:19 +02:00

24 lines
480 B
SQL

SET use_analyzer = 1;
DROP TABLE IF EXISTS test_table;
CREATE TABLE test_table
(
id UInt64,
value String
) ENGINE=TinyLog;
INSERT INTO test_table VALUES (0, 'Value_0'), (1, 'Value_1'), (2, 'Value_2');
DROP TABLE IF EXISTS special_set_table;
CREATE TABLE special_set_table
(
id UInt64
) ENGINE=Set;
INSERT INTO special_set_table VALUES (0), (1);
SELECT id, value FROM test_table WHERE id IN special_set_table;
DROP TABLE special_set_table;
DROP TABLE test_table;