sequel_impala 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (129) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.md +50 -0
  3. data/LICENSE +463 -0
  4. data/README.md +45 -0
  5. data/Rakefile +39 -0
  6. data/lib/driver/commons-collections-3.2.1.jar +0 -0
  7. data/lib/driver/commons-configuration-1.10.jar +0 -0
  8. data/lib/driver/commons-logging-1.2.jar +0 -0
  9. data/lib/driver/hadoop-auth-2.9.0.jar +0 -0
  10. data/lib/driver/hadoop-common-2.9.0.jar +0 -0
  11. data/lib/driver/hadoop-core-2.6.0.jar +0 -0
  12. data/lib/driver/hive-exec-1.1.0.jar +0 -0
  13. data/lib/driver/hive-jdbc-1.1.0.jar +0 -0
  14. data/lib/driver/hive-metastore-1.1.0.jar +0 -0
  15. data/lib/driver/hive-service-1.1.0.jar +0 -0
  16. data/lib/driver/httpclient-4.3.jar +0 -0
  17. data/lib/driver/httpcore-4.3.jar +0 -0
  18. data/lib/driver/libfb303-0.9.0.jar +0 -0
  19. data/lib/driver/log4j-1.2.17.jar +0 -0
  20. data/lib/driver/slf4j-api-1.7.5.jar +0 -0
  21. data/lib/driver/stax2-api-3.1.4.jar +0 -0
  22. data/lib/driver/woodstox-core-asl-4.4.1.jar +0 -0
  23. data/lib/impala.rb +55 -0
  24. data/lib/impala/connection.rb +180 -0
  25. data/lib/impala/cursor.rb +200 -0
  26. data/lib/impala/progress_reporter.rb +40 -0
  27. data/lib/impala/protocol.rb +8 -0
  28. data/lib/impala/protocol/beeswax_constants.rb +15 -0
  29. data/lib/impala/protocol/beeswax_service.rb +747 -0
  30. data/lib/impala/protocol/beeswax_types.rb +193 -0
  31. data/lib/impala/protocol/exec_stats_constants.rb +13 -0
  32. data/lib/impala/protocol/exec_stats_types.rb +133 -0
  33. data/lib/impala/protocol/facebook_service.rb +706 -0
  34. data/lib/impala/protocol/fb303_constants.rb +15 -0
  35. data/lib/impala/protocol/fb303_types.rb +25 -0
  36. data/lib/impala/protocol/hive_metastore_constants.rb +53 -0
  37. data/lib/impala/protocol/hive_metastore_types.rb +698 -0
  38. data/lib/impala/protocol/impala_hive_server2_service.rb +137 -0
  39. data/lib/impala/protocol/impala_service.rb +443 -0
  40. data/lib/impala/protocol/impala_service_constants.rb +13 -0
  41. data/lib/impala/protocol/impala_service_types.rb +192 -0
  42. data/lib/impala/protocol/status_constants.rb +13 -0
  43. data/lib/impala/protocol/status_types.rb +46 -0
  44. data/lib/impala/protocol/t_c_l_i_service.rb +1108 -0
  45. data/lib/impala/protocol/t_c_l_i_service_constants.rb +72 -0
  46. data/lib/impala/protocol/t_c_l_i_service_types.rb +1802 -0
  47. data/lib/impala/protocol/thrift_hive_metastore.rb +4707 -0
  48. data/lib/impala/protocol/types_constants.rb +13 -0
  49. data/lib/impala/protocol/types_types.rb +332 -0
  50. data/lib/impala/sasl_transport.rb +117 -0
  51. data/lib/impala/thrift_patch.rb +31 -0
  52. data/lib/impala/version.rb +3 -0
  53. data/lib/jdbc/hive2.rb +52 -0
  54. data/lib/jdbc/impala.rb +50 -0
  55. data/lib/rbhive.rb +8 -0
  56. data/lib/rbhive/connection.rb +150 -0
  57. data/lib/rbhive/explain_result.rb +46 -0
  58. data/lib/rbhive/result_set.rb +37 -0
  59. data/lib/rbhive/schema_definition.rb +86 -0
  60. data/lib/rbhive/t_c_l_i_connection.rb +466 -0
  61. data/lib/rbhive/t_c_l_i_result_set.rb +3 -0
  62. data/lib/rbhive/t_c_l_i_schema_definition.rb +87 -0
  63. data/lib/rbhive/table_schema.rb +122 -0
  64. data/lib/rbhive/version.rb +3 -0
  65. data/lib/sequel/adapters/impala.rb +220 -0
  66. data/lib/sequel/adapters/jdbc/hive2.rb +36 -0
  67. data/lib/sequel/adapters/jdbc/impala.rb +38 -0
  68. data/lib/sequel/adapters/rbhive.rb +177 -0
  69. data/lib/sequel/adapters/shared/impala.rb +808 -0
  70. data/lib/sequel/extensions/csv_to_parquet.rb +166 -0
  71. data/lib/thrift/facebook_service.rb +700 -0
  72. data/lib/thrift/fb303_constants.rb +9 -0
  73. data/lib/thrift/fb303_types.rb +19 -0
  74. data/lib/thrift/hive_metastore_constants.rb +41 -0
  75. data/lib/thrift/hive_metastore_types.rb +630 -0
  76. data/lib/thrift/hive_service_constants.rb +13 -0
  77. data/lib/thrift/hive_service_types.rb +72 -0
  78. data/lib/thrift/queryplan_constants.rb +13 -0
  79. data/lib/thrift/queryplan_types.rb +261 -0
  80. data/lib/thrift/sasl_client_transport.rb +161 -0
  81. data/lib/thrift/serde_constants.rb +92 -0
  82. data/lib/thrift/serde_types.rb +7 -0
  83. data/lib/thrift/t_c_l_i_service.rb +1054 -0
  84. data/lib/thrift/t_c_l_i_service_constants.rb +72 -0
  85. data/lib/thrift/t_c_l_i_service_types.rb +1768 -0
  86. data/lib/thrift/thrift_hive.rb +508 -0
  87. data/lib/thrift/thrift_hive_metastore.rb +3856 -0
  88. data/spec/database_test.rb +56 -0
  89. data/spec/dataset_test.rb +1268 -0
  90. data/spec/files/bad_down_migration/001_create_alt_basic.rb +4 -0
  91. data/spec/files/bad_down_migration/002_create_alt_advanced.rb +4 -0
  92. data/spec/files/bad_timestamped_migrations/1273253849_create_sessions.rb +9 -0
  93. data/spec/files/bad_timestamped_migrations/1273253851_create_nodes.rb +9 -0
  94. data/spec/files/bad_timestamped_migrations/1273253853_3_create_users.rb +3 -0
  95. data/spec/files/bad_up_migration/001_create_alt_basic.rb +4 -0
  96. data/spec/files/bad_up_migration/002_create_alt_advanced.rb +3 -0
  97. data/spec/files/convert_to_timestamp_migrations/001_create_sessions.rb +9 -0
  98. data/spec/files/convert_to_timestamp_migrations/002_create_nodes.rb +9 -0
  99. data/spec/files/convert_to_timestamp_migrations/003_3_create_users.rb +4 -0
  100. data/spec/files/convert_to_timestamp_migrations/1273253850_create_artists.rb +9 -0
  101. data/spec/files/convert_to_timestamp_migrations/1273253852_create_albums.rb +9 -0
  102. data/spec/files/duplicate_timestamped_migrations/1273253849_create_sessions.rb +9 -0
  103. data/spec/files/duplicate_timestamped_migrations/1273253853_create_nodes.rb +9 -0
  104. data/spec/files/duplicate_timestamped_migrations/1273253853_create_users.rb +4 -0
  105. data/spec/files/integer_migrations/001_create_sessions.rb +9 -0
  106. data/spec/files/integer_migrations/002_create_nodes.rb +9 -0
  107. data/spec/files/integer_migrations/003_3_create_users.rb +4 -0
  108. data/spec/files/interleaved_timestamped_migrations/1273253849_create_sessions.rb +9 -0
  109. data/spec/files/interleaved_timestamped_migrations/1273253850_create_artists.rb +9 -0
  110. data/spec/files/interleaved_timestamped_migrations/1273253851_create_nodes.rb +9 -0
  111. data/spec/files/interleaved_timestamped_migrations/1273253852_create_albums.rb +9 -0
  112. data/spec/files/interleaved_timestamped_migrations/1273253853_3_create_users.rb +4 -0
  113. data/spec/files/reversible_migrations/001_reversible.rb +5 -0
  114. data/spec/files/reversible_migrations/002_reversible.rb +5 -0
  115. data/spec/files/reversible_migrations/003_reversible.rb +5 -0
  116. data/spec/files/reversible_migrations/004_reversible.rb +5 -0
  117. data/spec/files/reversible_migrations/005_reversible.rb +10 -0
  118. data/spec/files/timestamped_migrations/1273253849_create_sessions.rb +9 -0
  119. data/spec/files/timestamped_migrations/1273253851_create_nodes.rb +9 -0
  120. data/spec/files/timestamped_migrations/1273253853_3_create_users.rb +4 -0
  121. data/spec/impala_test.rb +290 -0
  122. data/spec/migrator_test.rb +240 -0
  123. data/spec/plugin_test.rb +91 -0
  124. data/spec/prepared_statement_test.rb +327 -0
  125. data/spec/schema_test.rb +356 -0
  126. data/spec/spec_helper.rb +19 -0
  127. data/spec/timezone_test.rb +86 -0
  128. data/spec/type_test.rb +99 -0
  129. metadata +294 -0
