ClickHouse/tests/queries/0_stateless/02379_analyzer_subquery_depth.sql

5 lines
190 B
SQL

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