aboutsummaryrefslogtreecommitdiffstats
path: root/yql/essentials/tests/s-expressions/suites/View/ReadGlobView.yql
blob: 8588e4df3929d6e8f2f3b044d7741c9db390688e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
(
(let mr_source (DataSource 'yt 'plato))
(let mr_sink (DataSink 'yt 'plato))
(let res_sink (DataSink 'result))
(let source_any (DataSource 'yt '"$all"))

(let world (Configure! world source_any '"Attr" '"inferschema" '"1"))
(let world (Configure! world source_any '"Attr" '"maxrowweight" '"128m"))

(let x (Read! world mr_source (Key
    '('table (String 'InputView))
) (Void) '()))

(let world (Left! x))
(let data (Right! x))

(let world (Write! world res_sink (Key) data '()))
(let world (Commit! world res_sink))
(let world (Commit! world mr_sink))
(return world)
)