GroupAfterWeakConcat.yql 587 B

12345678910111213
  1. (
  2. #comment
  3. (import aggregate_module '"/lib/yql/aggregate.yql")
  4. (let mr_source (DataSource 'yt 'plato))
  5. (let x (Read! world mr_source (MrTableConcat (Key '('table (String 'Input1))) (Key '('table (String 'Input2)))) (Void) '()))
  6. (let world (Left! x))
  7. (let core (Right! x))
  8. (let core (Aggregate core '('"age") '('('cnt (Apply (bind aggregate_module '"count_traits_factory") (TypeOf core) (lambda '(row) (Void)))))))
  9. (let mr_sink (DataSink 'yt (quote plato)))
  10. (let world (Write! world mr_sink (Key '('table (String 'Output))) core '()))
  11. (let world (Commit! world mr_sink))
  12. (return world)
  13. )