Add test for analyzer and complex alias join and with

This commit is contained in:
Nikita Fomichev 2024-04-03 11:35:08 +02:00
parent 0758faa039
commit 7872d92058
2 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1 @@
key \N

View File

@ -0,0 +1,9 @@
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;