Shift.yql 1.1 KB

12345678910111213141516171819202122232425
  1. (
  2. (let config (DataSource 'config))
  3. (let world (Configure! world config 'PureDataSource 'yt))
  4. (let res_sink (DataSink 'result))
  5. (let data (ShiftLeft (Int32 '"1") (Int64 '"10")))
  6. (let world (Write! world res_sink (Key) data '('('type))))
  7. (let data (ShiftLeft (Int64 '"1") (Int64 '"10")))
  8. (let world (Write! world res_sink (Key) data '('('type))))
  9. (let data (ShiftLeft (Int32 '"1") (Int64 '"40")))
  10. (let world (Write! world res_sink (Key) data '('('type))))
  11. (let data (ShiftLeft (Int64 '"1") (Int64 '"40")))
  12. (let world (Write! world res_sink (Key) data '('('type))))
  13. (let world (Commit! world res_sink))
  14. (let data (ShiftLeft (Just (Int32 '"1")) (Int64 '"10")))
  15. (let world (Write! world res_sink (Key) data '('('type))))
  16. (let data (ShiftLeft (Just (Int64 '"1")) (Int64 '"10")))
  17. (let world (Write! world res_sink (Key) data '('('type))))
  18. (let data (ShiftLeft (Just (Int32 '"1")) (Int64 '"40")))
  19. (let world (Write! world res_sink (Key) data '('('type))))
  20. (let data (ShiftLeft (Just (Int64 '"1")) (Int64 '"40")))
  21. (let world (Write! world res_sink (Key) data '('('type))))
  22. (let world (Commit! world res_sink))
  23. (return world)
  24. )