aboutsummaryrefslogtreecommitdiffstats
path: root/yql/essentials/tests/s-expressions/suites/Optimizers/UseEmptyDict.yql
blob: 6f5b78d34eba306f700fe11aaa3666eae471a837 (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 ed (Dict (DictType (DataType 'Int32) (DataType 'String))))
(let data (Lookup ed (Int32 '0)))
(let world (Write! world res_sink (Key) data '('('type))))
(let data (Contains ed (Int32 '0)))
(let world (Write! world res_sink (Key) data '('('type))))
(let data (DictItems ed))
(let world (Write! world res_sink (Key) data '('('type))))
(let data (DictKeys ed))
(let world (Write! world res_sink (Key) data '('('type))))
(let data (DictPayloads ed))
(let world (Write! world res_sink (Key) data '('('type))))
(let world (Commit! world res_sink))
(return world)
)