ClickHouse/tests/queries/0_stateless/03003_analyzer_setting.sql
2024-03-05 14:37:16 +01:00

10 lines
397 B
SQL

CREATE TABLE test (dummy Int8) ENGINE = Distributed(test_cluster_two_shards, 'system', 'one');
SET allow_experimental_analyzer = 0;
SELECT * FROM (SELECT * FROM test SETTINGS allow_experimental_analyzer = 1); -- { serverError INCORRECT_QUERY }
SET allow_experimental_analyzer = 1;
SELECT * FROM (SELECT * FROM test SETTINGS allow_experimental_analyzer = 0); -- { serverError INCORRECT_QUERY }