aboutsummaryrefslogtreecommitdiffstats
path: root/yql/essentials/tests/s-expressions/suites/InMem/SortOptTuple.yql
blob: ddfb0a7e16f2f86814356696cf9ad90c4a02bb77 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
(
#comment
(let config (DataSource 'config))
(let world (Configure! world config 'PureDataSource 'yt))

(let res_sink (DataSink 'result))
(let list (AsList
'((Just (Uint32 '2)) (Just (String 'D)))
'((Nothing (OptionalType (DataType 'Uint32))) (Just (String 'E)))
'((Just (Uint32 '3)) (Just (String 'A)))
'((Just (Uint32 '3)) (Nothing (OptionalType (DataType 'String))))
'((Just (Uint32 '2)) (Just (String 'B)))
))

(let keyExtractor (lambda '(x) x))
(let data (Sort list '((Bool 'false) (Bool 'false)) keyExtractor))

(let world (Write! world res_sink (Key) data '()))
(let world (Commit! world res_sink))
(return world)
)