@@ -0,0 +1,137 @@
1
+ #
2
+ # Autogenerated by Thrift Compiler (0.9.3)
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::TCLIService::Client
15
+ include ::Thrift::Client
16
+
17
+ def GetExecSummary(req)
18
+ send_GetExecSummary(req)
19
+ return recv_GetExecSummary()
20
+ end
21
+
22
+ def send_GetExecSummary(req)
23
+ send_message('GetExecSummary', GetExecSummary_args, :req => req)
24
+ end
25
+
26
+ def recv_GetExecSummary()
27
+ result = receive_message(GetExecSummary_result)
28
+ return result.success unless result.success.nil?
29
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'GetExecSummary failed: unknown result')
30
+ end
31
+
32
+ def GetRuntimeProfile(req)
33
+ send_GetRuntimeProfile(req)
34
+ return recv_GetRuntimeProfile()
35
+ end
36
+
37
+ def send_GetRuntimeProfile(req)
38
+ send_message('GetRuntimeProfile', GetRuntimeProfile_args, :req => req)
39
+ end
40
+
41
+ def recv_GetRuntimeProfile()
42
+ result = receive_message(GetRuntimeProfile_result)
43
+ return result.success unless result.success.nil?
44
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'GetRuntimeProfile failed: unknown result')
45
+ end
46
+
47
+ end
48
+
49
+ class Processor < ::Impala::Protocol::TCLIService::Processor
50
+ include ::Thrift::Processor
51
+
52
+ def process_GetExecSummary(seqid, iprot, oprot)
53
+ args = read_args(iprot, GetExecSummary_args)
54
+ result = GetExecSummary_result.new()
55
+ result.success = @handler.GetExecSummary(args.req)
56
+ write_result(result, oprot, 'GetExecSummary', seqid)
57
+ end
58
+
59
+ def process_GetRuntimeProfile(seqid, iprot, oprot)
60
+ args = read_args(iprot, GetRuntimeProfile_args)
61
+ result = GetRuntimeProfile_result.new()
62
+ result.success = @handler.GetRuntimeProfile(args.req)
63
+ write_result(result, oprot, 'GetRuntimeProfile', seqid)
64
+ end
65
+
66
+ end
67
+
68
+ # HELPER FUNCTIONS AND STRUCTURES
69
+
70
+ class GetExecSummary_args
71
+ include ::Thrift::Struct, ::Thrift::Struct_Union
72
+ REQ = 1
73
+
74
+ FIELDS = {
75
+ REQ => {:type => ::Thrift::Types::STRUCT, :name => 'req', :class => ::Impala::Protocol::TGetExecSummaryReq}
76
+ }
77
+
78
+ def struct_fields; FIELDS; end
79
+
80
+ def validate
81
+ end
82
+
83
+ ::Thrift::Struct.generate_accessors self
84
+ end
85
+
86
+ class GetExecSummary_result
87
+ include ::Thrift::Struct, ::Thrift::Struct_Union
88
+ SUCCESS = 0
89
+
90
+ FIELDS = {
91
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Impala::Protocol::TGetExecSummaryResp}
92
+ }
93
+
94
+ def struct_fields; FIELDS; end
95
+
96
+ def validate
97
+ end
98
+
99
+ ::Thrift::Struct.generate_accessors self
100
+ end
101
+
102
+ class GetRuntimeProfile_args
103
+ include ::Thrift::Struct, ::Thrift::Struct_Union
104
+ REQ = 1
105
+
106
+ FIELDS = {
107
+ REQ => {:type => ::Thrift::Types::STRUCT, :name => 'req', :class => ::Impala::Protocol::TGetRuntimeProfileReq}
108
+ }
109
+
110
+ def struct_fields; FIELDS; end
111
+
112
+ def validate
113
+ end
114
+
115
+ ::Thrift::Struct.generate_accessors self
116
+ end
117
+
118
+ class GetRuntimeProfile_result
119
+ include ::Thrift::Struct, ::Thrift::Struct_Union
120
+ SUCCESS = 0
121
+
122
+ FIELDS = {
123
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Impala::Protocol::TGetRuntimeProfileResp}
124
+ }
125
+
126
+ def struct_fields; FIELDS; end
127
+
128
+ def validate
129
+ end
130
+
131
+ ::Thrift::Struct.generate_accessors self
132
+ end
133
+
134
+ end
135
+
136
+ end
137
+ end
@@ -0,0 +1,443 @@
1
+ #
2
+ # Autogenerated by Thrift Compiler (0.9.3)
3
+ #
4
+ # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
+ #
6
+
7
+ require 'thrift'
8
+ require 'beeswax_service'
9
+ require 'impala_service_types'
10
+
11
+ module Impala
12
+ module Protocol
13
+ module ImpalaService
14
+ class Client < ::Impala::Protocol::Beeswax::BeeswaxService::Client
15
+ include ::Thrift::Client
16
+
17
+ def Cancel(query_id)
18
+ send_Cancel(query_id)
19
+ return recv_Cancel()
20
+ end
21
+
22
+ def send_Cancel(query_id)
23
+ send_message('Cancel', Cancel_args, :query_id => query_id)
24
+ end
25
+
26
+ def recv_Cancel()
27
+ result = receive_message(Cancel_result)
28
+ return result.success unless result.success.nil?
29
+ raise result.error unless result.error.nil?
30
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'Cancel failed: unknown result')
31
+ end
32
+
33
+ def ResetCatalog()
34
+ send_ResetCatalog()
35
+ return recv_ResetCatalog()
36
+ end
37
+
38
+ def send_ResetCatalog()
39
+ send_message('ResetCatalog', ResetCatalog_args)
40
+ end
41
+
42
+ def recv_ResetCatalog()
43
+ result = receive_message(ResetCatalog_result)
44
+ return result.success unless result.success.nil?
45
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'ResetCatalog failed: unknown result')
46
+ end
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
+
79
+ def CloseInsert(handle)
80
+ send_CloseInsert(handle)
81
+ return recv_CloseInsert()
82
+ end
83
+
84
+ def send_CloseInsert(handle)
85
+ send_message('CloseInsert', CloseInsert_args, :handle => handle)
86
+ end
87
+
88
+ def recv_CloseInsert()
89
+ result = receive_message(CloseInsert_result)
90
+ return result.success unless result.success.nil?
91
+ raise result.error unless result.error.nil?
92
+ raise result.error2 unless result.error2.nil?
93
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'CloseInsert failed: unknown result')
94
+ end
95
+
96
+ def PingImpalaService()
97
+ send_PingImpalaService()
98
+ return recv_PingImpalaService()
99
+ end
100
+
101
+ def send_PingImpalaService()
102
+ send_message('PingImpalaService', PingImpalaService_args)
103
+ end
104
+
105
+ def recv_PingImpalaService()
106
+ result = receive_message(PingImpalaService_result)
107
+ return result.success unless result.success.nil?
108
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'PingImpalaService failed: unknown result')
109
+ end
110
+
111
+ def GetExecSummary(handle)
112
+ send_GetExecSummary(handle)
113
+ return recv_GetExecSummary()
114
+ end
115
+
116
+ def send_GetExecSummary(handle)
117
+ send_message('GetExecSummary', GetExecSummary_args, :handle => handle)
118
+ end
119
+
120
+ def recv_GetExecSummary()
121
+ result = receive_message(GetExecSummary_result)
122
+ return result.success unless result.success.nil?
123
+ raise result.error unless result.error.nil?
124
+ raise result.error2 unless result.error2.nil?
125
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'GetExecSummary failed: unknown result')
126
+ end
127
+
128
+ end
129
+
130
+ class Processor < ::Impala::Protocol::Beeswax::BeeswaxService::Processor
131
+ include ::Thrift::Processor
132
+
133
+ def process_Cancel(seqid, iprot, oprot)
134
+ args = read_args(iprot, Cancel_args)
135
+ result = Cancel_result.new()
136
+ begin
137
+ result.success = @handler.Cancel(args.query_id)
138
+ rescue ::Impala::Protocol::Beeswax::BeeswaxException => error
139
+ result.error = error
140
+ end
141
+ write_result(result, oprot, 'Cancel', seqid)
142
+ end
143
+
144
+ def process_ResetCatalog(seqid, iprot, oprot)
145
+ args = read_args(iprot, ResetCatalog_args)
146
+ result = ResetCatalog_result.new()
147
+ result.success = @handler.ResetCatalog()
148
+ write_result(result, oprot, 'ResetCatalog', seqid)
149
+ end
150
+
151
+ def process_ResetTable(seqid, iprot, oprot)
152
+ args = read_args(iprot, ResetTable_args)
153
+ result = ResetTable_result.new()
154
+ result.success = @handler.ResetTable(args.request)
155
+ write_result(result, oprot, 'ResetTable', seqid)
156
+ end
157
+
158
+ def process_GetRuntimeProfile(seqid, iprot, oprot)
159
+ args = read_args(iprot, GetRuntimeProfile_args)
160
+ result = GetRuntimeProfile_result.new()
161
+ begin
162
+ result.success = @handler.GetRuntimeProfile(args.query_id)
163
+ rescue ::Impala::Protocol::Beeswax::BeeswaxException => error
164
+ result.error = error
165
+ end
166
+ write_result(result, oprot, 'GetRuntimeProfile', seqid)
167
+ end
168
+
169
+ def process_CloseInsert(seqid, iprot, oprot)
170
+ args = read_args(iprot, CloseInsert_args)
171
+ result = CloseInsert_result.new()
172
+ begin
173
+ result.success = @handler.CloseInsert(args.handle)
174
+ rescue ::Impala::Protocol::Beeswax::QueryNotFoundException => error
175
+ result.error = error
176
+ rescue ::Impala::Protocol::Beeswax::BeeswaxException => error2
177
+ result.error2 = error2
178
+ end
179
+ write_result(result, oprot, 'CloseInsert', seqid)
180
+ end
181
+
182
+ def process_PingImpalaService(seqid, iprot, oprot)
183
+ args = read_args(iprot, PingImpalaService_args)
184
+ result = PingImpalaService_result.new()
185
+ result.success = @handler.PingImpalaService()
186
+ write_result(result, oprot, 'PingImpalaService', seqid)
187
+ end
188
+
189
+ def process_GetExecSummary(seqid, iprot, oprot)
190
+ args = read_args(iprot, GetExecSummary_args)
191
+ result = GetExecSummary_result.new()
192
+ begin
193
+ result.success = @handler.GetExecSummary(args.handle)
194
+ rescue ::Impala::Protocol::Beeswax::QueryNotFoundException => error
195
+ result.error = error
196
+ rescue ::Impala::Protocol::Beeswax::BeeswaxException => error2
197
+ result.error2 = error2
198
+ end
199
+ write_result(result, oprot, 'GetExecSummary', seqid)
200
+ end
201
+
202
+ end
203
+
204
+ # HELPER FUNCTIONS AND STRUCTURES
205
+
206
+ class Cancel_args
207
+ include ::Thrift::Struct, ::Thrift::Struct_Union
208
+ QUERY_ID = 1
209
+
210
+ FIELDS = {
211
+ QUERY_ID => {:type => ::Thrift::Types::STRUCT, :name => 'query_id', :class => ::Impala::Protocol::Beeswax::QueryHandle}
212
+ }
213
+
214
+ def struct_fields; FIELDS; end
215
+
216
+ def validate
217
+ end
218
+
219
+ ::Thrift::Struct.generate_accessors self
220
+ end
221
+
222
+ class Cancel_result
223
+ include ::Thrift::Struct, ::Thrift::Struct_Union
224
+ SUCCESS = 0
225
+ ERROR = 1
226
+
227
+ FIELDS = {
228
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Impala::Protocol::TStatus},
229
+ ERROR => {:type => ::Thrift::Types::STRUCT, :name => 'error', :class => ::Impala::Protocol::Beeswax::BeeswaxException}
230
+ }
231
+
232
+ def struct_fields; FIELDS; end
233
+
234
+ def validate
235
+ end
236
+
237
+ ::Thrift::Struct.generate_accessors self
238
+ end
239
+
240
+ class ResetCatalog_args
241
+ include ::Thrift::Struct, ::Thrift::Struct_Union
242
+
243
+ FIELDS = {
244
+
245
+ }
246
+
247
+ def struct_fields; FIELDS; end
248
+
249
+ def validate
250
+ end
251
+
252
+ ::Thrift::Struct.generate_accessors self
253
+ end
254
+
255
+ class ResetCatalog_result
256
+ include ::Thrift::Struct, ::Thrift::Struct_Union
257
+ SUCCESS = 0
258
+
259
+ FIELDS = {
260
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Impala::Protocol::TStatus}
261
+ }
262
+
263
+ def struct_fields; FIELDS; end
264
+
265
+ def validate
266
+ end
267
+
268
+ ::Thrift::Struct.generate_accessors self
269
+ end
270
+
271
+ class ResetTable_args
272
+ include ::Thrift::Struct, ::Thrift::Struct_Union
273
+ REQUEST = 1
274
+
275
+ FIELDS = {
276
+ REQUEST => {:type => ::Thrift::Types::STRUCT, :name => 'request', :class => ::Impala::Protocol::TResetTableReq}
277
+ }
278
+
279
+ def struct_fields; FIELDS; end
280
+
281
+ def validate
282
+ end
283
+
284
+ ::Thrift::Struct.generate_accessors self
285
+ end
286
+
287
+ class ResetTable_result
288
+ include ::Thrift::Struct, ::Thrift::Struct_Union
289
+ SUCCESS = 0
290
+
291
+ FIELDS = {
292
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Impala::Protocol::TStatus}
293
+ }
294
+
295
+ def struct_fields; FIELDS; end
296
+
297
+ def validate
298
+ end
299
+
300
+ ::Thrift::Struct.generate_accessors self
301
+ end
302
+
303
+ class GetRuntimeProfile_args
304
+ include ::Thrift::Struct, ::Thrift::Struct_Union
305
+ QUERY_ID = 1
306
+
307
+ FIELDS = {
308
+ QUERY_ID => {:type => ::Thrift::Types::STRUCT, :name => 'query_id', :class => ::Impala::Protocol::Beeswax::QueryHandle}
309
+ }
310
+
311
+ def struct_fields; FIELDS; end
312
+
313
+ def validate
314
+ end
315
+
316
+ ::Thrift::Struct.generate_accessors self
317
+ end
318
+
319
+ class GetRuntimeProfile_result
320
+ include ::Thrift::Struct, ::Thrift::Struct_Union
321
+ SUCCESS = 0
322
+ ERROR = 1
323
+
324
+ FIELDS = {
325
+ SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'},
326
+ ERROR => {:type => ::Thrift::Types::STRUCT, :name => 'error', :class => ::Impala::Protocol::Beeswax::BeeswaxException}
327
+ }
328
+
329
+ def struct_fields; FIELDS; end
330
+
331
+ def validate
332
+ end
333
+
334
+ ::Thrift::Struct.generate_accessors self
335
+ end
336
+
337
+ class CloseInsert_args
338
+ include ::Thrift::Struct, ::Thrift::Struct_Union
339
+ HANDLE = 1
340
+
341
+ FIELDS = {
342
+ HANDLE => {:type => ::Thrift::Types::STRUCT, :name => 'handle', :class => ::Impala::Protocol::Beeswax::QueryHandle}
343
+ }
344
+
345
+ def struct_fields; FIELDS; end
346
+
347
+ def validate
348
+ end
349
+
350
+ ::Thrift::Struct.generate_accessors self
351
+ end
352
+
353
+ class CloseInsert_result
354
+ include ::Thrift::Struct, ::Thrift::Struct_Union
355
+ SUCCESS = 0
356
+ ERROR = 1
357
+ ERROR2 = 2
358
+
359
+ FIELDS = {
360
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Impala::Protocol::TInsertResult},
361
+ ERROR => {:type => ::Thrift::Types::STRUCT, :name => 'error', :class => ::Impala::Protocol::Beeswax::QueryNotFoundException},
362
+ ERROR2 => {:type => ::Thrift::Types::STRUCT, :name => 'error2', :class => ::Impala::Protocol::Beeswax::BeeswaxException}
363
+ }
364
+
365
+ def struct_fields; FIELDS; end
366
+
367
+ def validate
368
+ end
369
+
370
+ ::Thrift::Struct.generate_accessors self
371
+ end
372
+
373
+ class PingImpalaService_args
374
+ include ::Thrift::Struct, ::Thrift::Struct_Union
375
+
376
+ FIELDS = {
377
+
378
+ }
379
+
380
+ def struct_fields; FIELDS; end
381
+
382
+ def validate
383
+ end
384
+
385
+ ::Thrift::Struct.generate_accessors self
386
+ end
387
+
388
+ class PingImpalaService_result
389
+ include ::Thrift::Struct, ::Thrift::Struct_Union
390
+ SUCCESS = 0
391
+
392
+ FIELDS = {
393
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Impala::Protocol::TPingImpalaServiceResp}
394
+ }
395
+
396
+ def struct_fields; FIELDS; end
397
+
398
+ def validate
399
+ end
400
+
401
+ ::Thrift::Struct.generate_accessors self
402
+ end
403
+
404
+ class GetExecSummary_args
405
+ include ::Thrift::Struct, ::Thrift::Struct_Union
406
+ HANDLE = 1
407
+
408
+ FIELDS = {
409
+ HANDLE => {:type => ::Thrift::Types::STRUCT, :name => 'handle', :class => ::Impala::Protocol::Beeswax::QueryHandle}
410
+ }
411
+
412
+ def struct_fields; FIELDS; end
413
+
414
+ def validate
415
+ end
416
+
417
+ ::Thrift::Struct.generate_accessors self
418
+ end
419
+
420
+ class GetExecSummary_result
421
+ include ::Thrift::Struct, ::Thrift::Struct_Union
422
+ SUCCESS = 0
423
+ ERROR = 1
424
+ ERROR2 = 2
425
+
426
+ FIELDS = {
427
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Impala::Protocol::TExecSummary},
428
+ ERROR => {:type => ::Thrift::Types::STRUCT, :name => 'error', :class => ::Impala::Protocol::Beeswax::QueryNotFoundException},
429
+ ERROR2 => {:type => ::Thrift::Types::STRUCT, :name => 'error2', :class => ::Impala::Protocol::Beeswax::BeeswaxException}
430
+ }
431
+
432
+ def struct_fields; FIELDS; end
433
+
434
+ def validate
435
+ end
436
+
437
+ ::Thrift::Struct.generate_accessors self
438
+ end
439
+
440
+ end
441
+
442
+ end
443
+ end