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

(let res_sink (DataSink 'result))
(let myStruct (AsStruct '('a (String 'z)) '('b (Null))))
(let typeOfMyStruct (TypeOf myStruct))

(let world (Write! world res_sink (Key) (Member (Just myStruct) 'b) '('('type))))
(let world (Write! world res_sink (Key) (Member (Nothing (OptionalType typeOfMyStruct)) 'b) '('('type))))
(let world (Commit! world res_sink))
(return world)
)