aboutsummaryrefslogtreecommitdiffstats
path: root/yql/essentials/tests/s-expressions/suites/Result/LastInTempTable.yql
blob: 29dc7a948107eea7d592cde16da690d38f6e3c89 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
(
#comment
(let mr_source (DataSource 'yt 'plato))
(let x (Read! world mr_source (Key '('table (String 'Input))) '('key 'subkey 'value) '()))
(let world (Left! x))
(let table1 (Right! x))
(let tresh (String '100))
(let table1low (Filter table1 (lambda '(item) (< (Member item 'key) tresh))))
(let res_sink (DataSink 'result))
(let data (Skip table1low (- (Max (Uint64 '1) (Length table1low)) (Uint64 '1))))
(let world (Write! world res_sink (Key) data '()))
(let world (Commit! world res_sink))
(return world)
)