aboutsummaryrefslogtreecommitdiffstats
path: root/yql/essentials/tests/sql/suites/view/input_lambda.txt.attr
blob: c9e8e9e38d275c32eda64845935c9297bb6fb296 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{
    "_yql_view_lambda"="$update_key = ($key) -> ($key || '.updated'); SELECT $update_key(key) as key, subkey, value from self";
    "_yql_view_lambda_process"="$update_row = ($row) -> (AddMember($row, 'new_value', 'NEW_VALUE')); PROCESS self USING $update_row(TableRow());";
    "_yql_row_spec" = {
        "Type" = [
            "StructType";
            [
                [
                    "key";
                    [
                        "DataType";
                        "String"
                    ]
                ];
                [
                    "subkey";
                    [
                        "DataType";
                        "String"
                    ]
                ];
                [
                    "value";
                    [
                        "DataType";
                        "String"
                    ]
                ]
            ]
        ]
    }
}