ClickHouse/tests/queries/0_stateless/02379_analyzer_subquery_depth.sql
2024-05-30 19:41:08 +00:00

5 lines
221 B
SQL

SET allow_experimental_analyzer = 1;
SELECT (SELECT a FROM (SELECT 1 AS a)) SETTINGS max_subquery_depth = 1; -- { serverError TOO_DEEP_SUBQUERIES }
SELECT (SELECT a FROM (SELECT 1 AS a)) SETTINGS max_subquery_depth = 2;