aboutsummaryrefslogtreecommitdiffstats
path: root/yql/essentials/tests/sql/suites/expr/callable.sql
blob: b5af9143d5991a5b13d259360eb6ab959e4b21ab (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
/* postgres can not */
/* syntax version 1 */
$lambda = ($x) -> {
    return cast($x as String)
};

$callables = AsTuple(
  Callable(Callable<(Int32)->String>, $lambda),
  Callable(Callable<(Bool)->String>, $lambda),
);

select $callables.0(10), $callables.1(true);