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
@@ -0,0 +1,29 @@
|
|
1
|
+
#
|
2
|
+
# Autogenerated by Thrift Compiler (0.9.1)
|
3
|
+
#
|
4
|
+
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
5
|
+
#
|
6
|
+
|
7
|
+
require 'thrift'
|
8
|
+
require 't_c_l_i_service'
|
9
|
+
require 'impala_service_types'
|
10
|
+
|
11
|
+
module Impala
|
12
|
+
module Protocol
|
13
|
+
module ImpalaHiveServer2Service
|
14
|
+
class Client < ::Impala::Protocol::Hive::TCLIService::Client
|
15
|
+
include ::Thrift::Client
|
16
|
+
|
17
|
+
end
|
18
|
+
|
19
|
+
class Processor < ::Impala::Protocol::Hive::TCLIService::Processor
|
20
|
+
include ::Thrift::Processor
|
21
|
+
|
22
|
+
end
|
23
|
+
|
24
|
+
# HELPER FUNCTIONS AND STRUCTURES
|
25
|
+
|
26
|
+
end
|
27
|
+
|
28
|
+
end
|
29
|
+
end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
#
|
2
|
-
# Autogenerated by Thrift Compiler (0.
|
2
|
+
# Autogenerated by Thrift Compiler (0.9.1)
|
3
3
|
#
|
4
4
|
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
5
5
|
#
|
@@ -11,7 +11,7 @@ require 'impala_service_types'
|
|
11
11
|
module Impala
|
12
12
|
module Protocol
|
13
13
|
module ImpalaService
|
14
|
-
class Client < Impala::Protocol::Beeswax::BeeswaxService::Client
|
14
|
+
class Client < ::Impala::Protocol::Beeswax::BeeswaxService::Client
|
15
15
|
include ::Thrift::Client
|
16
16
|
|
17
17
|
def Cancel(query_id)
|
@@ -45,6 +45,37 @@ module Impala
|
|
45
45
|
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'ResetCatalog failed: unknown result')
|
46
46
|
end
|
47
47
|
|
48
|
+
def ResetTable(request)
|
49
|
+
send_ResetTable(request)
|
50
|
+
return recv_ResetTable()
|
51
|
+
end
|
52
|
+
|
53
|
+
def send_ResetTable(request)
|
54
|
+
send_message('ResetTable', ResetTable_args, :request => request)
|
55
|
+
end
|
56
|
+
|
57
|
+
def recv_ResetTable()
|
58
|
+
result = receive_message(ResetTable_result)
|
59
|
+
return result.success unless result.success.nil?
|
60
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'ResetTable failed: unknown result')
|
61
|
+
end
|
62
|
+
|
63
|
+
def GetRuntimeProfile(query_id)
|
64
|
+
send_GetRuntimeProfile(query_id)
|
65
|
+
return recv_GetRuntimeProfile()
|
66
|
+
end
|
67
|
+
|
68
|
+
def send_GetRuntimeProfile(query_id)
|
69
|
+
send_message('GetRuntimeProfile', GetRuntimeProfile_args, :query_id => query_id)
|
70
|
+
end
|
71
|
+
|
72
|
+
def recv_GetRuntimeProfile()
|
73
|
+
result = receive_message(GetRuntimeProfile_result)
|
74
|
+
return result.success unless result.success.nil?
|
75
|
+
raise result.error unless result.error.nil?
|
76
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'GetRuntimeProfile failed: unknown result')
|
77
|
+
end
|
78
|
+
|
48
79
|
def CloseInsert(handle)
|
49
80
|
send_CloseInsert(handle)
|
50
81
|
return recv_CloseInsert()
|
@@ -64,7 +95,7 @@ module Impala
|
|
64
95
|
|
65
96
|
def PingImpalaService()
|
66
97
|
send_PingImpalaService()
|
67
|
-
recv_PingImpalaService()
|
98
|
+
return recv_PingImpalaService()
|
68
99
|
end
|
69
100
|
|
70
101
|
def send_PingImpalaService()
|
@@ -73,12 +104,13 @@ module Impala
|
|
73
104
|
|
74
105
|
def recv_PingImpalaService()
|
75
106
|
result = receive_message(PingImpalaService_result)
|
76
|
-
return
|
107
|
+
return result.success unless result.success.nil?
|
108
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'PingImpalaService failed: unknown result')
|
77
109
|
end
|
78
110
|
|
79
111
|
end
|
80
112
|
|
81
|
-
class Processor < Impala::Protocol::Beeswax::BeeswaxService::Processor
|
113
|
+
class Processor < ::Impala::Protocol::Beeswax::BeeswaxService::Processor
|
82
114
|
include ::Thrift::Processor
|
83
115
|
|
84
116
|
def process_Cancel(seqid, iprot, oprot)
|
@@ -86,7 +118,7 @@ module Impala
|
|
86
118
|
result = Cancel_result.new()
|
87
119
|
begin
|
88
120
|
result.success = @handler.Cancel(args.query_id)
|
89
|
-
rescue Impala::Protocol::Beeswax::BeeswaxException => error
|
121
|
+
rescue ::Impala::Protocol::Beeswax::BeeswaxException => error
|
90
122
|
result.error = error
|
91
123
|
end
|
92
124
|
write_result(result, oprot, 'Cancel', seqid)
|
@@ -99,14 +131,32 @@ module Impala
|
|
99
131
|
write_result(result, oprot, 'ResetCatalog', seqid)
|
100
132
|
end
|
101
133
|
|
134
|
+
def process_ResetTable(seqid, iprot, oprot)
|
135
|
+
args = read_args(iprot, ResetTable_args)
|
136
|
+
result = ResetTable_result.new()
|
137
|
+
result.success = @handler.ResetTable(args.request)
|
138
|
+
write_result(result, oprot, 'ResetTable', seqid)
|
139
|
+
end
|
140
|
+
|
141
|
+
def process_GetRuntimeProfile(seqid, iprot, oprot)
|
142
|
+
args = read_args(iprot, GetRuntimeProfile_args)
|
143
|
+
result = GetRuntimeProfile_result.new()
|
144
|
+
begin
|
145
|
+
result.success = @handler.GetRuntimeProfile(args.query_id)
|
146
|
+
rescue ::Impala::Protocol::Beeswax::BeeswaxException => error
|
147
|
+
result.error = error
|
148
|
+
end
|
149
|
+
write_result(result, oprot, 'GetRuntimeProfile', seqid)
|
150
|
+
end
|
151
|
+
|
102
152
|
def process_CloseInsert(seqid, iprot, oprot)
|
103
153
|
args = read_args(iprot, CloseInsert_args)
|
104
154
|
result = CloseInsert_result.new()
|
105
155
|
begin
|
106
156
|
result.success = @handler.CloseInsert(args.handle)
|
107
|
-
rescue Impala::Protocol::Beeswax::QueryNotFoundException => error
|
157
|
+
rescue ::Impala::Protocol::Beeswax::QueryNotFoundException => error
|
108
158
|
result.error = error
|
109
|
-
rescue Impala::Protocol::Beeswax::BeeswaxException => error2
|
159
|
+
rescue ::Impala::Protocol::Beeswax::BeeswaxException => error2
|
110
160
|
result.error2 = error2
|
111
161
|
end
|
112
162
|
write_result(result, oprot, 'CloseInsert', seqid)
|
@@ -115,7 +165,7 @@ module Impala
|
|
115
165
|
def process_PingImpalaService(seqid, iprot, oprot)
|
116
166
|
args = read_args(iprot, PingImpalaService_args)
|
117
167
|
result = PingImpalaService_result.new()
|
118
|
-
@handler.PingImpalaService()
|
168
|
+
result.success = @handler.PingImpalaService()
|
119
169
|
write_result(result, oprot, 'PingImpalaService', seqid)
|
120
170
|
end
|
121
171
|
|
@@ -128,7 +178,7 @@ module Impala
|
|
128
178
|
QUERY_ID = 1
|
129
179
|
|
130
180
|
FIELDS = {
|
131
|
-
|
181
|
+
QUERY_ID => {:type => ::Thrift::Types::STRUCT, :name => 'query_id', :class => ::Impala::Protocol::Beeswax::QueryHandle}
|
132
182
|
}
|
133
183
|
|
134
184
|
def struct_fields; FIELDS; end
|
@@ -145,8 +195,8 @@ module Impala
|
|
145
195
|
ERROR = 1
|
146
196
|
|
147
197
|
FIELDS = {
|
148
|
-
|
149
|
-
|
198
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Impala::Protocol::TStatus},
|
199
|
+
ERROR => {:type => ::Thrift::Types::STRUCT, :name => 'error', :class => ::Impala::Protocol::Beeswax::BeeswaxException}
|
150
200
|
}
|
151
201
|
|
152
202
|
def struct_fields; FIELDS; end
|
@@ -177,7 +227,73 @@ module Impala
|
|
177
227
|
SUCCESS = 0
|
178
228
|
|
179
229
|
FIELDS = {
|
180
|
-
|
230
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Impala::Protocol::TStatus}
|
231
|
+
}
|
232
|
+
|
233
|
+
def struct_fields; FIELDS; end
|
234
|
+
|
235
|
+
def validate
|
236
|
+
end
|
237
|
+
|
238
|
+
::Thrift::Struct.generate_accessors self
|
239
|
+
end
|
240
|
+
|
241
|
+
class ResetTable_args
|
242
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
243
|
+
REQUEST = 1
|
244
|
+
|
245
|
+
FIELDS = {
|
246
|
+
REQUEST => {:type => ::Thrift::Types::STRUCT, :name => 'request', :class => ::Impala::Protocol::TResetTableReq}
|
247
|
+
}
|
248
|
+
|
249
|
+
def struct_fields; FIELDS; end
|
250
|
+
|
251
|
+
def validate
|
252
|
+
end
|
253
|
+
|
254
|
+
::Thrift::Struct.generate_accessors self
|
255
|
+
end
|
256
|
+
|
257
|
+
class ResetTable_result
|
258
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
259
|
+
SUCCESS = 0
|
260
|
+
|
261
|
+
FIELDS = {
|
262
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Impala::Protocol::TStatus}
|
263
|
+
}
|
264
|
+
|
265
|
+
def struct_fields; FIELDS; end
|
266
|
+
|
267
|
+
def validate
|
268
|
+
end
|
269
|
+
|
270
|
+
::Thrift::Struct.generate_accessors self
|
271
|
+
end
|
272
|
+
|
273
|
+
class GetRuntimeProfile_args
|
274
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
275
|
+
QUERY_ID = 1
|
276
|
+
|
277
|
+
FIELDS = {
|
278
|
+
QUERY_ID => {:type => ::Thrift::Types::STRUCT, :name => 'query_id', :class => ::Impala::Protocol::Beeswax::QueryHandle}
|
279
|
+
}
|
280
|
+
|
281
|
+
def struct_fields; FIELDS; end
|
282
|
+
|
283
|
+
def validate
|
284
|
+
end
|
285
|
+
|
286
|
+
::Thrift::Struct.generate_accessors self
|
287
|
+
end
|
288
|
+
|
289
|
+
class GetRuntimeProfile_result
|
290
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
291
|
+
SUCCESS = 0
|
292
|
+
ERROR = 1
|
293
|
+
|
294
|
+
FIELDS = {
|
295
|
+
SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'},
|
296
|
+
ERROR => {:type => ::Thrift::Types::STRUCT, :name => 'error', :class => ::Impala::Protocol::Beeswax::BeeswaxException}
|
181
297
|
}
|
182
298
|
|
183
299
|
def struct_fields; FIELDS; end
|
@@ -193,7 +309,7 @@ module Impala
|
|
193
309
|
HANDLE = 1
|
194
310
|
|
195
311
|
FIELDS = {
|
196
|
-
|
312
|
+
HANDLE => {:type => ::Thrift::Types::STRUCT, :name => 'handle', :class => ::Impala::Protocol::Beeswax::QueryHandle}
|
197
313
|
}
|
198
314
|
|
199
315
|
def struct_fields; FIELDS; end
|
@@ -211,9 +327,9 @@ module Impala
|
|
211
327
|
ERROR2 = 2
|
212
328
|
|
213
329
|
FIELDS = {
|
214
|
-
|
215
|
-
|
216
|
-
|
330
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Impala::Protocol::TInsertResult},
|
331
|
+
ERROR => {:type => ::Thrift::Types::STRUCT, :name => 'error', :class => ::Impala::Protocol::Beeswax::QueryNotFoundException},
|
332
|
+
ERROR2 => {:type => ::Thrift::Types::STRUCT, :name => 'error2', :class => ::Impala::Protocol::Beeswax::BeeswaxException}
|
217
333
|
}
|
218
334
|
|
219
335
|
def struct_fields; FIELDS; end
|
@@ -241,9 +357,10 @@ module Impala
|
|
241
357
|
|
242
358
|
class PingImpalaService_result
|
243
359
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
360
|
+
SUCCESS = 0
|
244
361
|
|
245
362
|
FIELDS = {
|
246
|
-
|
363
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Impala::Protocol::TPingImpalaServiceResp}
|
247
364
|
}
|
248
365
|
|
249
366
|
def struct_fields; FIELDS; end
|
@@ -1,11 +1,13 @@
|
|
1
1
|
#
|
2
|
-
# Autogenerated by Thrift Compiler (0.
|
2
|
+
# Autogenerated by Thrift Compiler (0.9.1)
|
3
3
|
#
|
4
4
|
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
5
5
|
#
|
6
6
|
|
7
|
+
require 'thrift'
|
7
8
|
require 'status_types'
|
8
9
|
require 'beeswax_types'
|
10
|
+
require 'cli_service_types'
|
9
11
|
|
10
12
|
|
11
13
|
module Impala
|
@@ -15,14 +17,20 @@ module Impala
|
|
15
17
|
MAX_ERRORS = 1
|
16
18
|
DISABLE_CODEGEN = 2
|
17
19
|
BATCH_SIZE = 3
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
20
|
+
MEM_LIMIT = 4
|
21
|
+
NUM_NODES = 5
|
22
|
+
MAX_SCAN_RANGE_LENGTH = 6
|
23
|
+
MAX_IO_BUFFERS = 7
|
24
|
+
NUM_SCANNER_THREADS = 8
|
25
|
+
ALLOW_UNSUPPORTED_FORMATS = 9
|
26
|
+
DEFAULT_ORDER_BY_LIMIT = 10
|
27
|
+
DEBUG_ACTION = 11
|
28
|
+
ABORT_ON_DEFAULT_LIMIT_EXCEEDED = 12
|
29
|
+
PARQUET_COMPRESSION_CODEC = 13
|
30
|
+
HBASE_CACHING = 14
|
31
|
+
HBASE_CACHE_BLOCKS = 15
|
32
|
+
VALUE_MAP = {0 => "ABORT_ON_ERROR", 1 => "MAX_ERRORS", 2 => "DISABLE_CODEGEN", 3 => "BATCH_SIZE", 4 => "MEM_LIMIT", 5 => "NUM_NODES", 6 => "MAX_SCAN_RANGE_LENGTH", 7 => "MAX_IO_BUFFERS", 8 => "NUM_SCANNER_THREADS", 9 => "ALLOW_UNSUPPORTED_FORMATS", 10 => "DEFAULT_ORDER_BY_LIMIT", 11 => "DEBUG_ACTION", 12 => "ABORT_ON_DEFAULT_LIMIT_EXCEEDED", 13 => "PARQUET_COMPRESSION_CODEC", 14 => "HBASE_CACHING", 15 => "HBASE_CACHE_BLOCKS"}
|
33
|
+
VALID_VALUES = Set.new([ABORT_ON_ERROR, MAX_ERRORS, DISABLE_CODEGEN, BATCH_SIZE, MEM_LIMIT, NUM_NODES, MAX_SCAN_RANGE_LENGTH, MAX_IO_BUFFERS, NUM_SCANNER_THREADS, ALLOW_UNSUPPORTED_FORMATS, DEFAULT_ORDER_BY_LIMIT, DEBUG_ACTION, ABORT_ON_DEFAULT_LIMIT_EXCEEDED, PARQUET_COMPRESSION_CODEC, HBASE_CACHING, HBASE_CACHE_BLOCKS]).freeze
|
26
34
|
end
|
27
35
|
|
28
36
|
class TInsertResult
|
@@ -30,7 +38,7 @@ module Impala
|
|
30
38
|
ROWS_APPENDED = 1
|
31
39
|
|
32
40
|
FIELDS = {
|
33
|
-
|
41
|
+
ROWS_APPENDED => {:type => ::Thrift::Types::MAP, :name => 'rows_appended', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::I64}}
|
34
42
|
}
|
35
43
|
|
36
44
|
def struct_fields; FIELDS; end
|
@@ -42,5 +50,41 @@ module Impala
|
|
42
50
|
::Thrift::Struct.generate_accessors self
|
43
51
|
end
|
44
52
|
|
53
|
+
class TPingImpalaServiceResp
|
54
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
55
|
+
VERSION = 1
|
56
|
+
|
57
|
+
FIELDS = {
|
58
|
+
VERSION => {:type => ::Thrift::Types::STRING, :name => 'version'}
|
59
|
+
}
|
60
|
+
|
61
|
+
def struct_fields; FIELDS; end
|
62
|
+
|
63
|
+
def validate
|
64
|
+
end
|
65
|
+
|
66
|
+
::Thrift::Struct.generate_accessors self
|
67
|
+
end
|
68
|
+
|
69
|
+
class TResetTableReq
|
70
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
71
|
+
DB_NAME = 1
|
72
|
+
TABLE_NAME = 2
|
73
|
+
|
74
|
+
FIELDS = {
|
75
|
+
DB_NAME => {:type => ::Thrift::Types::STRING, :name => 'db_name'},
|
76
|
+
TABLE_NAME => {:type => ::Thrift::Types::STRING, :name => 'table_name'}
|
77
|
+
}
|
78
|
+
|
79
|
+
def struct_fields; FIELDS; end
|
80
|
+
|
81
|
+
def validate
|
82
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field db_name is unset!') unless @db_name
|
83
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field table_name is unset!') unless @table_name
|
84
|
+
end
|
85
|
+
|
86
|
+
::Thrift::Struct.generate_accessors self
|
87
|
+
end
|
88
|
+
|
45
89
|
end
|
46
90
|
end
|
@@ -1,9 +1,10 @@
|
|
1
1
|
#
|
2
|
-
# Autogenerated by Thrift Compiler (0.
|
2
|
+
# Autogenerated by Thrift Compiler (0.9.1)
|
3
3
|
#
|
4
4
|
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
5
5
|
#
|
6
6
|
|
7
|
+
require 'thrift'
|
7
8
|
|
8
9
|
module Impala
|
9
10
|
module Protocol
|
@@ -13,9 +14,10 @@ module Impala
|
|
13
14
|
ANALYSIS_ERROR = 2
|
14
15
|
NOT_IMPLEMENTED_ERROR = 3
|
15
16
|
RUNTIME_ERROR = 4
|
16
|
-
|
17
|
-
|
18
|
-
|
17
|
+
MEM_LIMIT_EXCEEDED = 5
|
18
|
+
INTERNAL_ERROR = 6
|
19
|
+
VALUE_MAP = {0 => "OK", 1 => "CANCELLED", 2 => "ANALYSIS_ERROR", 3 => "NOT_IMPLEMENTED_ERROR", 4 => "RUNTIME_ERROR", 5 => "MEM_LIMIT_EXCEEDED", 6 => "INTERNAL_ERROR"}
|
20
|
+
VALID_VALUES = Set.new([OK, CANCELLED, ANALYSIS_ERROR, NOT_IMPLEMENTED_ERROR, RUNTIME_ERROR, MEM_LIMIT_EXCEEDED, INTERNAL_ERROR]).freeze
|
19
21
|
end
|
20
22
|
|
21
23
|
class TStatus
|
@@ -24,15 +26,15 @@ module Impala
|
|
24
26
|
ERROR_MSGS = 2
|
25
27
|
|
26
28
|
FIELDS = {
|
27
|
-
|
28
|
-
|
29
|
+
STATUS_CODE => {:type => ::Thrift::Types::I32, :name => 'status_code', :enum_class => ::Impala::Protocol::TStatusCode},
|
30
|
+
ERROR_MSGS => {:type => ::Thrift::Types::LIST, :name => 'error_msgs', :element => {:type => ::Thrift::Types::STRING}}
|
29
31
|
}
|
30
32
|
|
31
33
|
def struct_fields; FIELDS; end
|
32
34
|
|
33
35
|
def validate
|
34
36
|
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field status_code is unset!') unless @status_code
|
35
|
-
unless @status_code.nil? || Impala::Protocol::TStatusCode::VALID_VALUES.include?(@status_code)
|
37
|
+
unless @status_code.nil? || ::Impala::Protocol::TStatusCode::VALID_VALUES.include?(@status_code)
|
36
38
|
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field status_code!')
|
37
39
|
end
|
38
40
|
end
|
@@ -0,0 +1,948 @@
|
|
1
|
+
#
|
2
|
+
# Autogenerated by Thrift Compiler (0.9.1)
|
3
|
+
#
|
4
|
+
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
5
|
+
#
|
6
|
+
|
7
|
+
require 'thrift'
|
8
|
+
require 'cli_service_types'
|
9
|
+
|
10
|
+
module Impala
|
11
|
+
module Protocol
|
12
|
+
module Hive
|
13
|
+
module TCLIService
|
14
|
+
class Client
|
15
|
+
include ::Thrift::Client
|
16
|
+
|
17
|
+
def OpenSession(req)
|
18
|
+
send_OpenSession(req)
|
19
|
+
return recv_OpenSession()
|
20
|
+
end
|
21
|
+
|
22
|
+
def send_OpenSession(req)
|
23
|
+
send_message('OpenSession', OpenSession_args, :req => req)
|
24
|
+
end
|
25
|
+
|
26
|
+
def recv_OpenSession()
|
27
|
+
result = receive_message(OpenSession_result)
|
28
|
+
return result.success unless result.success.nil?
|
29
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'OpenSession failed: unknown result')
|
30
|
+
end
|
31
|
+
|
32
|
+
def CloseSession(req)
|
33
|
+
send_CloseSession(req)
|
34
|
+
return recv_CloseSession()
|
35
|
+
end
|
36
|
+
|
37
|
+
def send_CloseSession(req)
|
38
|
+
send_message('CloseSession', CloseSession_args, :req => req)
|
39
|
+
end
|
40
|
+
|
41
|
+
def recv_CloseSession()
|
42
|
+
result = receive_message(CloseSession_result)
|
43
|
+
return result.success unless result.success.nil?
|
44
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'CloseSession failed: unknown result')
|
45
|
+
end
|
46
|
+
|
47
|
+
def GetInfo(req)
|
48
|
+
send_GetInfo(req)
|
49
|
+
return recv_GetInfo()
|
50
|
+
end
|
51
|
+
|
52
|
+
def send_GetInfo(req)
|
53
|
+
send_message('GetInfo', GetInfo_args, :req => req)
|
54
|
+
end
|
55
|
+
|
56
|
+
def recv_GetInfo()
|
57
|
+
result = receive_message(GetInfo_result)
|
58
|
+
return result.success unless result.success.nil?
|
59
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'GetInfo failed: unknown result')
|
60
|
+
end
|
61
|
+
|
62
|
+
def ExecuteStatement(req)
|
63
|
+
send_ExecuteStatement(req)
|
64
|
+
return recv_ExecuteStatement()
|
65
|
+
end
|
66
|
+
|
67
|
+
def send_ExecuteStatement(req)
|
68
|
+
send_message('ExecuteStatement', ExecuteStatement_args, :req => req)
|
69
|
+
end
|
70
|
+
|
71
|
+
def recv_ExecuteStatement()
|
72
|
+
result = receive_message(ExecuteStatement_result)
|
73
|
+
return result.success unless result.success.nil?
|
74
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'ExecuteStatement failed: unknown result')
|
75
|
+
end
|
76
|
+
|
77
|
+
def GetTypeInfo(req)
|
78
|
+
send_GetTypeInfo(req)
|
79
|
+
return recv_GetTypeInfo()
|
80
|
+
end
|
81
|
+
|
82
|
+
def send_GetTypeInfo(req)
|
83
|
+
send_message('GetTypeInfo', GetTypeInfo_args, :req => req)
|
84
|
+
end
|
85
|
+
|
86
|
+
def recv_GetTypeInfo()
|
87
|
+
result = receive_message(GetTypeInfo_result)
|
88
|
+
return result.success unless result.success.nil?
|
89
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'GetTypeInfo failed: unknown result')
|
90
|
+
end
|
91
|
+
|
92
|
+
def GetCatalogs(req)
|
93
|
+
send_GetCatalogs(req)
|
94
|
+
return recv_GetCatalogs()
|
95
|
+
end
|
96
|
+
|
97
|
+
def send_GetCatalogs(req)
|
98
|
+
send_message('GetCatalogs', GetCatalogs_args, :req => req)
|
99
|
+
end
|
100
|
+
|
101
|
+
def recv_GetCatalogs()
|
102
|
+
result = receive_message(GetCatalogs_result)
|
103
|
+
return result.success unless result.success.nil?
|
104
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'GetCatalogs failed: unknown result')
|
105
|
+
end
|
106
|
+
|
107
|
+
def GetSchemas(req)
|
108
|
+
send_GetSchemas(req)
|
109
|
+
return recv_GetSchemas()
|
110
|
+
end
|
111
|
+
|
112
|
+
def send_GetSchemas(req)
|
113
|
+
send_message('GetSchemas', GetSchemas_args, :req => req)
|
114
|
+
end
|
115
|
+
|
116
|
+
def recv_GetSchemas()
|
117
|
+
result = receive_message(GetSchemas_result)
|
118
|
+
return result.success unless result.success.nil?
|
119
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'GetSchemas failed: unknown result')
|
120
|
+
end
|
121
|
+
|
122
|
+
def GetTables(req)
|
123
|
+
send_GetTables(req)
|
124
|
+
return recv_GetTables()
|
125
|
+
end
|
126
|
+
|
127
|
+
def send_GetTables(req)
|
128
|
+
send_message('GetTables', GetTables_args, :req => req)
|
129
|
+
end
|
130
|
+
|
131
|
+
def recv_GetTables()
|
132
|
+
result = receive_message(GetTables_result)
|
133
|
+
return result.success unless result.success.nil?
|
134
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'GetTables failed: unknown result')
|
135
|
+
end
|
136
|
+
|
137
|
+
def GetTableTypes(req)
|
138
|
+
send_GetTableTypes(req)
|
139
|
+
return recv_GetTableTypes()
|
140
|
+
end
|
141
|
+
|
142
|
+
def send_GetTableTypes(req)
|
143
|
+
send_message('GetTableTypes', GetTableTypes_args, :req => req)
|
144
|
+
end
|
145
|
+
|
146
|
+
def recv_GetTableTypes()
|
147
|
+
result = receive_message(GetTableTypes_result)
|
148
|
+
return result.success unless result.success.nil?
|
149
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'GetTableTypes failed: unknown result')
|
150
|
+
end
|
151
|
+
|
152
|
+
def GetColumns(req)
|
153
|
+
send_GetColumns(req)
|
154
|
+
return recv_GetColumns()
|
155
|
+
end
|
156
|
+
|
157
|
+
def send_GetColumns(req)
|
158
|
+
send_message('GetColumns', GetColumns_args, :req => req)
|
159
|
+
end
|
160
|
+
|
161
|
+
def recv_GetColumns()
|
162
|
+
result = receive_message(GetColumns_result)
|
163
|
+
return result.success unless result.success.nil?
|
164
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'GetColumns failed: unknown result')
|
165
|
+
end
|
166
|
+
|
167
|
+
def GetFunctions(req)
|
168
|
+
send_GetFunctions(req)
|
169
|
+
return recv_GetFunctions()
|
170
|
+
end
|
171
|
+
|
172
|
+
def send_GetFunctions(req)
|
173
|
+
send_message('GetFunctions', GetFunctions_args, :req => req)
|
174
|
+
end
|
175
|
+
|
176
|
+
def recv_GetFunctions()
|
177
|
+
result = receive_message(GetFunctions_result)
|
178
|
+
return result.success unless result.success.nil?
|
179
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'GetFunctions failed: unknown result')
|
180
|
+
end
|
181
|
+
|
182
|
+
def GetOperationStatus(req)
|
183
|
+
send_GetOperationStatus(req)
|
184
|
+
return recv_GetOperationStatus()
|
185
|
+
end
|
186
|
+
|
187
|
+
def send_GetOperationStatus(req)
|
188
|
+
send_message('GetOperationStatus', GetOperationStatus_args, :req => req)
|
189
|
+
end
|
190
|
+
|
191
|
+
def recv_GetOperationStatus()
|
192
|
+
result = receive_message(GetOperationStatus_result)
|
193
|
+
return result.success unless result.success.nil?
|
194
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'GetOperationStatus failed: unknown result')
|
195
|
+
end
|
196
|
+
|
197
|
+
def CancelOperation(req)
|
198
|
+
send_CancelOperation(req)
|
199
|
+
return recv_CancelOperation()
|
200
|
+
end
|
201
|
+
|
202
|
+
def send_CancelOperation(req)
|
203
|
+
send_message('CancelOperation', CancelOperation_args, :req => req)
|
204
|
+
end
|
205
|
+
|
206
|
+
def recv_CancelOperation()
|
207
|
+
result = receive_message(CancelOperation_result)
|
208
|
+
return result.success unless result.success.nil?
|
209
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'CancelOperation failed: unknown result')
|
210
|
+
end
|
211
|
+
|
212
|
+
def CloseOperation(req)
|
213
|
+
send_CloseOperation(req)
|
214
|
+
return recv_CloseOperation()
|
215
|
+
end
|
216
|
+
|
217
|
+
def send_CloseOperation(req)
|
218
|
+
send_message('CloseOperation', CloseOperation_args, :req => req)
|
219
|
+
end
|
220
|
+
|
221
|
+
def recv_CloseOperation()
|
222
|
+
result = receive_message(CloseOperation_result)
|
223
|
+
return result.success unless result.success.nil?
|
224
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'CloseOperation failed: unknown result')
|
225
|
+
end
|
226
|
+
|
227
|
+
def GetResultSetMetadata(req)
|
228
|
+
send_GetResultSetMetadata(req)
|
229
|
+
return recv_GetResultSetMetadata()
|
230
|
+
end
|
231
|
+
|
232
|
+
def send_GetResultSetMetadata(req)
|
233
|
+
send_message('GetResultSetMetadata', GetResultSetMetadata_args, :req => req)
|
234
|
+
end
|
235
|
+
|
236
|
+
def recv_GetResultSetMetadata()
|
237
|
+
result = receive_message(GetResultSetMetadata_result)
|
238
|
+
return result.success unless result.success.nil?
|
239
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'GetResultSetMetadata failed: unknown result')
|
240
|
+
end
|
241
|
+
|
242
|
+
def FetchResults(req)
|
243
|
+
send_FetchResults(req)
|
244
|
+
return recv_FetchResults()
|
245
|
+
end
|
246
|
+
|
247
|
+
def send_FetchResults(req)
|
248
|
+
send_message('FetchResults', FetchResults_args, :req => req)
|
249
|
+
end
|
250
|
+
|
251
|
+
def recv_FetchResults()
|
252
|
+
result = receive_message(FetchResults_result)
|
253
|
+
return result.success unless result.success.nil?
|
254
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'FetchResults failed: unknown result')
|
255
|
+
end
|
256
|
+
|
257
|
+
def GetLog(req)
|
258
|
+
send_GetLog(req)
|
259
|
+
return recv_GetLog()
|
260
|
+
end
|
261
|
+
|
262
|
+
def send_GetLog(req)
|
263
|
+
send_message('GetLog', GetLog_args, :req => req)
|
264
|
+
end
|
265
|
+
|
266
|
+
def recv_GetLog()
|
267
|
+
result = receive_message(GetLog_result)
|
268
|
+
return result.success unless result.success.nil?
|
269
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'GetLog failed: unknown result')
|
270
|
+
end
|
271
|
+
|
272
|
+
end
|
273
|
+
|
274
|
+
class Processor
|
275
|
+
include ::Thrift::Processor
|
276
|
+
|
277
|
+
def process_OpenSession(seqid, iprot, oprot)
|
278
|
+
args = read_args(iprot, OpenSession_args)
|
279
|
+
result = OpenSession_result.new()
|
280
|
+
result.success = @handler.OpenSession(args.req)
|
281
|
+
write_result(result, oprot, 'OpenSession', seqid)
|
282
|
+
end
|
283
|
+
|
284
|
+
def process_CloseSession(seqid, iprot, oprot)
|
285
|
+
args = read_args(iprot, CloseSession_args)
|
286
|
+
result = CloseSession_result.new()
|
287
|
+
result.success = @handler.CloseSession(args.req)
|
288
|
+
write_result(result, oprot, 'CloseSession', seqid)
|
289
|
+
end
|
290
|
+
|
291
|
+
def process_GetInfo(seqid, iprot, oprot)
|
292
|
+
args = read_args(iprot, GetInfo_args)
|
293
|
+
result = GetInfo_result.new()
|
294
|
+
result.success = @handler.GetInfo(args.req)
|
295
|
+
write_result(result, oprot, 'GetInfo', seqid)
|
296
|
+
end
|
297
|
+
|
298
|
+
def process_ExecuteStatement(seqid, iprot, oprot)
|
299
|
+
args = read_args(iprot, ExecuteStatement_args)
|
300
|
+
result = ExecuteStatement_result.new()
|
301
|
+
result.success = @handler.ExecuteStatement(args.req)
|
302
|
+
write_result(result, oprot, 'ExecuteStatement', seqid)
|
303
|
+
end
|
304
|
+
|
305
|
+
def process_GetTypeInfo(seqid, iprot, oprot)
|
306
|
+
args = read_args(iprot, GetTypeInfo_args)
|
307
|
+
result = GetTypeInfo_result.new()
|
308
|
+
result.success = @handler.GetTypeInfo(args.req)
|
309
|
+
write_result(result, oprot, 'GetTypeInfo', seqid)
|
310
|
+
end
|
311
|
+
|
312
|
+
def process_GetCatalogs(seqid, iprot, oprot)
|
313
|
+
args = read_args(iprot, GetCatalogs_args)
|
314
|
+
result = GetCatalogs_result.new()
|
315
|
+
result.success = @handler.GetCatalogs(args.req)
|
316
|
+
write_result(result, oprot, 'GetCatalogs', seqid)
|
317
|
+
end
|
318
|
+
|
319
|
+
def process_GetSchemas(seqid, iprot, oprot)
|
320
|
+
args = read_args(iprot, GetSchemas_args)
|
321
|
+
result = GetSchemas_result.new()
|
322
|
+
result.success = @handler.GetSchemas(args.req)
|
323
|
+
write_result(result, oprot, 'GetSchemas', seqid)
|
324
|
+
end
|
325
|
+
|
326
|
+
def process_GetTables(seqid, iprot, oprot)
|
327
|
+
args = read_args(iprot, GetTables_args)
|
328
|
+
result = GetTables_result.new()
|
329
|
+
result.success = @handler.GetTables(args.req)
|
330
|
+
write_result(result, oprot, 'GetTables', seqid)
|
331
|
+
end
|
332
|
+
|
333
|
+
def process_GetTableTypes(seqid, iprot, oprot)
|
334
|
+
args = read_args(iprot, GetTableTypes_args)
|
335
|
+
result = GetTableTypes_result.new()
|
336
|
+
result.success = @handler.GetTableTypes(args.req)
|
337
|
+
write_result(result, oprot, 'GetTableTypes', seqid)
|
338
|
+
end
|
339
|
+
|
340
|
+
def process_GetColumns(seqid, iprot, oprot)
|
341
|
+
args = read_args(iprot, GetColumns_args)
|
342
|
+
result = GetColumns_result.new()
|
343
|
+
result.success = @handler.GetColumns(args.req)
|
344
|
+
write_result(result, oprot, 'GetColumns', seqid)
|
345
|
+
end
|
346
|
+
|
347
|
+
def process_GetFunctions(seqid, iprot, oprot)
|
348
|
+
args = read_args(iprot, GetFunctions_args)
|
349
|
+
result = GetFunctions_result.new()
|
350
|
+
result.success = @handler.GetFunctions(args.req)
|
351
|
+
write_result(result, oprot, 'GetFunctions', seqid)
|
352
|
+
end
|
353
|
+
|
354
|
+
def process_GetOperationStatus(seqid, iprot, oprot)
|
355
|
+
args = read_args(iprot, GetOperationStatus_args)
|
356
|
+
result = GetOperationStatus_result.new()
|
357
|
+
result.success = @handler.GetOperationStatus(args.req)
|
358
|
+
write_result(result, oprot, 'GetOperationStatus', seqid)
|
359
|
+
end
|
360
|
+
|
361
|
+
def process_CancelOperation(seqid, iprot, oprot)
|
362
|
+
args = read_args(iprot, CancelOperation_args)
|
363
|
+
result = CancelOperation_result.new()
|
364
|
+
result.success = @handler.CancelOperation(args.req)
|
365
|
+
write_result(result, oprot, 'CancelOperation', seqid)
|
366
|
+
end
|
367
|
+
|
368
|
+
def process_CloseOperation(seqid, iprot, oprot)
|
369
|
+
args = read_args(iprot, CloseOperation_args)
|
370
|
+
result = CloseOperation_result.new()
|
371
|
+
result.success = @handler.CloseOperation(args.req)
|
372
|
+
write_result(result, oprot, 'CloseOperation', seqid)
|
373
|
+
end
|
374
|
+
|
375
|
+
def process_GetResultSetMetadata(seqid, iprot, oprot)
|
376
|
+
args = read_args(iprot, GetResultSetMetadata_args)
|
377
|
+
result = GetResultSetMetadata_result.new()
|
378
|
+
result.success = @handler.GetResultSetMetadata(args.req)
|
379
|
+
write_result(result, oprot, 'GetResultSetMetadata', seqid)
|
380
|
+
end
|
381
|
+
|
382
|
+
def process_FetchResults(seqid, iprot, oprot)
|
383
|
+
args = read_args(iprot, FetchResults_args)
|
384
|
+
result = FetchResults_result.new()
|
385
|
+
result.success = @handler.FetchResults(args.req)
|
386
|
+
write_result(result, oprot, 'FetchResults', seqid)
|
387
|
+
end
|
388
|
+
|
389
|
+
def process_GetLog(seqid, iprot, oprot)
|
390
|
+
args = read_args(iprot, GetLog_args)
|
391
|
+
result = GetLog_result.new()
|
392
|
+
result.success = @handler.GetLog(args.req)
|
393
|
+
write_result(result, oprot, 'GetLog', seqid)
|
394
|
+
end
|
395
|
+
|
396
|
+
end
|
397
|
+
|
398
|
+
# HELPER FUNCTIONS AND STRUCTURES
|
399
|
+
|
400
|
+
class OpenSession_args
|
401
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
402
|
+
REQ = 1
|
403
|
+
|
404
|
+
FIELDS = {
|
405
|
+
REQ => {:type => ::Thrift::Types::STRUCT, :name => 'req', :class => ::Impala::Protocol::Hive::TOpenSessionReq}
|
406
|
+
}
|
407
|
+
|
408
|
+
def struct_fields; FIELDS; end
|
409
|
+
|
410
|
+
def validate
|
411
|
+
end
|
412
|
+
|
413
|
+
::Thrift::Struct.generate_accessors self
|
414
|
+
end
|
415
|
+
|
416
|
+
class OpenSession_result
|
417
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
418
|
+
SUCCESS = 0
|
419
|
+
|
420
|
+
FIELDS = {
|
421
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Impala::Protocol::Hive::TOpenSessionResp}
|
422
|
+
}
|
423
|
+
|
424
|
+
def struct_fields; FIELDS; end
|
425
|
+
|
426
|
+
def validate
|
427
|
+
end
|
428
|
+
|
429
|
+
::Thrift::Struct.generate_accessors self
|
430
|
+
end
|
431
|
+
|
432
|
+
class CloseSession_args
|
433
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
434
|
+
REQ = 1
|
435
|
+
|
436
|
+
FIELDS = {
|
437
|
+
REQ => {:type => ::Thrift::Types::STRUCT, :name => 'req', :class => ::Impala::Protocol::Hive::TCloseSessionReq}
|
438
|
+
}
|
439
|
+
|
440
|
+
def struct_fields; FIELDS; end
|
441
|
+
|
442
|
+
def validate
|
443
|
+
end
|
444
|
+
|
445
|
+
::Thrift::Struct.generate_accessors self
|
446
|
+
end
|
447
|
+
|
448
|
+
class CloseSession_result
|
449
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
450
|
+
SUCCESS = 0
|
451
|
+
|
452
|
+
FIELDS = {
|
453
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Impala::Protocol::Hive::TCloseSessionResp}
|
454
|
+
}
|
455
|
+
|
456
|
+
def struct_fields; FIELDS; end
|
457
|
+
|
458
|
+
def validate
|
459
|
+
end
|
460
|
+
|
461
|
+
::Thrift::Struct.generate_accessors self
|
462
|
+
end
|
463
|
+
|
464
|
+
class GetInfo_args
|
465
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
466
|
+
REQ = 1
|
467
|
+
|
468
|
+
FIELDS = {
|
469
|
+
REQ => {:type => ::Thrift::Types::STRUCT, :name => 'req', :class => ::Impala::Protocol::Hive::TGetInfoReq}
|
470
|
+
}
|
471
|
+
|
472
|
+
def struct_fields; FIELDS; end
|
473
|
+
|
474
|
+
def validate
|
475
|
+
end
|
476
|
+
|
477
|
+
::Thrift::Struct.generate_accessors self
|
478
|
+
end
|
479
|
+
|
480
|
+
class GetInfo_result
|
481
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
482
|
+
SUCCESS = 0
|
483
|
+
|
484
|
+
FIELDS = {
|
485
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Impala::Protocol::Hive::TGetInfoResp}
|
486
|
+
}
|
487
|
+
|
488
|
+
def struct_fields; FIELDS; end
|
489
|
+
|
490
|
+
def validate
|
491
|
+
end
|
492
|
+
|
493
|
+
::Thrift::Struct.generate_accessors self
|
494
|
+
end
|
495
|
+
|
496
|
+
class ExecuteStatement_args
|
497
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
498
|
+
REQ = 1
|
499
|
+
|
500
|
+
FIELDS = {
|
501
|
+
REQ => {:type => ::Thrift::Types::STRUCT, :name => 'req', :class => ::Impala::Protocol::Hive::TExecuteStatementReq}
|
502
|
+
}
|
503
|
+
|
504
|
+
def struct_fields; FIELDS; end
|
505
|
+
|
506
|
+
def validate
|
507
|
+
end
|
508
|
+
|
509
|
+
::Thrift::Struct.generate_accessors self
|
510
|
+
end
|
511
|
+
|
512
|
+
class ExecuteStatement_result
|
513
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
514
|
+
SUCCESS = 0
|
515
|
+
|
516
|
+
FIELDS = {
|
517
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Impala::Protocol::Hive::TExecuteStatementResp}
|
518
|
+
}
|
519
|
+
|
520
|
+
def struct_fields; FIELDS; end
|
521
|
+
|
522
|
+
def validate
|
523
|
+
end
|
524
|
+
|
525
|
+
::Thrift::Struct.generate_accessors self
|
526
|
+
end
|
527
|
+
|
528
|
+
class GetTypeInfo_args
|
529
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
530
|
+
REQ = 1
|
531
|
+
|
532
|
+
FIELDS = {
|
533
|
+
REQ => {:type => ::Thrift::Types::STRUCT, :name => 'req', :class => ::Impala::Protocol::Hive::TGetTypeInfoReq}
|
534
|
+
}
|
535
|
+
|
536
|
+
def struct_fields; FIELDS; end
|
537
|
+
|
538
|
+
def validate
|
539
|
+
end
|
540
|
+
|
541
|
+
::Thrift::Struct.generate_accessors self
|
542
|
+
end
|
543
|
+
|
544
|
+
class GetTypeInfo_result
|
545
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
546
|
+
SUCCESS = 0
|
547
|
+
|
548
|
+
FIELDS = {
|
549
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Impala::Protocol::Hive::TGetTypeInfoResp}
|
550
|
+
}
|
551
|
+
|
552
|
+
def struct_fields; FIELDS; end
|
553
|
+
|
554
|
+
def validate
|
555
|
+
end
|
556
|
+
|
557
|
+
::Thrift::Struct.generate_accessors self
|
558
|
+
end
|
559
|
+
|
560
|
+
class GetCatalogs_args
|
561
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
562
|
+
REQ = 1
|
563
|
+
|
564
|
+
FIELDS = {
|
565
|
+
REQ => {:type => ::Thrift::Types::STRUCT, :name => 'req', :class => ::Impala::Protocol::Hive::TGetCatalogsReq}
|
566
|
+
}
|
567
|
+
|
568
|
+
def struct_fields; FIELDS; end
|
569
|
+
|
570
|
+
def validate
|
571
|
+
end
|
572
|
+
|
573
|
+
::Thrift::Struct.generate_accessors self
|
574
|
+
end
|
575
|
+
|
576
|
+
class GetCatalogs_result
|
577
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
578
|
+
SUCCESS = 0
|
579
|
+
|
580
|
+
FIELDS = {
|
581
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Impala::Protocol::Hive::TGetCatalogsResp}
|
582
|
+
}
|
583
|
+
|
584
|
+
def struct_fields; FIELDS; end
|
585
|
+
|
586
|
+
def validate
|
587
|
+
end
|
588
|
+
|
589
|
+
::Thrift::Struct.generate_accessors self
|
590
|
+
end
|
591
|
+
|
592
|
+
class GetSchemas_args
|
593
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
594
|
+
REQ = 1
|
595
|
+
|
596
|
+
FIELDS = {
|
597
|
+
REQ => {:type => ::Thrift::Types::STRUCT, :name => 'req', :class => ::Impala::Protocol::Hive::TGetSchemasReq}
|
598
|
+
}
|
599
|
+
|
600
|
+
def struct_fields; FIELDS; end
|
601
|
+
|
602
|
+
def validate
|
603
|
+
end
|
604
|
+
|
605
|
+
::Thrift::Struct.generate_accessors self
|
606
|
+
end
|
607
|
+
|
608
|
+
class GetSchemas_result
|
609
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
610
|
+
SUCCESS = 0
|
611
|
+
|
612
|
+
FIELDS = {
|
613
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Impala::Protocol::Hive::TGetSchemasResp}
|
614
|
+
}
|
615
|
+
|
616
|
+
def struct_fields; FIELDS; end
|
617
|
+
|
618
|
+
def validate
|
619
|
+
end
|
620
|
+
|
621
|
+
::Thrift::Struct.generate_accessors self
|
622
|
+
end
|
623
|
+
|
624
|
+
class GetTables_args
|
625
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
626
|
+
REQ = 1
|
627
|
+
|
628
|
+
FIELDS = {
|
629
|
+
REQ => {:type => ::Thrift::Types::STRUCT, :name => 'req', :class => ::Impala::Protocol::Hive::TGetTablesReq}
|
630
|
+
}
|
631
|
+
|
632
|
+
def struct_fields; FIELDS; end
|
633
|
+
|
634
|
+
def validate
|
635
|
+
end
|
636
|
+
|
637
|
+
::Thrift::Struct.generate_accessors self
|
638
|
+
end
|
639
|
+
|
640
|
+
class GetTables_result
|
641
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
642
|
+
SUCCESS = 0
|
643
|
+
|
644
|
+
FIELDS = {
|
645
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Impala::Protocol::Hive::TGetTablesResp}
|
646
|
+
}
|
647
|
+
|
648
|
+
def struct_fields; FIELDS; end
|
649
|
+
|
650
|
+
def validate
|
651
|
+
end
|
652
|
+
|
653
|
+
::Thrift::Struct.generate_accessors self
|
654
|
+
end
|
655
|
+
|
656
|
+
class GetTableTypes_args
|
657
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
658
|
+
REQ = 1
|
659
|
+
|
660
|
+
FIELDS = {
|
661
|
+
REQ => {:type => ::Thrift::Types::STRUCT, :name => 'req', :class => ::Impala::Protocol::Hive::TGetTableTypesReq}
|
662
|
+
}
|
663
|
+
|
664
|
+
def struct_fields; FIELDS; end
|
665
|
+
|
666
|
+
def validate
|
667
|
+
end
|
668
|
+
|
669
|
+
::Thrift::Struct.generate_accessors self
|
670
|
+
end
|
671
|
+
|
672
|
+
class GetTableTypes_result
|
673
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
674
|
+
SUCCESS = 0
|
675
|
+
|
676
|
+
FIELDS = {
|
677
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Impala::Protocol::Hive::TGetTableTypesResp}
|
678
|
+
}
|
679
|
+
|
680
|
+
def struct_fields; FIELDS; end
|
681
|
+
|
682
|
+
def validate
|
683
|
+
end
|
684
|
+
|
685
|
+
::Thrift::Struct.generate_accessors self
|
686
|
+
end
|
687
|
+
|
688
|
+
class GetColumns_args
|
689
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
690
|
+
REQ = 1
|
691
|
+
|
692
|
+
FIELDS = {
|
693
|
+
REQ => {:type => ::Thrift::Types::STRUCT, :name => 'req', :class => ::Impala::Protocol::Hive::TGetColumnsReq}
|
694
|
+
}
|
695
|
+
|
696
|
+
def struct_fields; FIELDS; end
|
697
|
+
|
698
|
+
def validate
|
699
|
+
end
|
700
|
+
|
701
|
+
::Thrift::Struct.generate_accessors self
|
702
|
+
end
|
703
|
+
|
704
|
+
class GetColumns_result
|
705
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
706
|
+
SUCCESS = 0
|
707
|
+
|
708
|
+
FIELDS = {
|
709
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Impala::Protocol::Hive::TGetColumnsResp}
|
710
|
+
}
|
711
|
+
|
712
|
+
def struct_fields; FIELDS; end
|
713
|
+
|
714
|
+
def validate
|
715
|
+
end
|
716
|
+
|
717
|
+
::Thrift::Struct.generate_accessors self
|
718
|
+
end
|
719
|
+
|
720
|
+
class GetFunctions_args
|
721
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
722
|
+
REQ = 1
|
723
|
+
|
724
|
+
FIELDS = {
|
725
|
+
REQ => {:type => ::Thrift::Types::STRUCT, :name => 'req', :class => ::Impala::Protocol::Hive::TGetFunctionsReq}
|
726
|
+
}
|
727
|
+
|
728
|
+
def struct_fields; FIELDS; end
|
729
|
+
|
730
|
+
def validate
|
731
|
+
end
|
732
|
+
|
733
|
+
::Thrift::Struct.generate_accessors self
|
734
|
+
end
|
735
|
+
|
736
|
+
class GetFunctions_result
|
737
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
738
|
+
SUCCESS = 0
|
739
|
+
|
740
|
+
FIELDS = {
|
741
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Impala::Protocol::Hive::TGetFunctionsResp}
|
742
|
+
}
|
743
|
+
|
744
|
+
def struct_fields; FIELDS; end
|
745
|
+
|
746
|
+
def validate
|
747
|
+
end
|
748
|
+
|
749
|
+
::Thrift::Struct.generate_accessors self
|
750
|
+
end
|
751
|
+
|
752
|
+
class GetOperationStatus_args
|
753
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
754
|
+
REQ = 1
|
755
|
+
|
756
|
+
FIELDS = {
|
757
|
+
REQ => {:type => ::Thrift::Types::STRUCT, :name => 'req', :class => ::Impala::Protocol::Hive::TGetOperationStatusReq}
|
758
|
+
}
|
759
|
+
|
760
|
+
def struct_fields; FIELDS; end
|
761
|
+
|
762
|
+
def validate
|
763
|
+
end
|
764
|
+
|
765
|
+
::Thrift::Struct.generate_accessors self
|
766
|
+
end
|
767
|
+
|
768
|
+
class GetOperationStatus_result
|
769
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
770
|
+
SUCCESS = 0
|
771
|
+
|
772
|
+
FIELDS = {
|
773
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Impala::Protocol::Hive::TGetOperationStatusResp}
|
774
|
+
}
|
775
|
+
|
776
|
+
def struct_fields; FIELDS; end
|
777
|
+
|
778
|
+
def validate
|
779
|
+
end
|
780
|
+
|
781
|
+
::Thrift::Struct.generate_accessors self
|
782
|
+
end
|
783
|
+
|
784
|
+
class CancelOperation_args
|
785
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
786
|
+
REQ = 1
|
787
|
+
|
788
|
+
FIELDS = {
|
789
|
+
REQ => {:type => ::Thrift::Types::STRUCT, :name => 'req', :class => ::Impala::Protocol::Hive::TCancelOperationReq}
|
790
|
+
}
|
791
|
+
|
792
|
+
def struct_fields; FIELDS; end
|
793
|
+
|
794
|
+
def validate
|
795
|
+
end
|
796
|
+
|
797
|
+
::Thrift::Struct.generate_accessors self
|
798
|
+
end
|
799
|
+
|
800
|
+
class CancelOperation_result
|
801
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
802
|
+
SUCCESS = 0
|
803
|
+
|
804
|
+
FIELDS = {
|
805
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Impala::Protocol::Hive::TCancelOperationResp}
|
806
|
+
}
|
807
|
+
|
808
|
+
def struct_fields; FIELDS; end
|
809
|
+
|
810
|
+
def validate
|
811
|
+
end
|
812
|
+
|
813
|
+
::Thrift::Struct.generate_accessors self
|
814
|
+
end
|
815
|
+
|
816
|
+
class CloseOperation_args
|
817
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
818
|
+
REQ = 1
|
819
|
+
|
820
|
+
FIELDS = {
|
821
|
+
REQ => {:type => ::Thrift::Types::STRUCT, :name => 'req', :class => ::Impala::Protocol::Hive::TCloseOperationReq}
|
822
|
+
}
|
823
|
+
|
824
|
+
def struct_fields; FIELDS; end
|
825
|
+
|
826
|
+
def validate
|
827
|
+
end
|
828
|
+
|
829
|
+
::Thrift::Struct.generate_accessors self
|
830
|
+
end
|
831
|
+
|
832
|
+
class CloseOperation_result
|
833
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
834
|
+
SUCCESS = 0
|
835
|
+
|
836
|
+
FIELDS = {
|
837
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Impala::Protocol::Hive::TCloseOperationResp}
|
838
|
+
}
|
839
|
+
|
840
|
+
def struct_fields; FIELDS; end
|
841
|
+
|
842
|
+
def validate
|
843
|
+
end
|
844
|
+
|
845
|
+
::Thrift::Struct.generate_accessors self
|
846
|
+
end
|
847
|
+
|
848
|
+
class GetResultSetMetadata_args
|
849
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
850
|
+
REQ = 1
|
851
|
+
|
852
|
+
FIELDS = {
|
853
|
+
REQ => {:type => ::Thrift::Types::STRUCT, :name => 'req', :class => ::Impala::Protocol::Hive::TGetResultSetMetadataReq}
|
854
|
+
}
|
855
|
+
|
856
|
+
def struct_fields; FIELDS; end
|
857
|
+
|
858
|
+
def validate
|
859
|
+
end
|
860
|
+
|
861
|
+
::Thrift::Struct.generate_accessors self
|
862
|
+
end
|
863
|
+
|
864
|
+
class GetResultSetMetadata_result
|
865
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
866
|
+
SUCCESS = 0
|
867
|
+
|
868
|
+
FIELDS = {
|
869
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Impala::Protocol::Hive::TGetResultSetMetadataResp}
|
870
|
+
}
|
871
|
+
|
872
|
+
def struct_fields; FIELDS; end
|
873
|
+
|
874
|
+
def validate
|
875
|
+
end
|
876
|
+
|
877
|
+
::Thrift::Struct.generate_accessors self
|
878
|
+
end
|
879
|
+
|
880
|
+
class FetchResults_args
|
881
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
882
|
+
REQ = 1
|
883
|
+
|
884
|
+
FIELDS = {
|
885
|
+
REQ => {:type => ::Thrift::Types::STRUCT, :name => 'req', :class => ::Impala::Protocol::Hive::TFetchResultsReq}
|
886
|
+
}
|
887
|
+
|
888
|
+
def struct_fields; FIELDS; end
|
889
|
+
|
890
|
+
def validate
|
891
|
+
end
|
892
|
+
|
893
|
+
::Thrift::Struct.generate_accessors self
|
894
|
+
end
|
895
|
+
|
896
|
+
class FetchResults_result
|
897
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
898
|
+
SUCCESS = 0
|
899
|
+
|
900
|
+
FIELDS = {
|
901
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Impala::Protocol::Hive::TFetchResultsResp}
|
902
|
+
}
|
903
|
+
|
904
|
+
def struct_fields; FIELDS; end
|
905
|
+
|
906
|
+
def validate
|
907
|
+
end
|
908
|
+
|
909
|
+
::Thrift::Struct.generate_accessors self
|
910
|
+
end
|
911
|
+
|
912
|
+
class GetLog_args
|
913
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
914
|
+
REQ = 1
|
915
|
+
|
916
|
+
FIELDS = {
|
917
|
+
REQ => {:type => ::Thrift::Types::STRUCT, :name => 'req', :class => ::Impala::Protocol::Hive::TGetLogReq}
|
918
|
+
}
|
919
|
+
|
920
|
+
def struct_fields; FIELDS; end
|
921
|
+
|
922
|
+
def validate
|
923
|
+
end
|
924
|
+
|
925
|
+
::Thrift::Struct.generate_accessors self
|
926
|
+
end
|
927
|
+
|
928
|
+
class GetLog_result
|
929
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
930
|
+
SUCCESS = 0
|
931
|
+
|
932
|
+
FIELDS = {
|
933
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Impala::Protocol::Hive::TGetLogResp}
|
934
|
+
}
|
935
|
+
|
936
|
+
def struct_fields; FIELDS; end
|
937
|
+
|
938
|
+
def validate
|
939
|
+
end
|
940
|
+
|
941
|
+
::Thrift::Struct.generate_accessors self
|
942
|
+
end
|
943
|
+
|
944
|
+
end
|
945
|
+
|
946
|
+
end
|
947
|
+
end
|
948
|
+
end
|