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

(let list (AsList (String 'a) (String 'b) (String 'c)))
(let keyExtractor (lambda '(x) (String '"@")))
(let handler (lambda '(key list) (AsList (Uint32 '42))))
(let data (GroupByKey list keyExtractor handler))
(let res_sink (DataSink 'result))
(let world (Write! world res_sink
    (Key)
    data '()))

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