NullAsOpt.yql 374 B

1234567891011
  1. (
  2. (let config (DataSource 'config))
  3. (let world (Configure! world config 'PureDataSource 'yt))
  4. (let res_sink (DataSink 'result))
  5. (let ct (ParseType '"(Uint32?,Uint32)->Uint32"))
  6. (let callable (Callable ct (lambda '(x y) (Coalesce x y))))
  7. (let world (Write! world res_sink (Key) (Apply callable (Null) (Uint32 '2)) '()))
  8. (let world (Commit! world res_sink))
  9. (return world)
  10. )