aboutsummaryrefslogtreecommitdiffstats
path: root/yql/essentials/tests/s-expressions/suites/ImplictCasts/AutoConvertCoalesce.yqls
blob: f828017510b20eba0ed0b321dd8054c58a47776d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
(
(let config (DataSource 'config))

(let res_sink (DataSink 'result))
(let data (Coalesce (Nothing (OptionalType (DataType 'Uint32))) (Uint64 '1)))
(let world (Write! world res_sink (Key) data '('('type))))
(let data (Coalesce (Nothing (OptionalType (DataType 'Uint64))) (Int64 '2)))
(let world (Write! world res_sink (Key) data '('('type))))
(let data (Coalesce (Nothing (OptionalType (DataType 'Int64))) (+ (Uint32 '1) (Uint32 '2))))
(let world (Write! world res_sink (Key) data '('('type))))
(let data (Coalesce (Nothing (OptionalType (DataType 'Uint32))) (Just (Uint32 '4))))
(let world (Write! world res_sink (Key) data '('('type))))
(let world (Commit! world res_sink))
(return world)
)