aboutsummaryrefslogtreecommitdiffstats
path: root/yql/essentials/tests/s-expressions/suites/Udf/PireMatchRes.yqls
blob: 90391c22642505a1b6bf3b0e793bb71ff63b38b4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
(
#comment
(let config (DataSource 'config))
(let world (Configure! world config 'PureDataSource 'yt))

(let res_sink (DataSink 'result))
(let udf (Udf 'Pire.Match (String '.?\d.?)))
(let world (Write! world res_sink (Key) (Apply udf (String 'abc)) '()))
(let world (Write! world res_sink (Key) (Apply udf (String 'x6y)) '()))
(let world (Write! world res_sink (Key) (FormatType (TypeOf udf)) '()))
(let world (Commit! world res_sink))
(return world)
)