mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-20 05:05:38 +00:00
11 lines
313 B
SQL
11 lines
313 B
SQL
SET allow_experimental_analyzer=1;
|
|
with d as (select 'key'::Varchar(255) c, 'x'::Varchar(255) s)
|
|
SELECT r1, c as r2
|
|
FROM (
|
|
SELECT t as s, c as r1
|
|
FROM ( SELECT 'y'::Varchar(255) as t, 'x'::Varchar(255) as s) t1
|
|
LEFT JOIN d USING (s)
|
|
) t2
|
|
LEFT JOIN d using (s)
|
|
SETTINGS join_use_nulls=1;
|