aboutsummaryrefslogtreecommitdiffstats
path: root/yql/essentials/tests/sql/suites/intersect/intersect_distinct_empty.sql
blob: 16623be2f3fc04e027cc00714470c4b2475a6bcb (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
SELECT
    *
FROM
    as_table([])
INTERSECT DISTINCT
SELECT
    *
FROM
    as_table([])
;

SELECT
    *
FROM
    as_table([])
INTERSECT DISTINCT
SELECT
    1 AS x,
    2 AS y
;

SELECT
    1 AS x,
    2 AS y
INTERSECT DISTINCT
SELECT
    *
FROM
    as_table([])
;