aboutsummaryrefslogtreecommitdiffstats
path: root/yql/essentials/tests/s-expressions/suites/Result/PullWithDefValues.yqls
blob: 69f204a707631c54f046b576a33b5de21c624e13 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
(
(let x (Read! world (DataSource 'yt 'plato) (Key '('table (String 'Input))) (Void) '('('infer_scheme))))
(let world (Left! x))
(let data (Take (Right! x) (Uint64 '3)))
(let result_sink (DataSink 'result))
(let world (Write! world result_sink (Key) data '('('type) '('autoref) '('take '2))))
(let plato_sink (DataSink 'yt 'plato))
(let world (Commit! world plato_sink))
(let world (Commit! world result_sink))
(return world)
)