1234567891011121314151617 |
- (
- (let mr_source (DataSource 'yt 'plato))
- (let x (Read! world mr_source (Key '('table (String 'InputSelf))) '('key 'subkey) '()))
- (let world (Left! x))
- (let table1 (Right! x))
- (let x (Read! world mr_source (Key '('table (String 'InputSelf))) '('subkey 'value) '()))
- (let world (Left! x))
- (let table2 (Right! x))
- (let join (EquiJoin '(table1 'a) '(table2 'b)
- '('Inner '"a" '"b" '('"a" '"key") '('"b" '"value") '()) '()))
- (let res_sink (DataSink 'result))
- (let sortDir '((Bool 'true) (Bool 'true)))
- (let keySelector (lambda '(row) '((Member row '"a.key") (Member row '"a.subkey"))))
- (let world (Write! world res_sink (Key) (Sort join sortDir keySelector) '('('type))))
- (let world (Commit! world res_sink))
- (return world)
- )
|