aboutsummaryrefslogtreecommitdiffstats
path: root/yql/essentials/tests/sql/suites/join/yql-8125.sql
blob: b3d81a550983a826b0022ab9d42d036633f6bc6a (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
use plato;

PRAGMA yt.JoinCollectColumnarStatistics="async";

INSERT INTO @yang_ids
SELECT
    *
    from Input
    where subkey <= "3"
    LIMIT 100;
commit;

INSERT INTO @yang_ids
    SELECT
        *
        from Input as j
        LEFT ONLY JOIN @yang_ids
        USING(key);
commit;

INSERT INTO @yang_ids
    SELECT
        *
        from Input as j
        LEFT ONLY JOIN @yang_ids
        USING(key);
commit;

select * from @yang_ids;