EquiInnerLeftOnly3Str.yql 790 B

1234567891011121314151617181920212223
  1. (
  2. (let mr_source (DataSource 'yt 'plato))
  3. (let x (Read! world mr_source (Key '('table (String 'Input1))) '('key 'subkey 'value) '()))
  4. (let world (Left! x))
  5. (let table1 (Right! x))
  6. (let x (Read! world mr_source (Key '('table (String 'Input2))) '('key 'subkey 'value) '()))
  7. (let world (Left! x))
  8. (let table2 (Right! x))
  9. (let x (Read! world mr_source (Key '('table (String 'Input3))) '('key 'subkey 'value) '()))
  10. (let world (Left! x))
  11. (let table3 (Right! x))
  12. (let join (EquiJoin '(table1 'a) '(table2 'b) '(table3 'c)
  13. '('Inner
  14. '('LeftOnly '"a" '"b" '('"a" '"key") '('"b" '"key" ) '())
  15. '"c" '('"a" '"key") '('"c" '"key") '()) '()))
  16. (let res_sink (DataSink 'result))
  17. (let world (Write! world res_sink (Key) join '('('type))))
  18. (let world (Commit! world res_sink))
  19. (return world)
  20. )