aboutsummaryrefslogtreecommitdiffstats
path: root/yql/essentials/tests/sql/suites/lambda/lambda_no_arg.sql
blob: e86773d9e3e9dcb74e03eb36d0a2cfe57d6be698 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
/* postgres can not */
$modVal = ()->{
  return 2
};

$filter = ($item)->{
    return not ($item % $modVal() == 0)
};

SELECT ListFilter(AsList(1,2,3,4,5), $filter);