aboutsummaryrefslogtreecommitdiffstats
path: root/yql/essentials/tests/s-expressions/suites/ImplictCasts/NarrowStruct.yqls
blob: 8c5bc625958a2b1d159393017fa02a461758de79 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
(
(let config (DataSource 'config))
(let world (Configure! world config 'PureDataSource 'yt))

(let res_sink (DataSink 'result))
(let data (AsList (AsStruct '('key (Just (Int64 '12))))))
(let data (Append data (AsStruct '('key (Int64 '34)) '('value (String 'foo)))))
(let world (Write! world res_sink (Key) data '('('type))))
(let world (Commit! world res_sink))
(return world)
)