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
33
34
35
36
37
38
39
40
41
42
43
44
45
|
{
"head" : {
"version" : 1,
"generator" : {
"type" : "org.apache.drill.exec.planner.logical.DrillImplementor",
"info" : ""
},
"type" : "APACHE_DRILL_PHYSICAL",
"resultMode" : "EXEC"
},
graph:[
{
@id:1,
pop:"fs-scan",
format: {type: "json"},
storage:{type: "file", connection: "classpath:///"},
files:["/input_simple_decimal.json"]
}, {
"pop" : "project",
"@id" : 2,
"exprs" : [
{ "ref" : "INT_COL", "expr": "(cast(INT_COL as int))" },
{ "ref" : "BIGINT_COL", "expr": "(cast(BIGINT_COL as bigint))" }
],
"child" : 1
},
{
"pop" : "project",
"@id" : 4,
"exprs" : [
{"ref": "DEC9_INT", "expr" : "cast(INT_COL as decimal9(9, 0))"},
{"ref": "DEC38_INT", "expr" : "cast(INT_COL as decimal38sparse(38, 0))"},
{"ref": "DEC9_BIGINT", "expr" : "cast(BIGINT_COL as decimal9(9, 0))"},
{"ref": "DEC38_BIGINT", "expr" : "cast(BIGINT_COL as decimal38sparse(38, 0))"}
],
"child" : 2
},
{
"pop" : "screen",
"@id" : 5,
"child" : 4
} ]
}
|