aboutsummaryrefslogtreecommitdiffstats
path: root/yql/essentials/tests/sql/suites/expr/empty_list_ops2.sql
blob: a98298280b782738b4051e780e3ab14178282341 (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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/* syntax version 1 */
/* postgres can not */
select
    ListHasItems([]),
    Yql::Filter([],($x)->{return $x}),
    Yql::Map([],($x)->{return $x*2}),
    Yql::FlatMap([],($x)->{return Just($x*2)}),    
    Yql::OrderedFilter([],($x)->{return $x}),
    Yql::OrderedMap([],($x)->{return $x*2}),
    Yql::OrderedFlatMap([],($x)->{return Just($x*2)}),    
    ListFilter([],($x)->{return $x}),
    ListMap([],($x)->{return $x*2}),
    ListFlatMap([],($x)->{return Just($x*2)}),    
    ListCollect([]),
    ListSort([]),
    ListReverse([]),
    ListEnumerate([]),
    ListSkip([], 1),
    ListTake([], 1),
    ListIndexOf([], 1),
    ListUniq([]),
    ListAny([]),
    ListAll([]),
    ListHas([],1),
    ListHead([]),
    ListLast([]),
    ListMin([]),
    ListMax([]),
    ListSum([]),
    ListAvg([]),

    ListHasItems(Just([])),
    ListFilter(Just([]),($x)->{return $x}),
    ListMap(Just([]),($x)->{return $x*2}),
    ListFlatMap(Just([]),($x)->{return Just($x*2)}),    
    ListCollect(Just([])),
    ListSort(Just([])),    
    ListReverse(Just([])),    
    ListEnumerate(Just([])),
    ListSkip(Just([]), 1),
    ListTake(Just([]), 1),
    ListUniq(Just([])),
    ListAny(Just([])),
    ListAll(Just([])),
    ListHas(Just([]),1),
    ListHead(Just([])),
    ListLast(Just([])),
    ListMin(Just([])),
    ListMax(Just([])),
    ListSum(Just([])),
    ListAvg(Just([])),