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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
{
"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:["#{TEST_FILE}"]
},{
"pop" : "project",
"@id" : 2,
"exprs" : [ {
"ref" : "DE",
"expr" : " (cast(B as decimal38sparse(28, 9))) "
},
{"ref" : "DE1", "expr": " cast(A as decimal18(15, 6))" }
],
"child" : 1
},
{
"pop" : "project",
"@id" : 3,
"exprs" : [ {
"ref" : "DEC38ADD",
"expr" : " (DE + DE1) "
},
{"ref" : "DEC38SUB" , "expr" : " (DE - DE1) " }
],
"child" : 2
},
{
"pop" : "project",
"@id" : 4,
"exprs" : [ {
"ref" : "DEC38ADD",
"expr" : " cast(DEC38ADD as varchar(100)) "
},
{"ref" : "DEC38SUB" , "expr" : " cast(DEC38SUB as varchar(100)) " }
],
"child" : 3
},
{
"pop" : "screen",
"@id" : 5,
"child" : 4
} ]
}
|