CoalesceOverNothing.yqls 555 B

12345678910111213
  1. (
  2. (let config (DataSource 'config))
  3. (let res_sink (DataSink 'result))
  4. (let data (Coalesce (Nothing (OptionalType (DataType 'Int32))) (Int32 '2)))
  5. (let world (Write! world res_sink (Key) data '('('type))))
  6. (let data (Coalesce (Nothing (OptionalType (DataType 'Int32))) (Just (Int32 '2))))
  7. (let world (Write! world res_sink (Key) data '('('type))))
  8. (let data (Coalesce (Nothing (OptionalType (DataType 'Int32))) (Just (Int32 '2)) (Int32 '3)))
  9. (let world (Write! world res_sink (Key) data '('('type))))
  10. (let world (Commit! world res_sink))
  11. (return world)
  12. )