aboutsummaryrefslogtreecommitdiffstats
path: root/yql/essentials/tests/sql/suites/produce/process_lambda_opt_args.sql
blob: 612885c95ba7c27c34de2c86d67c98149091456f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
USE plato;

$f = ($x, $optArg?)->{
    return Ensure($x, $optArg is null or len($optArg)>0);
};

PROCESS Input0 USING $f(TableRow());

PROCESS Input0 USING $f(TableRow(),'foo');

PROCESS Input0 USING $f(TableRows());

PROCESS Input0 USING $f(TableRows(),'foo');