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

(let res_sink (DataSink 'result))
(let data (Coalesce (Nothing (OptionalType (DataType 'Int32))) (Int32 '2)))
(let world (Write! world res_sink (Key) data '('('type))))
(let data (Coalesce (Nothing (OptionalType (DataType 'Int32))) (Just (Int32 '2))))
(let world (Write! world res_sink (Key) data '('('type))))
(let data (Coalesce (Nothing (OptionalType (DataType 'Int32))) (Just (Int32 '2)) (Int32 '3)))
(let world (Write! world res_sink (Key) data '('('type))))
(let world (Commit! world res_sink))
(return world)
)