aboutsummaryrefslogtreecommitdiffstats
path: root/yql/essentials/tests/sql/suites/select/where_with_lambda.sql
blob: e2587c8ac0459fcef56fe45ef260f7c469a39bc0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
/* postgres can not */
USE plato;

$predicate = ($x) -> {
    RETURN $x == "911"
};
$field = "field";

SELECT *
FROM Input
WHERE $predicate($field);