aboutsummaryrefslogtreecommitdiffstats
path: root/yql/essentials/tests/s-expressions/suites/Udf/NamedArgUdf.yqls
blob: b32401ac2c8dcf47080414db3524411633da8a19 (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
33
34
35
36
37
38
39
40
41
42
43
44
(
#comment
(let config (DataSource 'config))
(let world (Configure! world config 'PureDataSource 'yt))

(let udf (Udf 'SimpleUdf.NamedArgs ))
(let res_sink (DataSink 'result))
(let world (Write! world res_sink (Key) (FormatType (TypeOf udf)) '('('type))))
(let world (Write! world res_sink (Key) (NamedApply udf 
  '((Uint32 '1)) 
  (AsStruct)) 
'()))
(let world (Write! world res_sink (Key) (NamedApply udf 
  '((Uint32 '1) (Uint32 '2)) 
  (AsStruct)) 
'()))
(let world (Write! world res_sink (Key) (NamedApply udf 
  '((Uint32 '1)) 
  (AsStruct '('C (Uint32 '3)))) 
'()))
(let world (Write! world res_sink (Key) (NamedApply udf 
  '((Uint32 '1)) 
  (AsStruct '('C (Uint32 '3)) '('D (Uint32 '4)))) 
'()))
(let world (Write! world res_sink (Key) (NamedApply udf 
  '((Uint32 '1)) 
  (AsStruct '('D (Uint32 '4)))) 
'()))
(let world (Write! world res_sink (Key) (NamedApply udf 
  '((Uint32 '1) (Uint32 '2)) 
  (AsStruct '('D (Uint32 '4)))) 
'()))
(let world (Write! world res_sink (Key) (NamedApply udf 
  '((Uint32 '1) (Uint32 '2) (Uint32 '3)) 
  (AsStruct)) 
'()))
(let world (Write! world res_sink (Key) (NamedApply udf 
  '((Uint32 '1) (Uint32 '2) (Uint32 '3) (Uint32 '4)) 
  (AsStruct))  
'()))

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