aboutsummaryrefslogtreecommitdiffstats
path: root/yql/essentials/tests/sql/suites/join/premap_common_right_tablecontent.sql
blob: 1bd47b60a074593c21f05f51932da4d4a1bb3830 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
PRAGMA DisableSimpleColumns;
PRAGMA DisablePullUpFlatMapOverJoin;
use plato;


$keys = (select key from Input3);

from (select key, value, key IN $keys as flag from Input1) as a
right join (select key, key IN $keys as flag from Input2) as b using(key)
select a.key, a.value, a.flag, b.flag
order by a.key;