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

(let res_sink (DataSink 'result))
(let data (AsList (String 'x) (String 'c) (String 'e) (String 'a) (String 'z) (String 'y) (String 'f)))
(let data (Top data (Uint64 '4) (Bool 'true) (lambda '(x) x)))
(let data (Take data (Uint64 '2)))
(let world (Write! world res_sink (Key) data '()))
(let world (Commit! world res_sink))
(return world)
)