aboutsummaryrefslogtreecommitdiffstats
path: root/yql/essentials/tests/s-expressions/suites/InMem/StreamTake.yql
blob: 0870b1aac3ceae7dbc916eb30e8b433fb579c021 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
(
#comment
(let config (DataSource 'config))
(let world (Configure! world config 'PureDataSource 'yt))

(let res_sink (DataSink 'result))
(let list1 (AsList (Uint32 '1) (Uint32 '2) (Uint32 '3)))
(let list2 (AsList (Uint32 '4) (Uint32 '5) (Uint32 '6)))
(let world (Write! world res_sink (Key) (Collect (Take (Iterator list1) (Uint64 '2))) '('('type))))
(let world (Write! world res_sink (Key) (Collect (Take (Iterator list2) (Uint64 '0))) '('('type))))
(let world (Commit! world res_sink))
(return world)
)