aboutsummaryrefslogtreecommitdiffstats
path: root/yql/essentials/tests/sql/suites/in/in_ansi_empty.sql
blob: 743967fdcfe3451621009b008ae417698d5d41f5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* syntax version 1 */
/* postgres can not */

PRAGMA AnsiInForEmptyOrNullableItemsCollections;

SELECT
    null      IN EmptyList(),                    -- false?
    null      IN EmptyDict(),                    -- false?
    null      IN (),                             -- false?
    1         IN EmptyList(),                    -- false
    1         IN EmptyDict(),                    -- false
    1         IN (),                             -- false
    null      IN Nothing(EmptyList?),            -- Nothing<Bool?>
    null      IN Nothing(EmptyDict?),            -- Nothing<Bool?>
    null      IN Nothing(ParseType("Tuple<>?")), -- Nothing<Bool?>
;