aboutsummaryrefslogtreecommitdiffstats
path: root/yql/essentials/tests/sql/suites/json/json_value/passing_exception.sql
blob: 7e94a73cccd6f3f950c2f6e5999eca77876eda00 (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_VALUE(
        $json, "strict $var"
        PASSING
            AsTuple(1, 2) as var
    );