aboutsummaryrefslogtreecommitdiffstats
path: root/yql/essentials/tests/s-expressions/suites/InMem/IndexDictOpt.yql
blob: b551ccbad0536317c89d6f69b70b17dfc2af0649 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
(
#comment
(let config (DataSource 'config))
(let world (Configure! world config 'PureDataSource 'yt))

(let res_sink (DataSink 'result))
(let t (AsList
  (String 'a)
  (String 'b)
))

(let jt (Just t))
(let n (Nothing (TypeOf jt)))

(let world (Write! world res_sink (Key) (ToIndexDict jt) '('('type))))
(let world (Write! world res_sink (Key) (ToIndexDict n) '('('type))))

(let world (Commit! world res_sink))
(return world)
)