blob: 8e36a759e2997273721a7facce084415423a251c (
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
28
29
30
31
32
33
34
35
|
USE plato;
pragma yt.JoinEnableStarJoin="true";
insert into @x
select Just('xxx') as id
order by id;
insert into @y
select Just('yyy') as id
order by id;
insert into @a
select Just('aaa') as id
order by id;
commit;
$xy_left = (
SELECT
x.id AS id
FROM
ANY @x AS x
LEFT JOIN ANY @y AS y
ON x.id == y.id
);
SELECT
*
FROM
ANY @a AS a
LEFT JOIN ANY $xy_left AS b
ON a.id == b.id;
|