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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
|
{
"head" : {
"version" : 1,
"generator" : {
"type" : "DefaultSqlHandler",
"info" : ""
},
"type" : "APACHE_DRILL_PHYSICAL",
"options" : [ {
"name" : "planner.enable_hashjoin",
"kind" : "BOOLEAN",
"type" : "SESSION",
"bool_val" : false
} ],
"queue" : 0,
"resultMode" : "EXEC"
},
"graph" : [ {
"pop" : "parquet-scan",
"@id" : 9,
"entries" : [ {
"path" : "/tpch/nation.parquet"
} ],
"storage" : {
"type" : "file",
"enabled" : true,
"connection" : "classpath:///",
"workspaces" : null,
"formats" : null
},
"format" : {
"type" : "parquet"
},
"columns" : [ "`n_nationkey`", "`n_regionkey`" ],
"selectionRoot" : "/tpch/nation.parquet",
"cost" : {
"memoryCost" : 0,
"outputRowCount" : 25.0
}
}, {
"pop" : "project",
"@id" : 8,
"exprs" : [ {
"ref" : "`n_nationkey`",
"expr" : "`n_nationkey`"
}, {
"ref" : "`$f3`",
"expr" : "add(`n_regionkey`, 1) "
} ],
"child" : 9,
"initialAllocation" : 1000000,
"maxAllocation" : 10000000000,
"cost" : {
"memoryCost" : 0,
"outputRowCount" : 25.0
}
}, {
"pop" : "external-sort",
"@id" : 6,
"child" : 8,
"orderings" : [ {
"order" : "ASC",
"expr" : "`$f3`",
"nullDirection" : "UNSPECIFIED"
} ],
"reverse" : false,
"initialAllocation" : 1000000,
"maxAllocation" : 10000000000,
"cost" : {
"memoryCost" : 0,
"outputRowCount" : 25.0
}
}, {
"pop" : "selection-vector-remover",
"@id" : 4,
"child" : 6,
"initialAllocation" : 1000000,
"maxAllocation" : 10000000000,
"cost" : {
"memoryCost" : 0,
"outputRowCount" : 25.0
}
}, {
"pop" : "parquet-scan",
"@id" : 7,
"entries" : [ {
"path" : "/tpch/region.parquet"
} ],
"storage" : {
"type" : "file",
"enabled" : true,
"connection" : "classpath:///",
"workspaces" : null,
"formats" : null
},
"format" : {
"type" : "parquet"
},
"columns" : [ "`r_regionkey`" ],
"selectionRoot" : "/tpch/region.parquet",
"cost" : {
"memoryCost" : 0,
"outputRowCount" : 25.0
}
}, {
"pop" : "external-sort",
"@id" : 5,
"child" : 7,
"orderings" : [ {
"order" : "ASC",
"expr" : "`r_regionkey`",
"nullDirection" : "UNSPECIFIED"
} ],
"reverse" : false,
"initialAllocation" : 1000000,
"maxAllocation" : 10000000000,
"cost" : {
"memoryCost" : 0,
"outputRowCount" : 25.0
}
}, {
"pop" : "selection-vector-remover",
"@id" : 3,
"child" : 5,
"initialAllocation" : 1000000,
"maxAllocation" : 10000000000,
"cost" : {
"memoryCost" : 0,
"outputRowCount" : 25.0
}
}, {
"pop" : "merge-join",
"@id" : 2,
"left" : 4,
"right" : 3,
"conditions" : [ {
"relationship" : "==",
"left" : "add(`$f3`, 2)",
"right" : "`r_regionkey`"
} ],
"joinType" : "INNER",
"initialAllocation" : 1000000,
"maxAllocation" : 10000000000,
"cost" : {
"memoryCost" : 0,
"outputRowCount" : 25.0
}
}, {
"pop" : "project",
"@id" : 1,
"exprs" : [ {
"ref" : "`n_nationkey`",
"expr" : "`n_nationkey`"
} ],
"child" : 2,
"initialAllocation" : 1000000,
"maxAllocation" : 10000000000,
"cost" : {
"memoryCost" : 0,
"outputRowCount" : 25.0
}
}, {
"pop" : "screen",
"@id" : 0,
"child" : 1,
"initialAllocation" : 1000000,
"maxAllocation" : 10000000000,
"cost" : {
"memoryCost" : 0,
"outputRowCount" : 25.0
}
} ]
}
|