LengthOfWeakConcatTables.yql 578 B

123456789101112131415
  1. (
  2. #comment
  3. (let mr_source (DataSource 'yt 'plato))
  4. (let x (Read! world mr_source (MrTableConcat (Key '('table (String 'Input1))) (Key '('table (String 'Input2)))) (Void) '()))
  5. (let world (Left! x))
  6. (let tables (Right! x))
  7. (let length (Length tables))
  8. (let mr_sink (DataSink 'yt (quote plato)))
  9. (let world (Write! world mr_sink (Key '('table (String 'Output))) (Just (AsStruct '('value length))) '()))
  10. (let res_sink (DataSink 'result))
  11. (let world (Write! world res_sink (Key) length '()))
  12. (let world (Commit! world mr_sink))
  13. (let world (Commit! world res_sink))
  14. (return world)
  15. )