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

(let list1 (AsList (String 'a) (String 'b) (String 'c)))
(let list2 (AsList (String 'd) (String 'e) (String 'f)))
(let res_sink (DataSink 'result))
(let world (Write! world res_sink
    (Key)
    (Take (Extend list1 list2) (Uint64 '1)) '()))

(let world (Write! world res_sink
    (Key)
    (Take (Extend list1 list2) (Uint64 '5)) '()))

(let world (Commit! world res_sink))
(return world)
)