sequel_impala 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGELOG.md +50 -0
- data/LICENSE +463 -0
- data/README.md +45 -0
- data/Rakefile +39 -0
- data/lib/driver/commons-collections-3.2.1.jar +0 -0
- data/lib/driver/commons-configuration-1.10.jar +0 -0
- data/lib/driver/commons-logging-1.2.jar +0 -0
- data/lib/driver/hadoop-auth-2.9.0.jar +0 -0
- data/lib/driver/hadoop-common-2.9.0.jar +0 -0
- data/lib/driver/hadoop-core-2.6.0.jar +0 -0
- data/lib/driver/hive-exec-1.1.0.jar +0 -0
- data/lib/driver/hive-jdbc-1.1.0.jar +0 -0
- data/lib/driver/hive-metastore-1.1.0.jar +0 -0
- data/lib/driver/hive-service-1.1.0.jar +0 -0
- data/lib/driver/httpclient-4.3.jar +0 -0
- data/lib/driver/httpcore-4.3.jar +0 -0
- data/lib/driver/libfb303-0.9.0.jar +0 -0
- data/lib/driver/log4j-1.2.17.jar +0 -0
- data/lib/driver/slf4j-api-1.7.5.jar +0 -0
- data/lib/driver/stax2-api-3.1.4.jar +0 -0
- data/lib/driver/woodstox-core-asl-4.4.1.jar +0 -0
- data/lib/impala.rb +55 -0
- data/lib/impala/connection.rb +180 -0
- data/lib/impala/cursor.rb +200 -0
- data/lib/impala/progress_reporter.rb +40 -0
- data/lib/impala/protocol.rb +8 -0
- data/lib/impala/protocol/beeswax_constants.rb +15 -0
- data/lib/impala/protocol/beeswax_service.rb +747 -0
- data/lib/impala/protocol/beeswax_types.rb +193 -0
- data/lib/impala/protocol/exec_stats_constants.rb +13 -0
- data/lib/impala/protocol/exec_stats_types.rb +133 -0
- data/lib/impala/protocol/facebook_service.rb +706 -0
- data/lib/impala/protocol/fb303_constants.rb +15 -0
- data/lib/impala/protocol/fb303_types.rb +25 -0
- data/lib/impala/protocol/hive_metastore_constants.rb +53 -0
- data/lib/impala/protocol/hive_metastore_types.rb +698 -0
- data/lib/impala/protocol/impala_hive_server2_service.rb +137 -0
- data/lib/impala/protocol/impala_service.rb +443 -0
- data/lib/impala/protocol/impala_service_constants.rb +13 -0
- data/lib/impala/protocol/impala_service_types.rb +192 -0
- data/lib/impala/protocol/status_constants.rb +13 -0
- data/lib/impala/protocol/status_types.rb +46 -0
- data/lib/impala/protocol/t_c_l_i_service.rb +1108 -0
- data/lib/impala/protocol/t_c_l_i_service_constants.rb +72 -0
- data/lib/impala/protocol/t_c_l_i_service_types.rb +1802 -0
- data/lib/impala/protocol/thrift_hive_metastore.rb +4707 -0
- data/lib/impala/protocol/types_constants.rb +13 -0
- data/lib/impala/protocol/types_types.rb +332 -0
- data/lib/impala/sasl_transport.rb +117 -0
- data/lib/impala/thrift_patch.rb +31 -0
- data/lib/impala/version.rb +3 -0
- data/lib/jdbc/hive2.rb +52 -0
- data/lib/jdbc/impala.rb +50 -0
- data/lib/rbhive.rb +8 -0
- data/lib/rbhive/connection.rb +150 -0
- data/lib/rbhive/explain_result.rb +46 -0
- data/lib/rbhive/result_set.rb +37 -0
- data/lib/rbhive/schema_definition.rb +86 -0
- data/lib/rbhive/t_c_l_i_connection.rb +466 -0
- data/lib/rbhive/t_c_l_i_result_set.rb +3 -0
- data/lib/rbhive/t_c_l_i_schema_definition.rb +87 -0
- data/lib/rbhive/table_schema.rb +122 -0
- data/lib/rbhive/version.rb +3 -0
- data/lib/sequel/adapters/impala.rb +220 -0
- data/lib/sequel/adapters/jdbc/hive2.rb +36 -0
- data/lib/sequel/adapters/jdbc/impala.rb +38 -0
- data/lib/sequel/adapters/rbhive.rb +177 -0
- data/lib/sequel/adapters/shared/impala.rb +808 -0
- data/lib/sequel/extensions/csv_to_parquet.rb +166 -0
- data/lib/thrift/facebook_service.rb +700 -0
- data/lib/thrift/fb303_constants.rb +9 -0
- data/lib/thrift/fb303_types.rb +19 -0
- data/lib/thrift/hive_metastore_constants.rb +41 -0
- data/lib/thrift/hive_metastore_types.rb +630 -0
- data/lib/thrift/hive_service_constants.rb +13 -0
- data/lib/thrift/hive_service_types.rb +72 -0
- data/lib/thrift/queryplan_constants.rb +13 -0
- data/lib/thrift/queryplan_types.rb +261 -0
- data/lib/thrift/sasl_client_transport.rb +161 -0
- data/lib/thrift/serde_constants.rb +92 -0
- data/lib/thrift/serde_types.rb +7 -0
- data/lib/thrift/t_c_l_i_service.rb +1054 -0
- data/lib/thrift/t_c_l_i_service_constants.rb +72 -0
- data/lib/thrift/t_c_l_i_service_types.rb +1768 -0
- data/lib/thrift/thrift_hive.rb +508 -0
- data/lib/thrift/thrift_hive_metastore.rb +3856 -0
- data/spec/database_test.rb +56 -0
- data/spec/dataset_test.rb +1268 -0
- data/spec/files/bad_down_migration/001_create_alt_basic.rb +4 -0
- data/spec/files/bad_down_migration/002_create_alt_advanced.rb +4 -0
- data/spec/files/bad_timestamped_migrations/1273253849_create_sessions.rb +9 -0
- data/spec/files/bad_timestamped_migrations/1273253851_create_nodes.rb +9 -0
- data/spec/files/bad_timestamped_migrations/1273253853_3_create_users.rb +3 -0
- data/spec/files/bad_up_migration/001_create_alt_basic.rb +4 -0
- data/spec/files/bad_up_migration/002_create_alt_advanced.rb +3 -0
- data/spec/files/convert_to_timestamp_migrations/001_create_sessions.rb +9 -0
- data/spec/files/convert_to_timestamp_migrations/002_create_nodes.rb +9 -0
- data/spec/files/convert_to_timestamp_migrations/003_3_create_users.rb +4 -0
- data/spec/files/convert_to_timestamp_migrations/1273253850_create_artists.rb +9 -0
- data/spec/files/convert_to_timestamp_migrations/1273253852_create_albums.rb +9 -0
- data/spec/files/duplicate_timestamped_migrations/1273253849_create_sessions.rb +9 -0
- data/spec/files/duplicate_timestamped_migrations/1273253853_create_nodes.rb +9 -0
- data/spec/files/duplicate_timestamped_migrations/1273253853_create_users.rb +4 -0
- data/spec/files/integer_migrations/001_create_sessions.rb +9 -0
- data/spec/files/integer_migrations/002_create_nodes.rb +9 -0
- data/spec/files/integer_migrations/003_3_create_users.rb +4 -0
- data/spec/files/interleaved_timestamped_migrations/1273253849_create_sessions.rb +9 -0
- data/spec/files/interleaved_timestamped_migrations/1273253850_create_artists.rb +9 -0
- data/spec/files/interleaved_timestamped_migrations/1273253851_create_nodes.rb +9 -0
- data/spec/files/interleaved_timestamped_migrations/1273253852_create_albums.rb +9 -0
- data/spec/files/interleaved_timestamped_migrations/1273253853_3_create_users.rb +4 -0
- data/spec/files/reversible_migrations/001_reversible.rb +5 -0
- data/spec/files/reversible_migrations/002_reversible.rb +5 -0
- data/spec/files/reversible_migrations/003_reversible.rb +5 -0
- data/spec/files/reversible_migrations/004_reversible.rb +5 -0
- data/spec/files/reversible_migrations/005_reversible.rb +10 -0
- data/spec/files/timestamped_migrations/1273253849_create_sessions.rb +9 -0
- data/spec/files/timestamped_migrations/1273253851_create_nodes.rb +9 -0
- data/spec/files/timestamped_migrations/1273253853_3_create_users.rb +4 -0
- data/spec/impala_test.rb +290 -0
- data/spec/migrator_test.rb +240 -0
- data/spec/plugin_test.rb +91 -0
- data/spec/prepared_statement_test.rb +327 -0
- data/spec/schema_test.rb +356 -0
- data/spec/spec_helper.rb +19 -0
- data/spec/timezone_test.rb +86 -0
- data/spec/type_test.rb +99 -0
- metadata +294 -0
@@ -0,0 +1,25 @@
|
|
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
|
+
|
9
|
+
module Impala
|
10
|
+
module Protocol
|
11
|
+
module Fb303
|
12
|
+
module Fb_status
|
13
|
+
DEAD = 0
|
14
|
+
STARTING = 1
|
15
|
+
ALIVE = 2
|
16
|
+
STOPPING = 3
|
17
|
+
STOPPED = 4
|
18
|
+
WARNING = 5
|
19
|
+
VALUE_MAP = {0 => "DEAD", 1 => "STARTING", 2 => "ALIVE", 3 => "STOPPING", 4 => "STOPPED", 5 => "WARNING"}
|
20
|
+
VALID_VALUES = Set.new([DEAD, STARTING, ALIVE, STOPPING, STOPPED, WARNING]).freeze
|
21
|
+
end
|
22
|
+
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
@@ -0,0 +1,53 @@
|
|
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 'hive_metastore_types'
|
9
|
+
|
10
|
+
module Impala
|
11
|
+
module Protocol
|
12
|
+
module HiveMetastore
|
13
|
+
DDL_TIME = %q"transient_lastDdlTime"
|
14
|
+
|
15
|
+
HIVE_FILTER_FIELD_OWNER = %q"hive_filter_field_owner__"
|
16
|
+
|
17
|
+
HIVE_FILTER_FIELD_PARAMS = %q"hive_filter_field_params__"
|
18
|
+
|
19
|
+
HIVE_FILTER_FIELD_LAST_ACCESS = %q"hive_filter_field_last_access__"
|
20
|
+
|
21
|
+
IS_ARCHIVED = %q"is_archived"
|
22
|
+
|
23
|
+
ORIGINAL_LOCATION = %q"original_location"
|
24
|
+
|
25
|
+
META_TABLE_COLUMNS = %q"columns"
|
26
|
+
|
27
|
+
META_TABLE_COLUMN_TYPES = %q"columns.types"
|
28
|
+
|
29
|
+
BUCKET_FIELD_NAME = %q"bucket_field_name"
|
30
|
+
|
31
|
+
BUCKET_COUNT = %q"bucket_count"
|
32
|
+
|
33
|
+
FIELD_TO_DIMENSION = %q"field_to_dimension"
|
34
|
+
|
35
|
+
META_TABLE_NAME = %q"name"
|
36
|
+
|
37
|
+
META_TABLE_DB = %q"db"
|
38
|
+
|
39
|
+
META_TABLE_LOCATION = %q"location"
|
40
|
+
|
41
|
+
META_TABLE_SERDE = %q"serde"
|
42
|
+
|
43
|
+
META_TABLE_PARTITION_COLUMNS = %q"partition_columns"
|
44
|
+
|
45
|
+
FILE_INPUT_FORMAT = %q"file.inputformat"
|
46
|
+
|
47
|
+
FILE_OUTPUT_FORMAT = %q"file.outputformat"
|
48
|
+
|
49
|
+
META_TABLE_STORAGE = %q"storage_handler"
|
50
|
+
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
@@ -0,0 +1,698 @@
|
|
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 'fb303_types'
|
9
|
+
|
10
|
+
|
11
|
+
module Impala
|
12
|
+
module Protocol
|
13
|
+
module HiveMetastore
|
14
|
+
module HiveObjectType
|
15
|
+
GLOBAL = 1
|
16
|
+
DATABASE = 2
|
17
|
+
TABLE = 3
|
18
|
+
PARTITION = 4
|
19
|
+
COLUMN = 5
|
20
|
+
VALUE_MAP = {1 => "GLOBAL", 2 => "DATABASE", 3 => "TABLE", 4 => "PARTITION", 5 => "COLUMN"}
|
21
|
+
VALID_VALUES = Set.new([GLOBAL, DATABASE, TABLE, PARTITION, COLUMN]).freeze
|
22
|
+
end
|
23
|
+
|
24
|
+
module PrincipalType
|
25
|
+
USER = 1
|
26
|
+
ROLE = 2
|
27
|
+
GROUP = 3
|
28
|
+
VALUE_MAP = {1 => "USER", 2 => "ROLE", 3 => "GROUP"}
|
29
|
+
VALID_VALUES = Set.new([USER, ROLE, GROUP]).freeze
|
30
|
+
end
|
31
|
+
|
32
|
+
module PartitionEventType
|
33
|
+
LOAD_DONE = 1
|
34
|
+
VALUE_MAP = {1 => "LOAD_DONE"}
|
35
|
+
VALID_VALUES = Set.new([LOAD_DONE]).freeze
|
36
|
+
end
|
37
|
+
|
38
|
+
class Version
|
39
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
40
|
+
VERSION = 1
|
41
|
+
COMMENTS = 2
|
42
|
+
|
43
|
+
FIELDS = {
|
44
|
+
VERSION => {:type => ::Thrift::Types::STRING, :name => 'version'},
|
45
|
+
COMMENTS => {:type => ::Thrift::Types::STRING, :name => 'comments'}
|
46
|
+
}
|
47
|
+
|
48
|
+
def struct_fields; FIELDS; end
|
49
|
+
|
50
|
+
def validate
|
51
|
+
end
|
52
|
+
|
53
|
+
::Thrift::Struct.generate_accessors self
|
54
|
+
end
|
55
|
+
|
56
|
+
class FieldSchema
|
57
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
58
|
+
NAME = 1
|
59
|
+
TYPE = 2
|
60
|
+
COMMENT = 3
|
61
|
+
|
62
|
+
FIELDS = {
|
63
|
+
NAME => {:type => ::Thrift::Types::STRING, :name => 'name'},
|
64
|
+
TYPE => {:type => ::Thrift::Types::STRING, :name => 'type'},
|
65
|
+
COMMENT => {:type => ::Thrift::Types::STRING, :name => 'comment'}
|
66
|
+
}
|
67
|
+
|
68
|
+
def struct_fields; FIELDS; end
|
69
|
+
|
70
|
+
def validate
|
71
|
+
end
|
72
|
+
|
73
|
+
::Thrift::Struct.generate_accessors self
|
74
|
+
end
|
75
|
+
|
76
|
+
class Type
|
77
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
78
|
+
NAME = 1
|
79
|
+
TYPE1 = 2
|
80
|
+
TYPE2 = 3
|
81
|
+
|
82
|
+
FIELDS = {
|
83
|
+
NAME => {:type => ::Thrift::Types::STRING, :name => 'name'},
|
84
|
+
TYPE1 => {:type => ::Thrift::Types::STRING, :name => 'type1', :optional => true},
|
85
|
+
TYPE2 => {:type => ::Thrift::Types::STRING, :name => 'type2', :optional => true}
|
86
|
+
}
|
87
|
+
|
88
|
+
def struct_fields; FIELDS; end
|
89
|
+
|
90
|
+
def validate
|
91
|
+
end
|
92
|
+
|
93
|
+
::Thrift::Struct.generate_accessors self
|
94
|
+
end
|
95
|
+
|
96
|
+
class HiveObjectRef
|
97
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
98
|
+
OBJECTTYPE = 1
|
99
|
+
DBNAME = 2
|
100
|
+
OBJECTNAME = 3
|
101
|
+
PARTVALUES = 4
|
102
|
+
COLUMNNAME = 5
|
103
|
+
|
104
|
+
FIELDS = {
|
105
|
+
OBJECTTYPE => {:type => ::Thrift::Types::I32, :name => 'objectType', :enum_class => ::Impala::Protocol::HiveMetastore::HiveObjectType},
|
106
|
+
DBNAME => {:type => ::Thrift::Types::STRING, :name => 'dbName'},
|
107
|
+
OBJECTNAME => {:type => ::Thrift::Types::STRING, :name => 'objectName'},
|
108
|
+
PARTVALUES => {:type => ::Thrift::Types::LIST, :name => 'partValues', :element => {:type => ::Thrift::Types::STRING}},
|
109
|
+
COLUMNNAME => {:type => ::Thrift::Types::STRING, :name => 'columnName'}
|
110
|
+
}
|
111
|
+
|
112
|
+
def struct_fields; FIELDS; end
|
113
|
+
|
114
|
+
def validate
|
115
|
+
unless @objectType.nil? || ::Impala::Protocol::HiveMetastore::HiveObjectType::VALID_VALUES.include?(@objectType)
|
116
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field objectType!')
|
117
|
+
end
|
118
|
+
end
|
119
|
+
|
120
|
+
::Thrift::Struct.generate_accessors self
|
121
|
+
end
|
122
|
+
|
123
|
+
class PrivilegeGrantInfo
|
124
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
125
|
+
PRIVILEGE = 1
|
126
|
+
CREATETIME = 2
|
127
|
+
GRANTOR = 3
|
128
|
+
GRANTORTYPE = 4
|
129
|
+
GRANTOPTION = 5
|
130
|
+
|
131
|
+
FIELDS = {
|
132
|
+
PRIVILEGE => {:type => ::Thrift::Types::STRING, :name => 'privilege'},
|
133
|
+
CREATETIME => {:type => ::Thrift::Types::I32, :name => 'createTime'},
|
134
|
+
GRANTOR => {:type => ::Thrift::Types::STRING, :name => 'grantor'},
|
135
|
+
GRANTORTYPE => {:type => ::Thrift::Types::I32, :name => 'grantorType', :enum_class => ::Impala::Protocol::HiveMetastore::PrincipalType},
|
136
|
+
GRANTOPTION => {:type => ::Thrift::Types::BOOL, :name => 'grantOption'}
|
137
|
+
}
|
138
|
+
|
139
|
+
def struct_fields; FIELDS; end
|
140
|
+
|
141
|
+
def validate
|
142
|
+
unless @grantorType.nil? || ::Impala::Protocol::HiveMetastore::PrincipalType::VALID_VALUES.include?(@grantorType)
|
143
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field grantorType!')
|
144
|
+
end
|
145
|
+
end
|
146
|
+
|
147
|
+
::Thrift::Struct.generate_accessors self
|
148
|
+
end
|
149
|
+
|
150
|
+
class HiveObjectPrivilege
|
151
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
152
|
+
HIVEOBJECT = 1
|
153
|
+
PRINCIPALNAME = 2
|
154
|
+
PRINCIPALTYPE = 3
|
155
|
+
GRANTINFO = 4
|
156
|
+
|
157
|
+
FIELDS = {
|
158
|
+
HIVEOBJECT => {:type => ::Thrift::Types::STRUCT, :name => 'hiveObject', :class => ::Impala::Protocol::HiveMetastore::HiveObjectRef},
|
159
|
+
PRINCIPALNAME => {:type => ::Thrift::Types::STRING, :name => 'principalName'},
|
160
|
+
PRINCIPALTYPE => {:type => ::Thrift::Types::I32, :name => 'principalType', :enum_class => ::Impala::Protocol::HiveMetastore::PrincipalType},
|
161
|
+
GRANTINFO => {:type => ::Thrift::Types::STRUCT, :name => 'grantInfo', :class => ::Impala::Protocol::HiveMetastore::PrivilegeGrantInfo}
|
162
|
+
}
|
163
|
+
|
164
|
+
def struct_fields; FIELDS; end
|
165
|
+
|
166
|
+
def validate
|
167
|
+
unless @principalType.nil? || ::Impala::Protocol::HiveMetastore::PrincipalType::VALID_VALUES.include?(@principalType)
|
168
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field principalType!')
|
169
|
+
end
|
170
|
+
end
|
171
|
+
|
172
|
+
::Thrift::Struct.generate_accessors self
|
173
|
+
end
|
174
|
+
|
175
|
+
class PrivilegeBag
|
176
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
177
|
+
PRIVILEGES = 1
|
178
|
+
|
179
|
+
FIELDS = {
|
180
|
+
PRIVILEGES => {:type => ::Thrift::Types::LIST, :name => 'privileges', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Impala::Protocol::HiveMetastore::HiveObjectPrivilege}}
|
181
|
+
}
|
182
|
+
|
183
|
+
def struct_fields; FIELDS; end
|
184
|
+
|
185
|
+
def validate
|
186
|
+
end
|
187
|
+
|
188
|
+
::Thrift::Struct.generate_accessors self
|
189
|
+
end
|
190
|
+
|
191
|
+
class PrincipalPrivilegeSet
|
192
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
193
|
+
USERPRIVILEGES = 1
|
194
|
+
GROUPPRIVILEGES = 2
|
195
|
+
ROLEPRIVILEGES = 3
|
196
|
+
|
197
|
+
FIELDS = {
|
198
|
+
USERPRIVILEGES => {:type => ::Thrift::Types::MAP, :name => 'userPrivileges', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::LIST, :element => {:type => ::Thrift::Types::STRUCT, :class => ::Impala::Protocol::HiveMetastore::PrivilegeGrantInfo}}},
|
199
|
+
GROUPPRIVILEGES => {:type => ::Thrift::Types::MAP, :name => 'groupPrivileges', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::LIST, :element => {:type => ::Thrift::Types::STRUCT, :class => ::Impala::Protocol::HiveMetastore::PrivilegeGrantInfo}}},
|
200
|
+
ROLEPRIVILEGES => {:type => ::Thrift::Types::MAP, :name => 'rolePrivileges', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::LIST, :element => {:type => ::Thrift::Types::STRUCT, :class => ::Impala::Protocol::HiveMetastore::PrivilegeGrantInfo}}}
|
201
|
+
}
|
202
|
+
|
203
|
+
def struct_fields; FIELDS; end
|
204
|
+
|
205
|
+
def validate
|
206
|
+
end
|
207
|
+
|
208
|
+
::Thrift::Struct.generate_accessors self
|
209
|
+
end
|
210
|
+
|
211
|
+
class Role
|
212
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
213
|
+
ROLENAME = 1
|
214
|
+
CREATETIME = 2
|
215
|
+
OWNERNAME = 3
|
216
|
+
|
217
|
+
FIELDS = {
|
218
|
+
ROLENAME => {:type => ::Thrift::Types::STRING, :name => 'roleName'},
|
219
|
+
CREATETIME => {:type => ::Thrift::Types::I32, :name => 'createTime'},
|
220
|
+
OWNERNAME => {:type => ::Thrift::Types::STRING, :name => 'ownerName'}
|
221
|
+
}
|
222
|
+
|
223
|
+
def struct_fields; FIELDS; end
|
224
|
+
|
225
|
+
def validate
|
226
|
+
end
|
227
|
+
|
228
|
+
::Thrift::Struct.generate_accessors self
|
229
|
+
end
|
230
|
+
|
231
|
+
class Database
|
232
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
233
|
+
NAME = 1
|
234
|
+
DESCRIPTION = 2
|
235
|
+
LOCATIONURI = 3
|
236
|
+
PARAMETERS = 4
|
237
|
+
PRIVILEGES = 5
|
238
|
+
|
239
|
+
FIELDS = {
|
240
|
+
NAME => {:type => ::Thrift::Types::STRING, :name => 'name'},
|
241
|
+
DESCRIPTION => {:type => ::Thrift::Types::STRING, :name => 'description'},
|
242
|
+
LOCATIONURI => {:type => ::Thrift::Types::STRING, :name => 'locationUri'},
|
243
|
+
PARAMETERS => {:type => ::Thrift::Types::MAP, :name => 'parameters', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRING}},
|
244
|
+
PRIVILEGES => {:type => ::Thrift::Types::STRUCT, :name => 'privileges', :class => ::Impala::Protocol::HiveMetastore::PrincipalPrivilegeSet, :optional => true}
|
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 SerDeInfo
|
256
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
257
|
+
NAME = 1
|
258
|
+
SERIALIZATIONLIB = 2
|
259
|
+
PARAMETERS = 3
|
260
|
+
|
261
|
+
FIELDS = {
|
262
|
+
NAME => {:type => ::Thrift::Types::STRING, :name => 'name'},
|
263
|
+
SERIALIZATIONLIB => {:type => ::Thrift::Types::STRING, :name => 'serializationLib'},
|
264
|
+
PARAMETERS => {:type => ::Thrift::Types::MAP, :name => 'parameters', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRING}}
|
265
|
+
}
|
266
|
+
|
267
|
+
def struct_fields; FIELDS; end
|
268
|
+
|
269
|
+
def validate
|
270
|
+
end
|
271
|
+
|
272
|
+
::Thrift::Struct.generate_accessors self
|
273
|
+
end
|
274
|
+
|
275
|
+
class Order
|
276
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
277
|
+
COL = 1
|
278
|
+
ORDER = 2
|
279
|
+
|
280
|
+
FIELDS = {
|
281
|
+
COL => {:type => ::Thrift::Types::STRING, :name => 'col'},
|
282
|
+
ORDER => {:type => ::Thrift::Types::I32, :name => 'order'}
|
283
|
+
}
|
284
|
+
|
285
|
+
def struct_fields; FIELDS; end
|
286
|
+
|
287
|
+
def validate
|
288
|
+
end
|
289
|
+
|
290
|
+
::Thrift::Struct.generate_accessors self
|
291
|
+
end
|
292
|
+
|
293
|
+
class StorageDescriptor
|
294
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
295
|
+
COLS = 1
|
296
|
+
LOCATION = 2
|
297
|
+
INPUTFORMAT = 3
|
298
|
+
OUTPUTFORMAT = 4
|
299
|
+
COMPRESSED = 5
|
300
|
+
NUMBUCKETS = 6
|
301
|
+
SERDEINFO = 7
|
302
|
+
BUCKETCOLS = 8
|
303
|
+
SORTCOLS = 9
|
304
|
+
PARAMETERS = 10
|
305
|
+
|
306
|
+
FIELDS = {
|
307
|
+
COLS => {:type => ::Thrift::Types::LIST, :name => 'cols', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Impala::Protocol::HiveMetastore::FieldSchema}},
|
308
|
+
LOCATION => {:type => ::Thrift::Types::STRING, :name => 'location'},
|
309
|
+
INPUTFORMAT => {:type => ::Thrift::Types::STRING, :name => 'inputFormat'},
|
310
|
+
OUTPUTFORMAT => {:type => ::Thrift::Types::STRING, :name => 'outputFormat'},
|
311
|
+
COMPRESSED => {:type => ::Thrift::Types::BOOL, :name => 'compressed'},
|
312
|
+
NUMBUCKETS => {:type => ::Thrift::Types::I32, :name => 'numBuckets'},
|
313
|
+
SERDEINFO => {:type => ::Thrift::Types::STRUCT, :name => 'serdeInfo', :class => ::Impala::Protocol::HiveMetastore::SerDeInfo},
|
314
|
+
BUCKETCOLS => {:type => ::Thrift::Types::LIST, :name => 'bucketCols', :element => {:type => ::Thrift::Types::STRING}},
|
315
|
+
SORTCOLS => {:type => ::Thrift::Types::LIST, :name => 'sortCols', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Impala::Protocol::HiveMetastore::Order}},
|
316
|
+
PARAMETERS => {:type => ::Thrift::Types::MAP, :name => 'parameters', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRING}}
|
317
|
+
}
|
318
|
+
|
319
|
+
def struct_fields; FIELDS; end
|
320
|
+
|
321
|
+
def validate
|
322
|
+
end
|
323
|
+
|
324
|
+
::Thrift::Struct.generate_accessors self
|
325
|
+
end
|
326
|
+
|
327
|
+
class Table
|
328
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
329
|
+
TABLENAME = 1
|
330
|
+
DBNAME = 2
|
331
|
+
OWNER = 3
|
332
|
+
CREATETIME = 4
|
333
|
+
LASTACCESSTIME = 5
|
334
|
+
RETENTION = 6
|
335
|
+
SD = 7
|
336
|
+
PARTITIONKEYS = 8
|
337
|
+
PARAMETERS = 9
|
338
|
+
VIEWORIGINALTEXT = 10
|
339
|
+
VIEWEXPANDEDTEXT = 11
|
340
|
+
TABLETYPE = 12
|
341
|
+
PRIVILEGES = 13
|
342
|
+
|
343
|
+
FIELDS = {
|
344
|
+
TABLENAME => {:type => ::Thrift::Types::STRING, :name => 'tableName'},
|
345
|
+
DBNAME => {:type => ::Thrift::Types::STRING, :name => 'dbName'},
|
346
|
+
OWNER => {:type => ::Thrift::Types::STRING, :name => 'owner'},
|
347
|
+
CREATETIME => {:type => ::Thrift::Types::I32, :name => 'createTime'},
|
348
|
+
LASTACCESSTIME => {:type => ::Thrift::Types::I32, :name => 'lastAccessTime'},
|
349
|
+
RETENTION => {:type => ::Thrift::Types::I32, :name => 'retention'},
|
350
|
+
SD => {:type => ::Thrift::Types::STRUCT, :name => 'sd', :class => ::Impala::Protocol::HiveMetastore::StorageDescriptor},
|
351
|
+
PARTITIONKEYS => {:type => ::Thrift::Types::LIST, :name => 'partitionKeys', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Impala::Protocol::HiveMetastore::FieldSchema}},
|
352
|
+
PARAMETERS => {:type => ::Thrift::Types::MAP, :name => 'parameters', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRING}},
|
353
|
+
VIEWORIGINALTEXT => {:type => ::Thrift::Types::STRING, :name => 'viewOriginalText'},
|
354
|
+
VIEWEXPANDEDTEXT => {:type => ::Thrift::Types::STRING, :name => 'viewExpandedText'},
|
355
|
+
TABLETYPE => {:type => ::Thrift::Types::STRING, :name => 'tableType'},
|
356
|
+
PRIVILEGES => {:type => ::Thrift::Types::STRUCT, :name => 'privileges', :class => ::Impala::Protocol::HiveMetastore::PrincipalPrivilegeSet, :optional => true}
|
357
|
+
}
|
358
|
+
|
359
|
+
def struct_fields; FIELDS; end
|
360
|
+
|
361
|
+
def validate
|
362
|
+
end
|
363
|
+
|
364
|
+
::Thrift::Struct.generate_accessors self
|
365
|
+
end
|
366
|
+
|
367
|
+
class Partition
|
368
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
369
|
+
VALUES = 1
|
370
|
+
DBNAME = 2
|
371
|
+
TABLENAME = 3
|
372
|
+
CREATETIME = 4
|
373
|
+
LASTACCESSTIME = 5
|
374
|
+
SD = 6
|
375
|
+
PARAMETERS = 7
|
376
|
+
PRIVILEGES = 8
|
377
|
+
|
378
|
+
FIELDS = {
|
379
|
+
VALUES => {:type => ::Thrift::Types::LIST, :name => 'values', :element => {:type => ::Thrift::Types::STRING}},
|
380
|
+
DBNAME => {:type => ::Thrift::Types::STRING, :name => 'dbName'},
|
381
|
+
TABLENAME => {:type => ::Thrift::Types::STRING, :name => 'tableName'},
|
382
|
+
CREATETIME => {:type => ::Thrift::Types::I32, :name => 'createTime'},
|
383
|
+
LASTACCESSTIME => {:type => ::Thrift::Types::I32, :name => 'lastAccessTime'},
|
384
|
+
SD => {:type => ::Thrift::Types::STRUCT, :name => 'sd', :class => ::Impala::Protocol::HiveMetastore::StorageDescriptor},
|
385
|
+
PARAMETERS => {:type => ::Thrift::Types::MAP, :name => 'parameters', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRING}},
|
386
|
+
PRIVILEGES => {:type => ::Thrift::Types::STRUCT, :name => 'privileges', :class => ::Impala::Protocol::HiveMetastore::PrincipalPrivilegeSet, :optional => true}
|
387
|
+
}
|
388
|
+
|
389
|
+
def struct_fields; FIELDS; end
|
390
|
+
|
391
|
+
def validate
|
392
|
+
end
|
393
|
+
|
394
|
+
::Thrift::Struct.generate_accessors self
|
395
|
+
end
|
396
|
+
|
397
|
+
class Index
|
398
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
399
|
+
INDEXNAME = 1
|
400
|
+
INDEXHANDLERCLASS = 2
|
401
|
+
DBNAME = 3
|
402
|
+
ORIGTABLENAME = 4
|
403
|
+
CREATETIME = 5
|
404
|
+
LASTACCESSTIME = 6
|
405
|
+
INDEXTABLENAME = 7
|
406
|
+
SD = 8
|
407
|
+
PARAMETERS = 9
|
408
|
+
DEFERREDREBUILD = 10
|
409
|
+
|
410
|
+
FIELDS = {
|
411
|
+
INDEXNAME => {:type => ::Thrift::Types::STRING, :name => 'indexName'},
|
412
|
+
INDEXHANDLERCLASS => {:type => ::Thrift::Types::STRING, :name => 'indexHandlerClass'},
|
413
|
+
DBNAME => {:type => ::Thrift::Types::STRING, :name => 'dbName'},
|
414
|
+
ORIGTABLENAME => {:type => ::Thrift::Types::STRING, :name => 'origTableName'},
|
415
|
+
CREATETIME => {:type => ::Thrift::Types::I32, :name => 'createTime'},
|
416
|
+
LASTACCESSTIME => {:type => ::Thrift::Types::I32, :name => 'lastAccessTime'},
|
417
|
+
INDEXTABLENAME => {:type => ::Thrift::Types::STRING, :name => 'indexTableName'},
|
418
|
+
SD => {:type => ::Thrift::Types::STRUCT, :name => 'sd', :class => ::Impala::Protocol::HiveMetastore::StorageDescriptor},
|
419
|
+
PARAMETERS => {:type => ::Thrift::Types::MAP, :name => 'parameters', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRING}},
|
420
|
+
DEFERREDREBUILD => {:type => ::Thrift::Types::BOOL, :name => 'deferredRebuild'}
|
421
|
+
}
|
422
|
+
|
423
|
+
def struct_fields; FIELDS; end
|
424
|
+
|
425
|
+
def validate
|
426
|
+
end
|
427
|
+
|
428
|
+
::Thrift::Struct.generate_accessors self
|
429
|
+
end
|
430
|
+
|
431
|
+
class Schema
|
432
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
433
|
+
FIELDSCHEMAS = 1
|
434
|
+
PROPERTIES = 2
|
435
|
+
|
436
|
+
FIELDS = {
|
437
|
+
FIELDSCHEMAS => {:type => ::Thrift::Types::LIST, :name => 'fieldSchemas', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Impala::Protocol::HiveMetastore::FieldSchema}},
|
438
|
+
PROPERTIES => {:type => ::Thrift::Types::MAP, :name => 'properties', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRING}}
|
439
|
+
}
|
440
|
+
|
441
|
+
def struct_fields; FIELDS; end
|
442
|
+
|
443
|
+
def validate
|
444
|
+
end
|
445
|
+
|
446
|
+
::Thrift::Struct.generate_accessors self
|
447
|
+
end
|
448
|
+
|
449
|
+
class EnvironmentContext
|
450
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
451
|
+
PROPERTIES = 1
|
452
|
+
|
453
|
+
FIELDS = {
|
454
|
+
PROPERTIES => {:type => ::Thrift::Types::MAP, :name => 'properties', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRING}}
|
455
|
+
}
|
456
|
+
|
457
|
+
def struct_fields; FIELDS; end
|
458
|
+
|
459
|
+
def validate
|
460
|
+
end
|
461
|
+
|
462
|
+
::Thrift::Struct.generate_accessors self
|
463
|
+
end
|
464
|
+
|
465
|
+
class MetaException < ::Thrift::Exception
|
466
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
467
|
+
def initialize(message=nil)
|
468
|
+
super()
|
469
|
+
self.message = message
|
470
|
+
end
|
471
|
+
|
472
|
+
MESSAGE = 1
|
473
|
+
|
474
|
+
FIELDS = {
|
475
|
+
MESSAGE => {:type => ::Thrift::Types::STRING, :name => 'message'}
|
476
|
+
}
|
477
|
+
|
478
|
+
def struct_fields; FIELDS; end
|
479
|
+
|
480
|
+
def validate
|
481
|
+
end
|
482
|
+
|
483
|
+
::Thrift::Struct.generate_accessors self
|
484
|
+
end
|
485
|
+
|
486
|
+
class UnknownTableException < ::Thrift::Exception
|
487
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
488
|
+
def initialize(message=nil)
|
489
|
+
super()
|
490
|
+
self.message = message
|
491
|
+
end
|
492
|
+
|
493
|
+
MESSAGE = 1
|
494
|
+
|
495
|
+
FIELDS = {
|
496
|
+
MESSAGE => {:type => ::Thrift::Types::STRING, :name => 'message'}
|
497
|
+
}
|
498
|
+
|
499
|
+
def struct_fields; FIELDS; end
|
500
|
+
|
501
|
+
def validate
|
502
|
+
end
|
503
|
+
|
504
|
+
::Thrift::Struct.generate_accessors self
|
505
|
+
end
|
506
|
+
|
507
|
+
class UnknownDBException < ::Thrift::Exception
|
508
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
509
|
+
def initialize(message=nil)
|
510
|
+
super()
|
511
|
+
self.message = message
|
512
|
+
end
|
513
|
+
|
514
|
+
MESSAGE = 1
|
515
|
+
|
516
|
+
FIELDS = {
|
517
|
+
MESSAGE => {:type => ::Thrift::Types::STRING, :name => 'message'}
|
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 AlreadyExistsException < ::Thrift::Exception
|
529
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
530
|
+
def initialize(message=nil)
|
531
|
+
super()
|
532
|
+
self.message = message
|
533
|
+
end
|
534
|
+
|
535
|
+
MESSAGE = 1
|
536
|
+
|
537
|
+
FIELDS = {
|
538
|
+
MESSAGE => {:type => ::Thrift::Types::STRING, :name => 'message'}
|
539
|
+
}
|
540
|
+
|
541
|
+
def struct_fields; FIELDS; end
|
542
|
+
|
543
|
+
def validate
|
544
|
+
end
|
545
|
+
|
546
|
+
::Thrift::Struct.generate_accessors self
|
547
|
+
end
|
548
|
+
|
549
|
+
class InvalidPartitionException < ::Thrift::Exception
|
550
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
551
|
+
def initialize(message=nil)
|
552
|
+
super()
|
553
|
+
self.message = message
|
554
|
+
end
|
555
|
+
|
556
|
+
MESSAGE = 1
|
557
|
+
|
558
|
+
FIELDS = {
|
559
|
+
MESSAGE => {:type => ::Thrift::Types::STRING, :name => 'message'}
|
560
|
+
}
|
561
|
+
|
562
|
+
def struct_fields; FIELDS; end
|
563
|
+
|
564
|
+
def validate
|
565
|
+
end
|
566
|
+
|
567
|
+
::Thrift::Struct.generate_accessors self
|
568
|
+
end
|
569
|
+
|
570
|
+
class UnknownPartitionException < ::Thrift::Exception
|
571
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
572
|
+
def initialize(message=nil)
|
573
|
+
super()
|
574
|
+
self.message = message
|
575
|
+
end
|
576
|
+
|
577
|
+
MESSAGE = 1
|
578
|
+
|
579
|
+
FIELDS = {
|
580
|
+
MESSAGE => {:type => ::Thrift::Types::STRING, :name => 'message'}
|
581
|
+
}
|
582
|
+
|
583
|
+
def struct_fields; FIELDS; end
|
584
|
+
|
585
|
+
def validate
|
586
|
+
end
|
587
|
+
|
588
|
+
::Thrift::Struct.generate_accessors self
|
589
|
+
end
|
590
|
+
|
591
|
+
class InvalidObjectException < ::Thrift::Exception
|
592
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
593
|
+
def initialize(message=nil)
|
594
|
+
super()
|
595
|
+
self.message = message
|
596
|
+
end
|
597
|
+
|
598
|
+
MESSAGE = 1
|
599
|
+
|
600
|
+
FIELDS = {
|
601
|
+
MESSAGE => {:type => ::Thrift::Types::STRING, :name => 'message'}
|
602
|
+
}
|
603
|
+
|
604
|
+
def struct_fields; FIELDS; end
|
605
|
+
|
606
|
+
def validate
|
607
|
+
end
|
608
|
+
|
609
|
+
::Thrift::Struct.generate_accessors self
|
610
|
+
end
|
611
|
+
|
612
|
+
class NoSuchObjectException < ::Thrift::Exception
|
613
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
614
|
+
def initialize(message=nil)
|
615
|
+
super()
|
616
|
+
self.message = message
|
617
|
+
end
|
618
|
+
|
619
|
+
MESSAGE = 1
|
620
|
+
|
621
|
+
FIELDS = {
|
622
|
+
MESSAGE => {:type => ::Thrift::Types::STRING, :name => 'message'}
|
623
|
+
}
|
624
|
+
|
625
|
+
def struct_fields; FIELDS; end
|
626
|
+
|
627
|
+
def validate
|
628
|
+
end
|
629
|
+
|
630
|
+
::Thrift::Struct.generate_accessors self
|
631
|
+
end
|
632
|
+
|
633
|
+
class IndexAlreadyExistsException < ::Thrift::Exception
|
634
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
635
|
+
def initialize(message=nil)
|
636
|
+
super()
|
637
|
+
self.message = message
|
638
|
+
end
|
639
|
+
|
640
|
+
MESSAGE = 1
|
641
|
+
|
642
|
+
FIELDS = {
|
643
|
+
MESSAGE => {:type => ::Thrift::Types::STRING, :name => 'message'}
|
644
|
+
}
|
645
|
+
|
646
|
+
def struct_fields; FIELDS; end
|
647
|
+
|
648
|
+
def validate
|
649
|
+
end
|
650
|
+
|
651
|
+
::Thrift::Struct.generate_accessors self
|
652
|
+
end
|
653
|
+
|
654
|
+
class InvalidOperationException < ::Thrift::Exception
|
655
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
656
|
+
def initialize(message=nil)
|
657
|
+
super()
|
658
|
+
self.message = message
|
659
|
+
end
|
660
|
+
|
661
|
+
MESSAGE = 1
|
662
|
+
|
663
|
+
FIELDS = {
|
664
|
+
MESSAGE => {:type => ::Thrift::Types::STRING, :name => 'message'}
|
665
|
+
}
|
666
|
+
|
667
|
+
def struct_fields; FIELDS; end
|
668
|
+
|
669
|
+
def validate
|
670
|
+
end
|
671
|
+
|
672
|
+
::Thrift::Struct.generate_accessors self
|
673
|
+
end
|
674
|
+
|
675
|
+
class ConfigValSecurityException < ::Thrift::Exception
|
676
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
677
|
+
def initialize(message=nil)
|
678
|
+
super()
|
679
|
+
self.message = message
|
680
|
+
end
|
681
|
+
|
682
|
+
MESSAGE = 1
|
683
|
+
|
684
|
+
FIELDS = {
|
685
|
+
MESSAGE => {:type => ::Thrift::Types::STRING, :name => 'message'}
|
686
|
+
}
|
687
|
+
|
688
|
+
def struct_fields; FIELDS; end
|
689
|
+
|
690
|
+
def validate
|
691
|
+
end
|
692
|
+
|
693
|
+
::Thrift::Struct.generate_accessors self
|
694
|
+
end
|
695
|
+
|
696
|
+
end
|
697
|
+
end
|
698
|
+
end
|