ClickHouse/tests/queries/0_stateless/03003_analyzer_setting.sql
2024-08-05 15:29:14 +00:00

10 lines
349 B
SQL

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