aboutsummaryrefslogtreecommitdiffstats
path: root/yql/essentials/tests/s-expressions/suites/View/input6.txt.attr
blob: 501fdca6dbaf1c13c58812acc55c17fcb52c487c (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
{
    "_yql_view_my"="$udfScript=\"def f(row):\n\treturn {'myvalue':b'm' + row.value}\n\";$udf=Python::f(Callable<(Struct<key:String,subkey:String,value:String>)->Struct<myvalue:String>>, $udfScript);PROCESS self USING $udf(TableRow());";
    "_yql_row_spec" = {
        "Type" = [
            "StructType";
            [
                [
                    "key";
                    [
                        "DataType";
                        "String"
                    ]
                ];
                [
                    "subkey";
                    [
                        "DataType";
                        "String"
                    ]
                ];
                [
                    "value";
                    [
                        "DataType";
                        "String"
                    ]
                ]
            ]
        ]
    }
}