aboutsummaryrefslogtreecommitdiffstats
path: root/yql/essentials/tests/s-expressions/suites/Optimizers/ReverseAfterSort.yql
blob: f4ca885270211431f75da5a32594bcc73c9a1578 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
(
#comment
(let config (DataSource 'config))
(let world (Configure! world config 'PureDataSource 'yt))

(let res_sink (DataSink 'result))
(let data (AsList (String 'c) (String 'e) (String 'a)))
(let data (Sort data (Bool 'true) (lambda '(x) x)))
(let data (Reverse data))
(let world (Write! world res_sink (Key) data '()))
(let data (AsList '((Uint32 '1) (String 'c)) '((Uint32 '1) (String 's)) '((Uint32 '2) (String 'a))))
(let data (Sort data '((Bool 'true) (Bool 'false)) (lambda '(x) x)))
(let data (Reverse data))
(let world (Write! world res_sink (Key) data '()))
(let world (Commit! world res_sink))
(return world)
)