aboutsummaryrefslogtreecommitdiffstats
path: root/yql/essentials/tests/s-expressions/suites/Optimizers/SkipTakeOverMrTableContent.yql
blob: d51db8e508fafd1d8037f79b0197d1455be79c3b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
(
    #comment
    (let mr_source (DataSource 'yt 'plato))
    (let r (Read! world mr_source (Key '('table (String 'Input))) (Void) '('('inline))))
    (let table1 (Right! r))
    (let table1 (Skip table1 (Uint64 '5)))
    (let table1 (Take table1 (Uint64 '3)))
    (let tresh (String '300))
    (let table1low (FlatMap table1 (lambda '(item) (block '(
           (let intValueOpt (Member item 'key))
           (return (ListIf (< intValueOpt tresh) item))
    )))))
    (let mr_sink (DataSink 'yt 'plato))
    (let world (Write! world mr_sink (Key '('table (String 'Output))) table1low '('('mode 'append))))
    (let world (Commit! world mr_sink))
    (return world)
)