aboutsummaryrefslogtreecommitdiffstats
path: root/yql/essentials/tests/s-expressions/suites/Epochs/AppendBySortedDescAfterCommit.yql
blob: 587bc78b0813fbe3c15ce39becb1bdd55e8793de (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
(
(let source (DataSource '"yt" '"plato"))
(let sink (DataSink '"yt" '"plato"))

(let r (Read! world source (Key '('table (String '"Input"))) (Void) '()))
(let world (Left! r))
(let input (Right! r))

(let world (Write! world sink (Key '('table (String 'Output))) input '('('mode 'renew))))
(let world (Commit! world sink))

(let r (Read! world source (Key '('table (String '"Input"))) (Void) '()))
(let world (Left! r))
(let input (Right! r))
(let sorted (Sort input (Bool 'false) (lambda '(item) (Member item '"key"))))

(let world (Write! world sink (Key '('table (String 'Output))) sorted '('('mode 'append))))
(let world (Commit! world sink))

(return world)
)