ClickHouse/tests/queries/0_stateless/03064_analyzer_named_subqueries.sql

7 lines
156 B
SQL

-- https://github.com/ClickHouse/ClickHouse/issues/25655
SET allow_experimental_analyzer=1;
SELECT
sum(t.b) / 1 a,
sum(t.a)
FROM ( SELECT 1 a, 2 b ) t;