aboutsummaryrefslogtreecommitdiffstats
path: root/yql/essentials/tests/sql/suites/json/json_exists/passing_exception.sql
blob: 540741eebad4f85abbcad1c6c660dedaf874dd3c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* syntax version 1 */
/* postgres can not */

$json = CAST(@@{
    "key": 123
}@@ as Json);

-- Tuple type is not supported for variables
SELECT
    JSON_EXISTS(
        $json, "strict $var"
        PASSING
            AsTuple(1, 2) as var
    );