aboutsummaryrefslogtreecommitdiffstats
path: root/yql/essentials/tests/sql/suites/order_by/tuple01.sql
blob: da079265d373e44280cd5596fc637d337843b68b (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
/* postgres can not */

select Yql::Sort(
AsList(3,2,1),
AsTuple(),
($_x)->{return AsTuple()}
);


select Yql::Sort(
AsList(3,2,1),
AsTuple(true),
($x)->{return $x}
);

select Yql::Sort(
AsList(3,2,1),
true,
($x)->{return $x}
);

select Yql::Sort(
AsList(3,2,1),
AsTuple(true),
($x)->{return AsTuple($x)}
);

select Yql::Sort(
AsList(3,2,1),
AsTuple(true,true),
($x)->{return AsTuple($x,$x)}
);