impala 0.1.6 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (84) hide show
  1. data/Rakefile +0 -2
  2. data/impala.gemspec +1 -2
  3. data/lib/impala.rb +1 -1
  4. data/lib/impala/cursor.rb +10 -4
  5. data/lib/impala/protocol/beeswax_constants.rb +2 -1
  6. data/lib/impala/protocol/beeswax_service.rb +46 -46
  7. data/lib/impala/protocol/beeswax_types.rb +31 -30
  8. data/lib/impala/protocol/cli_service_constants.rb +60 -0
  9. data/lib/impala/protocol/cli_service_types.rb +1452 -0
  10. data/lib/impala/protocol/facebook_service.rb +17 -17
  11. data/lib/impala/protocol/fb303_constants.rb +2 -1
  12. data/lib/impala/protocol/fb303_types.rb +3 -2
  13. data/lib/impala/protocol/hive_metastore_constants.rb +2 -1
  14. data/lib/impala/protocol/hive_metastore_types.rb +102 -101
  15. data/lib/impala/protocol/impala_hive_server2_service.rb +29 -0
  16. data/lib/impala/protocol/impala_service.rb +135 -18
  17. data/lib/impala/protocol/impala_service_constants.rb +2 -1
  18. data/lib/impala/protocol/impala_service_types.rb +54 -10
  19. data/lib/impala/protocol/status_constants.rb +2 -1
  20. data/lib/impala/protocol/status_types.rb +9 -7
  21. data/lib/impala/protocol/t_c_l_i_service.rb +948 -0
  22. data/lib/impala/protocol/thrift_hive_metastore.rb +507 -507
  23. data/lib/impala/version.rb +1 -1
  24. data/test/test_impala_connected.rb +93 -13
  25. data/thrift/ImpalaService.thrift +78 -6
  26. data/thrift/Status.thrift +2 -1
  27. data/thrift/beeswax.thrift +1 -1
  28. data/thrift/cli_service.thrift +1015 -0
  29. metadata +9 -75
  30. data/lib/impala/protocol/data_constants.rb +0 -12
  31. data/lib/impala/protocol/data_sinks_constants.rb +0 -12
  32. data/lib/impala/protocol/data_sinks_types.rb +0 -107
  33. data/lib/impala/protocol/data_types.rb +0 -77
  34. data/lib/impala/protocol/descriptors_constants.rb +0 -12
  35. data/lib/impala/protocol/descriptors_types.rb +0 -266
  36. data/lib/impala/protocol/exprs_constants.rb +0 -12
  37. data/lib/impala/protocol/exprs_types.rb +0 -345
  38. data/lib/impala/protocol/frontend_constants.rb +0 -12
  39. data/lib/impala/protocol/frontend_types.rb +0 -347
  40. data/lib/impala/protocol/impala_internal_service.rb +0 -244
  41. data/lib/impala/protocol/impala_internal_service_constants.rb +0 -12
  42. data/lib/impala/protocol/impala_internal_service_types.rb +0 -362
  43. data/lib/impala/protocol/impala_plan_service.rb +0 -310
  44. data/lib/impala/protocol/impala_plan_service_constants.rb +0 -12
  45. data/lib/impala/protocol/impala_plan_service_types.rb +0 -36
  46. data/lib/impala/protocol/java_constants_constants.rb +0 -42
  47. data/lib/impala/protocol/java_constants_types.rb +0 -14
  48. data/lib/impala/protocol/opcodes_constants.rb +0 -12
  49. data/lib/impala/protocol/opcodes_types.rb +0 -309
  50. data/lib/impala/protocol/partitions_constants.rb +0 -12
  51. data/lib/impala/protocol/partitions_types.rb +0 -44
  52. data/lib/impala/protocol/plan_nodes_constants.rb +0 -12
  53. data/lib/impala/protocol/plan_nodes_types.rb +0 -345
  54. data/lib/impala/protocol/planner_constants.rb +0 -12
  55. data/lib/impala/protocol/planner_types.rb +0 -78
  56. data/lib/impala/protocol/runtime_profile_constants.rb +0 -12
  57. data/lib/impala/protocol/runtime_profile_types.rb +0 -97
  58. data/lib/impala/protocol/state_store_service.rb +0 -244
  59. data/lib/impala/protocol/state_store_service_constants.rb +0 -12
  60. data/lib/impala/protocol/state_store_service_types.rb +0 -185
  61. data/lib/impala/protocol/state_store_subscriber_service.rb +0 -82
  62. data/lib/impala/protocol/state_store_subscriber_service_constants.rb +0 -12
  63. data/lib/impala/protocol/state_store_subscriber_service_types.rb +0 -67
  64. data/lib/impala/protocol/statestore_types_constants.rb +0 -12
  65. data/lib/impala/protocol/statestore_types_types.rb +0 -77
  66. data/lib/impala/protocol/types_constants.rb +0 -12
  67. data/lib/impala/protocol/types_types.rb +0 -86
  68. data/thrift/Data.thrift +0 -52
  69. data/thrift/DataSinks.thrift +0 -61
  70. data/thrift/Descriptors.thrift +0 -115
  71. data/thrift/Exprs.thrift +0 -134
  72. data/thrift/Frontend.thrift +0 -193
  73. data/thrift/ImpalaInternalService.thrift +0 -265
  74. data/thrift/ImpalaPlanService.thrift +0 -44
  75. data/thrift/JavaConstants.thrift +0 -60
  76. data/thrift/Opcodes.thrift +0 -317
  77. data/thrift/Partitions.thrift +0 -41
  78. data/thrift/PlanNodes.thrift +0 -184
  79. data/thrift/Planner.thrift +0 -72
  80. data/thrift/RuntimeProfile.thrift +0 -58
  81. data/thrift/StateStoreService.thrift +0 -121
  82. data/thrift/StateStoreSubscriberService.thrift +0 -64
  83. data/thrift/StatestoreTypes.thrift +0 -50
  84. data/thrift/Types.thrift +0 -71
