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

(let res_sink (DataSink 'result))
(let list (AsList
  (AsStruct '('key (Just (Uint32 '1))) '('value (String 'a)))
  (AsStruct '('key (Nothing (OptionalType (DataType 'Uint32)))) '('value (String 'a)))
))

(let world (Write! world res_sink (Key) (SkipNullMembers list '('key)) '('('type))))
(let world (Commit! world res_sink))
(return world)
)