aboutsummaryrefslogtreecommitdiffstats
path: root/yql/essentials/tests/s-expressions/suites/Scheme/SortByKeyDesc.yqls
blob: 6b98c467139ab20df0c216a67c1219318f2dd855 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
(
(let mr_source (DataSource 'yt 'plato))
(let data (block '(
  (let x (Read! world mr_source (Key '('table (String 'Input))) '('key 'subkey 'value) '()))
  (let world (Left! x))
  (let input (Right! x))
  (let output (Sort input (Bool 'false) (lambda '(item) (block '(
     (return (Member item 'key))
  )))))
  (return output)
)))
(let mr_sink (DataSink 'result))
(let world (Write! world mr_sink (Key) data '()))
(let world (Commit! world mr_sink))
(return world)
)