aboutsummaryrefslogtreecommitdiffstats
path: root/yql/essentials/tests/s-expressions/suites/Result/PullWithDirectRead.yql
blob: 6c4b1851e0ff5f7adaffc91fb3f21378f16add57 (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) '('('direct_read))))
(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)
)