impala 0.1.6 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +0 -2
- data/impala.gemspec +1 -2
- data/lib/impala.rb +1 -1
- data/lib/impala/cursor.rb +10 -4
- data/lib/impala/protocol/beeswax_constants.rb +2 -1
- data/lib/impala/protocol/beeswax_service.rb +46 -46
- data/lib/impala/protocol/beeswax_types.rb +31 -30
- data/lib/impala/protocol/cli_service_constants.rb +60 -0
- data/lib/impala/protocol/cli_service_types.rb +1452 -0
- data/lib/impala/protocol/facebook_service.rb +17 -17
- data/lib/impala/protocol/fb303_constants.rb +2 -1
- data/lib/impala/protocol/fb303_types.rb +3 -2
- data/lib/impala/protocol/hive_metastore_constants.rb +2 -1
- data/lib/impala/protocol/hive_metastore_types.rb +102 -101
- data/lib/impala/protocol/impala_hive_server2_service.rb +29 -0
- data/lib/impala/protocol/impala_service.rb +135 -18
- data/lib/impala/protocol/impala_service_constants.rb +2 -1
- data/lib/impala/protocol/impala_service_types.rb +54 -10
- data/lib/impala/protocol/status_constants.rb +2 -1
- data/lib/impala/protocol/status_types.rb +9 -7
- data/lib/impala/protocol/t_c_l_i_service.rb +948 -0
- data/lib/impala/protocol/thrift_hive_metastore.rb +507 -507
- data/lib/impala/version.rb +1 -1
- data/test/test_impala_connected.rb +93 -13
- data/thrift/ImpalaService.thrift +78 -6
- data/thrift/Status.thrift +2 -1
- data/thrift/beeswax.thrift +1 -1
- data/thrift/cli_service.thrift +1015 -0
- metadata +9 -75
- data/lib/impala/protocol/data_constants.rb +0 -12
- data/lib/impala/protocol/data_sinks_constants.rb +0 -12
- data/lib/impala/protocol/data_sinks_types.rb +0 -107
- data/lib/impala/protocol/data_types.rb +0 -77
- data/lib/impala/protocol/descriptors_constants.rb +0 -12
- data/lib/impala/protocol/descriptors_types.rb +0 -266
- data/lib/impala/protocol/exprs_constants.rb +0 -12
- data/lib/impala/protocol/exprs_types.rb +0 -345
- data/lib/impala/protocol/frontend_constants.rb +0 -12
- data/lib/impala/protocol/frontend_types.rb +0 -347
- data/lib/impala/protocol/impala_internal_service.rb +0 -244
- data/lib/impala/protocol/impala_internal_service_constants.rb +0 -12
- data/lib/impala/protocol/impala_internal_service_types.rb +0 -362
- data/lib/impala/protocol/impala_plan_service.rb +0 -310
- data/lib/impala/protocol/impala_plan_service_constants.rb +0 -12
- data/lib/impala/protocol/impala_plan_service_types.rb +0 -36
- data/lib/impala/protocol/java_constants_constants.rb +0 -42
- data/lib/impala/protocol/java_constants_types.rb +0 -14
- data/lib/impala/protocol/opcodes_constants.rb +0 -12
- data/lib/impala/protocol/opcodes_types.rb +0 -309
- data/lib/impala/protocol/partitions_constants.rb +0 -12
- data/lib/impala/protocol/partitions_types.rb +0 -44
- data/lib/impala/protocol/plan_nodes_constants.rb +0 -12
- data/lib/impala/protocol/plan_nodes_types.rb +0 -345
- data/lib/impala/protocol/planner_constants.rb +0 -12
- data/lib/impala/protocol/planner_types.rb +0 -78
- data/lib/impala/protocol/runtime_profile_constants.rb +0 -12
- data/lib/impala/protocol/runtime_profile_types.rb +0 -97
- data/lib/impala/protocol/state_store_service.rb +0 -244
- data/lib/impala/protocol/state_store_service_constants.rb +0 -12
- data/lib/impala/protocol/state_store_service_types.rb +0 -185
- data/lib/impala/protocol/state_store_subscriber_service.rb +0 -82
- data/lib/impala/protocol/state_store_subscriber_service_constants.rb +0 -12
- data/lib/impala/protocol/state_store_subscriber_service_types.rb +0 -67
- data/lib/impala/protocol/statestore_types_constants.rb +0 -12
- data/lib/impala/protocol/statestore_types_types.rb +0 -77
- data/lib/impala/protocol/types_constants.rb +0 -12
- data/lib/impala/protocol/types_types.rb +0 -86
- data/thrift/Data.thrift +0 -52
- data/thrift/DataSinks.thrift +0 -61
- data/thrift/Descriptors.thrift +0 -115
- data/thrift/Exprs.thrift +0 -134
- data/thrift/Frontend.thrift +0 -193
- data/thrift/ImpalaInternalService.thrift +0 -265
- data/thrift/ImpalaPlanService.thrift +0 -44
- data/thrift/JavaConstants.thrift +0 -60
- data/thrift/Opcodes.thrift +0 -317
- data/thrift/Partitions.thrift +0 -41
- data/thrift/PlanNodes.thrift +0 -184
- data/thrift/Planner.thrift +0 -72
- data/thrift/RuntimeProfile.thrift +0 -58
- data/thrift/StateStoreService.thrift +0 -121
- data/thrift/StateStoreSubscriberService.thrift +0 -64
- data/thrift/StatestoreTypes.thrift +0 -50
- data/thrift/Types.thrift +0 -71
@@ -1,44 +0,0 @@
|
|
1
|
-
// Copyright 2012 Cloudera Inc.
|
2
|
-
//
|
3
|
-
// Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
-
// you may not use this file except in compliance with the License.
|
5
|
-
// You may obtain a copy of the License at
|
6
|
-
//
|
7
|
-
// http://www.apache.org/licenses/LICENSE-2.0
|
8
|
-
//
|
9
|
-
// Unless required by applicable law or agreed to in writing, software
|
10
|
-
// distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
-
// See the License for the specific language governing permissions and
|
13
|
-
// limitations under the License.
|
14
|
-
|
15
|
-
namespace cpp impala
|
16
|
-
namespace java com.cloudera.impala.thrift
|
17
|
-
namespace rb Impala.Protocol
|
18
|
-
|
19
|
-
include "Frontend.thrift"
|
20
|
-
|
21
|
-
exception TImpalaPlanServiceException {
|
22
|
-
1: string msg;
|
23
|
-
}
|
24
|
-
|
25
|
-
// We're running the Impala frontend as a service from which the backend
|
26
|
-
// test driver can get plans to run.
|
27
|
-
service ImpalaPlanService {
|
28
|
-
Frontend.TExecRequest CreateExecRequest(
|
29
|
-
1:Frontend.TClientRequest clientRequest) throws (1:TImpalaPlanServiceException e);
|
30
|
-
|
31
|
-
// Force planservice to reload table metadata, in case it has changed due to e.g. an
|
32
|
-
// insert
|
33
|
-
void RefreshMetadata();
|
34
|
-
|
35
|
-
string GetExplainString(1:Frontend.TClientRequest queryRequest)
|
36
|
-
throws (1:TImpalaPlanServiceException e);
|
37
|
-
|
38
|
-
// Makes changes to the metastore - usually creates partitions as a result of an INSERT
|
39
|
-
// statement
|
40
|
-
void UpdateMetastore(1:Frontend.TCatalogUpdate update)
|
41
|
-
throws (1:TImpalaPlanServiceException e);
|
42
|
-
|
43
|
-
void ShutdownServer();
|
44
|
-
}
|
data/thrift/JavaConstants.thrift
DELETED
@@ -1,60 +0,0 @@
|
|
1
|
-
// Copyright 2012 Cloudera Inc.
|
2
|
-
//
|
3
|
-
// Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
-
// you may not use this file except in compliance with the License.
|
5
|
-
// You may obtain a copy of the License at
|
6
|
-
//
|
7
|
-
// http://www.apache.org/licenses/LICENSE-2.0
|
8
|
-
//
|
9
|
-
// Unless required by applicable law or agreed to in writing, software
|
10
|
-
// distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
-
// See the License for the specific language governing permissions and
|
13
|
-
// limitations under the License.
|
14
|
-
|
15
|
-
// Centralised store of constants that are shared between C++ and Java
|
16
|
-
// - Thrift compiles all constants into Constants.java, which means it
|
17
|
-
// gets overwritten if two separate files have constants.
|
18
|
-
// This is fixed in Thrift 0.9 - see THRIFT-1090
|
19
|
-
|
20
|
-
namespace cpp impala
|
21
|
-
namespace java com.cloudera.impala.thrift
|
22
|
-
namespace rb Impala.Protocol
|
23
|
-
|
24
|
-
include "Descriptors.thrift"
|
25
|
-
include "ImpalaService.thrift" // For TImpalaQueryOptions
|
26
|
-
|
27
|
-
// constants for TQueryOptions.num_nodes
|
28
|
-
const i32 NUM_NODES_ALL = 0
|
29
|
-
const i32 NUM_NODES_ALL_RACKS = -1
|
30
|
-
|
31
|
-
// constants for TPlanNodeId
|
32
|
-
const i32 INVALID_PLAN_NODE_ID = -1
|
33
|
-
|
34
|
-
// Constant default partition ID, must be < 0 to avoid collisions
|
35
|
-
const i64 DEFAULT_PARTITION_ID = -1;
|
36
|
-
|
37
|
-
// Mapping from names defined by Trevni to the enum.
|
38
|
-
// We permit gzip and bzip2 in addtion.
|
39
|
-
const map<string, Descriptors.THdfsCompression> COMPRESSION_MAP = {
|
40
|
-
"": Descriptors.THdfsCompression.NONE,
|
41
|
-
"none": Descriptors.THdfsCompression.NONE,
|
42
|
-
"deflate": Descriptors.THdfsCompression.DEFAULT,
|
43
|
-
"gzip": Descriptors.THdfsCompression.GZIP,
|
44
|
-
"bzip2": Descriptors.THdfsCompression.BZIP2,
|
45
|
-
"snappy": Descriptors.THdfsCompression.SNAPPY
|
46
|
-
}
|
47
|
-
|
48
|
-
// Default values for each query option in ImpalaService.TImpalaQueryOptions
|
49
|
-
const map<ImpalaService.TImpalaQueryOptions, string> DEFAULT_QUERY_OPTIONS = {
|
50
|
-
ImpalaService.TImpalaQueryOptions.ABORT_ON_ERROR : "false",
|
51
|
-
ImpalaService.TImpalaQueryOptions.MAX_ERRORS : "0",
|
52
|
-
ImpalaService.TImpalaQueryOptions.DISABLE_CODEGEN : "false",
|
53
|
-
ImpalaService.TImpalaQueryOptions.BATCH_SIZE : "0",
|
54
|
-
ImpalaService.TImpalaQueryOptions.NUM_NODES : "0",
|
55
|
-
ImpalaService.TImpalaQueryOptions.MAX_SCAN_RANGE_LENGTH : "0",
|
56
|
-
ImpalaService.TImpalaQueryOptions.MAX_IO_BUFFERS : "0"
|
57
|
-
ImpalaService.TImpalaQueryOptions.NUM_SCANNER_THREADS : "0"
|
58
|
-
ImpalaService.TImpalaQueryOptions.ALLOW_UNSUPPORTED_FORMATS : "false"
|
59
|
-
ImpalaService.TImpalaQueryOptions.DEFAULT_ORDER_BY_LIMIT : "-1"
|
60
|
-
}
|
data/thrift/Opcodes.thrift
DELETED
@@ -1,317 +0,0 @@
|
|
1
|
-
// Copyright 2012 Cloudera Inc.
|
2
|
-
//
|
3
|
-
// Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
-
// you may not use this file except in compliance with the License.
|
5
|
-
// You may obtain a copy of the License at
|
6
|
-
//
|
7
|
-
// http://www.apache.org/licenses/LICENSE-2.0
|
8
|
-
//
|
9
|
-
// Unless required by applicable law or agreed to in writing, software
|
10
|
-
// distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
-
// See the License for the specific language governing permissions and
|
13
|
-
// limitations under the License.
|
14
|
-
|
15
|
-
// This is a generated file, DO NOT EDIT.
|
16
|
-
// To add new functions, see impala/common/function-registry/gen_opcodes.py
|
17
|
-
|
18
|
-
namespace cpp impala
|
19
|
-
namespace java com.cloudera.impala.thrift
|
20
|
-
namespace rb Impala.Protocol
|
21
|
-
|
22
|
-
enum TExprOpcode {
|
23
|
-
INVALID_OPCODE,
|
24
|
-
ADD_DOUBLE_DOUBLE,
|
25
|
-
ADD_LONG_LONG,
|
26
|
-
BITAND_CHAR_CHAR,
|
27
|
-
BITAND_INT_INT,
|
28
|
-
BITAND_LONG_LONG,
|
29
|
-
BITAND_SHORT_SHORT,
|
30
|
-
BITNOT_CHAR,
|
31
|
-
BITNOT_INT,
|
32
|
-
BITNOT_LONG,
|
33
|
-
BITNOT_SHORT,
|
34
|
-
BITOR_CHAR_CHAR,
|
35
|
-
BITOR_INT_INT,
|
36
|
-
BITOR_LONG_LONG,
|
37
|
-
BITOR_SHORT_SHORT,
|
38
|
-
BITXOR_CHAR_CHAR,
|
39
|
-
BITXOR_INT_INT,
|
40
|
-
BITXOR_LONG_LONG,
|
41
|
-
BITXOR_SHORT_SHORT,
|
42
|
-
CASE_BOOL,
|
43
|
-
CASE_CHAR,
|
44
|
-
CASE_DOUBLE,
|
45
|
-
CASE_FLOAT,
|
46
|
-
CASE_INT,
|
47
|
-
CASE_LONG,
|
48
|
-
CASE_SHORT,
|
49
|
-
CASE_STRINGVALUE,
|
50
|
-
CASE_TIMESTAMPVALUE,
|
51
|
-
CAST_BOOL_BOOL,
|
52
|
-
CAST_BOOL_CHAR,
|
53
|
-
CAST_BOOL_DOUBLE,
|
54
|
-
CAST_BOOL_FLOAT,
|
55
|
-
CAST_BOOL_INT,
|
56
|
-
CAST_BOOL_LONG,
|
57
|
-
CAST_BOOL_SHORT,
|
58
|
-
CAST_BOOL_STRINGVALUE,
|
59
|
-
CAST_BOOL_TIMESTAMPVALUE,
|
60
|
-
CAST_CHAR_BOOL,
|
61
|
-
CAST_CHAR_CHAR,
|
62
|
-
CAST_CHAR_DOUBLE,
|
63
|
-
CAST_CHAR_FLOAT,
|
64
|
-
CAST_CHAR_INT,
|
65
|
-
CAST_CHAR_LONG,
|
66
|
-
CAST_CHAR_SHORT,
|
67
|
-
CAST_CHAR_STRINGVALUE,
|
68
|
-
CAST_CHAR_TIMESTAMPVALUE,
|
69
|
-
CAST_DOUBLE_BOOL,
|
70
|
-
CAST_DOUBLE_CHAR,
|
71
|
-
CAST_DOUBLE_DOUBLE,
|
72
|
-
CAST_DOUBLE_FLOAT,
|
73
|
-
CAST_DOUBLE_INT,
|
74
|
-
CAST_DOUBLE_LONG,
|
75
|
-
CAST_DOUBLE_SHORT,
|
76
|
-
CAST_DOUBLE_STRINGVALUE,
|
77
|
-
CAST_DOUBLE_TIMESTAMPVALUE,
|
78
|
-
CAST_FLOAT_BOOL,
|
79
|
-
CAST_FLOAT_CHAR,
|
80
|
-
CAST_FLOAT_DOUBLE,
|
81
|
-
CAST_FLOAT_FLOAT,
|
82
|
-
CAST_FLOAT_INT,
|
83
|
-
CAST_FLOAT_LONG,
|
84
|
-
CAST_FLOAT_SHORT,
|
85
|
-
CAST_FLOAT_STRINGVALUE,
|
86
|
-
CAST_FLOAT_TIMESTAMPVALUE,
|
87
|
-
CAST_INT_BOOL,
|
88
|
-
CAST_INT_CHAR,
|
89
|
-
CAST_INT_DOUBLE,
|
90
|
-
CAST_INT_FLOAT,
|
91
|
-
CAST_INT_INT,
|
92
|
-
CAST_INT_LONG,
|
93
|
-
CAST_INT_SHORT,
|
94
|
-
CAST_INT_STRINGVALUE,
|
95
|
-
CAST_INT_TIMESTAMPVALUE,
|
96
|
-
CAST_LONG_BOOL,
|
97
|
-
CAST_LONG_CHAR,
|
98
|
-
CAST_LONG_DOUBLE,
|
99
|
-
CAST_LONG_FLOAT,
|
100
|
-
CAST_LONG_INT,
|
101
|
-
CAST_LONG_LONG,
|
102
|
-
CAST_LONG_SHORT,
|
103
|
-
CAST_LONG_STRINGVALUE,
|
104
|
-
CAST_LONG_TIMESTAMPVALUE,
|
105
|
-
CAST_SHORT_BOOL,
|
106
|
-
CAST_SHORT_CHAR,
|
107
|
-
CAST_SHORT_DOUBLE,
|
108
|
-
CAST_SHORT_FLOAT,
|
109
|
-
CAST_SHORT_INT,
|
110
|
-
CAST_SHORT_LONG,
|
111
|
-
CAST_SHORT_SHORT,
|
112
|
-
CAST_SHORT_STRINGVALUE,
|
113
|
-
CAST_SHORT_TIMESTAMPVALUE,
|
114
|
-
CAST_STRINGVALUE_CHAR,
|
115
|
-
CAST_STRINGVALUE_DOUBLE,
|
116
|
-
CAST_STRINGVALUE_FLOAT,
|
117
|
-
CAST_STRINGVALUE_INT,
|
118
|
-
CAST_STRINGVALUE_LONG,
|
119
|
-
CAST_STRINGVALUE_SHORT,
|
120
|
-
CAST_STRINGVALUE_TIMESTAMPVALUE,
|
121
|
-
CAST_TIMESTAMPVALUE_BOOL,
|
122
|
-
CAST_TIMESTAMPVALUE_CHAR,
|
123
|
-
CAST_TIMESTAMPVALUE_DOUBLE,
|
124
|
-
CAST_TIMESTAMPVALUE_FLOAT,
|
125
|
-
CAST_TIMESTAMPVALUE_INT,
|
126
|
-
CAST_TIMESTAMPVALUE_LONG,
|
127
|
-
CAST_TIMESTAMPVALUE_SHORT,
|
128
|
-
CAST_TIMESTAMPVALUE_STRINGVALUE,
|
129
|
-
COMPOUND_AND,
|
130
|
-
COMPOUND_NOT,
|
131
|
-
COMPOUND_OR,
|
132
|
-
CONDITIONAL_COALESCE_BOOL_VARARGS,
|
133
|
-
CONDITIONAL_COALESCE_DOUBLE_VARARGS,
|
134
|
-
CONDITIONAL_COALESCE_LONG_VARARGS,
|
135
|
-
CONDITIONAL_COALESCE_STRINGVALUE_VARARGS,
|
136
|
-
CONDITIONAL_COALESCE_TIMESTAMPVALUE_VARARGS,
|
137
|
-
CONDITIONAL_IF_BOOL_BOOL_BOOL,
|
138
|
-
CONDITIONAL_IF_BOOL_DOUBLE_DOUBLE,
|
139
|
-
CONDITIONAL_IF_BOOL_LONG_LONG,
|
140
|
-
CONDITIONAL_IF_BOOL_STRINGVALUE_STRINGVALUE,
|
141
|
-
CONDITIONAL_IF_BOOL_TIMESTAMPVALUE_TIMESTAMPVALUE,
|
142
|
-
CONSTANT_REGEX,
|
143
|
-
CONSTANT_SUBSTRING,
|
144
|
-
DIVIDE,
|
145
|
-
EQ_BOOL_BOOL,
|
146
|
-
EQ_CHAR_CHAR,
|
147
|
-
EQ_DOUBLE_DOUBLE,
|
148
|
-
EQ_FLOAT_FLOAT,
|
149
|
-
EQ_INT_INT,
|
150
|
-
EQ_LONG_LONG,
|
151
|
-
EQ_SHORT_SHORT,
|
152
|
-
EQ_STRINGVALUE_STRINGVALUE,
|
153
|
-
EQ_TIMESTAMPVALUE_TIMESTAMPVALUE,
|
154
|
-
FROM_UNIXTIME_INT,
|
155
|
-
FROM_UNIXTIME_INT_STRINGVALUE,
|
156
|
-
FROM_UTC_TIMESTAMP,
|
157
|
-
GE_BOOL_BOOL,
|
158
|
-
GE_CHAR_CHAR,
|
159
|
-
GE_DOUBLE_DOUBLE,
|
160
|
-
GE_FLOAT_FLOAT,
|
161
|
-
GE_INT_INT,
|
162
|
-
GE_LONG_LONG,
|
163
|
-
GE_SHORT_SHORT,
|
164
|
-
GE_STRINGVALUE_STRINGVALUE,
|
165
|
-
GE_TIMESTAMPVALUE_TIMESTAMPVALUE,
|
166
|
-
GT_BOOL_BOOL,
|
167
|
-
GT_CHAR_CHAR,
|
168
|
-
GT_DOUBLE_DOUBLE,
|
169
|
-
GT_FLOAT_FLOAT,
|
170
|
-
GT_INT_INT,
|
171
|
-
GT_LONG_LONG,
|
172
|
-
GT_SHORT_SHORT,
|
173
|
-
GT_STRINGVALUE_STRINGVALUE,
|
174
|
-
GT_TIMESTAMPVALUE_TIMESTAMPVALUE,
|
175
|
-
INT_DIVIDE_CHAR_CHAR,
|
176
|
-
INT_DIVIDE_INT_INT,
|
177
|
-
INT_DIVIDE_LONG_LONG,
|
178
|
-
INT_DIVIDE_SHORT_SHORT,
|
179
|
-
LE_BOOL_BOOL,
|
180
|
-
LE_CHAR_CHAR,
|
181
|
-
LE_DOUBLE_DOUBLE,
|
182
|
-
LE_FLOAT_FLOAT,
|
183
|
-
LE_INT_INT,
|
184
|
-
LE_LONG_LONG,
|
185
|
-
LE_SHORT_SHORT,
|
186
|
-
LE_STRINGVALUE_STRINGVALUE,
|
187
|
-
LE_TIMESTAMPVALUE_TIMESTAMPVALUE,
|
188
|
-
LIKE,
|
189
|
-
LT_BOOL_BOOL,
|
190
|
-
LT_CHAR_CHAR,
|
191
|
-
LT_DOUBLE_DOUBLE,
|
192
|
-
LT_FLOAT_FLOAT,
|
193
|
-
LT_INT_INT,
|
194
|
-
LT_LONG_LONG,
|
195
|
-
LT_SHORT_SHORT,
|
196
|
-
LT_STRINGVALUE_STRINGVALUE,
|
197
|
-
LT_TIMESTAMPVALUE_TIMESTAMPVALUE,
|
198
|
-
MATH_ABS,
|
199
|
-
MATH_ACOS,
|
200
|
-
MATH_ASIN,
|
201
|
-
MATH_ATAN,
|
202
|
-
MATH_BIN,
|
203
|
-
MATH_CEIL,
|
204
|
-
MATH_CONV_LONG_CHAR_CHAR,
|
205
|
-
MATH_CONV_STRINGVALUE_CHAR_CHAR,
|
206
|
-
MATH_COS,
|
207
|
-
MATH_DEGREES,
|
208
|
-
MATH_E,
|
209
|
-
MATH_EXP,
|
210
|
-
MATH_FLOOR,
|
211
|
-
MATH_HEX_LONG,
|
212
|
-
MATH_HEX_STRINGVALUE,
|
213
|
-
MATH_LN,
|
214
|
-
MATH_LOG,
|
215
|
-
MATH_LOG10,
|
216
|
-
MATH_LOG2,
|
217
|
-
MATH_NEGATIVE_DOUBLE,
|
218
|
-
MATH_NEGATIVE_LONG,
|
219
|
-
MATH_PI,
|
220
|
-
MATH_PMOD_DOUBLE_DOUBLE,
|
221
|
-
MATH_PMOD_LONG_LONG,
|
222
|
-
MATH_POSITIVE_DOUBLE,
|
223
|
-
MATH_POSITIVE_LONG,
|
224
|
-
MATH_POW,
|
225
|
-
MATH_RADIANS,
|
226
|
-
MATH_RAND,
|
227
|
-
MATH_RAND_INT,
|
228
|
-
MATH_ROUND_DOUBLE,
|
229
|
-
MATH_ROUND_DOUBLE_INT,
|
230
|
-
MATH_SIGN,
|
231
|
-
MATH_SIN,
|
232
|
-
MATH_SQRT,
|
233
|
-
MATH_TAN,
|
234
|
-
MATH_UNHEX,
|
235
|
-
MOD_CHAR_CHAR,
|
236
|
-
MOD_INT_INT,
|
237
|
-
MOD_LONG_LONG,
|
238
|
-
MOD_SHORT_SHORT,
|
239
|
-
MULTIPLY_DOUBLE_DOUBLE,
|
240
|
-
MULTIPLY_LONG_LONG,
|
241
|
-
NE_BOOL_BOOL,
|
242
|
-
NE_CHAR_CHAR,
|
243
|
-
NE_DOUBLE_DOUBLE,
|
244
|
-
NE_FLOAT_FLOAT,
|
245
|
-
NE_INT_INT,
|
246
|
-
NE_LONG_LONG,
|
247
|
-
NE_SHORT_SHORT,
|
248
|
-
NE_STRINGVALUE_STRINGVALUE,
|
249
|
-
NE_TIMESTAMPVALUE_TIMESTAMPVALUE,
|
250
|
-
REGEX,
|
251
|
-
STRING_ASCII,
|
252
|
-
STRING_CONCAT,
|
253
|
-
STRING_CONCAT_WS,
|
254
|
-
STRING_FIND_IN_SET,
|
255
|
-
STRING_INSTR,
|
256
|
-
STRING_LEFT,
|
257
|
-
STRING_LENGTH,
|
258
|
-
STRING_LOCATE_STRINGVALUE_STRINGVALUE,
|
259
|
-
STRING_LOCATE_STRINGVALUE_STRINGVALUE_INT,
|
260
|
-
STRING_LOWER,
|
261
|
-
STRING_LPAD,
|
262
|
-
STRING_LTRIM,
|
263
|
-
STRING_PARSE_URL_STRINGVALUE_STRINGVALUE,
|
264
|
-
STRING_PARSE_URL_STRINGVALUE_STRINGVALUE_STRINGVALUE,
|
265
|
-
STRING_REGEXP_EXTRACT,
|
266
|
-
STRING_REGEXP_REPLACE,
|
267
|
-
STRING_REPEAT,
|
268
|
-
STRING_REVERSE,
|
269
|
-
STRING_RIGHT,
|
270
|
-
STRING_RPAD,
|
271
|
-
STRING_RTRIM,
|
272
|
-
STRING_SPACE,
|
273
|
-
STRING_SUBSTRING_STRINGVALUE_INT,
|
274
|
-
STRING_SUBSTRING_STRINGVALUE_INT_INT,
|
275
|
-
STRING_TRIM,
|
276
|
-
STRING_UPPER,
|
277
|
-
SUBTRACT_DOUBLE_DOUBLE,
|
278
|
-
SUBTRACT_LONG_LONG,
|
279
|
-
TIMESTAMP_DAY,
|
280
|
-
TIMESTAMP_DAYOFMONTH,
|
281
|
-
TIMESTAMP_DAYS_ADD,
|
282
|
-
TIMESTAMP_DAYS_SUB,
|
283
|
-
TIMESTAMP_DIFF,
|
284
|
-
TIMESTAMP_HOUR,
|
285
|
-
TIMESTAMP_HOURS_ADD,
|
286
|
-
TIMESTAMP_HOURS_SUB,
|
287
|
-
TIMESTAMP_MICROSECONDS_ADD,
|
288
|
-
TIMESTAMP_MICROSECONDS_SUB,
|
289
|
-
TIMESTAMP_MILLISECONDS_ADD,
|
290
|
-
TIMESTAMP_MILLISECONDS_SUB,
|
291
|
-
TIMESTAMP_MINUTE,
|
292
|
-
TIMESTAMP_MINUTES_ADD,
|
293
|
-
TIMESTAMP_MINUTES_SUB,
|
294
|
-
TIMESTAMP_MONTH,
|
295
|
-
TIMESTAMP_MONTHS_ADD,
|
296
|
-
TIMESTAMP_MONTHS_SUB,
|
297
|
-
TIMESTAMP_NANOSECONDS_ADD,
|
298
|
-
TIMESTAMP_NANOSECONDS_SUB,
|
299
|
-
TIMESTAMP_NOW,
|
300
|
-
TIMESTAMP_SECOND,
|
301
|
-
TIMESTAMP_SECONDS_ADD,
|
302
|
-
TIMESTAMP_SECONDS_SUB,
|
303
|
-
TIMESTAMP_TO_DATE,
|
304
|
-
TIMESTAMP_WEEKOFYEAR,
|
305
|
-
TIMESTAMP_WEEKS_ADD,
|
306
|
-
TIMESTAMP_WEEKS_SUB,
|
307
|
-
TIMESTAMP_YEAR,
|
308
|
-
TIMESTAMP_YEARS_ADD,
|
309
|
-
TIMESTAMP_YEARS_SUB,
|
310
|
-
TO_UTC_TIMESTAMP,
|
311
|
-
UNIX_TIMESTAMP,
|
312
|
-
UNIX_TIMESTAMP_STRINGVALUE_STRINGVALUE,
|
313
|
-
UNIX_TIMESTAMP_TIMESTAMPVALUE,
|
314
|
-
UTILITY_VERSION,
|
315
|
-
LAST_OPCODE,
|
316
|
-
}
|
317
|
-
|
data/thrift/Partitions.thrift
DELETED
@@ -1,41 +0,0 @@
|
|
1
|
-
// Copyright 2012 Cloudera Inc.
|
2
|
-
//
|
3
|
-
// Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
-
// you may not use this file except in compliance with the License.
|
5
|
-
// You may obtain a copy of the License at
|
6
|
-
//
|
7
|
-
// http://www.apache.org/licenses/LICENSE-2.0
|
8
|
-
//
|
9
|
-
// Unless required by applicable law or agreed to in writing, software
|
10
|
-
// distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
-
// See the License for the specific language governing permissions and
|
13
|
-
// limitations under the License.
|
14
|
-
|
15
|
-
namespace cpp impala
|
16
|
-
namespace java com.cloudera.impala.thrift
|
17
|
-
namespace rb Impala.Protocol
|
18
|
-
|
19
|
-
include "Exprs.thrift"
|
20
|
-
|
21
|
-
enum TPartitionType {
|
22
|
-
UNPARTITIONED,
|
23
|
-
|
24
|
-
// round-robin partitioning
|
25
|
-
RANDOM,
|
26
|
-
|
27
|
-
// unordered partitioning on a set of exprs
|
28
|
-
HASH_PARTITIONED,
|
29
|
-
|
30
|
-
// ordered partitioning on a list of exprs
|
31
|
-
RANGE_PARTITIONED
|
32
|
-
}
|
33
|
-
|
34
|
-
// Specification of how a single logical data stream is partitioned.
|
35
|
-
// This leaves out the parameters that determine the physical partitioning (for hash
|
36
|
-
// partitioning, the number of partitions; for range partitioning, the partitions'
|
37
|
-
// boundaries), which need to be specified by the enclosing structure/context.
|
38
|
-
struct TDataPartition {
|
39
|
-
1: required TPartitionType type
|
40
|
-
2: optional list<Exprs.TExpr> partitioning_exprs
|
41
|
-
}
|