aboutsummaryrefslogtreecommitdiffstats
path: root/yql/essentials/tests/s-expressions/suites/View/DoubleGlobViewRead.yql
blob: 5a2597e5cca902d9c8c4676a1367db26bce3a989 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
(
(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 x1 (Read! world mr_source (Key
    '('table (String 'InputView))
) (Void) '()))

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

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

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

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

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

(let world (Commit! world mr_sink))
(return world)
)