@@ -1,244 +0,0 @@
1
- #
2
- # Autogenerated by Thrift Compiler (0.8.0)
3
- #
4
- # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
- #
6
-
7
- require 'thrift'
8
- require 'impala_internal_service_types'
9
-
10
- module Impala
11
- module Protocol
12
- module ImpalaInternalService
13
- class Client
14
- include ::Thrift::Client
15
-
16
- def ExecPlanFragment(params)
17
- send_ExecPlanFragment(params)
18
- return recv_ExecPlanFragment()
19
- end
20
-
21
- def send_ExecPlanFragment(params)
22
- send_message('ExecPlanFragment', ExecPlanFragment_args, :params => params)
23
- end
24
-
25
- def recv_ExecPlanFragment()
26
- result = receive_message(ExecPlanFragment_result)
27
- return result.success unless result.success.nil?
28
- raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'ExecPlanFragment failed: unknown result')
29
- end
30
-
31
- def ReportExecStatus(params)
32
- send_ReportExecStatus(params)
33
- return recv_ReportExecStatus()
34
- end
35
-
36
- def send_ReportExecStatus(params)
37
- send_message('ReportExecStatus', ReportExecStatus_args, :params => params)
38
- end
39
-
40
- def recv_ReportExecStatus()
41
- result = receive_message(ReportExecStatus_result)
42
- return result.success unless result.success.nil?
43
- raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'ReportExecStatus failed: unknown result')
44
- end
45
-
46
- def CancelPlanFragment(params)
47
- send_CancelPlanFragment(params)
48
- return recv_CancelPlanFragment()
49
- end
50
-
51
- def send_CancelPlanFragment(params)
52
- send_message('CancelPlanFragment', CancelPlanFragment_args, :params => params)
53
- end
54
-
55
- def recv_CancelPlanFragment()
56
- result = receive_message(CancelPlanFragment_result)
57
- return result.success unless result.success.nil?
58
- raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'CancelPlanFragment failed: unknown result')
59
- end
60
-
61
- def TransmitData(params)
62
- send_TransmitData(params)
63
- return recv_TransmitData()
64
- end
65
-
66
- def send_TransmitData(params)
67
- send_message('TransmitData', TransmitData_args, :params => params)
68
- end
69
-
70
- def recv_TransmitData()
71
- result = receive_message(TransmitData_result)
72
- return result.success unless result.success.nil?
73
- raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'TransmitData failed: unknown result')
74
- end
75
-
76
- end
77
-
78
- class Processor
79
- include ::Thrift::Processor
80
-
81
- def process_ExecPlanFragment(seqid, iprot, oprot)
82
- args = read_args(iprot, ExecPlanFragment_args)
83
- result = ExecPlanFragment_result.new()
84
- result.success = @handler.ExecPlanFragment(args.params)
85
- write_result(result, oprot, 'ExecPlanFragment', seqid)
86
- end
87
-
88
- def process_ReportExecStatus(seqid, iprot, oprot)
89
- args = read_args(iprot, ReportExecStatus_args)
90
- result = ReportExecStatus_result.new()
91
- result.success = @handler.ReportExecStatus(args.params)
92
- write_result(result, oprot, 'ReportExecStatus', seqid)
93
- end
94
-
95
- def process_CancelPlanFragment(seqid, iprot, oprot)
96
- args = read_args(iprot, CancelPlanFragment_args)
97
- result = CancelPlanFragment_result.new()
98
- result.success = @handler.CancelPlanFragment(args.params)
99
- write_result(result, oprot, 'CancelPlanFragment', seqid)
100
- end
101
-
102
- def process_TransmitData(seqid, iprot, oprot)
103
- args = read_args(iprot, TransmitData_args)
104
- result = TransmitData_result.new()
105
- result.success = @handler.TransmitData(args.params)
106
- write_result(result, oprot, 'TransmitData', seqid)
107
- end
108
-
109
- end
110
-
111
- # HELPER FUNCTIONS AND STRUCTURES
112
-
113
- class ExecPlanFragment_args
114
- include ::Thrift::Struct, ::Thrift::Struct_Union
115
- PARAMS = 1
116
-
117
- FIELDS = {
118
- PARAMS => { :type => ::Thrift::Types::STRUCT, :name => 'params', :class => Impala::Protocol::TExecPlanFragmentParams }
119
- }
120
-
121
- def struct_fields; FIELDS; end
122
-
123
- def validate
124
- end
125
-
126
- ::Thrift::Struct.generate_accessors self
127
- end
128
-
129
- class ExecPlanFragment_result
130
- include ::Thrift::Struct, ::Thrift::Struct_Union
131
- SUCCESS = 0
132
-
133
- FIELDS = {
134
- SUCCESS => { :type => ::Thrift::Types::STRUCT, :name => 'success', :class => Impala::Protocol::TExecPlanFragmentResult }
135
- }
136
-
137
- def struct_fields; FIELDS; end
138
-
139
- def validate
140
- end
141
-
142
- ::Thrift::Struct.generate_accessors self
143
- end
144
-
145
- class ReportExecStatus_args
146
- include ::Thrift::Struct, ::Thrift::Struct_Union
147
- PARAMS = 1
148
-
149
- FIELDS = {
150
- PARAMS => { :type => ::Thrift::Types::STRUCT, :name => 'params', :class => Impala::Protocol::TReportExecStatusParams }
151
- }
152
-
153
- def struct_fields; FIELDS; end
154
-
155
- def validate
156
- end
157
-
158
- ::Thrift::Struct.generate_accessors self
159
- end
160
-
161
- class ReportExecStatus_result
162
- include ::Thrift::Struct, ::Thrift::Struct_Union
163
- SUCCESS = 0
164
-
165
- FIELDS = {
166
- SUCCESS => { :type => ::Thrift::Types::STRUCT, :name => 'success', :class => Impala::Protocol::TReportExecStatusResult }
167
- }
168
-
169
- def struct_fields; FIELDS; end
170
-
171
- def validate
172
- end
173
-
174
- ::Thrift::Struct.generate_accessors self
175
- end
176
-
177
- class CancelPlanFragment_args
178
- include ::Thrift::Struct, ::Thrift::Struct_Union
179
- PARAMS = 1
180
-
181
- FIELDS = {
182
- PARAMS => { :type => ::Thrift::Types::STRUCT, :name => 'params', :class => Impala::Protocol::TCancelPlanFragmentParams }
183
- }
184
-
185
- def struct_fields; FIELDS; end
186
-
187
- def validate
188
- end
189
-
190
- ::Thrift::Struct.generate_accessors self
191
- end
192
-
193
- class CancelPlanFragment_result
194
- include ::Thrift::Struct, ::Thrift::Struct_Union
195
- SUCCESS = 0
196
-
197
- FIELDS = {
198
- SUCCESS => { :type => ::Thrift::Types::STRUCT, :name => 'success', :class => Impala::Protocol::TCancelPlanFragmentResult }
199
- }
200
-
201
- def struct_fields; FIELDS; end
202
-
203
- def validate
204
- end
205
-
206
- ::Thrift::Struct.generate_accessors self
207
- end
208
-
209
- class TransmitData_args
210
- include ::Thrift::Struct, ::Thrift::Struct_Union
211
- PARAMS = 1
212
-
213
- FIELDS = {
214
- PARAMS => { :type => ::Thrift::Types::STRUCT, :name => 'params', :class => Impala::Protocol::TTransmitDataParams }
215
- }
216
-
217
- def struct_fields; FIELDS; end
218
-
219
- def validate
220
- end
221
-
222
- ::Thrift::Struct.generate_accessors self
223
- end
224
-
225
- class TransmitData_result
226
- include ::Thrift::Struct, ::Thrift::Struct_Union
227
- SUCCESS = 0
228
-
229
- FIELDS = {
230
- SUCCESS => { :type => ::Thrift::Types::STRUCT, :name => 'success', :class => Impala::Protocol::TTransmitDataResult }
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
- end
242
-
243
- end
244
- end
@@ -1,12 +0,0 @@
1
- #
2
- # Autogenerated by Thrift Compiler (0.8.0)
3
- #
4
- # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
- #
6
-
7
- require 'impala_internal_service_types'
8
-
9
- module Impala
10
- module Protocol
11
- end
12
- end
@@ -1,362 +0,0 @@
1
- #
2
- # Autogenerated by Thrift Compiler (0.8.0)
3
- #
4
- # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
- #
6
-
7
- require 'status_types'
8
- require 'types_types'
9
- require 'exprs_types'
10
- require 'descriptors_types'
11
- require 'plan_nodes_types'
12
- require 'planner_types'
13
- require 'data_sinks_types'
14
- require 'data_types'
15
- require 'runtime_profile_types'
16
- require 'impala_service_types'
17
- require 'java_constants_types'
18
-
19
-
20
- module Impala
21
- module Protocol
22
- module ImpalaInternalServiceVersion
23
- V1 = 0
24
- VALUE_MAP = { 0 => "V1" }
25
- VALID_VALUES = Set.new([V1]).freeze
26
- end
27
-
28
- class TQueryOptions
29
- include ::Thrift::Struct, ::Thrift::Struct_Union
30
- ABORT_ON_ERROR = 1
31
- MAX_ERRORS = 2
32
- DISABLE_CODEGEN = 3
33
- BATCH_SIZE = 4
34
- RETURN_AS_ASCII = 5
35
- NUM_NODES = 6
36
- MAX_SCAN_RANGE_LENGTH = 7
37
- NUM_SCANNER_THREADS = 8
38
- MAX_IO_BUFFERS = 9
39
- ALLOW_UNSUPPORTED_FORMATS = 10
40
- DEFAULT_ORDER_BY_LIMIT = 11
41
-
42
- FIELDS = {
43
- ABORT_ON_ERROR => { :type => ::Thrift::Types::BOOL, :name => 'abort_on_error', :default => false },
44
- MAX_ERRORS => { :type => ::Thrift::Types::I32, :name => 'max_errors', :default => 0 },
45
- DISABLE_CODEGEN => { :type => ::Thrift::Types::BOOL, :name => 'disable_codegen', :default => false },
46
- BATCH_SIZE => { :type => ::Thrift::Types::I32, :name => 'batch_size', :default => 0 },
47
- RETURN_AS_ASCII => { :type => ::Thrift::Types::BOOL, :name => 'return_as_ascii', :default => true },
48
- NUM_NODES => { :type => ::Thrift::Types::I32, :name => 'num_nodes', :default => 0 },
49
- MAX_SCAN_RANGE_LENGTH => { :type => ::Thrift::Types::I64, :name => 'max_scan_range_length', :default => 0 },
50
- NUM_SCANNER_THREADS => { :type => ::Thrift::Types::I32, :name => 'num_scanner_threads', :default => 0 },
51
- MAX_IO_BUFFERS => { :type => ::Thrift::Types::I32, :name => 'max_io_buffers', :default => 0 },
52
- ALLOW_UNSUPPORTED_FORMATS => { :type => ::Thrift::Types::BOOL, :name => 'allow_unsupported_formats', :default => false },
53
- DEFAULT_ORDER_BY_LIMIT => { :type => ::Thrift::Types::I64, :name => 'default_order_by_limit', :default => -1, :optional => true }
54
- }
55
-
56
- def struct_fields; FIELDS; end
57
-
58
- def validate
59
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field abort_on_error is unset!') if @abort_on_error.nil?
60
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field max_errors is unset!') unless @max_errors
61
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field disable_codegen is unset!') if @disable_codegen.nil?
62
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field batch_size is unset!') unless @batch_size
63
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field return_as_ascii is unset!') if @return_as_ascii.nil?
64
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field num_nodes is unset!') unless @num_nodes
65
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field max_scan_range_length is unset!') unless @max_scan_range_length
66
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field num_scanner_threads is unset!') unless @num_scanner_threads
67
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field max_io_buffers is unset!') unless @max_io_buffers
68
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field allow_unsupported_formats is unset!') if @allow_unsupported_formats.nil?
69
- end
70
-
71
- ::Thrift::Struct.generate_accessors self
72
- end
73
-
74
- class TScanRangeParams
75
- include ::Thrift::Struct, ::Thrift::Struct_Union
76
- SCAN_RANGE = 1
77
- VOLUME_ID = 2
78
-
79
- FIELDS = {
80
- SCAN_RANGE => { :type => ::Thrift::Types::STRUCT, :name => 'scan_range', :class => Impala::Protocol::TScanRange },
81
- VOLUME_ID => { :type => ::Thrift::Types::I32, :name => 'volume_id', :default => -1, :optional => true }
82
- }
83
-
84
- def struct_fields; FIELDS; end
85
-
86
- def validate
87
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field scan_range is unset!') unless @scan_range
88
- end
89
-
90
- ::Thrift::Struct.generate_accessors self
91
- end
92
-
93
- class TPlanFragmentDestination
94
- include ::Thrift::Struct, ::Thrift::Struct_Union
95
- FRAGMENT_INSTANCE_ID = 1
96
- SERVER = 2
97
-
98
- FIELDS = {
99
- FRAGMENT_INSTANCE_ID => { :type => ::Thrift::Types::STRUCT, :name => 'fragment_instance_id', :class => Impala::Protocol::TUniqueId },
100
- SERVER => { :type => ::Thrift::Types::STRUCT, :name => 'server', :class => Impala::Protocol::THostPort }
101
- }
102
-
103
- def struct_fields; FIELDS; end
104
-
105
- def validate
106
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field fragment_instance_id is unset!') unless @fragment_instance_id
107
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field server is unset!') unless @server
108
- end
109
-
110
- ::Thrift::Struct.generate_accessors self
111
- end
112
-
113
- class TPlanFragmentExecParams
114
- include ::Thrift::Struct, ::Thrift::Struct_Union
115
- QUERY_ID = 1
116
- FRAGMENT_INSTANCE_ID = 2
117
- PER_NODE_SCAN_RANGES = 3
118
- PER_EXCH_NUM_SENDERS = 4
119
- DESTINATIONS = 5
120
-
121
- FIELDS = {
122
- QUERY_ID => { :type => ::Thrift::Types::STRUCT, :name => 'query_id', :class => Impala::Protocol::TUniqueId },
123
- FRAGMENT_INSTANCE_ID => { :type => ::Thrift::Types::STRUCT, :name => 'fragment_instance_id', :class => Impala::Protocol::TUniqueId },
124
- PER_NODE_SCAN_RANGES => { :type => ::Thrift::Types::MAP, :name => 'per_node_scan_ranges', :key => { :type => ::Thrift::Types::I32 }, :value => { :type => ::Thrift::Types::LIST, :element => { :type => ::Thrift::Types::STRUCT, :class => Impala::Protocol::TScanRangeParams } } },
125
- PER_EXCH_NUM_SENDERS => { :type => ::Thrift::Types::MAP, :name => 'per_exch_num_senders', :key => { :type => ::Thrift::Types::I32 }, :value => { :type => ::Thrift::Types::I32 } },
126
- DESTINATIONS => { :type => ::Thrift::Types::LIST, :name => 'destinations', :element => { :type => ::Thrift::Types::STRUCT, :class => Impala::Protocol::TPlanFragmentDestination } }
127
- }
128
-
129
- def struct_fields; FIELDS; end
130
-
131
- def validate
132
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field query_id is unset!') unless @query_id
133
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field fragment_instance_id is unset!') unless @fragment_instance_id
134
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field per_node_scan_ranges is unset!') unless @per_node_scan_ranges
135
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field per_exch_num_senders is unset!') unless @per_exch_num_senders
136
- end
137
-
138
- ::Thrift::Struct.generate_accessors self
139
- end
140
-
141
- class TQueryGlobals
142
- include ::Thrift::Struct, ::Thrift::Struct_Union
143
- NOW_STRING = 1
144
-
145
- FIELDS = {
146
- NOW_STRING => { :type => ::Thrift::Types::STRING, :name => 'now_string' }
147
- }
148
-
149
- def struct_fields; FIELDS; end
150
-
151
- def validate
152
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field now_string is unset!') unless @now_string
153
- end
154
-
155
- ::Thrift::Struct.generate_accessors self
156
- end
157
-
158
- class TExecPlanFragmentParams
159
- include ::Thrift::Struct, ::Thrift::Struct_Union
160
- PROTOCOL_VERSION = 1
161
- FRAGMENT = 2
162
- DESC_TBL = 3
163
- PARAMS = 4
164
- COORD = 5
165
- BACKEND_NUM = 6
166
- QUERY_GLOBALS = 7
167
- QUERY_OPTIONS = 8
168
-
169
- FIELDS = {
170
- PROTOCOL_VERSION => { :type => ::Thrift::Types::I32, :name => 'protocol_version', :enum_class => Impala::Protocol::ImpalaInternalServiceVersion },
171
- FRAGMENT => { :type => ::Thrift::Types::STRUCT, :name => 'fragment', :class => Impala::Protocol::TPlanFragment, :optional => true },
172
- DESC_TBL => { :type => ::Thrift::Types::STRUCT, :name => 'desc_tbl', :class => Impala::Protocol::TDescriptorTable, :optional => true },
173
- PARAMS => { :type => ::Thrift::Types::STRUCT, :name => 'params', :class => Impala::Protocol::TPlanFragmentExecParams, :optional => true },
174
- COORD => { :type => ::Thrift::Types::STRUCT, :name => 'coord', :class => Impala::Protocol::THostPort, :optional => true },
175
- BACKEND_NUM => { :type => ::Thrift::Types::I32, :name => 'backend_num', :optional => true },
176
- QUERY_GLOBALS => { :type => ::Thrift::Types::STRUCT, :name => 'query_globals', :class => Impala::Protocol::TQueryGlobals, :optional => true },
177
- QUERY_OPTIONS => { :type => ::Thrift::Types::STRUCT, :name => 'query_options', :class => Impala::Protocol::TQueryOptions, :optional => true }
178
- }
179
-
180
- def struct_fields; FIELDS; end
181
-
182
- def validate
183
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field protocol_version is unset!') unless @protocol_version
184
- unless @protocol_version.nil? || Impala::Protocol::ImpalaInternalServiceVersion::VALID_VALUES.include?(@protocol_version)
185
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field protocol_version!')
186
- end
187
- end
188
-
189
- ::Thrift::Struct.generate_accessors self
190
- end
191
-
192
- class TExecPlanFragmentResult
193
- include ::Thrift::Struct, ::Thrift::Struct_Union
194
- STATUS = 1
195
-
196
- FIELDS = {
197
- STATUS => { :type => ::Thrift::Types::STRUCT, :name => 'status', :class => Impala::Protocol::TStatus, :optional => true }
198
- }
199
-
200
- def struct_fields; FIELDS; end
201
-
202
- def validate
203
- end
204
-
205
- ::Thrift::Struct.generate_accessors self
206
- end
207
-
208
- class TInsertExecStatus
209
- include ::Thrift::Struct, ::Thrift::Struct_Union
210
- NUM_APPENDED_ROWS = 1
211
- FILES_TO_MOVE = 2
212
-
213
- FIELDS = {
214
- NUM_APPENDED_ROWS => { :type => ::Thrift::Types::MAP, :name => 'num_appended_rows', :key => { :type => ::Thrift::Types::STRING }, :value => { :type => ::Thrift::Types::I64 }, :optional => true },
215
- FILES_TO_MOVE => { :type => ::Thrift::Types::MAP, :name => 'files_to_move', :key => { :type => ::Thrift::Types::STRING }, :value => { :type => ::Thrift::Types::STRING } }
216
- }
217
-
218
- def struct_fields; FIELDS; end
219
-
220
- def validate
221
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field files_to_move is unset!') unless @files_to_move
222
- end
223
-
224
- ::Thrift::Struct.generate_accessors self
225
- end
226
-
227
- class TReportExecStatusParams
228
- include ::Thrift::Struct, ::Thrift::Struct_Union
229
- PROTOCOL_VERSION = 1
230
- QUERY_ID = 2
231
- BACKEND_NUM = 3
232
- FRAGMENT_INSTANCE_ID = 4
233
- STATUS = 5
234
- DONE = 6
235
- PROFILE = 7
236
- INSERT_EXEC_STATUS = 8
237
- ERROR_LOG = 9
238
-
239
- FIELDS = {
240
- PROTOCOL_VERSION => { :type => ::Thrift::Types::I32, :name => 'protocol_version', :enum_class => Impala::Protocol::ImpalaInternalServiceVersion },
241
- QUERY_ID => { :type => ::Thrift::Types::STRUCT, :name => 'query_id', :class => Impala::Protocol::TUniqueId, :optional => true },
242
- BACKEND_NUM => { :type => ::Thrift::Types::I32, :name => 'backend_num', :optional => true },
243
- FRAGMENT_INSTANCE_ID => { :type => ::Thrift::Types::STRUCT, :name => 'fragment_instance_id', :class => Impala::Protocol::TUniqueId, :optional => true },
244
- STATUS => { :type => ::Thrift::Types::STRUCT, :name => 'status', :class => Impala::Protocol::TStatus, :optional => true },
245
- DONE => { :type => ::Thrift::Types::BOOL, :name => 'done', :optional => true },
246
- PROFILE => { :type => ::Thrift::Types::STRUCT, :name => 'profile', :class => Impala::Protocol::TRuntimeProfileTree, :optional => true },
247
- INSERT_EXEC_STATUS => { :type => ::Thrift::Types::STRUCT, :name => 'insert_exec_status', :class => Impala::Protocol::TInsertExecStatus, :optional => true },
248
- ERROR_LOG => { :type => ::Thrift::Types::LIST, :name => 'error_log', :element => { :type => ::Thrift::Types::STRING }, :optional => true }
249
- }
250
-
251
- def struct_fields; FIELDS; end
252
-
253
- def validate
254
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field protocol_version is unset!') unless @protocol_version
255
- unless @protocol_version.nil? || Impala::Protocol::ImpalaInternalServiceVersion::VALID_VALUES.include?(@protocol_version)
256
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field protocol_version!')
257
- end
258
- end
259
-
260
- ::Thrift::Struct.generate_accessors self
261
- end
262
-
263
- class TReportExecStatusResult
264
- include ::Thrift::Struct, ::Thrift::Struct_Union
265
- STATUS = 1
266
-
267
- FIELDS = {
268
- STATUS => { :type => ::Thrift::Types::STRUCT, :name => 'status', :class => Impala::Protocol::TStatus, :optional => true }
269
- }
270
-
271
- def struct_fields; FIELDS; end
272
-
273
- def validate
274
- end
275
-
276
- ::Thrift::Struct.generate_accessors self
277
- end
278
-
279
- class TCancelPlanFragmentParams
280
- include ::Thrift::Struct, ::Thrift::Struct_Union
281
- PROTOCOL_VERSION = 1
282
- FRAGMENT_INSTANCE_ID = 2
283
-
284
- FIELDS = {
285
- PROTOCOL_VERSION => { :type => ::Thrift::Types::I32, :name => 'protocol_version', :enum_class => Impala::Protocol::ImpalaInternalServiceVersion },
286
- FRAGMENT_INSTANCE_ID => { :type => ::Thrift::Types::STRUCT, :name => 'fragment_instance_id', :class => Impala::Protocol::TUniqueId, :optional => true }
287
- }
288
-
289
- def struct_fields; FIELDS; end
290
-
291
- def validate
292
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field protocol_version is unset!') unless @protocol_version
293
- unless @protocol_version.nil? || Impala::Protocol::ImpalaInternalServiceVersion::VALID_VALUES.include?(@protocol_version)
294
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field protocol_version!')
295
- end
296
- end
297
-
298
- ::Thrift::Struct.generate_accessors self
299
- end
300
-
301
- class TCancelPlanFragmentResult
302
- include ::Thrift::Struct, ::Thrift::Struct_Union
303
- STATUS = 1
304
-
305
- FIELDS = {
306
- STATUS => { :type => ::Thrift::Types::STRUCT, :name => 'status', :class => Impala::Protocol::TStatus, :optional => true }
307
- }
308
-
309
- def struct_fields; FIELDS; end
310
-
311
- def validate
312
- end
313
-
314
- ::Thrift::Struct.generate_accessors self
315
- end
316
-
317
- class TTransmitDataParams
318
- include ::Thrift::Struct, ::Thrift::Struct_Union
319
- PROTOCOL_VERSION = 1
320
- DEST_FRAGMENT_INSTANCE_ID = 2
321
- DEST_NODE_ID = 4
322
- ROW_BATCH = 5
323
- EOS = 6
324
-
325
- FIELDS = {
326
- PROTOCOL_VERSION => { :type => ::Thrift::Types::I32, :name => 'protocol_version', :enum_class => Impala::Protocol::ImpalaInternalServiceVersion },
327
- DEST_FRAGMENT_INSTANCE_ID => { :type => ::Thrift::Types::STRUCT, :name => 'dest_fragment_instance_id', :class => Impala::Protocol::TUniqueId, :optional => true },
328
- DEST_NODE_ID => { :type => ::Thrift::Types::I32, :name => 'dest_node_id', :optional => true },
329
- ROW_BATCH => { :type => ::Thrift::Types::STRUCT, :name => 'row_batch', :class => Impala::Protocol::TRowBatch, :optional => true },
330
- EOS => { :type => ::Thrift::Types::BOOL, :name => 'eos', :optional => true }
331
- }
332
-
333
- def struct_fields; FIELDS; end
334
-
335
- def validate
336
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field protocol_version is unset!') unless @protocol_version
337
- unless @protocol_version.nil? || Impala::Protocol::ImpalaInternalServiceVersion::VALID_VALUES.include?(@protocol_version)
338
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field protocol_version!')
339
- end
340
- end
341
-
342
- ::Thrift::Struct.generate_accessors self
343
- end
344
-
345
- class TTransmitDataResult
346
- include ::Thrift::Struct, ::Thrift::Struct_Union
347
- STATUS = 1
348
-
349
- FIELDS = {
350
- STATUS => { :type => ::Thrift::Types::STRUCT, :name => 'status', :class => Impala::Protocol::TStatus, :optional => true }
351
- }
352
-
353
- def struct_fields; FIELDS; end
354
-
355
- def validate
356
- end
357
-
358
- ::Thrift::Struct.generate_accessors self
359
- end
360
-
361
- end
362
- end