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

(let res_sink (DataSink 'result))
(let data (AsList (AsStruct '('x (Uint32 '12)))))
(let data (Append data (AsStruct '('x (Int64 '34)))))
(let st (StructType '('x (DataType 'Int64))))
(let data (Append data (Struct st '('x (Int64 '56)))))
(let world (Write! world res_sink (Key) data '('('type))))
(let world (Commit! world res_sink))
(return world)
)