mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-06 06:22:39 +00:00
21 lines
548 B
SQL
21 lines
548 B
SQL
SET allow_experimental_analyzer = 1;
|
|
SET joined_subquery_requires_alias = 1;
|
|
|
|
SELECT * FROM (SELECT 1 as A, 2 as B) X
|
|
ALL LEFT JOIN (SELECT 3 as A, 2 as B) Y
|
|
USING (B);
|
|
|
|
SELECT * FROM (SELECT 1 as A, 2 as B) X
|
|
ALL LEFT JOIN (SELECT 3 as A, 2 as B)
|
|
USING (B); -- { serverError ALIAS_REQUIRED }
|
|
|
|
SELECT * FROM (SELECT 1 as A, 2 as B)
|
|
ALL LEFT JOIN (SELECT 3 as A, 2 as B) Y
|
|
USING (B); -- { serverError ALIAS_REQUIRED }
|
|
|
|
set joined_subquery_requires_alias = 0;
|
|
|
|
SELECT * FROM (SELECT 1 as A, 2 as B)
|
|
ALL LEFT JOIN (SELECT 3 as A, 2 as B) Y
|
|
USING (B);
|