aboutsummaryrefslogtreecommitdiffstats
path: root/yql/essentials/tests/sql/suites/join/premap_no_premap.sql
blob: 533fa758ce56dbda41b7de9b6735257a838315f0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
PRAGMA DisableSimpleColumns;
PRAGMA DisablePullUpFlatMapOverJoin;
use plato;

-- not renaming
from (select key, subkey || key as subkey, value from Input1) as a
join Input2 as b using(key)
select a.key, a.subkey, b.value
order by a.key;

-- not fixed size
from (select key, "aaa" as subkey, value from Input1) as a
join Input2 as b using(key)
select a.key, a.subkey, b.value
order by a.key;

-- to many Justs
from (select key, Just(Just(1)) as subkey, value from Input1) as a
join Input2 as b using(key)
select a.key, a.subkey, b.value
order by a.key;

-- container
from (select key, AsTuple(1) as subkey, value from Input1) as a
join Input2 as b using(key)
select a.key, a.subkey, b.value
order by a.key;