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,9 @@
1
+ #
2
+ # Autogenerated by Thrift Compiler (0.9.0)
3
+ #
4
+ # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
+ #
6
+
7
+ require 'thrift'
8
+ require_relative 'fb303_types'
9
+
@@ -0,0 +1,19 @@
1
+ #
2
+ # Autogenerated by Thrift Compiler (0.9.0)
3
+ #
4
+ # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
+ #
6
+
7
+ require 'thrift'
8
+
9
+ module Fb_status
10
+ DEAD = 0
11
+ STARTING = 1
12
+ ALIVE = 2
13
+ STOPPING = 3
14
+ STOPPED = 4
15
+ WARNING = 5
16
+ VALUE_MAP = {0 => "DEAD", 1 => "STARTING", 2 => "ALIVE", 3 => "STOPPING", 4 => "STOPPED", 5 => "WARNING"}
17
+ VALID_VALUES = Set.new([DEAD, STARTING, ALIVE, STOPPING, STOPPED, WARNING]).freeze
18
+ end
19
+
@@ -0,0 +1,41 @@
1
+ #
2
+ # Autogenerated by Thrift Compiler (0.9.0)
3
+ #
4
+ # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
+ #
6
+
7
+ require 'thrift'
8
+ require_relative 'hive_metastore_types'
9
+
10
+ DDL_TIME = %q"transient_lastDdlTime"
11
+
12
+ IS_ARCHIVED = %q"is_archived"
13
+
14
+ ORIGINAL_LOCATION = %q"original_location"
15
+
16
+ META_TABLE_COLUMNS = %q"columns"
17
+
18
+ META_TABLE_COLUMN_TYPES = %q"columns.types"
19
+
20
+ BUCKET_FIELD_NAME = %q"bucket_field_name"
21
+
22
+ BUCKET_COUNT = %q"bucket_count"
23
+
24
+ FIELD_TO_DIMENSION = %q"field_to_dimension"
25
+
26
+ META_TABLE_NAME = %q"name"
27
+
28
+ META_TABLE_DB = %q"db"
29
+
30
+ META_TABLE_LOCATION = %q"location"
31
+
32
+ META_TABLE_SERDE = %q"serde"
33
+
34
+ META_TABLE_PARTITION_COLUMNS = %q"partition_columns"
35
+
36
+ FILE_INPUT_FORMAT = %q"file.inputformat"
37
+
38
+ FILE_OUTPUT_FORMAT = %q"file.outputformat"
39
+
40
+ META_TABLE_STORAGE = %q"storage_handler"
41
+
@@ -0,0 +1,630 @@
1
+ #
2
+ # Autogenerated by Thrift Compiler (0.9.0)
3
+ #
4
+ # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
+ #
6
+
7
+ require 'thrift'
8
+ require_relative 'fb303_types'
9
+
10
+
11
+ module HiveObjectType
12
+ GLOBAL = 1
13
+ DATABASE = 2
14
+ TABLE = 3
15
+ PARTITION = 4
16
+ COLUMN = 5
17
+ VALUE_MAP = {1 => "GLOBAL", 2 => "DATABASE", 3 => "TABLE", 4 => "PARTITION", 5 => "COLUMN"}
18
+ VALID_VALUES = Set.new([GLOBAL, DATABASE, TABLE, PARTITION, COLUMN]).freeze
19
+ end
20
+
21
+ module PrincipalType
22
+ USER = 1
23
+ ROLE = 2
24
+ GROUP = 3
25
+ VALUE_MAP = {1 => "USER", 2 => "ROLE", 3 => "GROUP"}
26
+ VALID_VALUES = Set.new([USER, ROLE, GROUP]).freeze
27
+ end
28
+
29
+ class Version
30
+ include ::Thrift::Struct, ::Thrift::Struct_Union
31
+ VERSION = 1
32
+ COMMENTS = 2
33
+
34
+ FIELDS = {
35
+ VERSION => {:type => ::Thrift::Types::STRING, :name => 'version'},
36
+ COMMENTS => {:type => ::Thrift::Types::STRING, :name => 'comments'}
37
+ }
38
+
39
+ def struct_fields; FIELDS; end
40
+
41
+ def validate
42
+ end
43
+
44
+ ::Thrift::Struct.generate_accessors self
45
+ end
46
+
47
+ class FieldSchema
48
+ include ::Thrift::Struct, ::Thrift::Struct_Union
49
+ NAME = 1
50
+ TYPE = 2
51
+ COMMENT = 3
52
+
53
+ FIELDS = {
54
+ NAME => {:type => ::Thrift::Types::STRING, :name => 'name'},
55
+ TYPE => {:type => ::Thrift::Types::STRING, :name => 'type'},
56
+ COMMENT => {:type => ::Thrift::Types::STRING, :name => 'comment'}
57
+ }
58
+
59
+ def struct_fields; FIELDS; end
60
+
61
+ def validate
62
+ end
63
+
64
+ ::Thrift::Struct.generate_accessors self
65
+ end
66
+
67
+ class Type
68
+ include ::Thrift::Struct, ::Thrift::Struct_Union
69
+ NAME = 1
70
+ TYPE1 = 2
71
+ TYPE2 = 3
72
+ FIELDS = 4
73
+
74
+ FIELDS = {
75
+ NAME => {:type => ::Thrift::Types::STRING, :name => 'name'},
76
+ TYPE1 => {:type => ::Thrift::Types::STRING, :name => 'type1', :optional => true},
77
+ TYPE2 => {:type => ::Thrift::Types::STRING, :name => 'type2', :optional => true},
78
+ FIELDS => {:type => ::Thrift::Types::LIST, :name => 'fields', :element => {:type => ::Thrift::Types::STRUCT, :class => ::FieldSchema}, :optional => true}
79
+ }
80
+
81
+ def struct_fields; FIELDS; end
82
+
83
+ def validate
84
+ end
85
+
86
+ ::Thrift::Struct.generate_accessors self
87
+ end
88
+
89
+ class HiveObjectRef
90
+ include ::Thrift::Struct, ::Thrift::Struct_Union
91
+ OBJECTTYPE = 1
92
+ DBNAME = 2
93
+ OBJECTNAME = 3
94
+ PARTVALUES = 4
95
+ COLUMNNAME = 5
96
+
97
+ FIELDS = {
98
+ OBJECTTYPE => {:type => ::Thrift::Types::I32, :name => 'objectType', :enum_class => ::HiveObjectType},
99
+ DBNAME => {:type => ::Thrift::Types::STRING, :name => 'dbName'},
100
+ OBJECTNAME => {:type => ::Thrift::Types::STRING, :name => 'objectName'},
101
+ PARTVALUES => {:type => ::Thrift::Types::LIST, :name => 'partValues', :element => {:type => ::Thrift::Types::STRING}},
102
+ COLUMNNAME => {:type => ::Thrift::Types::STRING, :name => 'columnName'}
103
+ }
104
+
105
+ def struct_fields; FIELDS; end
106
+
107
+ def validate
108
+ unless @objectType.nil? || ::HiveObjectType::VALID_VALUES.include?(@objectType)
109
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field objectType!')
110
+ end
111
+ end
112
+
113
+ ::Thrift::Struct.generate_accessors self
114
+ end
115
+
116
+ class PrivilegeGrantInfo
117
+ include ::Thrift::Struct, ::Thrift::Struct_Union
118
+ PRIVILEGE = 1
119
+ CREATETIME = 2
120
+ GRANTOR = 3
121
+ GRANTORTYPE = 4
122
+ GRANTOPTION = 5
123
+
124
+ FIELDS = {
125
+ PRIVILEGE => {:type => ::Thrift::Types::STRING, :name => 'privilege'},
126
+ CREATETIME => {:type => ::Thrift::Types::I32, :name => 'createTime'},
127
+ GRANTOR => {:type => ::Thrift::Types::STRING, :name => 'grantor'},
128
+ GRANTORTYPE => {:type => ::Thrift::Types::I32, :name => 'grantorType', :enum_class => ::PrincipalType},
129
+ GRANTOPTION => {:type => ::Thrift::Types::BOOL, :name => 'grantOption'}
130
+ }
131
+
132
+ def struct_fields; FIELDS; end
133
+
134
+ def validate
135
+ unless @grantorType.nil? || ::PrincipalType::VALID_VALUES.include?(@grantorType)
136
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field grantorType!')
137
+ end
138
+ end
139
+
140
+ ::Thrift::Struct.generate_accessors self
141
+ end
142
+
143
+ class HiveObjectPrivilege
144
+ include ::Thrift::Struct, ::Thrift::Struct_Union
145
+ HIVEOBJECT = 1
146
+ PRINCIPALNAME = 2
147
+ PRINCIPALTYPE = 3
148
+ GRANTINFO = 4
149
+
150
+ FIELDS = {
151
+ HIVEOBJECT => {:type => ::Thrift::Types::STRUCT, :name => 'hiveObject', :class => ::HiveObjectRef},
152
+ PRINCIPALNAME => {:type => ::Thrift::Types::STRING, :name => 'principalName'},
153
+ PRINCIPALTYPE => {:type => ::Thrift::Types::I32, :name => 'principalType', :enum_class => ::PrincipalType},
154
+ GRANTINFO => {:type => ::Thrift::Types::STRUCT, :name => 'grantInfo', :class => ::PrivilegeGrantInfo}
155
+ }
156
+
157
+ def struct_fields; FIELDS; end
158
+
159
+ def validate
160
+ unless @principalType.nil? || ::PrincipalType::VALID_VALUES.include?(@principalType)
161
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field principalType!')
162
+ end
163
+ end
164
+
165
+ ::Thrift::Struct.generate_accessors self
166
+ end
167
+
168
+ class PrivilegeBag
169
+ include ::Thrift::Struct, ::Thrift::Struct_Union
170
+ PRIVILEGES = 1
171
+
172
+ FIELDS = {
173
+ PRIVILEGES => {:type => ::Thrift::Types::LIST, :name => 'privileges', :element => {:type => ::Thrift::Types::STRUCT, :class => ::HiveObjectPrivilege}}
174
+ }
175
+
176
+ def struct_fields; FIELDS; end
177
+
178
+ def validate
179
+ end
180
+
181
+ ::Thrift::Struct.generate_accessors self
182
+ end
183
+
184
+ class PrincipalPrivilegeSet
185
+ include ::Thrift::Struct, ::Thrift::Struct_Union
186
+ USERPRIVILEGES = 1
187
+ GROUPPRIVILEGES = 2
188
+ ROLEPRIVILEGES = 3
189
+
190
+ FIELDS = {
191
+ USERPRIVILEGES => {:type => ::Thrift::Types::MAP, :name => 'userPrivileges', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::LIST, :element => {:type => ::Thrift::Types::STRUCT, :class => ::PrivilegeGrantInfo}}},
192
+ GROUPPRIVILEGES => {:type => ::Thrift::Types::MAP, :name => 'groupPrivileges', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::LIST, :element => {:type => ::Thrift::Types::STRUCT, :class => ::PrivilegeGrantInfo}}},
193
+ ROLEPRIVILEGES => {:type => ::Thrift::Types::MAP, :name => 'rolePrivileges', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::LIST, :element => {:type => ::Thrift::Types::STRUCT, :class => ::PrivilegeGrantInfo}}}
194
+ }
195
+
196
+ def struct_fields; FIELDS; end
197
+
198
+ def validate
199
+ end
200
+
201
+ ::Thrift::Struct.generate_accessors self
202
+ end
203
+
204
+ class Role
205
+ include ::Thrift::Struct, ::Thrift::Struct_Union
206
+ ROLENAME = 1
207
+ CREATETIME = 2
208
+ OWNERNAME = 3
209
+
210
+ FIELDS = {
211
+ ROLENAME => {:type => ::Thrift::Types::STRING, :name => 'roleName'},
212
+ CREATETIME => {:type => ::Thrift::Types::I32, :name => 'createTime'},
213
+ OWNERNAME => {:type => ::Thrift::Types::STRING, :name => 'ownerName'}
214
+ }
215
+
216
+ def struct_fields; FIELDS; end
217
+
218
+ def validate
219
+ end
220
+
221
+ ::Thrift::Struct.generate_accessors self
222
+ end
223
+
224
+ class Database
225
+ include ::Thrift::Struct, ::Thrift::Struct_Union
226
+ NAME = 1
227
+ DESCRIPTION = 2
228
+ LOCATIONURI = 3
229
+ PARAMETERS = 4
230
+ PRIVILEGES = 5
231
+
232
+ FIELDS = {
233
+ NAME => {:type => ::Thrift::Types::STRING, :name => 'name'},
234
+ DESCRIPTION => {:type => ::Thrift::Types::STRING, :name => 'description'},
235
+ LOCATIONURI => {:type => ::Thrift::Types::STRING, :name => 'locationUri'},
236
+ PARAMETERS => {:type => ::Thrift::Types::MAP, :name => 'parameters', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRING}},
237
+ PRIVILEGES => {:type => ::Thrift::Types::STRUCT, :name => 'privileges', :class => ::PrincipalPrivilegeSet, :optional => true}
238
+ }
239
+
240
+ def struct_fields; FIELDS; end
241
+
242
+ def validate
243
+ end
244
+
245
+ ::Thrift::Struct.generate_accessors self
246
+ end
247
+
248
+ class SerDeInfo
249
+ include ::Thrift::Struct, ::Thrift::Struct_Union
250
+ NAME = 1
251
+ SERIALIZATIONLIB = 2
252
+ PARAMETERS = 3
253
+
254
+ FIELDS = {
255
+ NAME => {:type => ::Thrift::Types::STRING, :name => 'name'},
256
+ SERIALIZATIONLIB => {:type => ::Thrift::Types::STRING, :name => 'serializationLib'},
257
+ PARAMETERS => {:type => ::Thrift::Types::MAP, :name => 'parameters', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRING}}
258
+ }
259
+
260
+ def struct_fields; FIELDS; end
261
+
262
+ def validate
263
+ end
264
+
265
+ ::Thrift::Struct.generate_accessors self
266
+ end
267
+
268
+ class Order
269
+ include ::Thrift::Struct, ::Thrift::Struct_Union
270
+ COL = 1
271
+ ORDER = 2
272
+
273
+ FIELDS = {
274
+ COL => {:type => ::Thrift::Types::STRING, :name => 'col'},
275
+ ORDER => {:type => ::Thrift::Types::I32, :name => 'order'}
276
+ }
277
+
278
+ def struct_fields; FIELDS; end
279
+
280
+ def validate
281
+ end
282
+
283
+ ::Thrift::Struct.generate_accessors self
284
+ end
285
+
286
+ class StorageDescriptor
287
+ include ::Thrift::Struct, ::Thrift::Struct_Union
288
+ COLS = 1
289
+ LOCATION = 2
290
+ INPUTFORMAT = 3
291
+ OUTPUTFORMAT = 4
292
+ COMPRESSED = 5
293
+ NUMBUCKETS = 6
294
+ SERDEINFO = 7
295
+ BUCKETCOLS = 8
296
+ SORTCOLS = 9
297
+ PARAMETERS = 10
298
+
299
+ FIELDS = {
300
+ COLS => {:type => ::Thrift::Types::LIST, :name => 'cols', :element => {:type => ::Thrift::Types::STRUCT, :class => ::FieldSchema}},
301
+ LOCATION => {:type => ::Thrift::Types::STRING, :name => 'location'},
302
+ INPUTFORMAT => {:type => ::Thrift::Types::STRING, :name => 'inputFormat'},
303
+ OUTPUTFORMAT => {:type => ::Thrift::Types::STRING, :name => 'outputFormat'},
304
+ COMPRESSED => {:type => ::Thrift::Types::BOOL, :name => 'compressed'},
305
+ NUMBUCKETS => {:type => ::Thrift::Types::I32, :name => 'numBuckets'},
306
+ SERDEINFO => {:type => ::Thrift::Types::STRUCT, :name => 'serdeInfo', :class => ::SerDeInfo},
307
+ BUCKETCOLS => {:type => ::Thrift::Types::LIST, :name => 'bucketCols', :element => {:type => ::Thrift::Types::STRING}},
308
+ SORTCOLS => {:type => ::Thrift::Types::LIST, :name => 'sortCols', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Order}},
309
+ PARAMETERS => {:type => ::Thrift::Types::MAP, :name => 'parameters', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRING}}
310
+ }
311
+
312
+ def struct_fields; FIELDS; end
313
+
314
+ def validate
315
+ end
316
+
317
+ ::Thrift::Struct.generate_accessors self
318
+ end
319
+
320
+ class Table
321
+ include ::Thrift::Struct, ::Thrift::Struct_Union
322
+ TABLENAME = 1
323
+ DBNAME = 2
324
+ OWNER = 3
325
+ CREATETIME = 4
326
+ LASTACCESSTIME = 5
327
+ RETENTION = 6
328
+ SD = 7
329
+ PARTITIONKEYS = 8
330
+ PARAMETERS = 9
331
+ VIEWORIGINALTEXT = 10
332
+ VIEWEXPANDEDTEXT = 11
333
+ TABLETYPE = 12
334
+ PRIVILEGES = 13
335
+
336
+ FIELDS = {
337
+ TABLENAME => {:type => ::Thrift::Types::STRING, :name => 'tableName'},
338
+ DBNAME => {:type => ::Thrift::Types::STRING, :name => 'dbName'},
339
+ OWNER => {:type => ::Thrift::Types::STRING, :name => 'owner'},
340
+ CREATETIME => {:type => ::Thrift::Types::I32, :name => 'createTime'},
341
+ LASTACCESSTIME => {:type => ::Thrift::Types::I32, :name => 'lastAccessTime'},
342
+ RETENTION => {:type => ::Thrift::Types::I32, :name => 'retention'},
343
+ SD => {:type => ::Thrift::Types::STRUCT, :name => 'sd', :class => ::StorageDescriptor},
344
+ PARTITIONKEYS => {:type => ::Thrift::Types::LIST, :name => 'partitionKeys', :element => {:type => ::Thrift::Types::STRUCT, :class => ::FieldSchema}},
345
+ PARAMETERS => {:type => ::Thrift::Types::MAP, :name => 'parameters', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRING}},
346
+ VIEWORIGINALTEXT => {:type => ::Thrift::Types::STRING, :name => 'viewOriginalText'},
347
+ VIEWEXPANDEDTEXT => {:type => ::Thrift::Types::STRING, :name => 'viewExpandedText'},
348
+ TABLETYPE => {:type => ::Thrift::Types::STRING, :name => 'tableType'},
349
+ PRIVILEGES => {:type => ::Thrift::Types::STRUCT, :name => 'privileges', :class => ::PrincipalPrivilegeSet, :optional => true}
350
+ }
351
+
352
+ def struct_fields; FIELDS; end
353
+
354
+ def validate
355
+ end
356
+
357
+ ::Thrift::Struct.generate_accessors self
358
+ end
359
+
360
+ class Partition
361
+ include ::Thrift::Struct, ::Thrift::Struct_Union
362
+ VALUES = 1
363
+ DBNAME = 2
364
+ TABLENAME = 3
365
+ CREATETIME = 4
366
+ LASTACCESSTIME = 5
367
+ SD = 6
368
+ PARAMETERS = 7
369
+ PRIVILEGES = 8
370
+
371
+ FIELDS = {
372
+ VALUES => {:type => ::Thrift::Types::LIST, :name => 'values', :element => {:type => ::Thrift::Types::STRING}},
373
+ DBNAME => {:type => ::Thrift::Types::STRING, :name => 'dbName'},
374
+ TABLENAME => {:type => ::Thrift::Types::STRING, :name => 'tableName'},
375
+ CREATETIME => {:type => ::Thrift::Types::I32, :name => 'createTime'},
376
+ LASTACCESSTIME => {:type => ::Thrift::Types::I32, :name => 'lastAccessTime'},
377
+ SD => {:type => ::Thrift::Types::STRUCT, :name => 'sd', :class => ::StorageDescriptor},
378
+ PARAMETERS => {:type => ::Thrift::Types::MAP, :name => 'parameters', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRING}},
379
+ PRIVILEGES => {:type => ::Thrift::Types::STRUCT, :name => 'privileges', :class => ::PrincipalPrivilegeSet, :optional => true}
380
+ }
381
+
382
+ def struct_fields; FIELDS; end
383
+
384
+ def validate
385
+ end
386
+
387
+ ::Thrift::Struct.generate_accessors self
388
+ end
389
+
390
+ class Index
391
+ include ::Thrift::Struct, ::Thrift::Struct_Union
392
+ INDEXNAME = 1
393
+ INDEXHANDLERCLASS = 2
394
+ DBNAME = 3
395
+ ORIGTABLENAME = 4
396
+ CREATETIME = 5
397
+ LASTACCESSTIME = 6
398
+ INDEXTABLENAME = 7
399
+ SD = 8
400
+ PARAMETERS = 9
401
+ DEFERREDREBUILD = 10
402
+
403
+ FIELDS = {
404
+ INDEXNAME => {:type => ::Thrift::Types::STRING, :name => 'indexName'},
405
+ INDEXHANDLERCLASS => {:type => ::Thrift::Types::STRING, :name => 'indexHandlerClass'},
406
+ DBNAME => {:type => ::Thrift::Types::STRING, :name => 'dbName'},
407
+ ORIGTABLENAME => {:type => ::Thrift::Types::STRING, :name => 'origTableName'},
408
+ CREATETIME => {:type => ::Thrift::Types::I32, :name => 'createTime'},
409
+ LASTACCESSTIME => {:type => ::Thrift::Types::I32, :name => 'lastAccessTime'},
410
+ INDEXTABLENAME => {:type => ::Thrift::Types::STRING, :name => 'indexTableName'},
411
+ SD => {:type => ::Thrift::Types::STRUCT, :name => 'sd', :class => ::StorageDescriptor},
412
+ PARAMETERS => {:type => ::Thrift::Types::MAP, :name => 'parameters', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRING}},
413
+ DEFERREDREBUILD => {:type => ::Thrift::Types::BOOL, :name => 'deferredRebuild'}
414
+ }
415
+
416
+ def struct_fields; FIELDS; end
417
+
418
+ def validate
419
+ end
420
+
421
+ ::Thrift::Struct.generate_accessors self
422
+ end
423
+
424
+ class Schema
425
+ include ::Thrift::Struct, ::Thrift::Struct_Union
426
+ FIELDSCHEMAS = 1
427
+ PROPERTIES = 2
428
+
429
+ FIELDS = {
430
+ FIELDSCHEMAS => {:type => ::Thrift::Types::LIST, :name => 'fieldSchemas', :element => {:type => ::Thrift::Types::STRUCT, :class => ::FieldSchema}},
431
+ PROPERTIES => {:type => ::Thrift::Types::MAP, :name => 'properties', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRING}}
432
+ }
433
+
434
+ def struct_fields; FIELDS; end
435
+
436
+ def validate
437
+ end
438
+
439
+ ::Thrift::Struct.generate_accessors self
440
+ end
441
+
442
+ class MetaException < ::Thrift::Exception
443
+ include ::Thrift::Struct, ::Thrift::Struct_Union
444
+ def initialize(message=nil)
445
+ super()
446
+ self.message = message
447
+ end
448
+
449
+ MESSAGE = 1
450
+
451
+ FIELDS = {
452
+ MESSAGE => {:type => ::Thrift::Types::STRING, :name => 'message'}
453
+ }
454
+
455
+ def struct_fields; FIELDS; end
456
+
457
+ def validate
458
+ end
459
+
460
+ ::Thrift::Struct.generate_accessors self
461
+ end
462
+
463
+ class UnknownTableException < ::Thrift::Exception
464
+ include ::Thrift::Struct, ::Thrift::Struct_Union
465
+ def initialize(message=nil)
466
+ super()
467
+ self.message = message
468
+ end
469
+
470
+ MESSAGE = 1
471
+
472
+ FIELDS = {
473
+ MESSAGE => {:type => ::Thrift::Types::STRING, :name => 'message'}
474
+ }
475
+
476
+ def struct_fields; FIELDS; end
477
+
478
+ def validate
479
+ end
480
+
481
+ ::Thrift::Struct.generate_accessors self
482
+ end
483
+
484
+ class UnknownDBException < ::Thrift::Exception
485
+ include ::Thrift::Struct, ::Thrift::Struct_Union
486
+ def initialize(message=nil)
487
+ super()
488
+ self.message = message
489
+ end
490
+
491
+ MESSAGE = 1
492
+
493
+ FIELDS = {
494
+ MESSAGE => {:type => ::Thrift::Types::STRING, :name => 'message'}
495
+ }
496
+
497
+ def struct_fields; FIELDS; end
498
+
499
+ def validate
500
+ end
501
+
502
+ ::Thrift::Struct.generate_accessors self
503
+ end
504
+
505
+ class AlreadyExistsException < ::Thrift::Exception
506
+ include ::Thrift::Struct, ::Thrift::Struct_Union
507
+ def initialize(message=nil)
508
+ super()
509
+ self.message = message
510
+ end
511
+
512
+ MESSAGE = 1
513
+
514
+ FIELDS = {
515
+ MESSAGE => {:type => ::Thrift::Types::STRING, :name => 'message'}
516
+ }
517
+
518
+ def struct_fields; FIELDS; end
519
+
520
+ def validate
521
+ end
522
+
523
+ ::Thrift::Struct.generate_accessors self
524
+ end
525
+
526
+ class InvalidObjectException < ::Thrift::Exception
527
+ include ::Thrift::Struct, ::Thrift::Struct_Union
528
+ def initialize(message=nil)
529
+ super()
530
+ self.message = message
531
+ end
532
+
533
+ MESSAGE = 1
534
+
535
+ FIELDS = {
536
+ MESSAGE => {:type => ::Thrift::Types::STRING, :name => 'message'}
537
+ }
538
+
539
+ def struct_fields; FIELDS; end
540
+
541
+ def validate
542
+ end
543
+
544
+ ::Thrift::Struct.generate_accessors self
545
+ end
546
+
547
+ class NoSuchObjectException < ::Thrift::Exception
548
+ include ::Thrift::Struct, ::Thrift::Struct_Union
549
+ def initialize(message=nil)
550
+ super()
551
+ self.message = message
552
+ end
553
+
554
+ MESSAGE = 1
555
+
556
+ FIELDS = {
557
+ MESSAGE => {:type => ::Thrift::Types::STRING, :name => 'message'}
558
+ }
559
+
560
+ def struct_fields; FIELDS; end
561
+
562
+ def validate
563
+ end
564
+
565
+ ::Thrift::Struct.generate_accessors self
566
+ end
567
+
568
+ class IndexAlreadyExistsException < ::Thrift::Exception
569
+ include ::Thrift::Struct, ::Thrift::Struct_Union
570
+ def initialize(message=nil)
571
+ super()
572
+ self.message = message
573
+ end
574
+
575
+ MESSAGE = 1
576
+
577
+ FIELDS = {
578
+ MESSAGE => {:type => ::Thrift::Types::STRING, :name => 'message'}
579
+ }
580
+
581
+ def struct_fields; FIELDS; end
582
+
583
+ def validate
584
+ end
585
+
586
+ ::Thrift::Struct.generate_accessors self
587
+ end
588
+
589
+ class InvalidOperationException < ::Thrift::Exception
590
+ include ::Thrift::Struct, ::Thrift::Struct_Union
591
+ def initialize(message=nil)
592
+ super()
593
+ self.message = message
594
+ end
595
+
596
+ MESSAGE = 1
597
+
598
+ FIELDS = {
599
+ MESSAGE => {:type => ::Thrift::Types::STRING, :name => 'message'}
600
+ }
601
+
602
+ def struct_fields; FIELDS; end
603
+
604
+ def validate
605
+ end
606
+
607
+ ::Thrift::Struct.generate_accessors self
608
+ end
609
+
610
+ class ConfigValSecurityException < ::Thrift::Exception
611
+ include ::Thrift::Struct, ::Thrift::Struct_Union
612
+ def initialize(message=nil)
613
+ super()
614
+ self.message = message
615
+ end
616
+
617
+ MESSAGE = 1
618
+
619
+ FIELDS = {
620
+ MESSAGE => {:type => ::Thrift::Types::STRING, :name => 'message'}
621
+ }
622
+
623
+ def struct_fields; FIELDS; end
624
+
625
+ def validate
626
+ end
627
+
628
+ ::Thrift::Struct.generate_accessors self
629
+ end
630
+