FAQ
Author: namit
Date: Sat Feb 11 07:49:28 2012
New Revision: 1243013

URL: http://svn.apache.org/viewvc?rev=1243013&view=rev
Log:
HIVE-2612 support hive table/partitions exists in more than one region
(Kevin Wilfong via namit)


Added:
hive/trunk/metastore/scripts/upgrade/derby/010-HIVE-2612.derby.sql
hive/trunk/metastore/scripts/upgrade/derby/hive-schema-0.10.0.derby.sql
hive/trunk/metastore/scripts/upgrade/derby/upgrade-0.9.0-to-0.10.0.derby.sql
hive/trunk/metastore/scripts/upgrade/mysql/010-HIVE-2612.mysql.sql
hive/trunk/metastore/scripts/upgrade/mysql/hive-schema-0.10.0.mysql.sql
hive/trunk/metastore/scripts/upgrade/mysql/upgrade-0.9.0-to-0.10.0.mysql.sql
hive/trunk/metastore/scripts/upgrade/postgres/010-HIVE-2612.postgres.sql
hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/RegionStorageDescriptor.java
hive/trunk/metastore/src/gen/thrift/gen-php/ThriftHiveMetastore.php
hive/trunk/metastore/src/gen/thrift/gen-php/hive_metastore_constants.php
hive/trunk/metastore/src/gen/thrift/gen-php/hive_metastore_types.php
hive/trunk/metastore/src/model/org/apache/hadoop/hive/metastore/model/MRegionStorageDescriptor.java
Modified:
hive/trunk/common/src/java/org/apache/hadoop/hive/conf/HiveConf.java
hive/trunk/conf/hive-default.xml.template
hive/trunk/contrib/src/test/results/clientnegative/serde_regex.q.out
hive/trunk/contrib/src/test/results/clientpositive/fileformat_base64.q.out
hive/trunk/contrib/src/test/results/clientpositive/serde_regex.q.out
hive/trunk/metastore/if/hive_metastore.thrift
hive/trunk/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp
hive/trunk/metastore/src/gen/thrift/gen-cpp/hive_metastore_types.cpp
hive/trunk/metastore/src/gen/thrift/gen-cpp/hive_metastore_types.h
hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Index.java
hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Partition.java
hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Schema.java
hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/StorageDescriptor.java
hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Table.java
hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java
hive/trunk/metastore/src/gen/thrift/gen-php/hive_metastore/ThriftHiveMetastore.php
hive/trunk/metastore/src/gen/thrift/gen-php/hive_metastore/hive_metastore_types.php
hive/trunk/metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py
hive/trunk/metastore/src/gen/thrift/gen-py/hive_metastore/ttypes.py
hive/trunk/metastore/src/gen/thrift/gen-rb/hive_metastore_types.rb
hive/trunk/metastore/src/java/org/apache/hadoop/hive/metastore/HiveAlterHandler.java
hive/trunk/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java
hive/trunk/metastore/src/java/org/apache/hadoop/hive/metastore/MetaStoreUtils.java
hive/trunk/metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java
hive/trunk/metastore/src/model/org/apache/hadoop/hive/metastore/model/MStorageDescriptor.java
hive/trunk/metastore/src/model/package.jdo
hive/trunk/metastore/src/test/org/apache/hadoop/hive/metastore/TestHiveMetaStore.java
hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/exec/DDLTask.java
hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/metadata/Table.java
hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/parse/BaseSemanticAnalyzer.java
hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/parse/ErrorMsg.java
hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/parse/ImportSemanticAnalyzer.java
hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java
hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/plan/CreateTableDesc.java
hive/trunk/ql/src/test/org/apache/hadoop/hive/ql/metadata/TestHive.java
hive/trunk/ql/src/test/results/clientpositive/create_union_table.q.out
hive/trunk/ql/src/test/results/clientpositive/ctas.q.out
hive/trunk/ql/src/test/results/clientpositive/fileformat_sequencefile.q.out
hive/trunk/ql/src/test/results/clientpositive/fileformat_text.q.out
hive/trunk/ql/src/test/results/clientpositive/input15.q.out
hive/trunk/ql/src/test/results/clientpositive/inputddl1.q.out
hive/trunk/ql/src/test/results/clientpositive/inputddl2.q.out
hive/trunk/ql/src/test/results/clientpositive/inputddl3.q.out
hive/trunk/ql/src/test/results/clientpositive/merge3.q.out
hive/trunk/ql/src/test/results/clientpositive/rcfile_createas1.q.out
hive/trunk/ql/src/test/results/clientpositive/smb_mapjoin9.q.out
hive/trunk/ql/src/test/results/clientpositive/symlink_text_input_format.q.out
hive/trunk/ql/src/test/results/clientpositive/union25.q.out

Modified: hive/trunk/common/src/java/org/apache/hadoop/hive/conf/HiveConf.java
URL: http://svn.apache.org/viewvc/hive/trunk/common/src/java/org/apache/hadoop/hive/conf/HiveConf.java?rev=1243013&r1=1243012&r2=1243013&view=diff
==============================================================================
--- hive/trunk/common/src/java/org/apache/hadoop/hive/conf/HiveConf.java (original)
+++ hive/trunk/common/src/java/org/apache/hadoop/hive/conf/HiveConf.java Sat Feb 11 07:49:28 2012
@@ -557,6 +557,12 @@ public class HiveConf extends Configurat
HIVE_START_CLEANUP_SCRATCHDIR("hive.start.cleanup.scratchdir", false),
HIVE_INSERT_INTO_MULTILEVEL_DIRS("hive.insert.into.multilevel.dirs", false),
HIVE_FILES_UMASK_VALUE("hive.files.umask.vlaue", 0002),
+
+ // parameters for using multiple clusters in a hive instance
+ HIVE_USE_INPUT_PRIMARY_REGION("hive.use.input.primary.region", true),
+ HIVE_DEFAULT_REGION_NAME("hive.default.region.name", ""),
+ HIVE_REGION_PROPERTIES("hive.region.properties", ""),
+
;

public final String varname;

Modified: hive/trunk/conf/hive-default.xml.template
URL: http://svn.apache.org/viewvc/hive/trunk/conf/hive-default.xml.template?rev=1243013&r1=1243012&r2=1243013&view=diff
==============================================================================
--- hive/trunk/conf/hive-default.xml.template (original)
+++ hive/trunk/conf/hive-default.xml.template Sat Feb 11 07:49:28 2012
@@ -23,7 +23,7 @@
<!-- WARNING!!! Any changes you make to this file will be ignored by Hive. -->
<!-- WARNING!!! You must make your changes in hive-site.xml instead. -->

-
+
<!-- Hive Execution Parameters -->
<property>
<name>mapred.reduce.tasks</name>
@@ -998,45 +998,45 @@
<name>hive.security.authorization.manager</name>
<value>org.apache.hadoop.hive.ql.security.authorization.DefaultHiveAuthorizationProvider</value>
<description>the hive client authorization manager class name.
- The user defined authorization class should implement interface org.apache.hadoop.hive.ql.security.authorization.HiveAuthorizationProvider.
+ The user defined authorization class should implement interface org.apache.hadoop.hive.ql.security.authorization.HiveAuthorizationProvider.
</description>
</property>

<property>
<name>hive.security.authenticator.manager</name>
<value>org.apache.hadoop.hive.ql.security.HadoopDefaultAuthenticator</value>
- <description>hive client authenticator manager class name.
+ <description>hive client authenticator manager class name.
The user defined authenticator should implement interface org.apache.hadoop.hive.ql.security.HiveAuthenticationProvider.</description>
</property>

<property>
<name>hive.security.authorization.createtable.user.grants</name>
<value></value>
- <description>the privileges automatically granted to some users whenever a table gets created.
- An example like "userX,userY:select;userZ:create" will grant select privilege to userX and userY,
+ <description>the privileges automatically granted to some users whenever a table gets created.
+ An example like "userX,userY:select;userZ:create" will grant select privilege to userX and userY,
and grant create privilege to userZ whenever a new table created.</description>
</property>

<property>
<name>hive.security.authorization.createtable.group.grants</name>
<value></value>
- <description>the privileges automatically granted to some groups whenever a table gets created.
- An example like "groupX,groupY:select;groupZ:create" will grant select privilege to groupX and groupY,
+ <description>the privileges automatically granted to some groups whenever a table gets created.
+ An example like "groupX,groupY:select;groupZ:create" will grant select privilege to groupX and groupY,
and grant create privilege to groupZ whenever a new table created.</description>
</property>

<property>
<name>hive.security.authorization.createtable.role.grants</name>
<value></value>
- <description>the privileges automatically granted to some roles whenever a table gets created.
- An example like "roleX,roleY:select;roleZ:create" will grant select privilege to roleX and roleY,
+ <description>the privileges automatically granted to some roles whenever a table gets created.
+ An example like "roleX,roleY:select;roleZ:create" will grant select privilege to roleX and roleY,
and grant create privilege to roleZ whenever a new table created.</description>
</property>

<property>
<name>hive.security.authorization.createtable.owner.grants</name>
<value></value>
- <description>the privileges automatically granted to the owner whenever a table gets created.
+ <description>the privileges automatically granted to the owner whenever a table gets created.
An example like "select,drop" will grant select and drop privilege to the owner of the table</description>
</property>

@@ -1044,7 +1044,7 @@
<name>hive.metastore.authorization.storage.checks</name>
<value>false</value>
<description>Should the metastore do authorization checks against the underlying storage
- for operations like drop-partition (disallow the drop-partition if the user in
+ for operations like drop-partition (disallow the drop-partition if the user in
question doesn't have permissions to delete the corresponding directory
on the storage).</description>
</property>
@@ -1058,7 +1058,7 @@
<property>
<name>hive.index.compact.file.ignore.hdfs</name>
<value>false</value>
- <description>True the hdfs location stored in the index file will be igbored at runtime.
+ <description>True the hdfs location stored in the index file will be igbored at runtime.
If the data got moved or the name of the cluster got changed, the index data should still be usable.</description>
</property>

@@ -1102,7 +1102,7 @@
<property>
<name>hive.lock.mapred.only.operation</name>
<value>false</value>
- <description>This param is to control whether or not only do lock on queries
+ <description>This param is to control whether or not only do lock on queries
that need to execute at least one mapred job.</description>
</property>

@@ -1136,7 +1136,7 @@
<property>
<name>hive.rework.mapredwork</name>
<value>false</value>
- <description>should rework the mapred work or not.
+ <description>should rework the mapred work or not.
This is first introduced by SymlinkTextInputFormat to replace symlink files with real paths at compile time.</description>
</property>

@@ -1144,9 +1144,9 @@
<name>hive.exec.concatenate.check.index</name>
<value>true</value>
<description>If this sets to true, hive will throw error when doing
- 'alter table tbl_name [partSpec] concatenate' on a table/partition
- that has indexes on it. The reason the user want to set this to true
- is because it can help user to avoid handling all index drop, recreation,
+ 'alter table tbl_name [partSpec] concatenate' on a table/partition
+ that has indexes on it. The reason the user want to set this to true
+ is because it can help user to avoid handling all index drop, recreation,
rebuild work. This is very helpful for tables with thousands of partitions.</description>
</property>

@@ -1161,14 +1161,14 @@
<name>hive.io.exception.handlers</name>
<value></value>
<description>A list of io exception handler class names. This is used
- to construct a list exception handlers to handle exceptions thrown
+ to construct a list exception handlers to handle exceptions thrown
by record readers</description>
</property>

<property>
<name>hive.autogen.columnalias.prefix.label</name>
<value>_c</value>
- <description>String used as a prefix when auto generating column alias.
+ <description>String used as a prefix when auto generating column alias.
By default the prefix label will be appended with a column position number to form the column alias. Auto generation would happen if an aggregate function is used in a select clause without an explicit alias.</description>
</property>

@@ -1199,7 +1199,7 @@
<property>
<name>hive.insert.into.multilevel.dirs</name>
<value>false</value>
- <description>Where to insert into multilevel directories like
+ <description>Where to insert into multilevel directories like
"insert directory '/HIVEFT25686/chinna/' from table"</description>
</property>

@@ -1209,4 +1209,22 @@
<description>The dfs.umask value for the hive created folders</description>
</property>

+<property>
+ <name>hive.use.input.primary.region</name>
+ <value>true</value>
+ <description>When creating a table from an input table, create the table in the input table's primary region.</description>
+</property>
+
+<property>
+ <name>hive.default.region.name</name>
+ <value>default</value>
+ <description>The default region name</description>
+</property>
+
+<property>
+ <name>hive.region.properties</name>
+ <value></value>
+ <description>The default filesystem and jobtracker for a region</description>
+</property>
+
</configuration>

Modified: hive/trunk/contrib/src/test/results/clientnegative/serde_regex.q.out
URL: http://svn.apache.org/viewvc/hive/trunk/contrib/src/test/results/clientnegative/serde_regex.q.out?rev=1243013&r1=1243012&r2=1243013&view=diff
==============================================================================
--- hive/trunk/contrib/src/test/results/clientnegative/serde_regex.q.out (original)
+++ hive/trunk/contrib/src/test/results/clientnegative/serde_regex.q.out Sat Feb 11 07:49:28 2012
@@ -53,6 +53,7 @@ STAGE PLANS:
input format: org.apache.hadoop.mapred.TextInputFormat
# buckets: -1
output format: org.apache.hadoop.hive.ql.io.IgnoreKeyTextOutputFormat
+ primaryRegionName:
serde name: org.apache.hadoop.hive.contrib.serde2.RegexSerDe
serde properties:
input.regex ([^ ]*) ([^ ]*) ([^ ]*) (-|\[[^\]]*\]) ([^ "]*|"[^"]*") (-|[0-9]*) (-|[0-9]*)(?: ([^ "]*|"[^"]*") ([^ "]*|"[^"]*"))?

Modified: hive/trunk/contrib/src/test/results/clientpositive/fileformat_base64.q.out
URL: http://svn.apache.org/viewvc/hive/trunk/contrib/src/test/results/clientpositive/fileformat_base64.q.out?rev=1243013&r1=1243012&r2=1243013&view=diff
==============================================================================
--- hive/trunk/contrib/src/test/results/clientpositive/fileformat_base64.q.out (original)
+++ hive/trunk/contrib/src/test/results/clientpositive/fileformat_base64.q.out Sat Feb 11 07:49:28 2012
@@ -27,6 +27,7 @@ STAGE PLANS:
input format: org.apache.hadoop.hive.contrib.fileformat.base64.Base64TextInputFormat
# buckets: -1
output format: org.apache.hadoop.hive.contrib.fileformat.base64.Base64TextOutputFormat
+ primaryRegionName:
name: base64_test
isExternal: false


Modified: hive/trunk/contrib/src/test/results/clientpositive/serde_regex.q.out
URL: http://svn.apache.org/viewvc/hive/trunk/contrib/src/test/results/clientpositive/serde_regex.q.out?rev=1243013&r1=1243012&r2=1243013&view=diff
==============================================================================
--- hive/trunk/contrib/src/test/results/clientpositive/serde_regex.q.out (original)
+++ hive/trunk/contrib/src/test/results/clientpositive/serde_regex.q.out Sat Feb 11 07:49:28 2012
@@ -53,6 +53,7 @@ STAGE PLANS:
input format: org.apache.hadoop.mapred.TextInputFormat
# buckets: -1
output format: org.apache.hadoop.hive.ql.io.IgnoreKeyTextOutputFormat
+ primaryRegionName:
serde name: org.apache.hadoop.hive.contrib.serde2.RegexSerDe
serde properties:
input.regex ([^ ]*) ([^ ]*) ([^ ]*) (-|\[[^\]]*\]) ([^ "]*|"[^"]*") (-|[0-9]*) (-|[0-9]*)(?: ([^ "]*|"[^"]*") ([^ "]*|"[^"]*"))?

Modified: hive/trunk/metastore/if/hive_metastore.thrift
URL: http://svn.apache.org/viewvc/hive/trunk/metastore/if/hive_metastore.thrift?rev=1243013&r1=1243012&r2=1243013&view=diff
==============================================================================
--- hive/trunk/metastore/if/hive_metastore.thrift (original)
+++ hive/trunk/metastore/if/hive_metastore.thrift Sat Feb 11 07:49:28 2012
@@ -48,7 +48,7 @@ const string HIVE_FILTER_FIELD_PARAMS =
const string HIVE_FILTER_FIELD_LAST_ACCESS = "hive_filter_field_last_access__"

enum PartitionEventType {
- LOAD_DONE = 1,
+ LOAD_DONE = 1,
}

struct HiveObjectRef{
@@ -112,6 +112,12 @@ struct Order {
2: i32 order // asc(1) or desc(0)
}

+// This object holds locations for all secondary regions
+struct RegionStorageDescriptor {
+ 1: string regionName, // region name
+ 2: string location // location
+}
+
// this object holds all the information about physical storage of the data belonging to a table
struct StorageDescriptor {
1: list<FieldSchema> cols, // required (refer to types defined above)
@@ -123,7 +129,9 @@ struct StorageDescriptor {
7: SerDeInfo serdeInfo, // serialization and deserialization information
8: list<string> bucketCols, // reducer grouping columns and clustering columns and bucketing columns`
9: list<Order> sortCols, // sort order of the data in each bucket
- 10: map<string, string> parameters // any user supplied key value hash
+ 10: map<string, string> parameters, // any user supplied key value hash
+ 11: string primaryRegionName, // name of the primary region
+ 12: list<RegionStorageDescriptor> secondaryRegions // secondary regions
}

// table information
@@ -229,7 +237,7 @@ service ThriftHiveMetastore extends fb30
list<string> get_databases(1:string pattern) throws(1:MetaException o1)
list<string> get_all_databases() throws(1:MetaException o1)
void alter_database(1:string dbname, 2:Database db) throws(1:MetaException o1, 2:NoSuchObjectException o2)
-
+
// returns the type with given name (make seperate calls for the dependent types if needed)
Type get_type(1:string name) throws(1:MetaException o1, 2:NoSuchObjectException o2)
bool create_type(1:Type type) throws(1:AlreadyExistsException o1, 2:InvalidObjectException o2, 3:MetaException o3)
@@ -320,11 +328,11 @@ service ThriftHiveMetastore extends fb30
bool drop_partition(1:string db_name, 2:string tbl_name, 3:list<string> part_vals, 4:bool deleteData)
throws(1:NoSuchObjectException o1, 2:MetaException o2)
bool drop_partition_by_name(1:string db_name, 2:string tbl_name, 3:string part_name, 4:bool deleteData)
- throws(1:NoSuchObjectException o1, 2:MetaException o2)
+ throws(1:NoSuchObjectException o1, 2:MetaException o2)
Partition get_partition(1:string db_name, 2:string tbl_name, 3:list<string> part_vals)
throws(1:MetaException o1, 2:NoSuchObjectException o2)

- Partition get_partition_with_auth(1:string db_name, 2:string tbl_name, 3:list<string> part_vals,
+ Partition get_partition_with_auth(1:string db_name, 2:string tbl_name, 3:list<string> part_vals,
4: string user_name, 5: list<string> group_names) throws(1:MetaException o1, 2:NoSuchObjectException o2)

Partition get_partition_by_name(1:string db_name 2:string tbl_name, 3:string part_name)
@@ -334,25 +342,25 @@ service ThriftHiveMetastore extends fb30
// If max parts is given then it will return only that many.
list<Partition> get_partitions(1:string db_name, 2:string tbl_name, 3:i16 max_parts=-1)
throws(1:NoSuchObjectException o1, 2:MetaException o2)
- list<Partition> get_partitions_with_auth(1:string db_name, 2:string tbl_name, 3:i16 max_parts=-1,
- 4: string user_name, 5: list<string> group_names) throws(1:NoSuchObjectException o1, 2:MetaException o2)
+ list<Partition> get_partitions_with_auth(1:string db_name, 2:string tbl_name, 3:i16 max_parts=-1,
+ 4: string user_name, 5: list<string> group_names) throws(1:NoSuchObjectException o1, 2:MetaException o2)

list<string> get_partition_names(1:string db_name, 2:string tbl_name, 3:i16 max_parts=-1)
throws(1:MetaException o2)
-
- // get_partition*_ps methods allow filtering by a partial partition specification,
- // as needed for dynamic partitions. The values that are not restricted should
- // be empty strings. Nulls were considered (instead of "") but caused errors in
+
+ // get_partition*_ps methods allow filtering by a partial partition specification,
+ // as needed for dynamic partitions. The values that are not restricted should
+ // be empty strings. Nulls were considered (instead of "") but caused errors in
// generated Python code. The size of part_vals may be smaller than the
// number of partition columns - the unspecified values are considered the same
// as "".
- list<Partition> get_partitions_ps(1:string db_name 2:string tbl_name
+ list<Partition> get_partitions_ps(1:string db_name 2:string tbl_name
3:list<string> part_vals, 4:i16 max_parts=-1)
throws(1:MetaException o1, 2:NoSuchObjectException o2)
- list<Partition> get_partitions_ps_with_auth(1:string db_name, 2:string tbl_name, 3:list<string> part_vals, 4:i16 max_parts=-1,
- 5: string user_name, 6: list<string> group_names) throws(1:NoSuchObjectException o1, 2:MetaException o2)
-
- list<string> get_partition_names_ps(1:string db_name,
+ list<Partition> get_partitions_ps_with_auth(1:string db_name, 2:string tbl_name, 3:list<string> part_vals, 4:i16 max_parts=-1,
+ 5: string user_name, 6: list<string> group_names) throws(1:NoSuchObjectException o1, 2:MetaException o2)
+
+ list<string> get_partition_names_ps(1:string db_name,
2:string tbl_name, 3:list<string> part_vals, 4:i16 max_parts=-1)
throws(1:MetaException o1, 2:NoSuchObjectException o2)

@@ -383,7 +391,7 @@ service ThriftHiveMetastore extends fb30
// thrown.
string get_config_value(1:string name, 2:string defaultValue)
throws(1:ConfigValSecurityException o1)
-
+
// converts a partition name into a partition values array
list<string> partition_name_to_vals(1: string part_name)
throws(1: MetaException o1)
@@ -391,23 +399,23 @@ service ThriftHiveMetastore extends fb30
// the partition cols to the values)
map<string, string> partition_name_to_spec(1: string part_name)
throws(1: MetaException o1)
-
+
void markPartitionForEvent(1:string db_name, 2:string tbl_name, 3:map<string,string> part_vals,
- 4:PartitionEventType eventType) throws (1: MetaException o1, 2: NoSuchObjectException o2,
+ 4:PartitionEventType eventType) throws (1: MetaException o1, 2: NoSuchObjectException o2,
3: UnknownDBException o3, 4: UnknownTableException o4, 5: UnknownPartitionException o5,
- 6: InvalidPartitionException o6)
- bool isPartitionMarkedForEvent(1:string db_name, 2:string tbl_name, 3:map<string,string> part_vals,
+ 6: InvalidPartitionException o6)
+ bool isPartitionMarkedForEvent(1:string db_name, 2:string tbl_name, 3:map<string,string> part_vals,
4: PartitionEventType eventType) throws (1: MetaException o1, 2:NoSuchObjectException o2,
3: UnknownDBException o3, 4: UnknownTableException o4, 5: UnknownPartitionException o5,
- 6: InvalidPartitionException o6)
-
+ 6: InvalidPartitionException o6)
+
//index
Index add_index(1:Index new_index, 2: Table index_table)
throws(1:InvalidObjectException o1, 2:AlreadyExistsException o2, 3:MetaException o3)
void alter_index(1:string dbname, 2:string base_tbl_name, 3:string idx_name, 4:Index new_idx)
throws (1:InvalidOperationException o1, 2:MetaException o2)
bool drop_index_by_name(1:string db_name, 2:string tbl_name, 3:string index_name, 4:bool deleteData)
- throws(1:NoSuchObjectException o1, 2:MetaException o2)
+ throws(1:NoSuchObjectException o1, 2:MetaException o2)
Index get_index_by_name(1:string db_name 2:string tbl_name, 3:string index_name)
throws(1:MetaException o1, 2:NoSuchObjectException o2)

@@ -417,30 +425,30 @@ service ThriftHiveMetastore extends fb30
throws(1:MetaException o2)

//authorization privileges
-
+
bool create_role(1:Role role) throws(1:MetaException o1)
bool drop_role(1:string role_name) throws(1:MetaException o1)
list<string> get_role_names() throws(1:MetaException o1)
- bool grant_role(1:string role_name, 2:string principal_name, 3:PrincipalType principal_type,
+ bool grant_role(1:string role_name, 2:string principal_name, 3:PrincipalType principal_type,
4:string grantor, 5:PrincipalType grantorType, 6:bool grant_option) throws(1:MetaException o1)
- bool revoke_role(1:string role_name, 2:string principal_name, 3:PrincipalType principal_type)
+ bool revoke_role(1:string role_name, 2:string principal_name, 3:PrincipalType principal_type)
throws(1:MetaException o1)
list<Role> list_roles(1:string principal_name, 2:PrincipalType principal_type) throws(1:MetaException o1)

- PrincipalPrivilegeSet get_privilege_set(1:HiveObjectRef hiveObject, 2:string user_name,
+ PrincipalPrivilegeSet get_privilege_set(1:HiveObjectRef hiveObject, 2:string user_name,
3: list<string> group_names) throws(1:MetaException o1)
- list<HiveObjectPrivilege> list_privileges(1:string principal_name, 2:PrincipalType principal_type,
+ list<HiveObjectPrivilege> list_privileges(1:string principal_name, 2:PrincipalType principal_type,
3: HiveObjectRef hiveObject) throws(1:MetaException o1)
-
+
bool grant_privileges(1:PrivilegeBag privileges) throws(1:MetaException o1)
bool revoke_privileges(1:PrivilegeBag privileges) throws(1:MetaException o1)
-
+
// this is used by metastore client to send UGI information to metastore server immediately
- // after setting up a connection.
+ // after setting up a connection.
list<string> set_ugi(1:string user_name, 2:list<string> group_names) throws (1:MetaException o1)

//Authentication (delegation token) interfaces
-
+
// get metastore server delegation token for use from the map/reduce tasks to authenticate
// to metastore server
string get_delegation_token(1:string token_owner, 2:string renewer_kerberos_principal_name)

Added: hive/trunk/metastore/scripts/upgrade/derby/010-HIVE-2612.derby.sql
URL: http://svn.apache.org/viewvc/hive/trunk/metastore/scripts/upgrade/derby/010-HIVE-2612.derby.sql?rev=1243013&view=auto
==============================================================================
--- hive/trunk/metastore/scripts/upgrade/derby/010-HIVE-2612.derby.sql (added)
+++ hive/trunk/metastore/scripts/upgrade/derby/010-HIVE-2612.derby.sql Sat Feb 11 07:49:28 2012
@@ -0,0 +1,27 @@
+/*
+ * HIVE-2612 support hive table/partitions exists in more than one region
+ */
+
+/*
+ * Creates the following table:
+ * - REGION_SDS
+ */
+CREATE TABLE "REGION_SDS" (
+ "SD_ID" bigint NOT NULL,
+ "REGION_NAME" varchar(512) NOT NULL,
+ "LOCATION" varchar(4000),
+ PRIMARY KEY ("SD_ID", "REGION_NAME")
+);
+
+ALTER TABLE "REGION_SDS"
+ ADD CONSTRAINT "REGION_SDS_FK1"
+ FOREIGN KEY ("SD_ID") REFERENCES "SDS" ("SD_ID")
+ ON DELETE NO ACTION ON UPDATE NO ACTION
+;
+
+/* Alter the SDS table to:
+ * - add the column PRIMARY_REGION_NAME
+ */
+ALTER TABLE SDS
+ ADD COLUMN PRIMARY_REGION_NAME varchar(512) NOT NULL DEFAULT ''
+;

Added: hive/trunk/metastore/scripts/upgrade/derby/hive-schema-0.10.0.derby.sql
URL: http://svn.apache.org/viewvc/hive/trunk/metastore/scripts/upgrade/derby/hive-schema-0.10.0.derby.sql?rev=1243013&view=auto
==============================================================================
--- hive/trunk/metastore/scripts/upgrade/derby/hive-schema-0.10.0.derby.sql (added)
+++ hive/trunk/metastore/scripts/upgrade/derby/hive-schema-0.10.0.derby.sql Sat Feb 11 07:49:28 2012
@@ -0,0 +1,251 @@
+-- Timestamp: 2012-02-10 12:21:25.771
+-- Source database is: /home/kevinwilfong/hive/mdb
+-- Connection URL is: jdbc:derby:/home/kevinwilfong/hive/mdb
+-- appendLogs: false
+
+-- ----------------------------------------------
+-- DDL Statements for functions
+-- ----------------------------------------------
+
+CREATE FUNCTION "APP"."NUCLEUS_ASCII" ("C" CHAR(1)) RETURNS INTEGER LANGUAGE JAVA PARAMETER STYLE JAVA READS SQL DATA CALLED ON NULL INPUT EXTERNAL NAME 'org.datanucleus.store.rdbms.adapter.DerbySQLFunction.ascii' ;
+
+CREATE FUNCTION "APP"."NUCLEUS_MATCHES" ("TEXT" VARCHAR(8000),"PATTERN" VARCHAR(8000)) RETURNS INTEGER LANGUAGE JAVA PARAMETER STYLE JAVA READS SQL DATA CALLED ON NULL INPUT EXTERNAL NAME 'org.datanucleus.store.rdbms.adapter.DerbySQLFunction.matches' ;
+
+-- ----------------------------------------------
+-- DDL Statements for tables
+-- ----------------------------------------------
+
+CREATE TABLE "APP"."SDS" ("SD_ID" BIGINT NOT NULL, "INPUT_FORMAT" VARCHAR(4000), "IS_COMPRESSED" CHAR(1) NOT NULL, "LOCATION" VARCHAR(4000), "NUM_BUCKETS" INTEGER NOT NULL, "OUTPUT_FORMAT" VARCHAR(4000), "SERDE_ID" BIGINT, "CD_ID" BIGINT, "PRIMARY_REGION_NAME" VARCHAR(512) NOT NULL DEFAULT '');
+
+CREATE TABLE "APP"."ROLE_MAP" ("ROLE_GRANT_ID" BIGINT NOT NULL, "ADD_TIME" INTEGER NOT NULL, "GRANT_OPTION" SMALLINT NOT NULL, "GRANTOR" VARCHAR(128), "GRANTOR_TYPE" VARCHAR(128), "PRINCIPAL_NAME" VARCHAR(128), "PRINCIPAL_TYPE" VARCHAR(128), "ROLE_ID" BIGINT);
+
+CREATE TABLE "APP"."ROLES" ("ROLE_ID" BIGINT NOT NULL, "CREATE_TIME" INTEGER NOT NULL, "OWNER_NAME" VARCHAR(128), "ROLE_NAME" VARCHAR(128));
+
+CREATE TABLE "APP"."TBL_COL_PRIVS" ("TBL_COLUMN_GRANT_ID" BIGINT NOT NULL, "COLUMN_NAME" VARCHAR(128), "CREATE_TIME" INTEGER NOT NULL, "GRANT_OPTION" SMALLINT NOT NULL, "GRANTOR" VARCHAR(128), "GRANTOR_TYPE" VARCHAR(128), "PRINCIPAL_NAME" VARCHAR(128), "PRINCIPAL_TYPE" VARCHAR(128), "TBL_COL_PRIV" VARCHAR(128), "TBL_ID" BIGINT);
+
+CREATE TABLE "APP"."NUCLEUS_TABLES" ("CLASS_NAME" VARCHAR(128) NOT NULL, "TABLE_NAME" VARCHAR(128) NOT NULL, "TYPE" VARCHAR(4) NOT NULL, "OWNER" VARCHAR(2) NOT NULL, "VERSION" VARCHAR(20) NOT NULL, "INTERFACE_NAME" VARCHAR(256) DEFAULT NULL);
+
+CREATE TABLE "APP"."SERDES" ("SERDE_ID" BIGINT NOT NULL, "NAME" VARCHAR(128), "SLIB" VARCHAR(4000));
+
+CREATE TABLE "APP"."PART_PRIVS" ("PART_GRANT_ID" BIGINT NOT NULL, "CREATE_TIME" INTEGER NOT NULL, "GRANT_OPTION" SMALLINT NOT NULL, "GRANTOR" VARCHAR(128), "GRANTOR_TYPE" VARCHAR(128), "PART_ID" BIGINT, "PRINCIPAL_NAME" VARCHAR(128), "PRINCIPAL_TYPE" VARCHAR(128), "PART_PRIV" VARCHAR(128));
+
+CREATE TABLE "APP"."GLOBAL_PRIVS" ("USER_GRANT_ID" BIGINT NOT NULL, "CREATE_TIME" INTEGER NOT NULL, "GRANT_OPTION" SMALLINT NOT NULL, "GRANTOR" VARCHAR(128), "GRANTOR_TYPE" VARCHAR(128), "PRINCIPAL_NAME" VARCHAR(128), "PRINCIPAL_TYPE" VARCHAR(128), "USER_PRIV" VARCHAR(128));
+
+CREATE TABLE "APP"."SD_PARAMS" ("SD_ID" BIGINT NOT NULL, "PARAM_KEY" VARCHAR(256) NOT NULL, "PARAM_VALUE" VARCHAR(4000));
+
+CREATE TABLE "APP"."DB_PRIVS" ("DB_GRANT_ID" BIGINT NOT NULL, "CREATE_TIME" INTEGER NOT NULL, "DB_ID" BIGINT, "GRANT_OPTION" SMALLINT NOT NULL, "GRANTOR" VARCHAR(128), "GRANTOR_TYPE" VARCHAR(128), "PRINCIPAL_NAME" VARCHAR(128), "PRINCIPAL_TYPE" VARCHAR(128), "DB_PRIV" VARCHAR(128));
+
+CREATE TABLE "APP"."TBL_PRIVS" ("TBL_GRANT_ID" BIGINT NOT NULL, "CREATE_TIME" INTEGER NOT NULL, "GRANT_OPTION" SMALLINT NOT NULL, "GRANTOR" VARCHAR(128), "GRANTOR_TYPE" VARCHAR(128), "PRINCIPAL_NAME" VARCHAR(128), "PRINCIPAL_TYPE" VARCHAR(128), "TBL_PRIV" VARCHAR(128), "TBL_ID" BIGINT);
+
+CREATE TABLE "APP"."REGION_SDS" ("SD_ID" BIGINT NOT NULL, "REGION_NAME" VARCHAR(512) NOT NULL, "LOCATION" VARCHAR(4000));
+
+CREATE TABLE "APP"."BUCKETING_COLS" ("SD_ID" BIGINT NOT NULL, "BUCKET_COL_NAME" VARCHAR(256), "INTEGER_IDX" INTEGER NOT NULL);
+
+CREATE TABLE "APP"."SEQUENCE_TABLE" ("SEQUENCE_NAME" VARCHAR(256) NOT NULL, "NEXT_VAL" BIGINT NOT NULL);
+
+CREATE TABLE "APP"."PART_COL_PRIVS" ("PART_COLUMN_GRANT_ID" BIGINT NOT NULL, "COLUMN_NAME" VARCHAR(128), "CREATE_TIME" INTEGER NOT NULL, "GRANT_OPTION" SMALLINT NOT NULL, "GRANTOR" VARCHAR(128), "GRANTOR_TYPE" VARCHAR(128), "PART_ID" BIGINT, "PRINCIPAL_NAME" VARCHAR(128), "PRINCIPAL_TYPE" VARCHAR(128), "PART_COL_PRIV" VARCHAR(128));
+
+CREATE TABLE "APP"."COLUMNS_V2" ("CD_ID" BIGINT NOT NULL, "COMMENT" VARCHAR(4000), "COLUMN_NAME" VARCHAR(128) NOT NULL, "TYPE_NAME" VARCHAR(4000), "INTEGER_IDX" INTEGER NOT NULL);
+
+CREATE TABLE "APP"."PARTITION_EVENTS" ("PART_NAME_ID" BIGINT NOT NULL, "DB_NAME" VARCHAR(128), "EVENT_TIME" BIGINT NOT NULL, "EVENT_TYPE" INTEGER NOT NULL, "PARTITION_NAME" VARCHAR(767), "TBL_NAME" VARCHAR(128));
+
+CREATE TABLE "APP"."PARTITION_PARAMS" ("PART_ID" BIGINT NOT NULL, "PARAM_KEY" VARCHAR(256) NOT NULL, "PARAM_VALUE" VARCHAR(4000));
+
+CREATE TABLE "APP"."TBLS" ("TBL_ID" BIGINT NOT NULL, "CREATE_TIME" INTEGER NOT NULL, "DB_ID" BIGINT, "LAST_ACCESS_TIME" INTEGER NOT NULL, "OWNER" VARCHAR(767), "RETENTION" INTEGER NOT NULL, "SD_ID" BIGINT, "TBL_NAME" VARCHAR(128), "TBL_TYPE" VARCHAR(128), "VIEW_EXPANDED_TEXT" LONG VARCHAR, "VIEW_ORIGINAL_TEXT" LONG VARCHAR);
+
+CREATE TABLE "APP"."PARTITIONS" ("PART_ID" BIGINT NOT NULL, "CREATE_TIME" INTEGER NOT NULL, "LAST_ACCESS_TIME" INTEGER NOT NULL, "PART_NAME" VARCHAR(767), "SD_ID" BIGINT, "TBL_ID" BIGINT);
+
+CREATE TABLE "APP"."TABLE_PARAMS" ("TBL_ID" BIGINT NOT NULL, "PARAM_KEY" VARCHAR(256) NOT NULL, "PARAM_VALUE" VARCHAR(4000));
+
+CREATE TABLE "APP"."CDS" ("CD_ID" BIGINT NOT NULL);
+
+CREATE TABLE "APP"."SORT_COLS" ("SD_ID" BIGINT NOT NULL, "COLUMN_NAME" VARCHAR(128), "ORDER" INTEGER NOT NULL, "INTEGER_IDX" INTEGER NOT NULL);
+
+CREATE TABLE "APP"."TYPE_FIELDS" ("TYPE_NAME" BIGINT NOT NULL, "COMMENT" VARCHAR(256), "FIELD_NAME" VARCHAR(128) NOT NULL, "FIELD_TYPE" VARCHAR(767) NOT NULL, "INTEGER_IDX" INTEGER NOT NULL);
+
+CREATE TABLE "APP"."SERDE_PARAMS" ("SERDE_ID" BIGINT NOT NULL, "PARAM_KEY" VARCHAR(256) NOT NULL, "PARAM_VALUE" VARCHAR(4000));
+
+CREATE TABLE "APP"."PARTITION_KEYS" ("TBL_ID" BIGINT NOT NULL, "PKEY_COMMENT" VARCHAR(4000), "PKEY_NAME" VARCHAR(128) NOT NULL, "PKEY_TYPE" VARCHAR(767) NOT NULL, "INTEGER_IDX" INTEGER NOT NULL);
+
+CREATE TABLE "APP"."IDXS" ("INDEX_ID" BIGINT NOT NULL, "CREATE_TIME" INTEGER NOT NULL, "DEFERRED_REBUILD" CHAR(1) NOT NULL, "INDEX_HANDLER_CLASS" VARCHAR(4000), "INDEX_NAME" VARCHAR(128), "INDEX_TBL_ID" BIGINT, "LAST_ACCESS_TIME" INTEGER NOT NULL, "ORIG_TBL_ID" BIGINT, "SD_ID" BIGINT);
+
+CREATE TABLE "APP"."PARTITION_KEY_VALS" ("PART_ID" BIGINT NOT NULL, "PART_KEY_VAL" VARCHAR(256), "INTEGER_IDX" INTEGER NOT NULL);
+
+CREATE TABLE "APP"."TYPES" ("TYPES_ID" BIGINT NOT NULL, "TYPE_NAME" VARCHAR(128), "TYPE1" VARCHAR(767), "TYPE2" VARCHAR(767));
+
+CREATE TABLE "APP"."INDEX_PARAMS" ("INDEX_ID" BIGINT NOT NULL, "PARAM_KEY" VARCHAR(256) NOT NULL, "PARAM_VALUE" VARCHAR(4000));
+
+CREATE TABLE "APP"."DBS" ("DB_ID" BIGINT NOT NULL, "DESC" VARCHAR(4000), "DB_LOCATION_URI" VARCHAR(4000) NOT NULL, "NAME" VARCHAR(128));
+
+CREATE TABLE "APP"."COLUMNS" ("SD_ID" BIGINT NOT NULL, "COMMENT" VARCHAR(256), "COLUMN_NAME" VARCHAR(128) NOT NULL, "TYPE_NAME" VARCHAR(4000) NOT NULL, "INTEGER_IDX" INTEGER NOT NULL);
+
+CREATE TABLE "APP"."DATABASE_PARAMS" ("DB_ID" BIGINT NOT NULL, "PARAM_KEY" VARCHAR(180) NOT NULL, "PARAM_VALUE" VARCHAR(4000));
+
+-- ----------------------------------------------
+-- DDL Statements for indexes
+-- ----------------------------------------------
+
+CREATE UNIQUE INDEX "APP"."GLOBALPRIVILEGEINDEX" ON "APP"."GLOBAL_PRIVS" ("PRINCIPAL_NAME", "PRINCIPAL_TYPE", "USER_PRIV", "GRANTOR", "GRANTOR_TYPE");
+
+CREATE UNIQUE INDEX "APP"."UNIQUEPARTITION" ON "APP"."PARTITIONS" ("PART_NAME", "TBL_ID");
+
+CREATE UNIQUE INDEX "APP"."USERROLEMAPINDEX" ON "APP"."ROLE_MAP" ("PRINCIPAL_NAME", "ROLE_ID", "GRANTOR", "GRANTOR_TYPE");
+
+CREATE UNIQUE INDEX "APP"."UNIQUEINDEX" ON "APP"."IDXS" ("INDEX_NAME", "ORIG_TBL_ID");
+
+CREATE UNIQUE INDEX "APP"."ROLEENTITYINDEX" ON "APP"."ROLES" ("ROLE_NAME");
+
+CREATE UNIQUE INDEX "APP"."UNIQUE_DATABASE" ON "APP"."DBS" ("NAME");
+
+CREATE UNIQUE INDEX "APP"."UNIQUE_TYPE" ON "APP"."TYPES" ("TYPE_NAME");
+
+CREATE INDEX "APP"."PARTITIONCOLUMNPRIVILEGEINDEX" ON "APP"."PART_COL_PRIVS" ("PART_ID", "COLUMN_NAME", "PRINCIPAL_NAME", "PRINCIPAL_TYPE", "PART_COL_PRIV", "GRANTOR", "GRANTOR_TYPE");
+
+CREATE INDEX "APP"."TABLECOLUMNPRIVILEGEINDEX" ON "APP"."TBL_COL_PRIVS" ("TBL_ID", "COLUMN_NAME", "PRINCIPAL_NAME", "PRINCIPAL_TYPE", "TBL_COL_PRIV", "GRANTOR", "GRANTOR_TYPE");
+
+CREATE INDEX "APP"."PARTPRIVILEGEINDEX" ON "APP"."PART_PRIVS" ("PART_ID", "PRINCIPAL_NAME", "PRINCIPAL_TYPE", "PART_PRIV", "GRANTOR", "GRANTOR_TYPE");
+
+CREATE UNIQUE INDEX "APP"."UNIQUETABLE" ON "APP"."TBLS" ("TBL_NAME", "DB_ID");
+
+CREATE INDEX "APP"."TABLEPRIVILEGEINDEX" ON "APP"."TBL_PRIVS" ("TBL_ID", "PRINCIPAL_NAME", "PRINCIPAL_TYPE", "TBL_PRIV", "GRANTOR", "GRANTOR_TYPE");
+
+CREATE UNIQUE INDEX "APP"."DBPRIVILEGEINDEX" ON "APP"."DB_PRIVS" ("DB_ID", "PRINCIPAL_NAME", "PRINCIPAL_TYPE", "DB_PRIV", "GRANTOR", "GRANTOR_TYPE");
+
+-- ----------------------------------------------
+-- DDL Statements for keys
+-- ----------------------------------------------
+
+-- primary/unique
+ALTER TABLE "APP"."GLOBAL_PRIVS" ADD CONSTRAINT "GLOBAL_PRIVS_PK" PRIMARY KEY ("USER_GRANT_ID");
+
+ALTER TABLE "APP"."SDS" ADD CONSTRAINT "SDS_PK" PRIMARY KEY ("SD_ID");
+
+ALTER TABLE "APP"."SERDE_PARAMS" ADD CONSTRAINT "SERDE_PARAMS_PK" PRIMARY KEY ("SERDE_ID", "PARAM_KEY");
+
+ALTER TABLE "APP"."REGION_SDS" ADD CONSTRAINT "SQL120210122103870" PRIMARY KEY ("SD_ID", "REGION_NAME");
+
+ALTER TABLE "APP"."PARTITIONS" ADD CONSTRAINT "PARTITIONS_PK" PRIMARY KEY ("PART_ID");
+
+ALTER TABLE "APP"."COLUMNS" ADD CONSTRAINT "COLUMNS_PK" PRIMARY KEY ("SD_ID", "COLUMN_NAME");
+
+ALTER TABLE "APP"."BUCKETING_COLS" ADD CONSTRAINT "BUCKETING_COLS_PK" PRIMARY KEY ("SD_ID", "INTEGER_IDX");
+
+ALTER TABLE "APP"."CDS" ADD CONSTRAINT "SQL110922153006460" PRIMARY KEY ("CD_ID");
+
+ALTER TABLE "APP"."ROLE_MAP" ADD CONSTRAINT "ROLE_MAP_PK" PRIMARY KEY ("ROLE_GRANT_ID");
+
+ALTER TABLE "APP"."PARTITION_KEYS" ADD CONSTRAINT "PARTITION_KEY_PK" PRIMARY KEY ("TBL_ID", "PKEY_NAME");
+
+ALTER TABLE "APP"."SD_PARAMS" ADD CONSTRAINT "SD_PARAMS_PK" PRIMARY KEY ("SD_ID", "PARAM_KEY");
+
+ALTER TABLE "APP"."DATABASE_PARAMS" ADD CONSTRAINT "DATABASE_PARAMS_PK" PRIMARY KEY ("DB_ID", "PARAM_KEY");
+
+ALTER TABLE "APP"."IDXS" ADD CONSTRAINT "IDXS_PK" PRIMARY KEY ("INDEX_ID");
+
+ALTER TABLE "APP"."PARTITION_PARAMS" ADD CONSTRAINT "PARTITION_PARAMS_PK" PRIMARY KEY ("PART_ID", "PARAM_KEY");
+
+ALTER TABLE "APP"."SEQUENCE_TABLE" ADD CONSTRAINT "SEQUENCE_TABLE_PK" PRIMARY KEY ("SEQUENCE_NAME");
+
+ALTER TABLE "APP"."COLUMNS_V2" ADD CONSTRAINT "SQL110922153006740" PRIMARY KEY ("CD_ID", "COLUMN_NAME");
+
+ALTER TABLE "APP"."SERDES" ADD CONSTRAINT "SERDES_PK" PRIMARY KEY ("SERDE_ID");
+
+ALTER TABLE "APP"."ROLES" ADD CONSTRAINT "ROLES_PK" PRIMARY KEY ("ROLE_ID");
+
+ALTER TABLE "APP"."TYPE_FIELDS" ADD CONSTRAINT "TYPE_FIELDS_PK" PRIMARY KEY ("TYPE_NAME", "FIELD_NAME");
+
+ALTER TABLE "APP"."DBS" ADD CONSTRAINT "DBS_PK" PRIMARY KEY ("DB_ID");
+
+ALTER TABLE "APP"."PARTITION_KEY_VALS" ADD CONSTRAINT "PARTITION_KEY_VALS_PK" PRIMARY KEY ("PART_ID", "INTEGER_IDX");
+
+ALTER TABLE "APP"."TYPES" ADD CONSTRAINT "TYPES_PK" PRIMARY KEY ("TYPES_ID");
+
+ALTER TABLE "APP"."PART_COL_PRIVS" ADD CONSTRAINT "PART_COL_PRIVS_PK" PRIMARY KEY ("PART_COLUMN_GRANT_ID");
+
+ALTER TABLE "APP"."TBL_COL_PRIVS" ADD CONSTRAINT "TBL_COL_PRIVS_PK" PRIMARY KEY ("TBL_COLUMN_GRANT_ID");
+
+ALTER TABLE "APP"."INDEX_PARAMS" ADD CONSTRAINT "INDEX_PARAMS_PK" PRIMARY KEY ("INDEX_ID", "PARAM_KEY");
+
+ALTER TABLE "APP"."PARTITION_EVENTS" ADD CONSTRAINT "PARTITION_EVENTS_PK" PRIMARY KEY ("PART_NAME_ID");
+
+ALTER TABLE "APP"."TABLE_PARAMS" ADD CONSTRAINT "TABLE_PARAMS_PK" PRIMARY KEY ("TBL_ID", "PARAM_KEY");
+
+ALTER TABLE "APP"."SORT_COLS" ADD CONSTRAINT "SORT_COLS_PK" PRIMARY KEY ("SD_ID", "INTEGER_IDX");
+
+ALTER TABLE "APP"."PART_PRIVS" ADD CONSTRAINT "PART_PRIVS_PK" PRIMARY KEY ("PART_GRANT_ID");
+
+ALTER TABLE "APP"."TBLS" ADD CONSTRAINT "TBLS_PK" PRIMARY KEY ("TBL_ID");
+
+ALTER TABLE "APP"."NUCLEUS_TABLES" ADD CONSTRAINT "NUCLEUS_TABLES_PK" PRIMARY KEY ("CLASS_NAME");
+
+ALTER TABLE "APP"."TBL_PRIVS" ADD CONSTRAINT "TBL_PRIVS_PK" PRIMARY KEY ("TBL_GRANT_ID");
+
+ALTER TABLE "APP"."DB_PRIVS" ADD CONSTRAINT "DB_PRIVS_PK" PRIMARY KEY ("DB_GRANT_ID");
+
+-- foreign
+ALTER TABLE "APP"."SDS" ADD CONSTRAINT "SDS_FK1" FOREIGN KEY ("SERDE_ID") REFERENCES "APP"."SERDES" ("SERDE_ID") ON DELETE NO ACTION ON UPDATE NO ACTION;
+
+ALTER TABLE "APP"."SDS" ADD CONSTRAINT "SDS_FK2" FOREIGN KEY ("CD_ID") REFERENCES "APP"."CDS" ("CD_ID") ON DELETE NO ACTION ON UPDATE NO ACTION;
+
+ALTER TABLE "APP"."SERDE_PARAMS" ADD CONSTRAINT "SERDE_PARAMS_FK1" FOREIGN KEY ("SERDE_ID") REFERENCES "APP"."SERDES" ("SERDE_ID") ON DELETE NO ACTION ON UPDATE NO ACTION;
+
+ALTER TABLE "APP"."REGION_SDS" ADD CONSTRAINT "REGION_SDS_FK1" FOREIGN KEY ("SD_ID") REFERENCES "APP"."SDS" ("SD_ID") ON DELETE NO ACTION ON UPDATE NO ACTION;
+
+ALTER TABLE "APP"."PARTITIONS" ADD CONSTRAINT "PARTITIONS_FK1" FOREIGN KEY ("TBL_ID") REFERENCES "APP"."TBLS" ("TBL_ID") ON DELETE NO ACTION ON UPDATE NO ACTION;
+
+ALTER TABLE "APP"."PARTITIONS" ADD CONSTRAINT "PARTITIONS_FK2" FOREIGN KEY ("SD_ID") REFERENCES "APP"."SDS" ("SD_ID") ON DELETE NO ACTION ON UPDATE NO ACTION;
+
+ALTER TABLE "APP"."COLUMNS" ADD CONSTRAINT "COLUMNS_FK1" FOREIGN KEY ("SD_ID") REFERENCES "APP"."SDS" ("SD_ID") ON DELETE NO ACTION ON UPDATE NO ACTION;
+
+ALTER TABLE "APP"."BUCKETING_COLS" ADD CONSTRAINT "BUCKETING_COLS_FK1" FOREIGN KEY ("SD_ID") REFERENCES "APP"."SDS" ("SD_ID") ON DELETE NO ACTION ON UPDATE NO ACTION;
+
+ALTER TABLE "APP"."ROLE_MAP" ADD CONSTRAINT "ROLE_MAP_FK1" FOREIGN KEY ("ROLE_ID") REFERENCES "APP"."ROLES" ("ROLE_ID") ON DELETE NO ACTION ON UPDATE NO ACTION;
+
+ALTER TABLE "APP"."PARTITION_KEYS" ADD CONSTRAINT "PARTITION_KEYS_FK1" FOREIGN KEY ("TBL_ID") REFERENCES "APP"."TBLS" ("TBL_ID") ON DELETE NO ACTION ON UPDATE NO ACTION;
+
+ALTER TABLE "APP"."SD_PARAMS" ADD CONSTRAINT "SD_PARAMS_FK1" FOREIGN KEY ("SD_ID") REFERENCES "APP"."SDS" ("SD_ID") ON DELETE NO ACTION ON UPDATE NO ACTION;
+
+ALTER TABLE "APP"."DATABASE_PARAMS" ADD CONSTRAINT "DATABASE_PARAMS_FK1" FOREIGN KEY ("DB_ID") REFERENCES "APP"."DBS" ("DB_ID") ON DELETE NO ACTION ON UPDATE NO ACTION;
+
+ALTER TABLE "APP"."IDXS" ADD CONSTRAINT "IDXS_FK1" FOREIGN KEY ("ORIG_TBL_ID") REFERENCES "APP"."TBLS" ("TBL_ID") ON DELETE NO ACTION ON UPDATE NO ACTION;
+
+ALTER TABLE "APP"."IDXS" ADD CONSTRAINT "IDXS_FK2" FOREIGN KEY ("SD_ID") REFERENCES "APP"."SDS" ("SD_ID") ON DELETE NO ACTION ON UPDATE NO ACTION;
+
+ALTER TABLE "APP"."IDXS" ADD CONSTRAINT "IDXS_FK3" FOREIGN KEY ("INDEX_TBL_ID") REFERENCES "APP"."TBLS" ("TBL_ID") ON DELETE NO ACTION ON UPDATE NO ACTION;
+
+ALTER TABLE "APP"."PARTITION_PARAMS" ADD CONSTRAINT "PARTITION_PARAMS_FK1" FOREIGN KEY ("PART_ID") REFERENCES "APP"."PARTITIONS" ("PART_ID") ON DELETE NO ACTION ON UPDATE NO ACTION;
+
+ALTER TABLE "APP"."COLUMNS_V2" ADD CONSTRAINT "COLUMNS_V2_FK1" FOREIGN KEY ("CD_ID") REFERENCES "APP"."CDS" ("CD_ID") ON DELETE NO ACTION ON UPDATE NO ACTION;
+
+ALTER TABLE "APP"."TYPE_FIELDS" ADD CONSTRAINT "TYPE_FIELDS_FK1" FOREIGN KEY ("TYPE_NAME") REFERENCES "APP"."TYPES" ("TYPES_ID") ON DELETE NO ACTION ON UPDATE NO ACTION;
+
+ALTER TABLE "APP"."PARTITION_KEY_VALS" ADD CONSTRAINT "PARTITION_KEY_VALS_FK1" FOREIGN KEY ("PART_ID") REFERENCES "APP"."PARTITIONS" ("PART_ID") ON DELETE NO ACTION ON UPDATE NO ACTION;
+
+ALTER TABLE "APP"."PART_COL_PRIVS" ADD CONSTRAINT "PART_COL_PRIVS_FK1" FOREIGN KEY ("PART_ID") REFERENCES "APP"."PARTITIONS" ("PART_ID") ON DELETE NO ACTION ON UPDATE NO ACTION;
+
+ALTER TABLE "APP"."TBL_COL_PRIVS" ADD CONSTRAINT "TBL_COL_PRIVS_FK1" FOREIGN KEY ("TBL_ID") REFERENCES "APP"."TBLS" ("TBL_ID") ON DELETE NO ACTION ON UPDATE NO ACTION;
+
+ALTER TABLE "APP"."INDEX_PARAMS" ADD CONSTRAINT "INDEX_PARAMS_FK1" FOREIGN KEY ("INDEX_ID") REFERENCES "APP"."IDXS" ("INDEX_ID") ON DELETE NO ACTION ON UPDATE NO ACTION;
+
+ALTER TABLE "APP"."TABLE_PARAMS" ADD CONSTRAINT "TABLE_PARAMS_FK1" FOREIGN KEY ("TBL_ID") REFERENCES "APP"."TBLS" ("TBL_ID") ON DELETE NO ACTION ON UPDATE NO ACTION;
+
+ALTER TABLE "APP"."SORT_COLS" ADD CONSTRAINT "SORT_COLS_FK1" FOREIGN KEY ("SD_ID") REFERENCES "APP"."SDS" ("SD_ID") ON DELETE NO ACTION ON UPDATE NO ACTION;
+
+ALTER TABLE "APP"."PART_PRIVS" ADD CONSTRAINT "PART_PRIVS_FK1" FOREIGN KEY ("PART_ID") REFERENCES "APP"."PARTITIONS" ("PART_ID") ON DELETE NO ACTION ON UPDATE NO ACTION;
+
+ALTER TABLE "APP"."TBLS" ADD CONSTRAINT "TBLS_FK2" FOREIGN KEY ("SD_ID") REFERENCES "APP"."SDS" ("SD_ID") ON DELETE NO ACTION ON UPDATE NO ACTION;
+
+ALTER TABLE "APP"."TBLS" ADD CONSTRAINT "TBLS_FK1" FOREIGN KEY ("DB_ID") REFERENCES "APP"."DBS" ("DB_ID") ON DELETE NO ACTION ON UPDATE NO ACTION;
+
+ALTER TABLE "APP"."TBL_PRIVS" ADD CONSTRAINT "TBL_PRIVS_FK1" FOREIGN KEY ("TBL_ID") REFERENCES "APP"."TBLS" ("TBL_ID") ON DELETE NO ACTION ON UPDATE NO ACTION;
+
+ALTER TABLE "APP"."DB_PRIVS" ADD CONSTRAINT "DB_PRIVS_FK1" FOREIGN KEY ("DB_ID") REFERENCES "APP"."DBS" ("DB_ID") ON DELETE NO ACTION ON UPDATE NO ACTION;
+
+-- ----------------------------------------------
+-- DDL Statements for checks
+-- ----------------------------------------------
+
+ALTER TABLE "APP"."SDS" ADD CONSTRAINT "SQL110318025505550" CHECK (IS_COMPRESSED IN ('Y','N'));
+
+ALTER TABLE "APP"."IDXS" ADD CONSTRAINT "SQL110318025504980" CHECK (DEFERRED_REBUILD IN ('Y','N'));
+

Added: hive/trunk/metastore/scripts/upgrade/derby/upgrade-0.9.0-to-0.10.0.derby.sql
URL: http://svn.apache.org/viewvc/hive/trunk/metastore/scripts/upgrade/derby/upgrade-0.9.0-to-0.10.0.derby.sql?rev=1243013&view=auto
==============================================================================
--- hive/trunk/metastore/scripts/upgrade/derby/upgrade-0.9.0-to-0.10.0.derby.sql (added)
+++ hive/trunk/metastore/scripts/upgrade/derby/upgrade-0.9.0-to-0.10.0.derby.sql Sat Feb 11 07:49:28 2012
@@ -0,0 +1,2 @@
+-- Upgrade MetaStore schema from 0.9.0 to 0.10.0
+RUN '010-HIVE-2612.derby.sql';

Added: hive/trunk/metastore/scripts/upgrade/mysql/010-HIVE-2612.mysql.sql
URL: http://svn.apache.org/viewvc/hive/trunk/metastore/scripts/upgrade/mysql/010-HIVE-2612.mysql.sql?rev=1243013&view=auto
==============================================================================
--- hive/trunk/metastore/scripts/upgrade/mysql/010-HIVE-2612.mysql.sql (added)
+++ hive/trunk/metastore/scripts/upgrade/mysql/010-HIVE-2612.mysql.sql Sat Feb 11 07:49:28 2012
@@ -0,0 +1,59 @@
+SELECT '< HIVE-2612 support hive table/partitions exists in more than one region >' AS ' ';
+
+DELIMITER $$
+DROP PROCEDURE IF EXISTS REVERT $$
+DROP PROCEDURE IF EXISTS ALTER_SDS $$
+DROP PROCEDURE IF EXISTS CREATE_TABLE $$
+DROP PROCEDURE IF EXISTS MIGRATE $$
+
+/* Call this procedure to revert all changes by this script */
+CREATE PROCEDURE REVERT()
+ BEGIN
+ ALTER TABLE SDS
+ DROP COLUMN PRIMARY_REGION_NAME
+ ;
+ DROP TABLE IF EXISTS REGION_SDS;
+
+ END $$
+
+/* Alter the SDS table to:
+ * - add the column PRIMARY_REGION_NAME
+ */
+CREATE PROCEDURE ALTER_SDS()
+ BEGIN
+ ALTER TABLE SDS
+ ADD COLUMN PRIMARY_REGION_NAME varchar(512) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT ''
+ ;
+ END $$
+
+/*
+ * Creates the following table:
+ * - REGION_SDS
+ */
+CREATE PROCEDURE CREATE_TABLE()
+ BEGIN
+ CREATE TABLE IF NOT EXISTS `REGION_SDS` (
+ SD_ID bigint(20) NOT NULL,
+ REGION_NAME varchar(512) NOT NULL,
+ LOCATION varchar(4000),
+ PRIMARY KEY (`SD_ID`, `REGION_NAME`),
+ KEY `REGION_SDS_N49` (`SD_ID`),
+ CONSTRAINT `REGION_SDS_V2_FK1` FOREIGN KEY (`SD_ID`) REFERENCES `SDS` (`SD_ID`)
+ ) ENGINE=InnoDB DEFAULT CHARSET=latin1
+ ;
+ END $$
+
+/*
+ * Procedures called before migration happens
+ */
+CREATE PROCEDURE MIGRATE()
+ BEGIN
+ call CREATE_TABLE();
+ SELECT 'Created table REGION_SDS';
+ call ALTER_SDS();
+ SELECT 'Altered the SDS table';
+ END $$
+
+DELIMITER ;
+
+CALL MIGRATE();

Added: hive/trunk/metastore/scripts/upgrade/mysql/hive-schema-0.10.0.mysql.sql
URL: http://svn.apache.org/viewvc/hive/trunk/metastore/scripts/upgrade/mysql/hive-schema-0.10.0.mysql.sql?rev=1243013&view=auto
==============================================================================
--- hive/trunk/metastore/scripts/upgrade/mysql/hive-schema-0.10.0.mysql.sql (added)
+++ hive/trunk/metastore/scripts/upgrade/mysql/hive-schema-0.10.0.mysql.sql Sat Feb 11 07:49:28 2012
@@ -0,0 +1,655 @@
+-- MySQL dump 10.13 Distrib 5.1.53, for redhat-linux-gnu (x86_64)
+--
+-- Host: cdb259.snc1 Database: test_kevinwilfong_metastore
+-- ------------------------------------------------------
+-- Server version 5.1.47_blackhole_memcache-log
+
+/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
+/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
+/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
+/*!40101 SET NAMES utf8 */;
+/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
+/*!40103 SET TIME_ZONE='+00:00' */;
+/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
+/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
+/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
+/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
+
+--
+-- Table structure for table `BUCKETING_COLS`
+--
+
+DROP TABLE IF EXISTS `BUCKETING_COLS`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `BUCKETING_COLS` (
+ `SD_ID` bigint(20) NOT NULL,
+ `BUCKET_COL_NAME` varchar(256) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
+ `INTEGER_IDX` int(11) NOT NULL,
+ PRIMARY KEY (`SD_ID`,`INTEGER_IDX`),
+ KEY `BUCKETING_COLS_N49` (`SD_ID`),
+ CONSTRAINT `BUCKETING_COLS_FK1` FOREIGN KEY (`SD_ID`) REFERENCES `SDS` (`SD_ID`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `CDS`
+--
+
+DROP TABLE IF EXISTS `CDS`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `CDS` (
+ `CD_ID` bigint(20) NOT NULL,
+ PRIMARY KEY (`CD_ID`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `COLUMNS_V2`
+--
+
+DROP TABLE IF EXISTS `COLUMNS_V2`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `COLUMNS_V2` (
+ `CD_ID` bigint(20) NOT NULL,
+ `COMMENT` varchar(256) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
+ `COLUMN_NAME` varchar(128) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
+ `TYPE_NAME` varchar(4000) DEFAULT NULL,
+ `INTEGER_IDX` int(11) NOT NULL,
+ PRIMARY KEY (`CD_ID`,`COLUMN_NAME`),
+ KEY `COLUMNS_V2_N49` (`CD_ID`),
+ CONSTRAINT `COLUMNS_V2_FK1` FOREIGN KEY (`CD_ID`) REFERENCES `CDS` (`CD_ID`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `DATABASE_PARAMS`
+--
+
+DROP TABLE IF EXISTS `DATABASE_PARAMS`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `DATABASE_PARAMS` (
+ `DB_ID` bigint(20) NOT NULL,
+ `PARAM_KEY` varchar(180) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
+ `PARAM_VALUE` varchar(4000) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
+ PRIMARY KEY (`DB_ID`,`PARAM_KEY`),
+ KEY `DATABASE_PARAMS_N49` (`DB_ID`),
+ CONSTRAINT `DATABASE_PARAMS_FK1` FOREIGN KEY (`DB_ID`) REFERENCES `DBS` (`DB_ID`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `DBS`
+--
+
+DROP TABLE IF EXISTS `DBS`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `DBS` (
+ `DB_ID` bigint(20) NOT NULL,
+ `DESC` varchar(4000) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
+ `DB_LOCATION_URI` varchar(4000) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
+ `NAME` varchar(128) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
+ PRIMARY KEY (`DB_ID`),
+ UNIQUE KEY `UNIQUE_DATABASE` (`NAME`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `DB_PRIVS`
+--
+
+DROP TABLE IF EXISTS `DB_PRIVS`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `DB_PRIVS` (
+ `DB_GRANT_ID` bigint(20) NOT NULL,
+ `CREATE_TIME` int(11) NOT NULL,
+ `DB_ID` bigint(20) DEFAULT NULL,
+ `GRANT_OPTION` smallint(6) NOT NULL,
+ `GRANTOR` varchar(128) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
+ `GRANTOR_TYPE` varchar(128) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
+ `PRINCIPAL_NAME` varchar(128) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
+ `PRINCIPAL_TYPE` varchar(128) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
+ `DB_PRIV` varchar(128) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
+ PRIMARY KEY (`DB_GRANT_ID`),
+ UNIQUE KEY `DBPRIVILEGEINDEX` (`DB_ID`,`PRINCIPAL_NAME`,`PRINCIPAL_TYPE`,`DB_PRIV`,`GRANTOR`,`GRANTOR_TYPE`),
+ KEY `DB_PRIVS_N49` (`DB_ID`),
+ CONSTRAINT `DB_PRIVS_FK1` FOREIGN KEY (`DB_ID`) REFERENCES `DBS` (`DB_ID`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `GLOBAL_PRIVS`
+--
+
+DROP TABLE IF EXISTS `GLOBAL_PRIVS`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `GLOBAL_PRIVS` (
+ `USER_GRANT_ID` bigint(20) NOT NULL,
+ `CREATE_TIME` int(11) NOT NULL,
+ `GRANT_OPTION` smallint(6) NOT NULL,
+ `GRANTOR` varchar(128) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
+ `GRANTOR_TYPE` varchar(128) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
+ `PRINCIPAL_NAME` varchar(128) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
+ `PRINCIPAL_TYPE` varchar(128) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
+ `USER_PRIV` varchar(128) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
+ PRIMARY KEY (`USER_GRANT_ID`),
+ UNIQUE KEY `GLOBALPRIVILEGEINDEX` (`PRINCIPAL_NAME`,`PRINCIPAL_TYPE`,`USER_PRIV`,`GRANTOR`,`GRANTOR_TYPE`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `IDXS`
+--
+
+DROP TABLE IF EXISTS `IDXS`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `IDXS` (
+ `INDEX_ID` bigint(20) NOT NULL,
+ `CREATE_TIME` int(11) NOT NULL,
+ `DEFERRED_REBUILD` bit(1) NOT NULL,
+ `INDEX_HANDLER_CLASS` varchar(4000) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
+ `INDEX_NAME` varchar(128) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
+ `INDEX_TBL_ID` bigint(20) DEFAULT NULL,
+ `LAST_ACCESS_TIME` int(11) NOT NULL,
+ `ORIG_TBL_ID` bigint(20) DEFAULT NULL,
+ `SD_ID` bigint(20) DEFAULT NULL,
+ PRIMARY KEY (`INDEX_ID`),
+ UNIQUE KEY `UNIQUEINDEX` (`INDEX_NAME`,`ORIG_TBL_ID`),
+ KEY `IDXS_N51` (`SD_ID`),
+ KEY `IDXS_N50` (`INDEX_TBL_ID`),
+ KEY `IDXS_N49` (`ORIG_TBL_ID`),
+ CONSTRAINT `IDXS_FK3` FOREIGN KEY (`INDEX_TBL_ID`) REFERENCES `TBLS` (`TBL_ID`),
+ CONSTRAINT `IDXS_FK1` FOREIGN KEY (`ORIG_TBL_ID`) REFERENCES `TBLS` (`TBL_ID`),
+ CONSTRAINT `IDXS_FK2` FOREIGN KEY (`SD_ID`) REFERENCES `SDS` (`SD_ID`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `INDEX_PARAMS`
+--
+
+DROP TABLE IF EXISTS `INDEX_PARAMS`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `INDEX_PARAMS` (
+ `INDEX_ID` bigint(20) NOT NULL,
+ `PARAM_KEY` varchar(256) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
+ `PARAM_VALUE` varchar(4000) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
+ PRIMARY KEY (`INDEX_ID`,`PARAM_KEY`),
+ KEY `INDEX_PARAMS_N49` (`INDEX_ID`),
+ CONSTRAINT `INDEX_PARAMS_FK1` FOREIGN KEY (`INDEX_ID`) REFERENCES `IDXS` (`INDEX_ID`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `NUCLEUS_TABLES`
+--
+
+DROP TABLE IF EXISTS `NUCLEUS_TABLES`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `NUCLEUS_TABLES` (
+ `CLASS_NAME` varchar(128) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
+ `TABLE_NAME` varchar(128) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
+ `TYPE` varchar(4) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
+ `OWNER` varchar(2) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
+ `VERSION` varchar(20) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
+ `INTERFACE_NAME` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
+ PRIMARY KEY (`CLASS_NAME`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `PARTITIONS`
+--
+
+DROP TABLE IF EXISTS `PARTITIONS`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `PARTITIONS` (
+ `PART_ID` bigint(20) NOT NULL,
+ `CREATE_TIME` int(11) NOT NULL,
+ `LAST_ACCESS_TIME` int(11) NOT NULL,
+ `PART_NAME` varchar(767) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
+ `SD_ID` bigint(20) DEFAULT NULL,
+ `TBL_ID` bigint(20) DEFAULT NULL,
+ PRIMARY KEY (`PART_ID`),
+ UNIQUE KEY `UNIQUEPARTITION` (`PART_NAME`,`TBL_ID`),
+ KEY `PARTITIONS_N49` (`TBL_ID`),
+ KEY `PARTITIONS_N50` (`SD_ID`),
+ CONSTRAINT `PARTITIONS_FK2` FOREIGN KEY (`SD_ID`) REFERENCES `SDS` (`SD_ID`),
+ CONSTRAINT `PARTITIONS_FK1` FOREIGN KEY (`TBL_ID`) REFERENCES `TBLS` (`TBL_ID`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `PARTITION_EVENTS`
+--
+
+DROP TABLE IF EXISTS `PARTITION_EVENTS`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `PARTITION_EVENTS` (
+ `PART_NAME_ID` bigint(20) NOT NULL,
+ `DB_NAME` varchar(128) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
+ `EVENT_TIME` bigint(20) NOT NULL,
+ `EVENT_TYPE` int(11) NOT NULL,
+ `PARTITION_NAME` varchar(767) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
+ `TBL_NAME` varchar(128) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
+ PRIMARY KEY (`PART_NAME_ID`),
+ KEY `PARTITIONEVENTINDEX` (`PARTITION_NAME`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `PARTITION_KEYS`
+--
+
+DROP TABLE IF EXISTS `PARTITION_KEYS`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `PARTITION_KEYS` (
+ `TBL_ID` bigint(20) NOT NULL,
+ `PKEY_COMMENT` varchar(4000) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
+ `PKEY_NAME` varchar(128) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
+ `PKEY_TYPE` varchar(767) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
+ `INTEGER_IDX` int(11) NOT NULL,
+ PRIMARY KEY (`TBL_ID`,`PKEY_NAME`),
+ KEY `PARTITION_KEYS_N49` (`TBL_ID`),
+ CONSTRAINT `PARTITION_KEYS_FK1` FOREIGN KEY (`TBL_ID`) REFERENCES `TBLS` (`TBL_ID`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `PARTITION_KEY_VALS`
+--
+
+DROP TABLE IF EXISTS `PARTITION_KEY_VALS`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `PARTITION_KEY_VALS` (
+ `PART_ID` bigint(20) NOT NULL,
+ `PART_KEY_VAL` varchar(256) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
+ `INTEGER_IDX` int(11) NOT NULL,
+ PRIMARY KEY (`PART_ID`,`INTEGER_IDX`),
+ KEY `PARTITION_KEY_VALS_N49` (`PART_ID`),
+ CONSTRAINT `PARTITION_KEY_VALS_FK1` FOREIGN KEY (`PART_ID`) REFERENCES `PARTITIONS` (`PART_ID`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `PARTITION_PARAMS`
+--
+
+DROP TABLE IF EXISTS `PARTITION_PARAMS`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `PARTITION_PARAMS` (
+ `PART_ID` bigint(20) NOT NULL,
+ `PARAM_KEY` varchar(256) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
+ `PARAM_VALUE` varchar(4000) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
+ PRIMARY KEY (`PART_ID`,`PARAM_KEY`),
+ KEY `PARTITION_PARAMS_N49` (`PART_ID`),
+ CONSTRAINT `PARTITION_PARAMS_FK1` FOREIGN KEY (`PART_ID`) REFERENCES `PARTITIONS` (`PART_ID`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `PART_COL_PRIVS`
+--
+
+DROP TABLE IF EXISTS `PART_COL_PRIVS`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `PART_COL_PRIVS` (
+ `PART_COLUMN_GRANT_ID` bigint(20) NOT NULL,
+ `COLUMN_NAME` varchar(128) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
+ `CREATE_TIME` int(11) NOT NULL,
+ `GRANT_OPTION` smallint(6) NOT NULL,
+ `GRANTOR` varchar(128) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
+ `GRANTOR_TYPE` varchar(128) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
+ `PART_ID` bigint(20) DEFAULT NULL,
+ `PRINCIPAL_NAME` varchar(128) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
+ `PRINCIPAL_TYPE` varchar(128) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
+ `PART_COL_PRIV` varchar(128) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
+ PRIMARY KEY (`PART_COLUMN_GRANT_ID`),
+ KEY `PART_COL_PRIVS_N49` (`PART_ID`),
+ KEY `PARTITIONCOLUMNPRIVILEGEINDEX` (`PART_ID`,`COLUMN_NAME`,`PRINCIPAL_NAME`,`PRINCIPAL_TYPE`,`PART_COL_PRIV`,`GRANTOR`,`GRANTOR_TYPE`),
+ CONSTRAINT `PART_COL_PRIVS_FK1` FOREIGN KEY (`PART_ID`) REFERENCES `PARTITIONS` (`PART_ID`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `PART_PRIVS`
+--
+
+DROP TABLE IF EXISTS `PART_PRIVS`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `PART_PRIVS` (
+ `PART_GRANT_ID` bigint(20) NOT NULL,
+ `CREATE_TIME` int(11) NOT NULL,
+ `GRANT_OPTION` smallint(6) NOT NULL,
+ `GRANTOR` varchar(128) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
+ `GRANTOR_TYPE` varchar(128) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
+ `PART_ID` bigint(20) DEFAULT NULL,
+ `PRINCIPAL_NAME` varchar(128) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
+ `PRINCIPAL_TYPE` varchar(128) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
+ `PART_PRIV` varchar(128) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
+ PRIMARY KEY (`PART_GRANT_ID`),
+ KEY `PARTPRIVILEGEINDEX` (`PART_ID`,`PRINCIPAL_NAME`,`PRINCIPAL_TYPE`,`PART_PRIV`,`GRANTOR`,`GRANTOR_TYPE`),
+ KEY `PART_PRIVS_N49` (`PART_ID`),
+ CONSTRAINT `PART_PRIVS_FK1` FOREIGN KEY (`PART_ID`) REFERENCES `PARTITIONS` (`PART_ID`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `REGION_SDS`
+--
+
+DROP TABLE IF EXISTS `REGION_SDS`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `REGION_SDS` (
+ `SD_ID` bigint(20) NOT NULL,
+ `REGION_NAME` varchar(512) NOT NULL,
+ `LOCATION` varchar(4000) DEFAULT NULL,
+ PRIMARY KEY (`SD_ID`,`REGION_NAME`),
+ KEY `REGION_SDS_N49` (`SD_ID`),
+ CONSTRAINT `REGION_SDS_V2_FK1` FOREIGN KEY (`SD_ID`) REFERENCES `SDS` (`SD_ID`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `ROLES`
+--
+
+DROP TABLE IF EXISTS `ROLES`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `ROLES` (
+ `ROLE_ID` bigint(20) NOT NULL,
+ `CREATE_TIME` int(11) NOT NULL,
+ `OWNER_NAME` varchar(128) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
+ `ROLE_NAME` varchar(128) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
+ PRIMARY KEY (`ROLE_ID`),
+ UNIQUE KEY `ROLEENTITYINDEX` (`ROLE_NAME`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `ROLE_MAP`
+--
+
+DROP TABLE IF EXISTS `ROLE_MAP`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `ROLE_MAP` (
+ `ROLE_GRANT_ID` bigint(20) NOT NULL,
+ `ADD_TIME` int(11) NOT NULL,
+ `GRANT_OPTION` smallint(6) NOT NULL,
+ `GRANTOR` varchar(128) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
+ `GRANTOR_TYPE` varchar(128) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
+ `PRINCIPAL_NAME` varchar(128) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
+ `PRINCIPAL_TYPE` varchar(128) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
+ `ROLE_ID` bigint(20) DEFAULT NULL,
+ PRIMARY KEY (`ROLE_GRANT_ID`),
+ UNIQUE KEY `USERROLEMAPINDEX` (`PRINCIPAL_NAME`,`ROLE_ID`,`GRANTOR`,`GRANTOR_TYPE`),
+ KEY `ROLE_MAP_N49` (`ROLE_ID`),
+ CONSTRAINT `ROLE_MAP_FK1` FOREIGN KEY (`ROLE_ID`) REFERENCES `ROLES` (`ROLE_ID`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `SDS`
+--
+
+DROP TABLE IF EXISTS `SDS`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `SDS` (
+ `SD_ID` bigint(20) NOT NULL,
+ `CD_ID` bigint(20) DEFAULT NULL,
+ `INPUT_FORMAT` varchar(4000) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
+ `IS_COMPRESSED` bit(1) NOT NULL,
+ `LOCATION` varchar(4000) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
+ `NUM_BUCKETS` int(11) NOT NULL,
+ `OUTPUT_FORMAT` varchar(4000) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
+ `SERDE_ID` bigint(20) DEFAULT NULL,
+ `PRIMARY_REGION_NAME` varchar(512) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
+ PRIMARY KEY (`SD_ID`),
+ KEY `SDS_N49` (`SERDE_ID`),
+ KEY `SDS_N50` (`CD_ID`),
+ CONSTRAINT `SDS_FK1` FOREIGN KEY (`SERDE_ID`) REFERENCES `SERDES` (`SERDE_ID`),
+ CONSTRAINT `SDS_FK2` FOREIGN KEY (`CD_ID`) REFERENCES `CDS` (`CD_ID`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `SD_PARAMS`
+--
+
+DROP TABLE IF EXISTS `SD_PARAMS`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `SD_PARAMS` (
+ `SD_ID` bigint(20) NOT NULL,
+ `PARAM_KEY` varchar(256) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
+ `PARAM_VALUE` varchar(4000) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
+ PRIMARY KEY (`SD_ID`,`PARAM_KEY`),
+ KEY `SD_PARAMS_N49` (`SD_ID`),
+ CONSTRAINT `SD_PARAMS_FK1` FOREIGN KEY (`SD_ID`) REFERENCES `SDS` (`SD_ID`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `SEQUENCE_TABLE`
+--
+
+DROP TABLE IF EXISTS `SEQUENCE_TABLE`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `SEQUENCE_TABLE` (
+ `SEQUENCE_NAME` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
+ `NEXT_VAL` bigint(20) NOT NULL,
+ PRIMARY KEY (`SEQUENCE_NAME`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `SERDES`
+--
+
+DROP TABLE IF EXISTS `SERDES`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `SERDES` (
+ `SERDE_ID` bigint(20) NOT NULL,
+ `NAME` varchar(128) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
+ `SLIB` varchar(4000) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
+ PRIMARY KEY (`SERDE_ID`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `SERDE_PARAMS`
+--
+
+DROP TABLE IF EXISTS `SERDE_PARAMS`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `SERDE_PARAMS` (
+ `SERDE_ID` bigint(20) NOT NULL,
+ `PARAM_KEY` varchar(256) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
+ `PARAM_VALUE` varchar(4000) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
+ PRIMARY KEY (`SERDE_ID`,`PARAM_KEY`),
+ KEY `SERDE_PARAMS_N49` (`SERDE_ID`),
+ CONSTRAINT `SERDE_PARAMS_FK1` FOREIGN KEY (`SERDE_ID`) REFERENCES `SERDES` (`SERDE_ID`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `SORT_COLS`
+--
+
+DROP TABLE IF EXISTS `SORT_COLS`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `SORT_COLS` (
+ `SD_ID` bigint(20) NOT NULL,
+ `COLUMN_NAME` varchar(128) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
+ `ORDER` int(11) NOT NULL,
+ `INTEGER_IDX` int(11) NOT NULL,
+ PRIMARY KEY (`SD_ID`,`INTEGER_IDX`),
+ KEY `SORT_COLS_N49` (`SD_ID`),
+ CONSTRAINT `SORT_COLS_FK1` FOREIGN KEY (`SD_ID`) REFERENCES `SDS` (`SD_ID`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `TABLE_PARAMS`
+--
+
+DROP TABLE IF EXISTS `TABLE_PARAMS`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `TABLE_PARAMS` (
+ `TBL_ID` bigint(20) NOT NULL,
+ `PARAM_KEY` varchar(256) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
+ `PARAM_VALUE` varchar(4000) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
+ PRIMARY KEY (`TBL_ID`,`PARAM_KEY`),
+ KEY `TABLE_PARAMS_N49` (`TBL_ID`),
+ CONSTRAINT `TABLE_PARAMS_FK1` FOREIGN KEY (`TBL_ID`) REFERENCES `TBLS` (`TBL_ID`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `TBLS`
+--
+
+DROP TABLE IF EXISTS `TBLS`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `TBLS` (
+ `TBL_ID` bigint(20) NOT NULL,
+ `CREATE_TIME` int(11) NOT NULL,
+ `DB_ID` bigint(20) DEFAULT NULL,
+ `LAST_ACCESS_TIME` int(11) NOT NULL,
+ `OWNER` varchar(767) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
+ `RETENTION` int(11) NOT NULL,
+ `SD_ID` bigint(20) DEFAULT NULL,
+ `TBL_NAME` varchar(128) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
+ `TBL_TYPE` varchar(128) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
+ `VIEW_EXPANDED_TEXT` mediumtext,
+ `VIEW_ORIGINAL_TEXT` mediumtext,
+ PRIMARY KEY (`TBL_ID`),
+ UNIQUE KEY `UNIQUETABLE` (`TBL_NAME`,`DB_ID`),
+ KEY `TBLS_N50` (`SD_ID`),
+ KEY `TBLS_N49` (`DB_ID`),
+ CONSTRAINT `TBLS_FK1` FOREIGN KEY (`SD_ID`) REFERENCES `SDS` (`SD_ID`),
+ CONSTRAINT `TBLS_FK2` FOREIGN KEY (`DB_ID`) REFERENCES `DBS` (`DB_ID`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `TBL_COL_PRIVS`
+--
+
+DROP TABLE IF EXISTS `TBL_COL_PRIVS`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `TBL_COL_PRIVS` (
+ `TBL_COLUMN_GRANT_ID` bigint(20) NOT NULL,
+ `COLUMN_NAME` varchar(128) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
+ `CREATE_TIME` int(11) NOT NULL,
+ `GRANT_OPTION` smallint(6) NOT NULL,
+ `GRANTOR` varchar(128) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
+ `GRANTOR_TYPE` varchar(128) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
+ `PRINCIPAL_NAME` varchar(128) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
+ `PRINCIPAL_TYPE` varchar(128) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
+ `TBL_COL_PRIV` varchar(128) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
+ `TBL_ID` bigint(20) DEFAULT NULL,
+ PRIMARY KEY (`TBL_COLUMN_GRANT_ID`),
+ KEY `TABLECOLUMNPRIVILEGEINDEX` (`TBL_ID`,`COLUMN_NAME`,`PRINCIPAL_NAME`,`PRINCIPAL_TYPE`,`TBL_COL_PRIV`,`GRANTOR`,`GRANTOR_TYPE`),
+ KEY `TBL_COL_PRIVS_N49` (`TBL_ID`),
+ CONSTRAINT `TBL_COL_PRIVS_FK1` FOREIGN KEY (`TBL_ID`) REFERENCES `TBLS` (`TBL_ID`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `TBL_PRIVS`
+--
+
+DROP TABLE IF EXISTS `TBL_PRIVS`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `TBL_PRIVS` (
+ `TBL_GRANT_ID` bigint(20) NOT NULL,
+ `CREATE_TIME` int(11) NOT NULL,
+ `GRANT_OPTION` smallint(6) NOT NULL,
+ `GRANTOR` varchar(128) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
+ `GRANTOR_TYPE` varchar(128) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
+ `PRINCIPAL_NAME` varchar(128) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
+ `PRINCIPAL_TYPE` varchar(128) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
+ `TBL_PRIV` varchar(128) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
+ `TBL_ID` bigint(20) DEFAULT NULL,
+ PRIMARY KEY (`TBL_GRANT_ID`),
+ KEY `TBL_PRIVS_N49` (`TBL_ID`),
+ KEY `TABLEPRIVILEGEINDEX` (`TBL_ID`,`PRINCIPAL_NAME`,`PRINCIPAL_TYPE`,`TBL_PRIV`,`GRANTOR`,`GRANTOR_TYPE`),
+ CONSTRAINT `TBL_PRIVS_FK1` FOREIGN KEY (`TBL_ID`) REFERENCES `TBLS` (`TBL_ID`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `TYPES`
+--
+
+DROP TABLE IF EXISTS `TYPES`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `TYPES` (
+ `TYPES_ID` bigint(20) NOT NULL,
+ `TYPE_NAME` varchar(128) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
+ `TYPE1` varchar(767) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
+ `TYPE2` varchar(767) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
+ PRIMARY KEY (`TYPES_ID`),
+ UNIQUE KEY `UNIQUE_TYPE` (`TYPE_NAME`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `TYPE_FIELDS`
+--
+
+DROP TABLE IF EXISTS `TYPE_FIELDS`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `TYPE_FIELDS` (
+ `TYPE_NAME` bigint(20) NOT NULL,
+ `COMMENT` varchar(256) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
+ `FIELD_NAME` varchar(128) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
+ `FIELD_TYPE` varchar(767) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
+ `INTEGER_IDX` int(11) NOT NULL,
+ PRIMARY KEY (`TYPE_NAME`,`FIELD_NAME`),
+ KEY `TYPE_FIELDS_N49` (`TYPE_NAME`),
+ CONSTRAINT `TYPE_FIELDS_FK1` FOREIGN KEY (`TYPE_NAME`) REFERENCES `TYPES` (`TYPES_ID`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+/*!40101 SET character_set_client = @saved_cs_client */;
+/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
+
+/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
+/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
+/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
+/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
+/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
+/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
+/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
+
+-- Dump completed on 2012-02-10 12:02:33

Added: hive/trunk/metastore/scripts/upgrade/mysql/upgrade-0.9.0-to-0.10.0.mysql.sql
URL: http://svn.apache.org/viewvc/hive/trunk/metastore/scripts/upgrade/mysql/upgrade-0.9.0-to-0.10.0.mysql.sql?rev=1243013&view=auto
==============================================================================
--- hive/trunk/metastore/scripts/upgrade/mysql/upgrade-0.9.0-to-0.10.0.mysql.sql (added)
+++ hive/trunk/metastore/scripts/upgrade/mysql/upgrade-0.9.0-to-0.10.0.mysql.sql Sat Feb 11 07:49:28 2012
@@ -0,0 +1,3 @@
+SELECT 'Upgrading MetaStore schema from 0.9.0 to 0.10.0' AS ' ';
+SOURCE 010-HIVE-2612.mysql.sql;
+SELECT 'Finished upgrading MetaStore schema from 0.9.0 to 0.10.0' AS ' ';

Added: hive/trunk/metastore/scripts/upgrade/postgres/010-HIVE-2612.postgres.sql
URL: http://svn.apache.org/viewvc/hive/trunk/metastore/scripts/upgrade/postgres/010-HIVE-2612.postgres.sql?rev=1243013&view=auto
==============================================================================
--- hive/trunk/metastore/scripts/upgrade/postgres/010-HIVE-2612.postgres.sql (added)
+++ hive/trunk/metastore/scripts/upgrade/postgres/010-HIVE-2612.postgres.sql Sat Feb 11 07:49:28 2012
@@ -0,0 +1,26 @@
+SELECT '< HIVE-2612 support hive table/partitions exists in more than one region >';
+
+--
+-- Table: REGION_SDS
+--
+
+CREATE TABLE "REGION_SDS" (
+ "SD_ID" bigint NOT NULL,
+ "REGION_NAME" character varying(512) NOT NULL,
+ "LOCATION" character varying(4000) DEFAULT NULL,
+ PRIMARY KEY ("SD_ID", "REGION_NAME")
+);
+
+--
+-- Foreign Key Definitions
+--
+
+ALTER TABLE "REGION_SDS" ADD FOREIGN KEY ("SD_ID")
+ REFERENCES "SDS" ("SD_ID") DEFERRABLE;
+
+--
+-- Alter Table: SDS
+--
+
+ALTER TABLE "SDS" ADD COLUMN "PRIMARY_REGION_NAME"
+ character varying(512) NOT NULL DEFAULT '';

Search Discussions

  • Namit at Feb 11, 2012 at 7:50 am
    Modified: hive/trunk/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp
    URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp?rev=1243013&r1=1243012&r2=1243013&view=diff
    ==============================================================================
    --- hive/trunk/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp (original)
    +++ hive/trunk/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp Sat Feb 11 07:49:28 2012
    @@ -715,14 +715,14 @@ uint32_t ThriftHiveMetastore_get_databas
    if (ftype == ::apache::thrift::protocol::T_LIST) {
    {
    this->success.clear();
    - uint32_t _size155;
    - ::apache::thrift::protocol::TType _etype158;
    - iprot->readListBegin(_etype158, _size155);
    - this->success.resize(_size155);
    - uint32_t _i159;
    - for (_i159 = 0; _i159 < _size155; ++_i159)
    + uint32_t _size161;
    + ::apache::thrift::protocol::TType _etype164;
    + iprot->readListBegin(_etype164, _size161);
    + this->success.resize(_size161);
    + uint32_t _i165;
    + for (_i165 = 0; _i165 < _size161; ++_i165)
    {
    - xfer += iprot->readString(this->success[_i159]);
    + xfer += iprot->readString(this->success[_i165]);
    }
    iprot->readListEnd();
    }
    @@ -761,10 +761,10 @@ uint32_t ThriftHiveMetastore_get_databas
    xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
    {
    xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->success.size()));
    - std::vector<std::string> ::const_iterator _iter160;
    - for (_iter160 = this->success.begin(); _iter160 != this->success.end(); ++_iter160)
    + std::vector<std::string> ::const_iterator _iter166;
    + for (_iter166 = this->success.begin(); _iter166 != this->success.end(); ++_iter166)
    {
    - xfer += oprot->writeString((*_iter160));
    + xfer += oprot->writeString((*_iter166));
    }
    xfer += oprot->writeListEnd();
    }
    @@ -803,14 +803,14 @@ uint32_t ThriftHiveMetastore_get_databas
    if (ftype == ::apache::thrift::protocol::T_LIST) {
    {
    (*(this->success)).clear();
    - uint32_t _size161;
    - ::apache::thrift::protocol::TType _etype164;
    - iprot->readListBegin(_etype164, _size161);
    - (*(this->success)).resize(_size161);
    - uint32_t _i165;
    - for (_i165 = 0; _i165 < _size161; ++_i165)
    + uint32_t _size167;
    + ::apache::thrift::protocol::TType _etype170;
    + iprot->readListBegin(_etype170, _size167);
    + (*(this->success)).resize(_size167);
    + uint32_t _i171;
    + for (_i171 = 0; _i171 < _size167; ++_i171)
    {
    - xfer += iprot->readString((*(this->success))[_i165]);
    + xfer += iprot->readString((*(this->success))[_i171]);
    }
    iprot->readListEnd();
    }
    @@ -911,14 +911,14 @@ uint32_t ThriftHiveMetastore_get_all_dat
    if (ftype == ::apache::thrift::protocol::T_LIST) {
    {
    this->success.clear();
    - uint32_t _size166;
    - ::apache::thrift::protocol::TType _etype169;
    - iprot->readListBegin(_etype169, _size166);
    - this->success.resize(_size166);
    - uint32_t _i170;
    - for (_i170 = 0; _i170 < _size166; ++_i170)
    + uint32_t _size172;
    + ::apache::thrift::protocol::TType _etype175;
    + iprot->readListBegin(_etype175, _size172);
    + this->success.resize(_size172);
    + uint32_t _i176;
    + for (_i176 = 0; _i176 < _size172; ++_i176)
    {
    - xfer += iprot->readString(this->success[_i170]);
    + xfer += iprot->readString(this->success[_i176]);
    }
    iprot->readListEnd();
    }
    @@ -957,10 +957,10 @@ uint32_t ThriftHiveMetastore_get_all_dat
    xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
    {
    xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->success.size()));
    - std::vector<std::string> ::const_iterator _iter171;
    - for (_iter171 = this->success.begin(); _iter171 != this->success.end(); ++_iter171)
    + std::vector<std::string> ::const_iterator _iter177;
    + for (_iter177 = this->success.begin(); _iter177 != this->success.end(); ++_iter177)
    {
    - xfer += oprot->writeString((*_iter171));
    + xfer += oprot->writeString((*_iter177));
    }
    xfer += oprot->writeListEnd();
    }
    @@ -999,14 +999,14 @@ uint32_t ThriftHiveMetastore_get_all_dat
    if (ftype == ::apache::thrift::protocol::T_LIST) {
    {
    (*(this->success)).clear();
    - uint32_t _size172;
    - ::apache::thrift::protocol::TType _etype175;
    - iprot->readListBegin(_etype175, _size172);
    - (*(this->success)).resize(_size172);
    - uint32_t _i176;
    - for (_i176 = 0; _i176 < _size172; ++_i176)
    + uint32_t _size178;
    + ::apache::thrift::protocol::TType _etype181;
    + iprot->readListBegin(_etype181, _size178);
    + (*(this->success)).resize(_size178);
    + uint32_t _i182;
    + for (_i182 = 0; _i182 < _size178; ++_i182)
    {
    - xfer += iprot->readString((*(this->success))[_i176]);
    + xfer += iprot->readString((*(this->success))[_i182]);
    }
    iprot->readListEnd();
    }
    @@ -1927,17 +1927,17 @@ uint32_t ThriftHiveMetastore_get_type_al
    if (ftype == ::apache::thrift::protocol::T_MAP) {
    {
    this->success.clear();
    - uint32_t _size177;
    - ::apache::thrift::protocol::TType _ktype178;
    - ::apache::thrift::protocol::TType _vtype179;
    - iprot->readMapBegin(_ktype178, _vtype179, _size177);
    - uint32_t _i181;
    - for (_i181 = 0; _i181 < _size177; ++_i181)
    + uint32_t _size183;
    + ::apache::thrift::protocol::TType _ktype184;
    + ::apache::thrift::protocol::TType _vtype185;
    + iprot->readMapBegin(_ktype184, _vtype185, _size183);
    + uint32_t _i187;
    + for (_i187 = 0; _i187 < _size183; ++_i187)
    {
    - std::string _key182;
    - xfer += iprot->readString(_key182);
    - Type& _val183 = this->success[_key182];
    - xfer += _val183.read(iprot);
    + std::string _key188;
    + xfer += iprot->readString(_key188);
    + Type& _val189 = this->success[_key188];
    + xfer += _val189.read(iprot);
    }
    iprot->readMapEnd();
    }
    @@ -1976,11 +1976,11 @@ uint32_t ThriftHiveMetastore_get_type_al
    xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_MAP, 0);
    {
    xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->success.size()));
    - std::map<std::string, Type> ::const_iterator _iter184;
    - for (_iter184 = this->success.begin(); _iter184 != this->success.end(); ++_iter184)
    + std::map<std::string, Type> ::const_iterator _iter190;
    + for (_iter190 = this->success.begin(); _iter190 != this->success.end(); ++_iter190)
    {
    - xfer += oprot->writeString(_iter184->first);
    - xfer += _iter184->second.write(oprot);
    + xfer += oprot->writeString(_iter190->first);
    + xfer += _iter190->second.write(oprot);
    }
    xfer += oprot->writeMapEnd();
    }
    @@ -2019,17 +2019,17 @@ uint32_t ThriftHiveMetastore_get_type_al
    if (ftype == ::apache::thrift::protocol::T_MAP) {
    {
    (*(this->success)).clear();
    - uint32_t _size185;
    - ::apache::thrift::protocol::TType _ktype186;
    - ::apache::thrift::protocol::TType _vtype187;
    - iprot->readMapBegin(_ktype186, _vtype187, _size185);
    - uint32_t _i189;
    - for (_i189 = 0; _i189 < _size185; ++_i189)
    + uint32_t _size191;
    + ::apache::thrift::protocol::TType _ktype192;
    + ::apache::thrift::protocol::TType _vtype193;
    + iprot->readMapBegin(_ktype192, _vtype193, _size191);
    + uint32_t _i195;
    + for (_i195 = 0; _i195 < _size191; ++_i195)
    {
    - std::string _key190;
    - xfer += iprot->readString(_key190);
    - Type& _val191 = (*(this->success))[_key190];
    - xfer += _val191.read(iprot);
    + std::string _key196;
    + xfer += iprot->readString(_key196);
    + Type& _val197 = (*(this->success))[_key196];
    + xfer += _val197.read(iprot);
    }
    iprot->readMapEnd();
    }
    @@ -2158,14 +2158,14 @@ uint32_t ThriftHiveMetastore_get_fields_
    if (ftype == ::apache::thrift::protocol::T_LIST) {
    {
    this->success.clear();
    - uint32_t _size192;
    - ::apache::thrift::protocol::TType _etype195;
    - iprot->readListBegin(_etype195, _size192);
    - this->success.resize(_size192);
    - uint32_t _i196;
    - for (_i196 = 0; _i196 < _size192; ++_i196)
    + uint32_t _size198;
    + ::apache::thrift::protocol::TType _etype201;
    + iprot->readListBegin(_etype201, _size198);
    + this->success.resize(_size198);
    + uint32_t _i202;
    + for (_i202 = 0; _i202 < _size198; ++_i202)
    {
    - xfer += this->success[_i196].read(iprot);
    + xfer += this->success[_i202].read(iprot);
    }
    iprot->readListEnd();
    }
    @@ -2220,10 +2220,10 @@ uint32_t ThriftHiveMetastore_get_fields_
    xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
    {
    xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->success.size()));
    - std::vector<FieldSchema> ::const_iterator _iter197;
    - for (_iter197 = this->success.begin(); _iter197 != this->success.end(); ++_iter197)
    + std::vector<FieldSchema> ::const_iterator _iter203;
    + for (_iter203 = this->success.begin(); _iter203 != this->success.end(); ++_iter203)
    {
    - xfer += (*_iter197).write(oprot);
    + xfer += (*_iter203).write(oprot);
    }
    xfer += oprot->writeListEnd();
    }
    @@ -2270,14 +2270,14 @@ uint32_t ThriftHiveMetastore_get_fields_
    if (ftype == ::apache::thrift::protocol::T_LIST) {
    {
    (*(this->success)).clear();
    - uint32_t _size198;
    - ::apache::thrift::protocol::TType _etype201;
    - iprot->readListBegin(_etype201, _size198);
    - (*(this->success)).resize(_size198);
    - uint32_t _i202;
    - for (_i202 = 0; _i202 < _size198; ++_i202)
    + uint32_t _size204;
    + ::apache::thrift::protocol::TType _etype207;
    + iprot->readListBegin(_etype207, _size204);
    + (*(this->success)).resize(_size204);
    + uint32_t _i208;
    + for (_i208 = 0; _i208 < _size204; ++_i208)
    {
    - xfer += (*(this->success))[_i202].read(iprot);
    + xfer += (*(this->success))[_i208].read(iprot);
    }
    iprot->readListEnd();
    }
    @@ -2422,14 +2422,14 @@ uint32_t ThriftHiveMetastore_get_schema_
    if (ftype == ::apache::thrift::protocol::T_LIST) {
    {
    this->success.clear();
    - uint32_t _size203;
    - ::apache::thrift::protocol::TType _etype206;
    - iprot->readListBegin(_etype206, _size203);
    - this->success.resize(_size203);
    - uint32_t _i207;
    - for (_i207 = 0; _i207 < _size203; ++_i207)
    + uint32_t _size209;
    + ::apache::thrift::protocol::TType _etype212;
    + iprot->readListBegin(_etype212, _size209);
    + this->success.resize(_size209);
    + uint32_t _i213;
    + for (_i213 = 0; _i213 < _size209; ++_i213)
    {
    - xfer += this->success[_i207].read(iprot);
    + xfer += this->success[_i213].read(iprot);
    }
    iprot->readListEnd();
    }
    @@ -2484,10 +2484,10 @@ uint32_t ThriftHiveMetastore_get_schema_
    xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
    {
    xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->success.size()));
    - std::vector<FieldSchema> ::const_iterator _iter208;
    - for (_iter208 = this->success.begin(); _iter208 != this->success.end(); ++_iter208)
    + std::vector<FieldSchema> ::const_iterator _iter214;
    + for (_iter214 = this->success.begin(); _iter214 != this->success.end(); ++_iter214)
    {
    - xfer += (*_iter208).write(oprot);
    + xfer += (*_iter214).write(oprot);
    }
    xfer += oprot->writeListEnd();
    }
    @@ -2534,14 +2534,14 @@ uint32_t ThriftHiveMetastore_get_schema_
    if (ftype == ::apache::thrift::protocol::T_LIST) {
    {
    (*(this->success)).clear();
    - uint32_t _size209;
    - ::apache::thrift::protocol::TType _etype212;
    - iprot->readListBegin(_etype212, _size209);
    - (*(this->success)).resize(_size209);
    - uint32_t _i213;
    - for (_i213 = 0; _i213 < _size209; ++_i213)
    + uint32_t _size215;
    + ::apache::thrift::protocol::TType _etype218;
    + iprot->readListBegin(_etype218, _size215);
    + (*(this->success)).resize(_size215);
    + uint32_t _i219;
    + for (_i219 = 0; _i219 < _size215; ++_i219)
    {
    - xfer += (*(this->success))[_i213].read(iprot);
    + xfer += (*(this->success))[_i219].read(iprot);
    }
    iprot->readListEnd();
    }
    @@ -3110,14 +3110,14 @@ uint32_t ThriftHiveMetastore_get_tables_
    if (ftype == ::apache::thrift::protocol::T_LIST) {
    {
    this->success.clear();
    - uint32_t _size214;
    - ::apache::thrift::protocol::TType _etype217;
    - iprot->readListBegin(_etype217, _size214);
    - this->success.resize(_size214);
    - uint32_t _i218;
    - for (_i218 = 0; _i218 < _size214; ++_i218)
    + uint32_t _size220;
    + ::apache::thrift::protocol::TType _etype223;
    + iprot->readListBegin(_etype223, _size220);
    + this->success.resize(_size220);
    + uint32_t _i224;
    + for (_i224 = 0; _i224 < _size220; ++_i224)
    {
    - xfer += iprot->readString(this->success[_i218]);
    + xfer += iprot->readString(this->success[_i224]);
    }
    iprot->readListEnd();
    }
    @@ -3156,10 +3156,10 @@ uint32_t ThriftHiveMetastore_get_tables_
    xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
    {
    xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->success.size()));
    - std::vector<std::string> ::const_iterator _iter219;
    - for (_iter219 = this->success.begin(); _iter219 != this->success.end(); ++_iter219)
    + std::vector<std::string> ::const_iterator _iter225;
    + for (_iter225 = this->success.begin(); _iter225 != this->success.end(); ++_iter225)
    {
    - xfer += oprot->writeString((*_iter219));
    + xfer += oprot->writeString((*_iter225));
    }
    xfer += oprot->writeListEnd();
    }
    @@ -3198,14 +3198,14 @@ uint32_t ThriftHiveMetastore_get_tables_
    if (ftype == ::apache::thrift::protocol::T_LIST) {
    {
    (*(this->success)).clear();
    - uint32_t _size220;
    - ::apache::thrift::protocol::TType _etype223;
    - iprot->readListBegin(_etype223, _size220);
    - (*(this->success)).resize(_size220);
    - uint32_t _i224;
    - for (_i224 = 0; _i224 < _size220; ++_i224)
    + uint32_t _size226;
    + ::apache::thrift::protocol::TType _etype229;
    + iprot->readListBegin(_etype229, _size226);
    + (*(this->success)).resize(_size226);
    + uint32_t _i230;
    + for (_i230 = 0; _i230 < _size226; ++_i230)
    {
    - xfer += iprot->readString((*(this->success))[_i224]);
    + xfer += iprot->readString((*(this->success))[_i230]);
    }
    iprot->readListEnd();
    }
    @@ -3320,14 +3320,14 @@ uint32_t ThriftHiveMetastore_get_all_tab
    if (ftype == ::apache::thrift::protocol::T_LIST) {
    {
    this->success.clear();
    - uint32_t _size225;
    - ::apache::thrift::protocol::TType _etype228;
    - iprot->readListBegin(_etype228, _size225);
    - this->success.resize(_size225);
    - uint32_t _i229;
    - for (_i229 = 0; _i229 < _size225; ++_i229)
    + uint32_t _size231;
    + ::apache::thrift::protocol::TType _etype234;
    + iprot->readListBegin(_etype234, _size231);
    + this->success.resize(_size231);
    + uint32_t _i235;
    + for (_i235 = 0; _i235 < _size231; ++_i235)
    {
    - xfer += iprot->readString(this->success[_i229]);
    + xfer += iprot->readString(this->success[_i235]);
    }
    iprot->readListEnd();
    }
    @@ -3366,10 +3366,10 @@ uint32_t ThriftHiveMetastore_get_all_tab
    xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
    {
    xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->success.size()));
    - std::vector<std::string> ::const_iterator _iter230;
    - for (_iter230 = this->success.begin(); _iter230 != this->success.end(); ++_iter230)
    + std::vector<std::string> ::const_iterator _iter236;
    + for (_iter236 = this->success.begin(); _iter236 != this->success.end(); ++_iter236)
    {
    - xfer += oprot->writeString((*_iter230));
    + xfer += oprot->writeString((*_iter236));
    }
    xfer += oprot->writeListEnd();
    }
    @@ -3408,14 +3408,14 @@ uint32_t ThriftHiveMetastore_get_all_tab
    if (ftype == ::apache::thrift::protocol::T_LIST) {
    {
    (*(this->success)).clear();
    - uint32_t _size231;
    - ::apache::thrift::protocol::TType _etype234;
    - iprot->readListBegin(_etype234, _size231);
    - (*(this->success)).resize(_size231);
    - uint32_t _i235;
    - for (_i235 = 0; _i235 < _size231; ++_i235)
    + uint32_t _size237;
    + ::apache::thrift::protocol::TType _etype240;
    + iprot->readListBegin(_etype240, _size237);
    + (*(this->success)).resize(_size237);
    + uint32_t _i241;
    + for (_i241 = 0; _i241 < _size237; ++_i241)
    {
    - xfer += iprot->readString((*(this->success))[_i235]);
    + xfer += iprot->readString((*(this->success))[_i241]);
    }
    iprot->readListEnd();
    }
    @@ -3688,14 +3688,14 @@ uint32_t ThriftHiveMetastore_get_table_o
    if (ftype == ::apache::thrift::protocol::T_LIST) {
    {
    this->tbl_names.clear();
    - uint32_t _size236;
    - ::apache::thrift::protocol::TType _etype239;
    - iprot->readListBegin(_etype239, _size236);
    - this->tbl_names.resize(_size236);
    - uint32_t _i240;
    - for (_i240 = 0; _i240 < _size236; ++_i240)
    + uint32_t _size242;
    + ::apache::thrift::protocol::TType _etype245;
    + iprot->readListBegin(_etype245, _size242);
    + this->tbl_names.resize(_size242);
    + uint32_t _i246;
    + for (_i246 = 0; _i246 < _size242; ++_i246)
    {
    - xfer += iprot->readString(this->tbl_names[_i240]);
    + xfer += iprot->readString(this->tbl_names[_i246]);
    }
    iprot->readListEnd();
    }
    @@ -3725,10 +3725,10 @@ uint32_t ThriftHiveMetastore_get_table_o
    xfer += oprot->writeFieldBegin("tbl_names", ::apache::thrift::protocol::T_LIST, 2);
    {
    xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->tbl_names.size()));
    - std::vector<std::string> ::const_iterator _iter241;
    - for (_iter241 = this->tbl_names.begin(); _iter241 != this->tbl_names.end(); ++_iter241)
    + std::vector<std::string> ::const_iterator _iter247;
    + for (_iter247 = this->tbl_names.begin(); _iter247 != this->tbl_names.end(); ++_iter247)
    {
    - xfer += oprot->writeString((*_iter241));
    + xfer += oprot->writeString((*_iter247));
    }
    xfer += oprot->writeListEnd();
    }
    @@ -3747,10 +3747,10 @@ uint32_t ThriftHiveMetastore_get_table_o
    xfer += oprot->writeFieldBegin("tbl_names", ::apache::thrift::protocol::T_LIST, 2);
    {
    xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>((*(this->tbl_names)).size()));
    - std::vector<std::string> ::const_iterator _iter242;
    - for (_iter242 = (*(this->tbl_names)).begin(); _iter242 != (*(this->tbl_names)).end(); ++_iter242)
    + std::vector<std::string> ::const_iterator _iter248;
    + for (_iter248 = (*(this->tbl_names)).begin(); _iter248 != (*(this->tbl_names)).end(); ++_iter248)
    {
    - xfer += oprot->writeString((*_iter242));
    + xfer += oprot->writeString((*_iter248));
    }
    xfer += oprot->writeListEnd();
    }
    @@ -3784,14 +3784,14 @@ uint32_t ThriftHiveMetastore_get_table_o
    if (ftype == ::apache::thrift::protocol::T_LIST) {
    {
    this->success.clear();
    - uint32_t _size243;
    - ::apache::thrift::protocol::TType _etype246;
    - iprot->readListBegin(_etype246, _size243);
    - this->success.resize(_size243);
    - uint32_t _i247;
    - for (_i247 = 0; _i247 < _size243; ++_i247)
    + uint32_t _size249;
    + ::apache::thrift::protocol::TType _etype252;
    + iprot->readListBegin(_etype252, _size249);
    + this->success.resize(_size249);
    + uint32_t _i253;
    + for (_i253 = 0; _i253 < _size249; ++_i253)
    {
    - xfer += this->success[_i247].read(iprot);
    + xfer += this->success[_i253].read(iprot);
    }
    iprot->readListEnd();
    }
    @@ -3846,10 +3846,10 @@ uint32_t ThriftHiveMetastore_get_table_o
    xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
    {
    xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->success.size()));
    - std::vector<Table> ::const_iterator _iter248;
    - for (_iter248 = this->success.begin(); _iter248 != this->success.end(); ++_iter248)
    + std::vector<Table> ::const_iterator _iter254;
    + for (_iter254 = this->success.begin(); _iter254 != this->success.end(); ++_iter254)
    {
    - xfer += (*_iter248).write(oprot);
    + xfer += (*_iter254).write(oprot);
    }
    xfer += oprot->writeListEnd();
    }
    @@ -3896,14 +3896,14 @@ uint32_t ThriftHiveMetastore_get_table_o
    if (ftype == ::apache::thrift::protocol::T_LIST) {
    {
    (*(this->success)).clear();
    - uint32_t _size249;
    - ::apache::thrift::protocol::TType _etype252;
    - iprot->readListBegin(_etype252, _size249);
    - (*(this->success)).resize(_size249);
    - uint32_t _i253;
    - for (_i253 = 0; _i253 < _size249; ++_i253)
    + uint32_t _size255;
    + ::apache::thrift::protocol::TType _etype258;
    + iprot->readListBegin(_etype258, _size255);
    + (*(this->success)).resize(_size255);
    + uint32_t _i259;
    + for (_i259 = 0; _i259 < _size255; ++_i259)
    {
    - xfer += (*(this->success))[_i253].read(iprot);
    + xfer += (*(this->success))[_i259].read(iprot);
    }
    iprot->readListEnd();
    }
    @@ -4062,14 +4062,14 @@ uint32_t ThriftHiveMetastore_get_table_n
    if (ftype == ::apache::thrift::protocol::T_LIST) {
    {
    this->success.clear();
    - uint32_t _size254;
    - ::apache::thrift::protocol::TType _etype257;
    - iprot->readListBegin(_etype257, _size254);
    - this->success.resize(_size254);
    - uint32_t _i258;
    - for (_i258 = 0; _i258 < _size254; ++_i258)
    + uint32_t _size260;
    + ::apache::thrift::protocol::TType _etype263;
    + iprot->readListBegin(_etype263, _size260);
    + this->success.resize(_size260);
    + uint32_t _i264;
    + for (_i264 = 0; _i264 < _size260; ++_i264)
    {
    - xfer += iprot->readString(this->success[_i258]);
    + xfer += iprot->readString(this->success[_i264]);
    }
    iprot->readListEnd();
    }
    @@ -4124,10 +4124,10 @@ uint32_t ThriftHiveMetastore_get_table_n
    xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
    {
    xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->success.size()));
    - std::vector<std::string> ::const_iterator _iter259;
    - for (_iter259 = this->success.begin(); _iter259 != this->success.end(); ++_iter259)
    + std::vector<std::string> ::const_iterator _iter265;
    + for (_iter265 = this->success.begin(); _iter265 != this->success.end(); ++_iter265)
    {
    - xfer += oprot->writeString((*_iter259));
    + xfer += oprot->writeString((*_iter265));
    }
    xfer += oprot->writeListEnd();
    }
    @@ -4174,14 +4174,14 @@ uint32_t ThriftHiveMetastore_get_table_n
    if (ftype == ::apache::thrift::protocol::T_LIST) {
    {
    (*(this->success)).clear();
    - uint32_t _size260;
    - ::apache::thrift::protocol::TType _etype263;
    - iprot->readListBegin(_etype263, _size260);
    - (*(this->success)).resize(_size260);
    - uint32_t _i264;
    - for (_i264 = 0; _i264 < _size260; ++_i264)
    + uint32_t _size266;
    + ::apache::thrift::protocol::TType _etype269;
    + iprot->readListBegin(_etype269, _size266);
    + (*(this->success)).resize(_size266);
    + uint32_t _i270;
    + for (_i270 = 0; _i270 < _size266; ++_i270)
    {
    - xfer += iprot->readString((*(this->success))[_i264]);
    + xfer += iprot->readString((*(this->success))[_i270]);
    }
    iprot->readListEnd();
    }
    @@ -4674,14 +4674,14 @@ uint32_t ThriftHiveMetastore_add_partiti
    if (ftype == ::apache::thrift::protocol::T_LIST) {
    {
    this->new_parts.clear();
    - uint32_t _size265;
    - ::apache::thrift::protocol::TType _etype268;
    - iprot->readListBegin(_etype268, _size265);
    - this->new_parts.resize(_size265);
    - uint32_t _i269;
    - for (_i269 = 0; _i269 < _size265; ++_i269)
    + uint32_t _size271;
    + ::apache::thrift::protocol::TType _etype274;
    + iprot->readListBegin(_etype274, _size271);
    + this->new_parts.resize(_size271);
    + uint32_t _i275;
    + for (_i275 = 0; _i275 < _size271; ++_i275)
    {
    - xfer += this->new_parts[_i269].read(iprot);
    + xfer += this->new_parts[_i275].read(iprot);
    }
    iprot->readListEnd();
    }
    @@ -4708,10 +4708,10 @@ uint32_t ThriftHiveMetastore_add_partiti
    xfer += oprot->writeFieldBegin("new_parts", ::apache::thrift::protocol::T_LIST, 1);
    {
    xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->new_parts.size()));
    - std::vector<Partition> ::const_iterator _iter270;
    - for (_iter270 = this->new_parts.begin(); _iter270 != this->new_parts.end(); ++_iter270)
    + std::vector<Partition> ::const_iterator _iter276;
    + for (_iter276 = this->new_parts.begin(); _iter276 != this->new_parts.end(); ++_iter276)
    {
    - xfer += (*_iter270).write(oprot);
    + xfer += (*_iter276).write(oprot);
    }
    xfer += oprot->writeListEnd();
    }
    @@ -4727,10 +4727,10 @@ uint32_t ThriftHiveMetastore_add_partiti
    xfer += oprot->writeFieldBegin("new_parts", ::apache::thrift::protocol::T_LIST, 1);
    {
    xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>((*(this->new_parts)).size()));
    - std::vector<Partition> ::const_iterator _iter271;
    - for (_iter271 = (*(this->new_parts)).begin(); _iter271 != (*(this->new_parts)).end(); ++_iter271)
    + std::vector<Partition> ::const_iterator _iter277;
    + for (_iter277 = (*(this->new_parts)).begin(); _iter277 != (*(this->new_parts)).end(); ++_iter277)
    {
    - xfer += (*_iter271).write(oprot);
    + xfer += (*_iter277).write(oprot);
    }
    xfer += oprot->writeListEnd();
    }
    @@ -4936,14 +4936,14 @@ uint32_t ThriftHiveMetastore_append_part
    if (ftype == ::apache::thrift::protocol::T_LIST) {
    {
    this->part_vals.clear();
    - uint32_t _size272;
    - ::apache::thrift::protocol::TType _etype275;
    - iprot->readListBegin(_etype275, _size272);
    - this->part_vals.resize(_size272);
    - uint32_t _i276;
    - for (_i276 = 0; _i276 < _size272; ++_i276)
    + uint32_t _size278;
    + ::apache::thrift::protocol::TType _etype281;
    + iprot->readListBegin(_etype281, _size278);
    + this->part_vals.resize(_size278);
    + uint32_t _i282;
    + for (_i282 = 0; _i282 < _size278; ++_i282)
    {
    - xfer += iprot->readString(this->part_vals[_i276]);
    + xfer += iprot->readString(this->part_vals[_i282]);
    }
    iprot->readListEnd();
    }
    @@ -4976,10 +4976,10 @@ uint32_t ThriftHiveMetastore_append_part
    xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3);
    {
    xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->part_vals.size()));
    - std::vector<std::string> ::const_iterator _iter277;
    - for (_iter277 = this->part_vals.begin(); _iter277 != this->part_vals.end(); ++_iter277)
    + std::vector<std::string> ::const_iterator _iter283;
    + for (_iter283 = this->part_vals.begin(); _iter283 != this->part_vals.end(); ++_iter283)
    {
    - xfer += oprot->writeString((*_iter277));
    + xfer += oprot->writeString((*_iter283));
    }
    xfer += oprot->writeListEnd();
    }
    @@ -5001,10 +5001,10 @@ uint32_t ThriftHiveMetastore_append_part
    xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3);
    {
    xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>((*(this->part_vals)).size()));
    - std::vector<std::string> ::const_iterator _iter278;
    - for (_iter278 = (*(this->part_vals)).begin(); _iter278 != (*(this->part_vals)).end(); ++_iter278)
    + std::vector<std::string> ::const_iterator _iter284;
    + for (_iter284 = (*(this->part_vals)).begin(); _iter284 != (*(this->part_vals)).end(); ++_iter284)
    {
    - xfer += oprot->writeString((*_iter278));
    + xfer += oprot->writeString((*_iter284));
    }
    xfer += oprot->writeListEnd();
    }
    @@ -5456,14 +5456,14 @@ uint32_t ThriftHiveMetastore_drop_partit
    if (ftype == ::apache::thrift::protocol::T_LIST) {
    {
    this->part_vals.clear();
    - uint32_t _size279;
    - ::apache::thrift::protocol::TType _etype282;
    - iprot->readListBegin(_etype282, _size279);
    - this->part_vals.resize(_size279);
    - uint32_t _i283;
    - for (_i283 = 0; _i283 < _size279; ++_i283)
    + uint32_t _size285;
    + ::apache::thrift::protocol::TType _etype288;
    + iprot->readListBegin(_etype288, _size285);
    + this->part_vals.resize(_size285);
    + uint32_t _i289;
    + for (_i289 = 0; _i289 < _size285; ++_i289)
    {
    - xfer += iprot->readString(this->part_vals[_i283]);
    + xfer += iprot->readString(this->part_vals[_i289]);
    }
    iprot->readListEnd();
    }
    @@ -5504,10 +5504,10 @@ uint32_t ThriftHiveMetastore_drop_partit
    xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3);
    {
    xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->part_vals.size()));
    - std::vector<std::string> ::const_iterator _iter284;
    - for (_iter284 = this->part_vals.begin(); _iter284 != this->part_vals.end(); ++_iter284)
    + std::vector<std::string> ::const_iterator _iter290;
    + for (_iter290 = this->part_vals.begin(); _iter290 != this->part_vals.end(); ++_iter290)
    {
    - xfer += oprot->writeString((*_iter284));
    + xfer += oprot->writeString((*_iter290));
    }
    xfer += oprot->writeListEnd();
    }
    @@ -5532,10 +5532,10 @@ uint32_t ThriftHiveMetastore_drop_partit
    xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3);
    {
    xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>((*(this->part_vals)).size()));
    - std::vector<std::string> ::const_iterator _iter285;
    - for (_iter285 = (*(this->part_vals)).begin(); _iter285 != (*(this->part_vals)).end(); ++_iter285)
    + std::vector<std::string> ::const_iterator _iter291;
    + for (_iter291 = (*(this->part_vals)).begin(); _iter291 != (*(this->part_vals)).end(); ++_iter291)
    {
    - xfer += oprot->writeString((*_iter285));
    + xfer += oprot->writeString((*_iter291));
    }
    xfer += oprot->writeListEnd();
    }
    @@ -5964,14 +5964,14 @@ uint32_t ThriftHiveMetastore_get_partiti
    if (ftype == ::apache::thrift::protocol::T_LIST) {
    {
    this->part_vals.clear();
    - uint32_t _size286;
    - ::apache::thrift::protocol::TType _etype289;
    - iprot->readListBegin(_etype289, _size286);
    - this->part_vals.resize(_size286);
    - uint32_t _i290;
    - for (_i290 = 0; _i290 < _size286; ++_i290)
    + uint32_t _size292;
    + ::apache::thrift::protocol::TType _etype295;
    + iprot->readListBegin(_etype295, _size292);
    + this->part_vals.resize(_size292);
    + uint32_t _i296;
    + for (_i296 = 0; _i296 < _size292; ++_i296)
    {
    - xfer += iprot->readString(this->part_vals[_i290]);
    + xfer += iprot->readString(this->part_vals[_i296]);
    }
    iprot->readListEnd();
    }
    @@ -6004,10 +6004,10 @@ uint32_t ThriftHiveMetastore_get_partiti
    xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3);
    {
    xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->part_vals.size()));
    - std::vector<std::string> ::const_iterator _iter291;
    - for (_iter291 = this->part_vals.begin(); _iter291 != this->part_vals.end(); ++_iter291)
    + std::vector<std::string> ::const_iterator _iter297;
    + for (_iter297 = this->part_vals.begin(); _iter297 != this->part_vals.end(); ++_iter297)
    {
    - xfer += oprot->writeString((*_iter291));
    + xfer += oprot->writeString((*_iter297));
    }
    xfer += oprot->writeListEnd();
    }
    @@ -6029,10 +6029,10 @@ uint32_t ThriftHiveMetastore_get_partiti
    xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3);
    {
    xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>((*(this->part_vals)).size()));
    - std::vector<std::string> ::const_iterator _iter292;
    - for (_iter292 = (*(this->part_vals)).begin(); _iter292 != (*(this->part_vals)).end(); ++_iter292)
    + std::vector<std::string> ::const_iterator _iter298;
    + for (_iter298 = (*(this->part_vals)).begin(); _iter298 != (*(this->part_vals)).end(); ++_iter298)
    {
    - xfer += oprot->writeString((*_iter292));
    + xfer += oprot->writeString((*_iter298));
    }
    xfer += oprot->writeListEnd();
    }
    @@ -6218,14 +6218,14 @@ uint32_t ThriftHiveMetastore_get_partiti
    if (ftype == ::apache::thrift::protocol::T_LIST) {
    {
    this->part_vals.clear();
    - uint32_t _size293;
    - ::apache::thrift::protocol::TType _etype296;
    - iprot->readListBegin(_etype296, _size293);
    - this->part_vals.resize(_size293);
    - uint32_t _i297;
    - for (_i297 = 0; _i297 < _size293; ++_i297)
    + uint32_t _size299;
    + ::apache::thrift::protocol::TType _etype302;
    + iprot->readListBegin(_etype302, _size299);
    + this->part_vals.resize(_size299);
    + uint32_t _i303;
    + for (_i303 = 0; _i303 < _size299; ++_i303)
    {
    - xfer += iprot->readString(this->part_vals[_i297]);
    + xfer += iprot->readString(this->part_vals[_i303]);
    }
    iprot->readListEnd();
    }
    @@ -6246,14 +6246,14 @@ uint32_t ThriftHiveMetastore_get_partiti
    if (ftype == ::apache::thrift::protocol::T_LIST) {
    {
    this->group_names.clear();
    - uint32_t _size298;
    - ::apache::thrift::protocol::TType _etype301;
    - iprot->readListBegin(_etype301, _size298);
    - this->group_names.resize(_size298);
    - uint32_t _i302;
    - for (_i302 = 0; _i302 < _size298; ++_i302)
    + uint32_t _size304;
    + ::apache::thrift::protocol::TType _etype307;
    + iprot->readListBegin(_etype307, _size304);
    + this->group_names.resize(_size304);
    + uint32_t _i308;
    + for (_i308 = 0; _i308 < _size304; ++_i308)
    {
    - xfer += iprot->readString(this->group_names[_i302]);
    + xfer += iprot->readString(this->group_names[_i308]);
    }
    iprot->readListEnd();
    }
    @@ -6286,10 +6286,10 @@ uint32_t ThriftHiveMetastore_get_partiti
    xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3);
    {
    xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->part_vals.size()));
    - std::vector<std::string> ::const_iterator _iter303;
    - for (_iter303 = this->part_vals.begin(); _iter303 != this->part_vals.end(); ++_iter303)
    + std::vector<std::string> ::const_iterator _iter309;
    + for (_iter309 = this->part_vals.begin(); _iter309 != this->part_vals.end(); ++_iter309)
    {
    - xfer += oprot->writeString((*_iter303));
    + xfer += oprot->writeString((*_iter309));
    }
    xfer += oprot->writeListEnd();
    }
    @@ -6300,10 +6300,10 @@ uint32_t ThriftHiveMetastore_get_partiti
    xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 5);
    {
    xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->group_names.size()));
    - std::vector<std::string> ::const_iterator _iter304;
    - for (_iter304 = this->group_names.begin(); _iter304 != this->group_names.end(); ++_iter304)
    + std::vector<std::string> ::const_iterator _iter310;
    + for (_iter310 = this->group_names.begin(); _iter310 != this->group_names.end(); ++_iter310)
    {
    - xfer += oprot->writeString((*_iter304));
    + xfer += oprot->writeString((*_iter310));
    }
    xfer += oprot->writeListEnd();
    }
    @@ -6325,10 +6325,10 @@ uint32_t ThriftHiveMetastore_get_partiti
    xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3);
    {
    xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>((*(this->part_vals)).size()));
    - std::vector<std::string> ::const_iterator _iter305;
    - for (_iter305 = (*(this->part_vals)).begin(); _iter305 != (*(this->part_vals)).end(); ++_iter305)
    + std::vector<std::string> ::const_iterator _iter311;
    + for (_iter311 = (*(this->part_vals)).begin(); _iter311 != (*(this->part_vals)).end(); ++_iter311)
    {
    - xfer += oprot->writeString((*_iter305));
    + xfer += oprot->writeString((*_iter311));
    }
    xfer += oprot->writeListEnd();
    }
    @@ -6339,10 +6339,10 @@ uint32_t ThriftHiveMetastore_get_partiti
    xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 5);
    {
    xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>((*(this->group_names)).size()));
    - std::vector<std::string> ::const_iterator _iter306;
    - for (_iter306 = (*(this->group_names)).begin(); _iter306 != (*(this->group_names)).end(); ++_iter306)
    + std::vector<std::string> ::const_iterator _iter312;
    + for (_iter312 = (*(this->group_names)).begin(); _iter312 != (*(this->group_names)).end(); ++_iter312)
    {
    - xfer += oprot->writeString((*_iter306));
    + xfer += oprot->writeString((*_iter312));
    }
    xfer += oprot->writeListEnd();
    }
    @@ -6828,14 +6828,14 @@ uint32_t ThriftHiveMetastore_get_partiti
    if (ftype == ::apache::thrift::protocol::T_LIST) {
    {
    this->success.clear();
    - uint32_t _size307;
    - ::apache::thrift::protocol::TType _etype310;
    - iprot->readListBegin(_etype310, _size307);
    - this->success.resize(_size307);
    - uint32_t _i311;
    - for (_i311 = 0; _i311 < _size307; ++_i311)
    + uint32_t _size313;
    + ::apache::thrift::protocol::TType _etype316;
    + iprot->readListBegin(_etype316, _size313);
    + this->success.resize(_size313);
    + uint32_t _i317;
    + for (_i317 = 0; _i317 < _size313; ++_i317)
    {
    - xfer += this->success[_i311].read(iprot);
    + xfer += this->success[_i317].read(iprot);
    }
    iprot->readListEnd();
    }
    @@ -6882,10 +6882,10 @@ uint32_t ThriftHiveMetastore_get_partiti
    xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
    {
    xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->success.size()));
    - std::vector<Partition> ::const_iterator _iter312;
    - for (_iter312 = this->success.begin(); _iter312 != this->success.end(); ++_iter312)
    + std::vector<Partition> ::const_iterator _iter318;
    + for (_iter318 = this->success.begin(); _iter318 != this->success.end(); ++_iter318)
    {
    - xfer += (*_iter312).write(oprot);
    + xfer += (*_iter318).write(oprot);
    }
    xfer += oprot->writeListEnd();
    }
    @@ -6928,14 +6928,14 @@ uint32_t ThriftHiveMetastore_get_partiti
    if (ftype == ::apache::thrift::protocol::T_LIST) {
    {
    (*(this->success)).clear();
    - uint32_t _size313;
    - ::apache::thrift::protocol::TType _etype316;
    - iprot->readListBegin(_etype316, _size313);
    - (*(this->success)).resize(_size313);
    - uint32_t _i317;
    - for (_i317 = 0; _i317 < _size313; ++_i317)
    + uint32_t _size319;
    + ::apache::thrift::protocol::TType _etype322;
    + iprot->readListBegin(_etype322, _size319);
    + (*(this->success)).resize(_size319);
    + uint32_t _i323;
    + for (_i323 = 0; _i323 < _size319; ++_i323)
    {
    - xfer += (*(this->success))[_i317].read(iprot);
    + xfer += (*(this->success))[_i323].read(iprot);
    }
    iprot->readListEnd();
    }
    @@ -7028,14 +7028,14 @@ uint32_t ThriftHiveMetastore_get_partiti
    if (ftype == ::apache::thrift::protocol::T_LIST) {
    {
    this->group_names.clear();
    - uint32_t _size318;
    - ::apache::thrift::protocol::TType _etype321;
    - iprot->readListBegin(_etype321, _size318);
    - this->group_names.resize(_size318);
    - uint32_t _i322;
    - for (_i322 = 0; _i322 < _size318; ++_i322)
    + uint32_t _size324;
    + ::apache::thrift::protocol::TType _etype327;
    + iprot->readListBegin(_etype327, _size324);
    + this->group_names.resize(_size324);
    + uint32_t _i328;
    + for (_i328 = 0; _i328 < _size324; ++_i328)
    {
    - xfer += iprot->readString(this->group_names[_i322]);
    + xfer += iprot->readString(this->group_names[_i328]);
    }
    iprot->readListEnd();
    }
    @@ -7074,10 +7074,10 @@ uint32_t ThriftHiveMetastore_get_partiti
    xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 5);
    {
    xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->group_names.size()));
    - std::vector<std::string> ::const_iterator _iter323;
    - for (_iter323 = this->group_names.begin(); _iter323 != this->group_names.end(); ++_iter323)
    + std::vector<std::string> ::const_iterator _iter329;
    + for (_iter329 = this->group_names.begin(); _iter329 != this->group_names.end(); ++_iter329)
    {
    - xfer += oprot->writeString((*_iter323));
    + xfer += oprot->writeString((*_iter329));
    }
    xfer += oprot->writeListEnd();
    }
    @@ -7105,10 +7105,10 @@ uint32_t ThriftHiveMetastore_get_partiti
    xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 5);
    {
    xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>((*(this->group_names)).size()));
    - std::vector<std::string> ::const_iterator _iter324;
    - for (_iter324 = (*(this->group_names)).begin(); _iter324 != (*(this->group_names)).end(); ++_iter324)
    + std::vector<std::string> ::const_iterator _iter330;
    + for (_iter330 = (*(this->group_names)).begin(); _iter330 != (*(this->group_names)).end(); ++_iter330)
    {
    - xfer += oprot->writeString((*_iter324));
    + xfer += oprot->writeString((*_iter330));
    }
    xfer += oprot->writeListEnd();
    }
    @@ -7142,14 +7142,14 @@ uint32_t ThriftHiveMetastore_get_partiti
    if (ftype == ::apache::thrift::protocol::T_LIST) {
    {
    this->success.clear();
    - uint32_t _size325;
    - ::apache::thrift::protocol::TType _etype328;
    - iprot->readListBegin(_etype328, _size325);
    - this->success.resize(_size325);
    - uint32_t _i329;
    - for (_i329 = 0; _i329 < _size325; ++_i329)
    + uint32_t _size331;
    + ::apache::thrift::protocol::TType _etype334;
    + iprot->readListBegin(_etype334, _size331);
    + this->success.resize(_size331);
    + uint32_t _i335;
    + for (_i335 = 0; _i335 < _size331; ++_i335)
    {
    - xfer += this->success[_i329].read(iprot);
    + xfer += this->success[_i335].read(iprot);
    }
    iprot->readListEnd();
    }
    @@ -7196,10 +7196,10 @@ uint32_t ThriftHiveMetastore_get_partiti
    xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
    {
    xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->success.size()));
    - std::vector<Partition> ::const_iterator _iter330;
    - for (_iter330 = this->success.begin(); _iter330 != this->success.end(); ++_iter330)
    + std::vector<Partition> ::const_iterator _iter336;
    + for (_iter336 = this->success.begin(); _iter336 != this->success.end(); ++_iter336)
    {
    - xfer += (*_iter330).write(oprot);
    + xfer += (*_iter336).write(oprot);
    }
    xfer += oprot->writeListEnd();
    }
    @@ -7242,14 +7242,14 @@ uint32_t ThriftHiveMetastore_get_partiti
    if (ftype == ::apache::thrift::protocol::T_LIST) {
    {
    (*(this->success)).clear();
    - uint32_t _size331;
    - ::apache::thrift::protocol::TType _etype334;
    - iprot->readListBegin(_etype334, _size331);
    - (*(this->success)).resize(_size331);
    - uint32_t _i335;
    - for (_i335 = 0; _i335 < _size331; ++_i335)
    + uint32_t _size337;
    + ::apache::thrift::protocol::TType _etype340;
    + iprot->readListBegin(_etype340, _size337);
    + (*(this->success)).resize(_size337);
    + uint32_t _i341;
    + for (_i341 = 0; _i341 < _size337; ++_i341)
    {
    - xfer += (*(this->success))[_i335].read(iprot);
    + xfer += (*(this->success))[_i341].read(iprot);
    }
    iprot->readListEnd();
    }
    @@ -7400,14 +7400,14 @@ uint32_t ThriftHiveMetastore_get_partiti
    if (ftype == ::apache::thrift::protocol::T_LIST) {
    {
    this->success.clear();
    - uint32_t _size336;
    - ::apache::thrift::protocol::TType _etype339;
    - iprot->readListBegin(_etype339, _size336);
    - this->success.resize(_size336);
    - uint32_t _i340;
    - for (_i340 = 0; _i340 < _size336; ++_i340)
    + uint32_t _size342;
    + ::apache::thrift::protocol::TType _etype345;
    + iprot->readListBegin(_etype345, _size342);
    + this->success.resize(_size342);
    + uint32_t _i346;
    + for (_i346 = 0; _i346 < _size342; ++_i346)
    {
    - xfer += iprot->readString(this->success[_i340]);
    + xfer += iprot->readString(this->success[_i346]);
    }
    iprot->readListEnd();
    }
    @@ -7446,10 +7446,10 @@ uint32_t ThriftHiveMetastore_get_partiti
    xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
    {
    xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->success.size()));
    - std::vector<std::string> ::const_iterator _iter341;
    - for (_iter341 = this->success.begin(); _iter341 != this->success.end(); ++_iter341)
    + std::vector<std::string> ::const_iterator _iter347;
    + for (_iter347 = this->success.begin(); _iter347 != this->success.end(); ++_iter347)
    {
    - xfer += oprot->writeString((*_iter341));
    + xfer += oprot->writeString((*_iter347));
    }
    xfer += oprot->writeListEnd();
    }
    @@ -7488,14 +7488,14 @@ uint32_t ThriftHiveMetastore_get_partiti
    if (ftype == ::apache::thrift::protocol::T_LIST) {
    {
    (*(this->success)).clear();
    - uint32_t _size342;
    - ::apache::thrift::protocol::TType _etype345;
    - iprot->readListBegin(_etype345, _size342);
    - (*(this->success)).resize(_size342);
    - uint32_t _i346;
    - for (_i346 = 0; _i346 < _size342; ++_i346)
    + uint32_t _size348;
    + ::apache::thrift::protocol::TType _etype351;
    + iprot->readListBegin(_etype351, _size348);
    + (*(this->success)).resize(_size348);
    + uint32_t _i352;
    + for (_i352 = 0; _i352 < _size348; ++_i352)
    {
    - xfer += iprot->readString((*(this->success))[_i346]);
    + xfer += iprot->readString((*(this->success))[_i352]);
    }
    iprot->readListEnd();
    }
    @@ -7564,14 +7564,14 @@ uint32_t ThriftHiveMetastore_get_partiti
    if (ftype == ::apache::thrift::protocol::T_LIST) {
    {
    this->part_vals.clear();
    - uint32_t _size347;
    - ::apache::thrift::protocol::TType _etype350;
    - iprot->readListBegin(_etype350, _size347);
    - this->part_vals.resize(_size347);
    - uint32_t _i351;
    - for (_i351 = 0; _i351 < _size347; ++_i351)
    + uint32_t _size353;
    + ::apache::thrift::protocol::TType _etype356;
    + iprot->readListBegin(_etype356, _size353);
    + this->part_vals.resize(_size353);
    + uint32_t _i357;
    + for (_i357 = 0; _i357 < _size353; ++_i357)
    {
    - xfer += iprot->readString(this->part_vals[_i351]);
    + xfer += iprot->readString(this->part_vals[_i357]);
    }
    iprot->readListEnd();
    }
    @@ -7612,10 +7612,10 @@ uint32_t ThriftHiveMetastore_get_partiti
    xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3);
    {
    xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->part_vals.size()));
    - std::vector<std::string> ::const_iterator _iter352;
    - for (_iter352 = this->part_vals.begin(); _iter352 != this->part_vals.end(); ++_iter352)
    + std::vector<std::string> ::const_iterator _iter358;
    + for (_iter358 = this->part_vals.begin(); _iter358 != this->part_vals.end(); ++_iter358)
    {
    - xfer += oprot->writeString((*_iter352));
    + xfer += oprot->writeString((*_iter358));
    }
    xfer += oprot->writeListEnd();
    }
    @@ -7640,10 +7640,10 @@ uint32_t ThriftHiveMetastore_get_partiti
    xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3);
    {
    xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>((*(this->part_vals)).size()));
    - std::vector<std::string> ::const_iterator _iter353;
    - for (_iter353 = (*(this->part_vals)).begin(); _iter353 != (*(this->part_vals)).end(); ++_iter353)
    + std::vector<std::string> ::const_iterator _iter359;
    + for (_iter359 = (*(this->part_vals)).begin(); _iter359 != (*(this->part_vals)).end(); ++_iter359)
    {
    - xfer += oprot->writeString((*_iter353));
    + xfer += oprot->writeString((*_iter359));
    }
    xfer += oprot->writeListEnd();
    }
    @@ -7680,14 +7680,14 @@ uint32_t ThriftHiveMetastore_get_partiti
    if (ftype == ::apache::thrift::protocol::T_LIST) {
    {
    this->success.clear();
    - uint32_t _size354;
    - ::apache::thrift::protocol::TType _etype357;
    - iprot->readListBegin(_etype357, _size354);
    - this->success.resize(_size354);
    - uint32_t _i358;
    - for (_i358 = 0; _i358 < _size354; ++_i358)
    + uint32_t _size360;
    + ::apache::thrift::protocol::TType _etype363;
    + iprot->readListBegin(_etype363, _size360);
    + this->success.resize(_size360);
    + uint32_t _i364;
    + for (_i364 = 0; _i364 < _size360; ++_i364)
    {
    - xfer += this->success[_i358].read(iprot);
    + xfer += this->success[_i364].read(iprot);
    }
    iprot->readListEnd();
    }
    @@ -7734,10 +7734,10 @@ uint32_t ThriftHiveMetastore_get_partiti
    xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
    {
    xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->success.size()));
    - std::vector<Partition> ::const_iterator _iter359;
    - for (_iter359 = this->success.begin(); _iter359 != this->success.end(); ++_iter359)
    + std::vector<Partition> ::const_iterator _iter365;
    + for (_iter365 = this->success.begin(); _iter365 != this->success.end(); ++_iter365)
    {
    - xfer += (*_iter359).write(oprot);
    + xfer += (*_iter365).write(oprot);
    }
    xfer += oprot->writeListEnd();
    }
    @@ -7780,14 +7780,14 @@ uint32_t ThriftHiveMetastore_get_partiti
    if (ftype == ::apache::thrift::protocol::T_LIST) {
    {
    (*(this->success)).clear();
    - uint32_t _size360;
    - ::apache::thrift::protocol::TType _etype363;
    - iprot->readListBegin(_etype363, _size360);
    - (*(this->success)).resize(_size360);
    - uint32_t _i364;
    - for (_i364 = 0; _i364 < _size360; ++_i364)
    + uint32_t _size366;
    + ::apache::thrift::protocol::TType _etype369;
    + iprot->readListBegin(_etype369, _size366);
    + (*(this->success)).resize(_size366);
    + uint32_t _i370;
    + for (_i370 = 0; _i370 < _size366; ++_i370)
    {
    - xfer += (*(this->success))[_i364].read(iprot);
    + xfer += (*(this->success))[_i370].read(iprot);
    }
    iprot->readListEnd();
    }
    @@ -7864,14 +7864,14 @@ uint32_t ThriftHiveMetastore_get_partiti
    if (ftype == ::apache::thrift::protocol::T_LIST) {
    {
    this->part_vals.clear();
    - uint32_t _size365;
    - ::apache::thrift::protocol::TType _etype368;
    - iprot->readListBegin(_etype368, _size365);
    - this->part_vals.resize(_size365);
    - uint32_t _i369;
    - for (_i369 = 0; _i369 < _size365; ++_i369)
    + uint32_t _size371;
    + ::apache::thrift::protocol::TType _etype374;
    + iprot->readListBegin(_etype374, _size371);
    + this->part_vals.resize(_size371);
    + uint32_t _i375;
    + for (_i375 = 0; _i375 < _size371; ++_i375)
    {
    - xfer += iprot->readString(this->part_vals[_i369]);
    + xfer += iprot->readString(this->part_vals[_i375]);
    }
    iprot->readListEnd();
    }
    @@ -7900,14 +7900,14 @@ uint32_t ThriftHiveMetastore_get_partiti
    if (ftype == ::apache::thrift::protocol::T_LIST) {
    {
    this->group_names.clear();
    - uint32_t _size370;
    - ::apache::thrift::protocol::TType _etype373;
    - iprot->readListBegin(_etype373, _size370);
    - this->group_names.resize(_size370);
    - uint32_t _i374;
    - for (_i374 = 0; _i374 < _size370; ++_i374)
    + uint32_t _size376;
    + ::apache::thrift::protocol::TType _etype379;
    + iprot->readListBegin(_etype379, _size376);
    + this->group_names.resize(_size376);
    + uint32_t _i380;
    + for (_i380 = 0; _i380 < _size376; ++_i380)
    {
    - xfer += iprot->readString(this->group_names[_i374]);
    + xfer += iprot->readString(this->group_names[_i380]);
    }
    iprot->readListEnd();
    }
    @@ -7940,10 +7940,10 @@ uint32_t ThriftHiveMetastore_get_partiti
    xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3);
    {
    xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->part_vals.size()));
    - std::vector<std::string> ::const_iterator _iter375;
    - for (_iter375 = this->part_vals.begin(); _iter375 != this->part_vals.end(); ++_iter375)
    + std::vector<std::string> ::const_iterator _iter381;
    + for (_iter381 = this->part_vals.begin(); _iter381 != this->part_vals.end(); ++_iter381)
    {
    - xfer += oprot->writeString((*_iter375));
    + xfer += oprot->writeString((*_iter381));
    }
    xfer += oprot->writeListEnd();
    }
    @@ -7957,10 +7957,10 @@ uint32_t ThriftHiveMetastore_get_partiti
    xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 6);
    {
    xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->group_names.size()));
    - std::vector<std::string> ::const_iterator _iter376;
    - for (_iter376 = this->group_names.begin(); _iter376 != this->group_names.end(); ++_iter376)
    + std::vector<std::string> ::const_iterator _iter382;
    + for (_iter382 = this->group_names.begin(); _iter382 != this->group_names.end(); ++_iter382)
    {
    - xfer += oprot->writeString((*_iter376));
    + xfer += oprot->writeString((*_iter382));
    }
    xfer += oprot->writeListEnd();
    }
    @@ -7982,10 +7982,10 @@ uint32_t ThriftHiveMetastore_get_partiti
    xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3);
    {
    xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>((*(this->part_vals)).size()));
    - std::vector<std::string> ::const_iterator _iter377;
    - for (_iter377 = (*(this->part_vals)).begin(); _iter377 != (*(this->part_vals)).end(); ++_iter377)
    + std::vector<std::string> ::const_iterator _iter383;
    + for (_iter383 = (*(this->part_vals)).begin(); _iter383 != (*(this->part_vals)).end(); ++_iter383)
    {
    - xfer += oprot->writeString((*_iter377));
    + xfer += oprot->writeString((*_iter383));
    }
    xfer += oprot->writeListEnd();
    }
    @@ -7999,10 +7999,10 @@ uint32_t ThriftHiveMetastore_get_partiti
    xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 6);
    {
    xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>((*(this->group_names)).size()));
    - std::vector<std::string> ::const_iterator _iter378;
    - for (_iter378 = (*(this->group_names)).begin(); _iter378 != (*(this->group_names)).end(); ++_iter378)
    + std::vector<std::string> ::const_iterator _iter384;
    + for (_iter384 = (*(this->group_names)).begin(); _iter384 != (*(this->group_names)).end(); ++_iter384)
    {
    - xfer += oprot->writeString((*_iter378));
    + xfer += oprot->writeString((*_iter384));
    }
    xfer += oprot->writeListEnd();
    }
    @@ -8036,14 +8036,14 @@ uint32_t ThriftHiveMetastore_get_partiti
    if (ftype == ::apache::thrift::protocol::T_LIST) {
    {
    this->success.clear();
    - uint32_t _size379;
    - ::apache::thrift::protocol::TType _etype382;
    - iprot->readListBegin(_etype382, _size379);
    - this->success.resize(_size379);
    - uint32_t _i383;
    - for (_i383 = 0; _i383 < _size379; ++_i383)
    + uint32_t _size385;
    + ::apache::thrift::protocol::TType _etype388;
    + iprot->readListBegin(_etype388, _size385);
    + this->success.resize(_size385);
    + uint32_t _i389;
    + for (_i389 = 0; _i389 < _size385; ++_i389)
    {
    - xfer += this->success[_i383].read(iprot);
    + xfer += this->success[_i389].read(iprot);
    }
    iprot->readListEnd();
    }
    @@ -8090,10 +8090,10 @@ uint32_t ThriftHiveMetastore_get_partiti
    xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
    {
    xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->success.size()));
    - std::vector<Partition> ::const_iterator _iter384;
    - for (_iter384 = this->success.begin(); _iter384 != this->success.end(); ++_iter384)
    + std::vector<Partition> ::const_iterator _iter390;
    + for (_iter390 = this->success.begin(); _iter390 != this->success.end(); ++_iter390)
    {
    - xfer += (*_iter384).write(oprot);
    + xfer += (*_iter390).write(oprot);
    }
    xfer += oprot->writeListEnd();
    }
    @@ -8136,14 +8136,14 @@ uint32_t ThriftHiveMetastore_get_partiti
    if (ftype == ::apache::thrift::protocol::T_LIST) {
    {
    (*(this->success)).clear();
    - uint32_t _size385;
    - ::apache::thrift::protocol::TType _etype388;
    - iprot->readListBegin(_etype388, _size385);
    - (*(this->success)).resize(_size385);
    - uint32_t _i389;
    - for (_i389 = 0; _i389 < _size385; ++_i389)
    + uint32_t _size391;
    + ::apache::thrift::protocol::TType _etype394;
    + iprot->readListBegin(_etype394, _size391);
    + (*(this->success)).resize(_size391);
    + uint32_t _i395;
    + for (_i395 = 0; _i395 < _size391; ++_i395)
    {
    - xfer += (*(this->success))[_i389].read(iprot);
    + xfer += (*(this->success))[_i395].read(iprot);
    }
    iprot->readListEnd();
    }
    @@ -8220,14 +8220,14 @@ uint32_t ThriftHiveMetastore_get_partiti
    if (ftype == ::apache::thrift::protocol::T_LIST) {
    {
    this->part_vals.clear();
    - uint32_t _size390;
    - ::apache::thrift::protocol::TType _etype393;
    - iprot->readListBegin(_etype393, _size390);
    - this->part_vals.resize(_size390);
    - uint32_t _i394;
    - for (_i394 = 0; _i394 < _size390; ++_i394)
    + uint32_t _size396;
    + ::apache::thrift::protocol::TType _etype399;
    + iprot->readListBegin(_etype399, _size396);
    + this->part_vals.resize(_size396);
    + uint32_t _i400;
    + for (_i400 = 0; _i400 < _size396; ++_i400)
    {
    - xfer += iprot->readString(this->part_vals[_i394]);
    + xfer += iprot->readString(this->part_vals[_i400]);
    }
    iprot->readListEnd();
    }
    @@ -8268,10 +8268,10 @@ uint32_t ThriftHiveMetastore_get_partiti
    xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3);
    {
    xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->part_vals.size()));
    - std::vector<std::string> ::const_iterator _iter395;
    - for (_iter395 = this->part_vals.begin(); _iter395 != this->part_vals.end(); ++_iter395)
    + std::vector<std::string> ::const_iterator _iter401;
    + for (_iter401 = this->part_vals.begin(); _iter401 != this->part_vals.end(); ++_iter401)
    {
    - xfer += oprot->writeString((*_iter395));
    + xfer += oprot->writeString((*_iter401));
    }
    xfer += oprot->writeListEnd();
    }
    @@ -8296,10 +8296,10 @@ uint32_t ThriftHiveMetastore_get_partiti
    xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3);
    {
    xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>((*(this->part_vals)).size()));
    - std::vector<std::string> ::const_iterator _iter396;
    - for (_iter396 = (*(this->part_vals)).begin(); _iter396 != (*(this->part_vals)).end(); ++_iter396)
    + std::vector<std::string> ::const_iterator _iter402;
    + for (_iter402 = (*(this->part_vals)).begin(); _iter402 != (*(this->part_vals)).end(); ++_iter402)
    {
    - xfer += oprot->writeString((*_iter396));
    + xfer += oprot->writeString((*_iter402));
    }
    xfer += oprot->writeListEnd();
    }
    @@ -8336,14 +8336,14 @@ uint32_t ThriftHiveMetastore_get_partiti
    if (ftype == ::apache::thrift::protocol::T_LIST) {
    {
    this->success.clear();
    - uint32_t _size397;
    - ::apache::thrift::protocol::TType _etype400;
    - iprot->readListBegin(_etype400, _size397);
    - this->success.resize(_size397);
    - uint32_t _i401;
    - for (_i401 = 0; _i401 < _size397; ++_i401)
    + uint32_t _size403;
    + ::apache::thrift::protocol::TType _etype406;
    + iprot->readListBegin(_etype406, _size403);
    + this->success.resize(_size403);
    + uint32_t _i407;
    + for (_i407 = 0; _i407 < _size403; ++_i407)
    {
    - xfer += iprot->readString(this->success[_i401]);
    + xfer += iprot->readString(this->success[_i407]);
    }
    iprot->readListEnd();
    }
    @@ -8390,10 +8390,10 @@ uint32_t ThriftHiveMetastore_get_partiti
    xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
    {
    xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->success.size()));
    - std::vector<std::string> ::const_iterator _iter402;
    - for (_iter402 = this->success.begin(); _iter402 != this->success.end(); ++_iter402)
    + std::vector<std::string> ::const_iterator _iter408;
    + for (_iter408 = this->success.begin(); _iter408 != this->success.end(); ++_iter408)
    {
    - xfer += oprot->writeString((*_iter402));
    + xfer += oprot->writeString((*_iter408));
    }
    xfer += oprot->writeListEnd();
    }
    @@ -8436,14 +8436,14 @@ uint32_t ThriftHiveMetastore_get_partiti
    if (ftype == ::apache::thrift::protocol::T_LIST) {
    {
    (*(this->success)).clear();
    - uint32_t _size403;
    - ::apache::thrift::protocol::TType _etype406;
    - iprot->readListBegin(_etype406, _size403);
    - (*(this->success)).resize(_size403);
    - uint32_t _i407;
    - for (_i407 = 0; _i407 < _size403; ++_i407)
    + uint32_t _size409;
    + ::apache::thrift::protocol::TType _etype412;
    + iprot->readListBegin(_etype412, _size409);
    + (*(this->success)).resize(_size409);
    + uint32_t _i413;
    + for (_i413 = 0; _i413 < _size409; ++_i413)
    {
    - xfer += iprot->readString((*(this->success))[_i407]);
    + xfer += iprot->readString((*(this->success))[_i413]);
    }
    iprot->readListEnd();
    }
    @@ -8608,14 +8608,14 @@ uint32_t ThriftHiveMetastore_get_partiti
    if (ftype == ::apache::thrift::protocol::T_LIST) {
    {
    this->success.clear();
    - uint32_t _size408;
    - ::apache::thrift::protocol::TType _etype411;
    - iprot->readListBegin(_etype411, _size408);
    - this->success.resize(_size408);
    - uint32_t _i412;
    - for (_i412 = 0; _i412 < _size408; ++_i412)
    + uint32_t _size414;
    + ::apache::thrift::protocol::TType _etype417;
    + iprot->readListBegin(_etype417, _size414);
    + this->success.resize(_size414);
    + uint32_t _i418;
    + for (_i418 = 0; _i418 < _size414; ++_i418)
    {
    - xfer += this->success[_i412].read(iprot);
    + xfer += this->success[_i418].read(iprot);
    }
    iprot->readListEnd();
    }
    @@ -8662,10 +8662,10 @@ uint32_t ThriftHiveMetastore_get_partiti
    xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
    {
    xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->success.size()));
    - std::vector<Partition> ::const_iterator _iter413;
    - for (_iter413 = this->success.begin(); _iter413 != this->success.end(); ++_iter413)
    + std::vector<Partition> ::const_iterator _iter419;
    + for (_iter419 = this->success.begin(); _iter419 != this->success.end(); ++_iter419)
    {
    - xfer += (*_iter413).write(oprot);
    + xfer += (*_iter419).write(oprot);
    }
    xfer += oprot->writeListEnd();
    }
    @@ -8708,14 +8708,14 @@ uint32_t ThriftHiveMetastore_get_partiti
    if (ftype == ::apache::thrift::protocol::T_LIST) {
    {
    (*(this->success)).clear();
    - uint32_t _size414;
    - ::apache::thrift::protocol::TType _etype417;
    - iprot->readListBegin(_etype417, _size414);
    - (*(this->success)).resize(_size414);
    - uint32_t _i418;
    - for (_i418 = 0; _i418 < _size414; ++_i418)
    + uint32_t _size420;
    + ::apache::thrift::protocol::TType _etype423;
    + iprot->readListBegin(_etype423, _size420);
    + (*(this->success)).resize(_size420);
    + uint32_t _i424;
    + for (_i424 = 0; _i424 < _size420; ++_i424)
    {
    - xfer += (*(this->success))[_i418].read(iprot);
    + xfer += (*(this->success))[_i424].read(iprot);
    }
    iprot->readListEnd();
    }
    @@ -8792,14 +8792,14 @@ uint32_t ThriftHiveMetastore_get_partiti
    if (ftype == ::apache::thrift::protocol::T_LIST) {
    {
    this->names.clear();
    - uint32_t _size419;
    - ::apache::thrift::protocol::TType _etype422;
    - iprot->readListBegin(_etype422, _size419);
    - this->names.resize(_size419);
    - uint32_t _i423;
    - for (_i423 = 0; _i423 < _size419; ++_i423)
    + uint32_t _size425;
    + ::apache::thrift::protocol::TType _etype428;
    + iprot->readListBegin(_etype428, _size425);
    + this->names.resize(_size425);
    + uint32_t _i429;
    + for (_i429 = 0; _i429 < _size425; ++_i429)
    {
    - xfer += iprot->readString(this->names[_i423]);
    + xfer += iprot->readString(this->names[_i429]);
    }
    iprot->readListEnd();
    }
    @@ -8832,10 +8832,10 @@ uint32_t ThriftHiveMetastore_get_partiti
    xfer += oprot->writeFieldBegin("names", ::apache::thrift::protocol::T_LIST, 3);
    {
    xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->names.size()));
    - std::vector<std::string> ::const_iterator _iter424;
    - for (_iter424 = this->names.begin(); _iter424 != this->names.end(); ++_iter424)
    + std::vector<std::string> ::const_iterator _iter430;
    + for (_iter430 = this->names.begin(); _iter430 != this->names.end(); ++_iter430)
    {
    - xfer += oprot->writeString((*_iter424));
    + xfer += oprot->writeString((*_iter430));
    }
    xfer += oprot->writeListEnd();
    }
    @@ -8857,10 +8857,10 @@ uint32_t ThriftHiveMetastore_get_partiti
    xfer += oprot->writeFieldBegin("names", ::apache::thrift::protocol::T_LIST, 3);
    {
    xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>((*(this->names)).size()));
    - std::vector<std::string> ::const_iterator _iter425;
    - for (_iter425 = (*(this->names)).begin(); _iter425 != (*(this->names)).end(); ++_iter425)
    + std::vector<std::string> ::const_iterator _iter431;
    + for (_iter431 = (*(this->names)).begin(); _iter431 != (*(this->names)).end(); ++_iter431)
    {
    - xfer += oprot->writeString((*_iter425));
    + xfer += oprot->writeString((*_iter431));
    }
    xfer += oprot->writeListEnd();
    }
    @@ -8894,14 +8894,14 @@ uint32_t ThriftHiveMetastore_get_partiti
    if (ftype == ::apache::thrift::protocol::T_LIST) {
    {
    this->success.clear();
    - uint32_t _size426;
    - ::apache::thrift::protocol::TType _etype429;
    - iprot->readListBegin(_etype429, _size426);
    - this->success.resize(_size426);
    - uint32_t _i430;
    - for (_i430 = 0; _i430 < _size426; ++_i430)
    + uint32_t _size432;
    + ::apache::thrift::protocol::TType _etype435;
    + iprot->readListBegin(_etype435, _size432);
    + this->success.resize(_size432);
    + uint32_t _i436;
    + for (_i436 = 0; _i436 < _size432; ++_i436)
    {
    - xfer += this->success[_i430].read(iprot);
    + xfer += this->success[_i436].read(iprot);
    }
    iprot->readListEnd();
    }
    @@ -8948,10 +8948,10 @@ uint32_t ThriftHiveMetastore_get_partiti
    xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
    {
    xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->success.size()));
    - std::vector<Partition> ::const_iterator _iter431;
    - for (_iter431 = this->success.begin(); _iter431 != this->success.end(); ++_iter431)
    + std::vector<Partition> ::const_iterator _iter437;
    + for (_iter437 = this->success.begin(); _iter437 != this->success.end(); ++_iter437)
    {
    - xfer += (*_iter431).write(oprot);
    + xfer += (*_iter437).write(oprot);
    }
    xfer += oprot->writeListEnd();
    }
    @@ -8994,14 +8994,14 @@ uint32_t ThriftHiveMetastore_get_partiti
    if (ftype == ::apache::thrift::protocol::T_LIST) {
    {
    (*(this->success)).clear();
    - uint32_t _size432;
    - ::apache::thrift::protocol::TType _etype435;
    - iprot->readListBegin(_etype435, _size432);
    - (*(this->success)).resize(_size432);
    - uint32_t _i436;
    - for (_i436 = 0; _i436 < _size432; ++_i436)
    + uint32_t _size438;
    + ::apache::thrift::protocol::TType _etype441;
    + iprot->readListBegin(_etype441, _size438);
    + (*(this->success)).resize(_size438);
    + uint32_t _i442;
    + for (_i442 = 0; _i442 < _size438; ++_i442)
    {
    - xfer += (*(this->success))[_i436].read(iprot);
    + xfer += (*(this->success))[_i442].read(iprot);
    }
    iprot->readListEnd();
    }
    @@ -9284,14 +9284,14 @@ uint32_t ThriftHiveMetastore_rename_part
    if (ftype == ::apache::thrift::protocol::T_LIST) {
    {
    this->part_vals.clear();
    - uint32_t _size437;
    - ::apache::thrift::protocol::TType _etype440;
    - iprot->readListBegin(_etype440, _size437);
    - this->part_vals.resize(_size437);
    - uint32_t _i441;
    - for (_i441 = 0; _i441 < _size437; ++_i441)
    + uint32_t _size443;
    + ::apache::thrift::protocol::TType _etype446;
    + iprot->readListBegin(_etype446, _size443);
    + this->part_vals.resize(_size443);
    + uint32_t _i447;
    + for (_i447 = 0; _i447 < _size443; ++_i447)
    {
    - xfer += iprot->readString(this->part_vals[_i441]);
    + xfer += iprot->readString(this->part_vals[_i447]);
    }
    iprot->readListEnd();
    }
    @@ -9332,10 +9332,10 @@ uint32_t ThriftHiveMetastore_rename_part
    xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3);
    {
    xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->part_vals.size()));
    - std::vector<std::string> ::const_iterator _iter442;
    - for (_iter442 = this->part_vals.begin(); _iter442 != this->part_vals.end(); ++_iter442)
    + std::vector<std::string> ::const_iterator _iter448;
    + for (_iter448 = this->part_vals.begin(); _iter448 != this->part_vals.end(); ++_iter448)
    {
    - xfer += oprot->writeString((*_iter442));
    + xfer += oprot->writeString((*_iter448));
    }
    xfer += oprot->writeListEnd();
    }
    @@ -9360,10 +9360,10 @@ uint32_t ThriftHiveMetastore_rename_part
    xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3);
    {
    xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>((*(this->part_vals)).size()));
    - std::vector<std::string> ::const_iterator _iter443;
    - for (_iter443 = (*(this->part_vals)).begin(); _iter443 != (*(this->part_vals)).end(); ++_iter443)
    + std::vector<std::string> ::const_iterator _iter449;
    + for (_iter449 = (*(this->part_vals)).begin(); _iter449 != (*(this->part_vals)).end(); ++_iter449)
    {
    - xfer += oprot->writeString((*_iter443));
    + xfer += oprot->writeString((*_iter449));
    }
    xfer += oprot->writeListEnd();
    }
    @@ -9770,14 +9770,14 @@ uint32_t ThriftHiveMetastore_partition_n
    if (ftype == ::apache::thrift::protocol::T_LIST) {
    {
    this->success.clear();
    - uint32_t _size444;
    - ::apache::thrift::protocol::TType _etype447;
    - iprot->readListBegin(_etype447, _size444);
    - this->success.resize(_size444);
    - uint32_t _i448;
    - for (_i448 = 0; _i448 < _size444; ++_i448)
    + uint32_t _size450;
    + ::apache::thrift::protocol::TType _etype453;
    + iprot->readListBegin(_etype453, _size450);
    + this->success.resize(_size450);
    + uint32_t _i454;
    + for (_i454 = 0; _i454 < _size450; ++_i454)
    {
    - xfer += iprot->readString(this->success[_i448]);
    + xfer += iprot->readString(this->success[_i454]);
    }
    iprot->readListEnd();
    }
    @@ -9816,10 +9816,10 @@ uint32_t ThriftHiveMetastore_partition_n
    xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
    {
    xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->success.size()));
    - std::vector<std::string> ::const_iterator _iter449;
    - for (_iter449 = this->success.begin(); _iter449 != this->success.end(); ++_iter449)
    + std::vector<std::string> ::const_iterator _iter455;
    + for (_iter455 = this->success.begin(); _iter455 != this->success.end(); ++_iter455)
    {
    - xfer += oprot->writeString((*_iter449));
    + xfer += oprot->writeString((*_iter455));
    }
    xfer += oprot->writeListEnd();
    }
    @@ -9858,14 +9858,14 @@ uint32_t ThriftHiveMetastore_partition_n
    if (ftype == ::apache::thrift::protocol::T_LIST) {
    {
    (*(this->success)).clear();
    - uint32_t _size450;
    - ::apache::thrift::protocol::TType _etype453;
    - iprot->readListBegin(_etype453, _size450);
    - (*(this->success)).resize(_size450);
    - uint32_t _i454;
    - for (_i454 = 0; _i454 < _size450; ++_i454)
    + uint32_t _size456;
    + ::apache::thrift::protocol::TType _etype459;
    + iprot->readListBegin(_etype459, _size456);
    + (*(this->success)).resize(_size456);
    + uint32_t _i460;
    + for (_i460 = 0; _i460 < _size456; ++_i460)
    {
    - xfer += iprot->readString((*(this->success))[_i454]);
    + xfer += iprot->readString((*(this->success))[_i460]);
    }
    iprot->readListEnd();
    }
    @@ -9980,17 +9980,17 @@ uint32_t ThriftHiveMetastore_partition_n
    if (ftype == ::apache::thrift::protocol::T_MAP) {
    {
    this->success.clear();
    - uint32_t _size455;
    - ::apache::thrift::protocol::TType _ktype456;
    - ::apache::thrift::protocol::TType _vtype457;
    - iprot->readMapBegin(_ktype456, _vtype457, _size455);
    - uint32_t _i459;
    - for (_i459 = 0; _i459 < _size455; ++_i459)
    + uint32_t _size461;
    + ::apache::thrift::protocol::TType _ktype462;
    + ::apache::thrift::protocol::TType _vtype463;
    + iprot->readMapBegin(_ktype462, _vtype463, _size461);
    + uint32_t _i465;
    + for (_i465 = 0; _i465 < _size461; ++_i465)
    {
    - std::string _key460;
    - xfer += iprot->readString(_key460);
    - std::string& _val461 = this->success[_key460];
    - xfer += iprot->readString(_val461);
    + std::string _key466;
    + xfer += iprot->readString(_key466);
    + std::string& _val467 = this->success[_key466];
    + xfer += iprot->readString(_val467);
    }
    iprot->readMapEnd();
    }
    @@ -10029,11 +10029,11 @@ uint32_t ThriftHiveMetastore_partition_n
    xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_MAP, 0);
    {
    xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->success.size()));
    - std::map<std::string, std::string> ::const_iterator _iter462;
    - for (_iter462 = this->success.begin(); _iter462 != this->success.end(); ++_iter462)
    + std::map<std::string, std::string> ::const_iterator _iter468;
    + for (_iter468 = this->success.begin(); _iter468 != this->success.end(); ++_iter468)
    {
    - xfer += oprot->writeString(_iter462->first);
    - xfer += oprot->writeString(_iter462->second);
    + xfer += oprot->writeString(_iter468->first);
    + xfer += oprot->writeString(_iter468->second);
    }
    xfer += oprot->writeMapEnd();
    }
    @@ -10072,17 +10072,17 @@ uint32_t ThriftHiveMetastore_partition_n
    if (ftype == ::apache::thrift::protocol::T_MAP) {
    {
    (*(this->success)).clear();
    - uint32_t _size463;
    - ::apache::thrift::protocol::TType _ktype464;
    - ::apache::thrift::protocol::TType _vtype465;
    - iprot->readMapBegin(_ktype464, _vtype465, _size463);
    - uint32_t _i467;
    - for (_i467 = 0; _i467 < _size463; ++_i467)
    + uint32_t _size469;
    + ::apache::thrift::protocol::TType _ktype470;
    + ::apache::thrift::protocol::TType _vtype471;
    + iprot->readMapBegin(_ktype470, _vtype471, _size469);
    + uint32_t _i473;
    + for (_i473 = 0; _i473 < _size469; ++_i473)
    {
    - std::string _key468;
    - xfer += iprot->readString(_key468);
    - std::string& _val469 = (*(this->success))[_key468];
    - xfer += iprot->readString(_val469);
    + std::string _key474;
    + xfer += iprot->readString(_key474);
    + std::string& _val475 = (*(this->success))[_key474];
    + xfer += iprot->readString(_val475);
    }
    iprot->readMapEnd();
    }
    @@ -10151,17 +10151,17 @@ uint32_t ThriftHiveMetastore_markPartiti
    if (ftype == ::apache::thrift::protocol::T_MAP) {
    {
    this->part_vals.clear();
    - uint32_t _size470;
    - ::apache::thrift::protocol::TType _ktype471;
    - ::apache::thrift::protocol::TType _vtype472;
    - iprot->readMapBegin(_ktype471, _vtype472, _size470);
    - uint32_t _i474;
    - for (_i474 = 0; _i474 < _size470; ++_i474)
    + uint32_t _size476;
    + ::apache::thrift::protocol::TType _ktype477;
    + ::apache::thrift::protocol::TType _vtype478;
    + iprot->readMapBegin(_ktype477, _vtype478, _size476);
    + uint32_t _i480;
    + for (_i480 = 0; _i480 < _size476; ++_i480)
    {
    - std::string _key475;
    - xfer += iprot->readString(_key475);
    - std::string& _val476 = this->part_vals[_key475];
    - xfer += iprot->readString(_val476);
    + std::string _key481;
    + xfer += iprot->readString(_key481);
    + std::string& _val482 = this->part_vals[_key481];
    + xfer += iprot->readString(_val482);
    }
    iprot->readMapEnd();
    }
    @@ -10172,9 +10172,9 @@ uint32_t ThriftHiveMetastore_markPartiti
    break;
    case 4:
    if (ftype == ::apache::thrift::protocol::T_I32) {
    - int32_t ecast477;
    - xfer += iprot->readI32(ecast477);
    - this->eventType = (PartitionEventType::type)ecast477;
    + int32_t ecast483;
    + xfer += iprot->readI32(ecast483);
    + this->eventType = (PartitionEventType::type)ecast483;
    this->__isset.eventType = true;
    } else {
    xfer += iprot->skip(ftype);
    @@ -10204,11 +10204,11 @@ uint32_t ThriftHiveMetastore_markPartiti
    xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_MAP, 3);
    {
    xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->part_vals.size()));
    - std::map<std::string, std::string> ::const_iterator _iter478;
    - for (_iter478 = this->part_vals.begin(); _iter478 != this->part_vals.end(); ++_iter478)
    + std::map<std::string, std::string> ::const_iterator _iter484;
    + for (_iter484 = this->part_vals.begin(); _iter484 != this->part_vals.end(); ++_iter484)
    {
    - xfer += oprot->writeString(_iter478->first);
    - xfer += oprot->writeString(_iter478->second);
    + xfer += oprot->writeString(_iter484->first);
    + xfer += oprot->writeString(_iter484->second);
    }
    xfer += oprot->writeMapEnd();
    }
    @@ -10233,11 +10233,11 @@ uint32_t ThriftHiveMetastore_markPartiti
    xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_MAP, 3);
    {
    xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast<uint32_t>((*(this->part_vals)).size()));
    - std::map<std::string, std::string> ::const_iterator _iter479;
    - for (_iter479 = (*(this->part_vals)).begin(); _iter479 != (*(this->part_vals)).end(); ++_iter479)
    + std::map<std::string, std::string> ::const_iterator _iter485;
    + for (_iter485 = (*(this->part_vals)).begin(); _iter485 != (*(this->part_vals)).end(); ++_iter485)
    {
    - xfer += oprot->writeString(_iter479->first);
    - xfer += oprot->writeString(_iter479->second);
    + xfer += oprot->writeString(_iter485->first);
    + xfer += oprot->writeString(_iter485->second);
    }
    xfer += oprot->writeMapEnd();
    }
    @@ -10486,17 +10486,17 @@ uint32_t ThriftHiveMetastore_isPartition
    if (ftype == ::apache::thrift::protocol::T_MAP) {
    {
    this->part_vals.clear();
    - uint32_t _size480;
    - ::apache::thrift::protocol::TType _ktype481;
    - ::apache::thrift::protocol::TType _vtype482;
    - iprot->readMapBegin(_ktype481, _vtype482, _size480);
    - uint32_t _i484;
    - for (_i484 = 0; _i484 < _size480; ++_i484)
    + uint32_t _size486;
    + ::apache::thrift::protocol::TType _ktype487;
    + ::apache::thrift::protocol::TType _vtype488;
    + iprot->readMapBegin(_ktype487, _vtype488, _size486);
    + uint32_t _i490;
    + for (_i490 = 0; _i490 < _size486; ++_i490)
    {
    - std::string _key485;
    - xfer += iprot->readString(_key485);

    [... 568 lines stripped ...]
  • Namit at Feb 11, 2012 at 7:50 am
    Modified: hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java
    URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java?rev=1243013&r1=1243012&r2=1243013&view=diff
    ==============================================================================
    --- hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java (original)
    +++ hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java Sat Feb 11 07:49:28 2012
    @@ -6134,7 +6134,7 @@ public class ThriftHiveMetastore {
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
    static {
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
    - tmpMap.put(_Fields.DATABASE, new org.apache.thrift.meta_data.FieldMetaData("database", org.apache.thrift.TFieldRequirementType.DEFAULT,
    + tmpMap.put(_Fields.DATABASE, new org.apache.thrift.meta_data.FieldMetaData("database", org.apache.thrift.TFieldRequirementType.DEFAULT,
    new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Database.class)));
    metaDataMap = Collections.unmodifiableMap(tmpMap);
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(create_database_args.class, metaDataMap);
    @@ -6287,7 +6287,7 @@ public class ThriftHiveMetastore {
    while (true)
    {
    field = iprot.readFieldBegin();
    - if (field.type == org.apache.thrift.protocol.TType.STOP) {
    + if (field.type == org.apache.thrift.protocol.TType.STOP) {
    break;
    }
    switch (field.id) {
    @@ -6295,7 +6295,7 @@ public class ThriftHiveMetastore {
    if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
    this.database = new Database();
    this.database.read(iprot);
    - } else {
    + } else {
    org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
    }
    break;
    @@ -6439,11 +6439,11 @@ public class ThriftHiveMetastore {
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
    static {
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
    - tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT,
    + tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT,
    new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
    - tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT,
    + tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT,
    new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
    - tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT,
    + tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT,
    new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
    metaDataMap = Collections.unmodifiableMap(tmpMap);
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(create_database_result.class, metaDataMap);
    @@ -6718,7 +6718,7 @@ public class ThriftHiveMetastore {
    while (true)
    {
    field = iprot.readFieldBegin();
    - if (field.type == org.apache.thrift.protocol.TType.STOP) {
    + if (field.type == org.apache.thrift.protocol.TType.STOP) {
    break;
    }
    switch (field.id) {
    @@ -6726,7 +6726,7 @@ public class ThriftHiveMetastore {
    if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
    this.o1 = new AlreadyExistsException();
    this.o1.read(iprot);
    - } else {
    + } else {
    org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
    }
    break;
    @@ -6734,7 +6734,7 @@ public class ThriftHiveMetastore {
    if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
    this.o2 = new InvalidObjectException();
    this.o2.read(iprot);
    - } else {
    + } else {
    org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
    }
    break;
    @@ -6742,7 +6742,7 @@ public class ThriftHiveMetastore {
    if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
    this.o3 = new MetaException();
    this.o3.read(iprot);
    - } else {
    + } else {
    org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
    }
    break;
    @@ -6899,7 +6899,7 @@ public class ThriftHiveMetastore {
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
    static {
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
    - tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT,
    + tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT,
    new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
    metaDataMap = Collections.unmodifiableMap(tmpMap);
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_database_args.class, metaDataMap);
    @@ -7052,14 +7052,14 @@ public class ThriftHiveMetastore {
    while (true)
    {
    field = iprot.readFieldBegin();
    - if (field.type == org.apache.thrift.protocol.TType.STOP) {
    + if (field.type == org.apache.thrift.protocol.TType.STOP) {
    break;
    }
    switch (field.id) {
    case 1: // NAME
    if (field.type == org.apache.thrift.protocol.TType.STRING) {
    this.name = iprot.readString();
    - } else {
    + } else {
    org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
    }
    break;
    @@ -7203,11 +7203,11 @@ public class ThriftHiveMetastore {
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
    static {
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
    - tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
    + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
    new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Database.class)));
    - tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT,
    + tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT,
    new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
    - tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT,
    + tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT,
    new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
    metaDataMap = Collections.unmodifiableMap(tmpMap);
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_database_result.class, metaDataMap);
    @@ -7482,7 +7482,7 @@ public class ThriftHiveMetastore {
    while (true)
    {
    field = iprot.readFieldBegin();
    - if (field.type == org.apache.thrift.protocol.TType.STOP) {
    + if (field.type == org.apache.thrift.protocol.TType.STOP) {
    break;
    }
    switch (field.id) {
    @@ -7490,7 +7490,7 @@ public class ThriftHiveMetastore {
    if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
    this.success = new Database();
    this.success.read(iprot);
    - } else {
    + } else {
    org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
    }
    break;
    @@ -7498,7 +7498,7 @@ public class ThriftHiveMetastore {
    if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
    this.o1 = new NoSuchObjectException();
    this.o1.read(iprot);
    - } else {
    + } else {
    org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
    }
    break;
    @@ -7506,7 +7506,7 @@ public class ThriftHiveMetastore {
    if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
    this.o2 = new MetaException();
    this.o2.read(iprot);
    - } else {
    + } else {
    org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
    }
    break;
    @@ -7676,11 +7676,11 @@ public class ThriftHiveMetastore {
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
    static {
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
    - tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT,
    + tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT,
    new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
    - tmpMap.put(_Fields.DELETE_DATA, new org.apache.thrift.meta_data.FieldMetaData("deleteData", org.apache.thrift.TFieldRequirementType.DEFAULT,
    + tmpMap.put(_Fields.DELETE_DATA, new org.apache.thrift.meta_data.FieldMetaData("deleteData", org.apache.thrift.TFieldRequirementType.DEFAULT,
    new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
    - tmpMap.put(_Fields.CASCADE, new org.apache.thrift.meta_data.FieldMetaData("cascade", org.apache.thrift.TFieldRequirementType.DEFAULT,
    + tmpMap.put(_Fields.CASCADE, new org.apache.thrift.meta_data.FieldMetaData("cascade", org.apache.thrift.TFieldRequirementType.DEFAULT,
    new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
    metaDataMap = Collections.unmodifiableMap(tmpMap);
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_database_args.class, metaDataMap);
    @@ -7955,14 +7955,14 @@ public class ThriftHiveMetastore {
    while (true)
    {
    field = iprot.readFieldBegin();
    - if (field.type == org.apache.thrift.protocol.TType.STOP) {
    + if (field.type == org.apache.thrift.protocol.TType.STOP) {
    break;
    }
    switch (field.id) {
    case 1: // NAME
    if (field.type == org.apache.thrift.protocol.TType.STRING) {
    this.name = iprot.readString();
    - } else {
    + } else {
    org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
    }
    break;
    @@ -7970,7 +7970,7 @@ public class ThriftHiveMetastore {
    if (field.type == org.apache.thrift.protocol.TType.BOOL) {
    this.deleteData = iprot.readBool();
    setDeleteDataIsSet(true);
    - } else {
    + } else {
    org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
    }
    break;
    @@ -7978,7 +7978,7 @@ public class ThriftHiveMetastore {
    if (field.type == org.apache.thrift.protocol.TType.BOOL) {
    this.cascade = iprot.readBool();
    setCascadeIsSet(true);
    - } else {
    + } else {
    org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
    }
    break;
    @@ -8138,11 +8138,11 @@ public class ThriftHiveMetastore {
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
    static {
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
    - tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT,
    + tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT,
    new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
    - tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT,
    + tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT,
    new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
    - tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT,
    + tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT,
    new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
    metaDataMap = Collections.unmodifiableMap(tmpMap);
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_database_result.class, metaDataMap);
    @@ -8417,7 +8417,7 @@ public class ThriftHiveMetastore {
    while (true)
    {
    field = iprot.readFieldBegin();
    - if (field.type == org.apache.thrift.protocol.TType.STOP) {
    + if (field.type == org.apache.thrift.protocol.TType.STOP) {
    break;
    }
    switch (field.id) {
    @@ -8425,7 +8425,7 @@ public class ThriftHiveMetastore {
    if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
    this.o1 = new NoSuchObjectException();
    this.o1.read(iprot);
    - } else {
    + } else {
    org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
    }
    break;
    @@ -8433,7 +8433,7 @@ public class ThriftHiveMetastore {
    if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
    this.o2 = new InvalidOperationException();
    this.o2.read(iprot);
    - } else {
    + } else {
    org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
    }
    break;
    @@ -8441,7 +8441,7 @@ public class ThriftHiveMetastore {
    if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
    this.o3 = new MetaException();
    this.o3.read(iprot);
    - } else {
    + } else {
    org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
    }
    break;
    @@ -8598,7 +8598,7 @@ public class ThriftHiveMetastore {
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
    static {
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
    - tmpMap.put(_Fields.PATTERN, new org.apache.thrift.meta_data.FieldMetaData("pattern", org.apache.thrift.TFieldRequirementType.DEFAULT,
    + tmpMap.put(_Fields.PATTERN, new org.apache.thrift.meta_data.FieldMetaData("pattern", org.apache.thrift.TFieldRequirementType.DEFAULT,
    new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
    metaDataMap = Collections.unmodifiableMap(tmpMap);
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_databases_args.class, metaDataMap);
    @@ -8751,14 +8751,14 @@ public class ThriftHiveMetastore {
    while (true)
    {
    field = iprot.readFieldBegin();
    - if (field.type == org.apache.thrift.protocol.TType.STOP) {
    + if (field.type == org.apache.thrift.protocol.TType.STOP) {
    break;
    }
    switch (field.id) {
    case 1: // PATTERN
    if (field.type == org.apache.thrift.protocol.TType.STRING) {
    this.pattern = iprot.readString();
    - } else {
    + } else {
    org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
    }
    break;
    @@ -8897,10 +8897,10 @@ public class ThriftHiveMetastore {
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
    static {
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
    - tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
    - new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
    + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
    + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
    new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
    - tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT,
    + tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT,
    new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
    metaDataMap = Collections.unmodifiableMap(tmpMap);
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_databases_result.class, metaDataMap);
    @@ -9109,7 +9109,7 @@ public class ThriftHiveMetastore {
    if (lastComparison != 0) {
    return lastComparison;
    }
    - }
    + }
    lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1());
    if (lastComparison != 0) {
    return lastComparison;
    @@ -9133,24 +9133,24 @@ public class ThriftHiveMetastore {
    while (true)
    {
    field = iprot.readFieldBegin();
    - if (field.type == org.apache.thrift.protocol.TType.STOP) {
    + if (field.type == org.apache.thrift.protocol.TType.STOP) {
    break;
    }
    switch (field.id) {
    case 0: // SUCCESS
    if (field.type == org.apache.thrift.protocol.TType.LIST) {
    {
    - org.apache.thrift.protocol.TList _list98 = iprot.readListBegin();
    - this.success = new ArrayList<String>(_list98.size);
    - for (int _i99 = 0; _i99 < _list98.size; ++_i99)
    + org.apache.thrift.protocol.TList _list102 = iprot.readListBegin();
    + this.success = new ArrayList<String>(_list102.size);
    + for (int _i103 = 0; _i103 < _list102.size; ++_i103)
    {
    - String _elem100; // required
    - _elem100 = iprot.readString();
    - this.success.add(_elem100);
    + String _elem104; // required
    + _elem104 = iprot.readString();
    + this.success.add(_elem104);
    }
    iprot.readListEnd();
    }
    - } else {
    + } else {
    org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
    }
    break;
    @@ -9158,7 +9158,7 @@ public class ThriftHiveMetastore {
    if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
    this.o1 = new MetaException();
    this.o1.read(iprot);
    - } else {
    + } else {
    org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
    }
    break;
    @@ -9178,9 +9178,9 @@ public class ThriftHiveMetastore {
    oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
    {
    oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
    - for (String _iter101 : this.success)
    + for (String _iter105 : this.success)
    {
    - oprot.writeString(_iter101);
    + oprot.writeString(_iter105);
    }
    oprot.writeListEnd();
    }
    @@ -9388,7 +9388,7 @@ public class ThriftHiveMetastore {
    while (true)
    {
    field = iprot.readFieldBegin();
    - if (field.type == org.apache.thrift.protocol.TType.STOP) {
    + if (field.type == org.apache.thrift.protocol.TType.STOP) {
    break;
    }
    switch (field.id) {
    @@ -9515,10 +9515,10 @@ public class ThriftHiveMetastore {
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
    static {
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
    - tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
    - new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
    + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
    + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
    new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
    - tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT,
    + tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT,
    new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
    metaDataMap = Collections.unmodifiableMap(tmpMap);
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_all_databases_result.class, metaDataMap);
    @@ -9751,24 +9751,24 @@ public class ThriftHiveMetastore {
    while (true)
    {
    field = iprot.readFieldBegin();
    - if (field.type == org.apache.thrift.protocol.TType.STOP) {
    + if (field.type == org.apache.thrift.protocol.TType.STOP) {
    break;
    }
    switch (field.id) {
    case 0: // SUCCESS
    if (field.type == org.apache.thrift.protocol.TType.LIST) {
    {
    - org.apache.thrift.protocol.TList _list102 = iprot.readListBegin();
    - this.success = new ArrayList<String>(_list102.size);
    - for (int _i103 = 0; _i103 < _list102.size; ++_i103)
    + org.apache.thrift.protocol.TList _list106 = iprot.readListBegin();
    + this.success = new ArrayList<String>(_list106.size);
    + for (int _i107 = 0; _i107 < _list106.size; ++_i107)
    {
    - String _elem104; // required
    - _elem104 = iprot.readString();
    - this.success.add(_elem104);
    + String _elem108; // required
    + _elem108 = iprot.readString();
    + this.success.add(_elem108);
    }
    iprot.readListEnd();
    }
    - } else {
    + } else {
    org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
    }
    break;
    @@ -9776,7 +9776,7 @@ public class ThriftHiveMetastore {
    if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
    this.o1 = new MetaException();
    this.o1.read(iprot);
    - } else {
    + } else {
    org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
    }
    break;
    @@ -9796,9 +9796,9 @@ public class ThriftHiveMetastore {
    oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
    {
    oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
    - for (String _iter105 : this.success)
    + for (String _iter109 : this.success)
    {
    - oprot.writeString(_iter105);
    + oprot.writeString(_iter109);
    }
    oprot.writeListEnd();
    }
    @@ -9933,9 +9933,9 @@ public class ThriftHiveMetastore {
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
    static {
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
    - tmpMap.put(_Fields.DBNAME, new org.apache.thrift.meta_data.FieldMetaData("dbname", org.apache.thrift.TFieldRequirementType.DEFAULT,
    + tmpMap.put(_Fields.DBNAME, new org.apache.thrift.meta_data.FieldMetaData("dbname", org.apache.thrift.TFieldRequirementType.DEFAULT,
    new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
    - tmpMap.put(_Fields.DB, new org.apache.thrift.meta_data.FieldMetaData("db", org.apache.thrift.TFieldRequirementType.DEFAULT,
    + tmpMap.put(_Fields.DB, new org.apache.thrift.meta_data.FieldMetaData("db", org.apache.thrift.TFieldRequirementType.DEFAULT,
    new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Database.class)));
    metaDataMap = Collections.unmodifiableMap(tmpMap);
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(alter_database_args.class, metaDataMap);
    @@ -10149,14 +10149,14 @@ public class ThriftHiveMetastore {
    while (true)
    {
    field = iprot.readFieldBegin();
    - if (field.type == org.apache.thrift.protocol.TType.STOP) {
    + if (field.type == org.apache.thrift.protocol.TType.STOP) {
    break;
    }
    switch (field.id) {
    case 1: // DBNAME
    if (field.type == org.apache.thrift.protocol.TType.STRING) {
    this.dbname = iprot.readString();
    - } else {
    + } else {
    org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
    }
    break;
    @@ -10164,7 +10164,7 @@ public class ThriftHiveMetastore {
    if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
    this.db = new Database();
    this.db.read(iprot);
    - } else {
    + } else {
    org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
    }
    break;
    @@ -10316,9 +10316,9 @@ public class ThriftHiveMetastore {
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
    static {
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
    - tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT,
    + tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT,
    new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
    - tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT,
    + tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT,
    new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
    metaDataMap = Collections.unmodifiableMap(tmpMap);
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(alter_database_result.class, metaDataMap);
    @@ -10532,7 +10532,7 @@ public class ThriftHiveMetastore {
    while (true)
    {
    field = iprot.readFieldBegin();
    - if (field.type == org.apache.thrift.protocol.TType.STOP) {
    + if (field.type == org.apache.thrift.protocol.TType.STOP) {
    break;
    }
    switch (field.id) {
    @@ -10540,7 +10540,7 @@ public class ThriftHiveMetastore {
    if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
    this.o1 = new MetaException();
    this.o1.read(iprot);
    - } else {
    + } else {
    org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
    }
    break;
    @@ -10548,7 +10548,7 @@ public class ThriftHiveMetastore {
    if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
    this.o2 = new NoSuchObjectException();
    this.o2.read(iprot);
    - } else {
    + } else {
    org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
    }
    break;
    @@ -10693,7 +10693,7 @@ public class ThriftHiveMetastore {
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
    static {
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
    - tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT,
    + tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT,
    new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
    metaDataMap = Collections.unmodifiableMap(tmpMap);
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_type_args.class, metaDataMap);
    @@ -10846,14 +10846,14 @@ public class ThriftHiveMetastore {
    while (true)
    {
    field = iprot.readFieldBegin();
    - if (field.type == org.apache.thrift.protocol.TType.STOP) {
    + if (field.type == org.apache.thrift.protocol.TType.STOP) {
    break;
    }
    switch (field.id) {
    case 1: // NAME
    if (field.type == org.apache.thrift.protocol.TType.STRING) {
    this.name = iprot.readString();
    - } else {
    + } else {
    org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
    }
    break;
    @@ -10997,11 +10997,11 @@ public class ThriftHiveMetastore {
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
    static {
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
    - tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
    + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
    new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Type.class)));
    - tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT,
    + tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT,
    new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
    - tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT,
    + tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT,
    new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
    metaDataMap = Collections.unmodifiableMap(tmpMap);
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_type_result.class, metaDataMap);
    @@ -11276,7 +11276,7 @@ public class ThriftHiveMetastore {
    while (true)
    {
    field = iprot.readFieldBegin();
    - if (field.type == org.apache.thrift.protocol.TType.STOP) {
    + if (field.type == org.apache.thrift.protocol.TType.STOP) {
    break;
    }
    switch (field.id) {
    @@ -11284,7 +11284,7 @@ public class ThriftHiveMetastore {
    if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
    this.success = new Type();
    this.success.read(iprot);
    - } else {
    + } else {
    org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
    }
    break;
    @@ -11292,7 +11292,7 @@ public class ThriftHiveMetastore {
    if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
    this.o1 = new MetaException();
    this.o1.read(iprot);
    - } else {
    + } else {
    org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
    }
    break;
    @@ -11300,7 +11300,7 @@ public class ThriftHiveMetastore {
    if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
    this.o2 = new NoSuchObjectException();
    this.o2.read(iprot);
    - } else {
    + } else {
    org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
    }
    break;
    @@ -11457,7 +11457,7 @@ public class ThriftHiveMetastore {
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
    static {
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
    - tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT,
    + tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT,
    new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Type.class)));
    metaDataMap = Collections.unmodifiableMap(tmpMap);
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(create_type_args.class, metaDataMap);
    @@ -11610,7 +11610,7 @@ public class ThriftHiveMetastore {
    while (true)
    {
    field = iprot.readFieldBegin();
    - if (field.type == org.apache.thrift.protocol.TType.STOP) {
    + if (field.type == org.apache.thrift.protocol.TType.STOP) {
    break;
    }
    switch (field.id) {
    @@ -11618,7 +11618,7 @@ public class ThriftHiveMetastore {
    if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
    this.type = new Type();
    this.type.read(iprot);
    - } else {
    + } else {
    org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
    }
    break;
    @@ -11769,13 +11769,13 @@ public class ThriftHiveMetastore {
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
    static {
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
    - tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
    + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
    new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
    - tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT,
    + tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT,
    new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
    - tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT,
    + tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT,
    new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
    - tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT,
    + tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT,
    new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
    metaDataMap = Collections.unmodifiableMap(tmpMap);
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(create_type_result.class, metaDataMap);
    @@ -12112,7 +12112,7 @@ public class ThriftHiveMetastore {
    while (true)
    {
    field = iprot.readFieldBegin();
    - if (field.type == org.apache.thrift.protocol.TType.STOP) {
    + if (field.type == org.apache.thrift.protocol.TType.STOP) {
    break;
    }
    switch (field.id) {
    @@ -12120,7 +12120,7 @@ public class ThriftHiveMetastore {
    if (field.type == org.apache.thrift.protocol.TType.BOOL) {
    this.success = iprot.readBool();
    setSuccessIsSet(true);
    - } else {
    + } else {
    org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
    }
    break;
    @@ -12128,7 +12128,7 @@ public class ThriftHiveMetastore {
    if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
    this.o1 = new AlreadyExistsException();
    this.o1.read(iprot);
    - } else {
    + } else {
    org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
    }
    break;
    @@ -12136,7 +12136,7 @@ public class ThriftHiveMetastore {
    if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
    this.o2 = new InvalidObjectException();
    this.o2.read(iprot);
    - } else {
    + } else {
    org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
    }
    break;
    @@ -12144,7 +12144,7 @@ public class ThriftHiveMetastore {
    if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
    this.o3 = new MetaException();
    this.o3.read(iprot);
    - } else {
    + } else {
    org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
    }
    break;
    @@ -12309,7 +12309,7 @@ public class ThriftHiveMetastore {
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
    static {
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
    - tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT,
    + tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT,
    new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
    metaDataMap = Collections.unmodifiableMap(tmpMap);
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_type_args.class, metaDataMap);
    @@ -12462,14 +12462,14 @@ public class ThriftHiveMetastore {
    while (true)
    {
    field = iprot.readFieldBegin();
    - if (field.type == org.apache.thrift.protocol.TType.STOP) {
    + if (field.type == org.apache.thrift.protocol.TType.STOP) {
    break;
    }
    switch (field.id) {
    case 1: // TYPE
    if (field.type == org.apache.thrift.protocol.TType.STRING) {
    this.type = iprot.readString();
    - } else {
    + } else {
    org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
    }
    break;
    @@ -12615,11 +12615,11 @@ public class ThriftHiveMetastore {
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
    static {
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
    - tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
    + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
    new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
    - tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT,
    + tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT,
    new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
    - tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT,
    + tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT,
    new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
    metaDataMap = Collections.unmodifiableMap(tmpMap);
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_type_result.class, metaDataMap);
    @@ -12895,7 +12895,7 @@ public class ThriftHiveMetastore {
    while (true)
    {
    field = iprot.readFieldBegin();
    - if (field.type == org.apache.thrift.protocol.TType.STOP) {
    + if (field.type == org.apache.thrift.protocol.TType.STOP) {
    break;
    }
    switch (field.id) {
    @@ -12903,7 +12903,7 @@ public class ThriftHiveMetastore {
    if (field.type == org.apache.thrift.protocol.TType.BOOL) {
    this.success = iprot.readBool();
    setSuccessIsSet(true);
    - } else {
    + } else {
    org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
    }
    break;
    @@ -12911,7 +12911,7 @@ public class ThriftHiveMetastore {
    if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
    this.o1 = new MetaException();
    this.o1.read(iprot);
    - } else {
    + } else {
    org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
    }
    break;
    @@ -12919,7 +12919,7 @@ public class ThriftHiveMetastore {
    if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
    this.o2 = new NoSuchObjectException();
    this.o2.read(iprot);
    - } else {
    + } else {
    org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
    }
    break;
    @@ -13072,7 +13072,7 @@ public class ThriftHiveMetastore {
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
    static {
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
    - tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT,
    + tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT,
    new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
    metaDataMap = Collections.unmodifiableMap(tmpMap);
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_type_all_args.class, metaDataMap);
    @@ -13225,14 +13225,14 @@ public class ThriftHiveMetastore {
    while (true)
    {
    field = iprot.readFieldBegin();
    - if (field.type == org.apache.thrift.protocol.TType.STOP) {
    + if (field.type == org.apache.thrift.protocol.TType.STOP) {
    break;
    }
    switch (field.id) {
    case 1: // NAME
    if (field.type == org.apache.thrift.protocol.TType.STRING) {
    this.name = iprot.readString();
    - } else {
    + } else {
    org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
    }
    break;
    @@ -13371,11 +13371,11 @@ public class ThriftHiveMetastore {
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
    static {
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
    - tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
    - new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP,
    - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING),
    + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
    + new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP,
    + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING),
    new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Type.class))));
    - tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT,
    + tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT,
    new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
    metaDataMap = Collections.unmodifiableMap(tmpMap);
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_type_all_result.class, metaDataMap);
    @@ -13612,27 +13612,27 @@ public class ThriftHiveMetastore {
    while (true)
    {
    field = iprot.readFieldBegin();
    - if (field.type == org.apache.thrift.protocol.TType.STOP) {
    + if (field.type == org.apache.thrift.protocol.TType.STOP) {
    break;
    }
    switch (field.id) {
    case 0: // SUCCESS
    if (field.type == org.apache.thrift.protocol.TType.MAP) {
    {
    - org.apache.thrift.protocol.TMap _map106 = iprot.readMapBegin();
    - this.success = new HashMap<String,Type>(2*_map106.size);
    - for (int _i107 = 0; _i107 < _map106.size; ++_i107)
    + org.apache.thrift.protocol.TMap _map110 = iprot.readMapBegin();
    + this.success = new HashMap<String,Type>(2*_map110.size);
    + for (int _i111 = 0; _i111 < _map110.size; ++_i111)
    {
    - String _key108; // required
    - Type _val109; // required
    - _key108 = iprot.readString();
    - _val109 = new Type();
    - _val109.read(iprot);
    - this.success.put(_key108, _val109);
    + String _key112; // required
    + Type _val113; // required
    + _key112 = iprot.readString();
    + _val113 = new Type();
    + _val113.read(iprot);
    + this.success.put(_key112, _val113);
    }
    iprot.readMapEnd();
    }
    - } else {
    + } else {
    org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
    }
    break;
    @@ -13640,7 +13640,7 @@ public class ThriftHiveMetastore {
    if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
    this.o2 = new MetaException();
    this.o2.read(iprot);
    - } else {
    + } else {
    org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
    }
    break;
    @@ -13660,10 +13660,10 @@ public class ThriftHiveMetastore {
    oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
    {
    oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
    - for (Map.Entry<String, Type> _iter110 : this.success.entrySet())
    + for (Map.Entry<String, Type> _iter114 : this.success.entrySet())
    {
    - oprot.writeString(_iter110.getKey());
    - _iter110.getValue().write(oprot);
    + oprot.writeString(_iter114.getKey());
    + _iter114.getValue().write(oprot);
    }
    oprot.writeMapEnd();
    }
    @@ -13798,9 +13798,9 @@ public class ThriftHiveMetastore {
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
    static {
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
    - tmpMap.put(_Fields.DB_NAME, new org.apache.thrift.meta_data.FieldMetaData("db_name", org.apache.thrift.TFieldRequirementType.DEFAULT,
    + tmpMap.put(_Fields.DB_NAME, new org.apache.thrift.meta_data.FieldMetaData("db_name", org.apache.thrift.TFieldRequirementType.DEFAULT,
    new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
    - tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("table_name", org.apache.thrift.TFieldRequirementType.DEFAULT,
    + tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("table_name", org.apache.thrift.TFieldRequirementType.DEFAULT,
    new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
    metaDataMap = Collections.unmodifiableMap(tmpMap);
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_fields_args.class, metaDataMap);
    @@ -14014,21 +14014,21 @@ public class ThriftHiveMetastore {
    while (true)
    {
    field = iprot.readFieldBegin();
    - if (field.type == org.apache.thrift.protocol.TType.STOP) {
    + if (field.type == org.apache.thrift.protocol.TType.STOP) {
    break;
    }
    switch (field.id) {
    case 1: // DB_NAME
    if (field.type == org.apache.thrift.protocol.TType.STRING) {
    this.db_name = iprot.readString();
    - } else {
    + } else {
    org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
    }
    break;
    case 2: // TABLE_NAME
    if (field.type == org.apache.thrift.protocol.TType.STRING) {
    this.table_name = iprot.readString();
    - } else {
    + } else {
    org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
    }
    break;
    @@ -14190,14 +14190,14 @@ public class ThriftHiveMetastore {
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
    static {
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
    - tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
    - new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
    + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
    + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
    new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, FieldSchema.class))));
    - tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT,
    + tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT,
    new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
    - tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT,
    + tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT,
    new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
    - tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT,
    + tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT,
    new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
    metaDataMap = Collections.unmodifiableMap(tmpMap);
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_fields_result.class, metaDataMap);
    @@ -14552,25 +14552,25 @@ public class ThriftHiveMetastore {
    while (true)
    {
    field = iprot.readFieldBegin();
    - if (field.type == org.apache.thrift.protocol.TType.STOP) {
    + if (field.type == org.apache.thrift.protocol.TType.STOP) {
    break;
    }
    switch (field.id) {
    case 0: // SUCCESS
    if (field.type == org.apache.thrift.protocol.TType.LIST) {
    {
    - org.apache.thrift.protocol.TList _list111 = iprot.readListBegin();
    - this.success = new ArrayList<FieldSchema>(_list111.size);
    - for (int _i112 = 0; _i112 < _list111.size; ++_i112)
    + org.apache.thrift.protocol.TList _list115 = iprot.readListBegin();
    + this.success = new ArrayList<FieldSchema>(_list115.size);
    + for (int _i116 = 0; _i116 < _list115.size; ++_i116)
    {
    - FieldSchema _elem113; // required
    - _elem113 = new FieldSchema();
    - _elem113.read(iprot);
    - this.success.add(_elem113);
    + FieldSchema _elem117; // required
    + _elem117 = new FieldSchema();
    + _elem117.read(iprot);
    + this.success.add(_elem117);
    }
    iprot.readListEnd();
    }
    - } else {
    + } else {
    org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
    }
    break;
    @@ -14578,7 +14578,7 @@ public class ThriftHiveMetastore {
    if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
    this.o1 = new MetaException();
    this.o1.read(iprot);
    - } else {
    + } else {
    org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
    }
    break;
    @@ -14586,7 +14586,7 @@ public class ThriftHiveMetastore {
    if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
    this.o2 = new UnknownTableException();
    this.o2.read(iprot);
    - } else {
    + } else {
    org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
    }
    break;
    @@ -14594,7 +14594,7 @@ public class ThriftHiveMetastore {
    if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
    this.o3 = new UnknownDBException();
    this.o3.read(iprot);
    - } else {
    + } else {
    org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
    }
    break;
    @@ -14614,9 +14614,9 @@ public class ThriftHiveMetastore {
    oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
    {
    oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
    - for (FieldSchema _iter114 : this.success)
    + for (FieldSchema _iter118 : this.success)
    {
    - _iter114.write(oprot);
    + _iter118.write(oprot);
    }
    oprot.writeListEnd();
    }
    @@ -14775,9 +14775,9 @@ public class ThriftHiveMetastore {
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
    static {
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
    - tmpMap.put(_Fields.DB_NAME, new org.apache.thrift.meta_data.FieldMetaData("db_name", org.apache.thrift.TFieldRequirementType.DEFAULT,
    + tmpMap.put(_Fields.DB_NAME, new org.apache.thrift.meta_data.FieldMetaData("db_name", org.apache.thrift.TFieldRequirementType.DEFAULT,
    new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
    - tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("table_name", org.apache.thrift.TFieldRequirementType.DEFAULT,
    + tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("table_name", org.apache.thrift.TFieldRequirementType.DEFAULT,
    new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
    metaDataMap = Collections.unmodifiableMap(tmpMap);
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_schema_args.class, metaDataMap);
    @@ -14991,21 +14991,21 @@ public class ThriftHiveMetastore {
    while (true)
    {
    field = iprot.readFieldBegin();
    - if (field.type == org.apache.thrift.protocol.TType.STOP) {
    + if (field.type == org.apache.thrift.protocol.TType.STOP) {
    break;
    }
    switch (field.id) {
    case 1: // DB_NAME
    if (field.type == org.apache.thrift.protocol.TType.STRING) {
    this.db_name = iprot.readString();
    - } else {
    + } else {
    org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
    }
    break;
    case 2: // TABLE_NAME
    if (field.type == org.apache.thrift.protocol.TType.STRING) {
    this.table_name = iprot.readString();
    - } else {
    + } else {
    org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
    }
    break;
    @@ -15167,14 +15167,14 @@ public class ThriftHiveMetastore {
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
    static {
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
    - tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
    - new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
    + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
    + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
    new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, FieldSchema.class))));
    - tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT,
    + tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT,
    new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
    - tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT,
    + tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT,
    new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
    - tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT,
    + tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT,
    new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
    metaDataMap = Collections.unmodifiableMap(tmpMap);
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_schema_result.class, metaDataMap);
    @@ -15529,25 +15529,25 @@ public class ThriftHiveMetastore {
    while (true)
    {
    field = iprot.readFieldBegin();
    - if (field.type == org.apache.thrift.protocol.TType.STOP) {
    + if (field.type == org.apache.thrift.protocol.TType.STOP) {
    break;
    }
    switch (field.id) {
    case 0: // SUCCESS
    if (field.type == org.apache.thrift.protocol.TType.LIST) {
    {
    - org.apache.thrift.protocol.TList _list115 = iprot.readListBegin();
    - this.success = new ArrayList<FieldSchema>(_list115.size);
    - for (int _i116 = 0; _i116 < _list115.size; ++_i116)
    + org.apache.thrift.protocol.TList _list119 = iprot.readListBegin();
    + this.success = new ArrayList<FieldSchema>(_list119.size);
    + for (int _i120 = 0; _i120 < _list119.size; ++_i120)
    {
    - FieldSchema _elem117; // required
    - _elem117 = new FieldSchema();
    - _elem117.read(iprot);
    - this.success.add(_elem117);
    + FieldSchema _elem121; // required
    + _elem121 = new FieldSchema();
    + _elem121.read(iprot);
    + this.success.add(_elem121);
    }
    iprot.readListEnd();
    }
    - } else {
    + } else {
    org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
    }
    break;
    @@ -15555,7 +15555,7 @@ public class ThriftHiveMetastore {
    if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
    this.o1 = new MetaException();
    this.o1.read(iprot);
    - } else {
    + } else {
    org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
    }
    break;
    @@ -15563,7 +15563,7 @@ public class ThriftHiveMetastore {
    if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
    this.o2 = new UnknownTableException();
    this.o2.read(iprot);
    - } else {
    + } else {
    org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
    }
    break;
    @@ -15571,7 +15571,7 @@ public class ThriftHiveMetastore {
    if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
    this.o3 = new UnknownDBException();
    this.o3.read(iprot);
    - } else {
    + } else {
    org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
    }
    break;
    @@ -15591,9 +15591,9 @@ public class ThriftHiveMetastore {
    oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
    {
    oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
    - for (FieldSchema _iter118 : this.success)
    + for (FieldSchema _iter122 : this.success)
    {
    - _iter118.write(oprot);
    + _iter122.write(oprot);
    }
    oprot.writeListEnd();
    }
    @@ -15747,7 +15747,7 @@ public class ThriftHiveMetastore {
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
    static {
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
    - tmpMap.put(_Fields.TBL, new org.apache.thrift.meta_data.FieldMetaData("tbl", org.apache.thrift.TFieldRequirementType.DEFAULT,
    + tmpMap.put(_Fields.TBL, new org.apache.thrift.meta_data.FieldMetaData("tbl", org.apache.thrift.TFieldRequirementType.DEFAULT,
    new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Table.class)));
    metaDataMap = Collections.unmodifiableMap(tmpMap);
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(create_table_args.class, metaDataMap);
    @@ -15900,7 +15900,7 @@ public class ThriftHiveMetastore {
    while (true)
    {
    field = iprot.readFieldBegin();
    - if (field.type == org.apache.thrift.protocol.TType.STOP) {
    + if (field.type == org.apache.thrift.protocol.TType.STOP) {
    break;
    }
    switch (field.id) {
    @@ -15908,7 +15908,7 @@ public class ThriftHiveMetastore {
    if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
    this.tbl = new Table();
    this.tbl.read(iprot);
    - } else {
    + } else {
    org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
    }
    break;
    @@ -16057,13 +16057,13 @@ public class ThriftHiveMetastore {
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
    static {
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
    - tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT,
    + tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT,
    new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
    - tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT,
    + tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT,
    new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
    - tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT,
    + tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT,
    new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
    - tmpMap.put(_Fields.O4, new org.apache.thrift.meta_data.FieldMetaData("o4", org.apache.thrift.TFieldRequirementType.DEFAULT,
    + tmpMap.put(_Fields.O4, new org.apache.thrift.meta_data.FieldMetaData("o4", org.apache.thrift.TFieldRequirementType.DEFAULT,
    new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
    metaDataMap = Collections.unmodifiableMap(tmpMap);
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(create_table_result.class, metaDataMap);
    @@ -16399,7 +16399,7 @@ public class ThriftHiveMetastore {
    while (true)
    {
    field = iprot.readFieldBegin();
    - if (field.type == org.apache.thrift.protocol.TType.STOP) {
    + if (field.type == org.apache.thrift.protocol.TType.STOP) {
    break;
    }
    switch (field.id) {
    @@ -16407,7 +16407,7 @@ public class ThriftHiveMetastore {
    if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
    this.o1 = new AlreadyExistsException();
    this.o1.read(iprot);
    - } else {
    + } else {
    org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
    }
    break;
    @@ -16415,7 +16415,7 @@ public class ThriftHiveMetastore {
    if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
    this.o2 = new InvalidObjectException();
    this.o2.read(iprot);
    - } else {
    + } else {
    org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
    }
    break;
    @@ -16423,7 +16423,7 @@ public class ThriftHiveMetastore {
    if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
    this.o3 = new MetaException();
    this.o3.read(iprot);
    - } else {
    + } else {
    org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
    }
    break;
    @@ -16431,7 +16431,7 @@ public class ThriftHiveMetastore {
    if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
    this.o4 = new NoSuchObjectException();
    this.o4.read(iprot);
    - } else {
    + } else {
    org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
    }
    break;
    @@ -16612,11 +16612,11 @@ public class ThriftHiveMetastore {
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
    static {
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
    - tmpMap.put(_Fields.DBNAME, new org.apache.thrift.meta_data.FieldMetaData("dbname", org.apache.thrift.TFieldRequirementType.DEFAULT,
    + tmpMap.put(_Fields.DBNAME, new org.apache.thrift.meta_data.FieldMetaData("dbname", org.apache.thrift.TFieldRequirementType.DEFAULT,
    new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
    - tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT,
    + tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT,
    new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
    - tmpMap.put(_Fields.DELETE_DATA, new org.apache.thrift.meta_data.FieldMetaData("deleteData", org.apache.thrift.TFieldRequirementType.DEFAULT,
    + tmpMap.put(_Fields.DELETE_DATA, new org.apache.thrift.meta_data.FieldMetaData("deleteData", org.apache.thrift.TFieldRequirementType.DEFAULT,
    new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
    metaDataMap = Collections.unmodifiableMap(tmpMap);
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_table_args.class, metaDataMap);
    @@ -16892,21 +16892,21 @@ public class ThriftHiveMetastore {
    while (true)
    {
    field = iprot.readFieldBegin();
    - if (field.type == org.apache.thrift.protocol.TType.STOP) {
    + if (field.type == org.apache.thrift.protocol.TType.STOP) {
    break;
    }
    switch (field.id) {
    case 1: // DBNAME
    if (field.type == org.apache.thrift.protocol.TType.STRING) {
    this.dbname = iprot.readString();
    - } else {
    + } else {
    org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
    }
    break;
    case 2: // NAME
    if (field.type == org.apache.thrift.protocol.TType.STRING) {
    this.name = iprot.readString();
    - } else {
    + } else {
    org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
    }
    break;
    @@ -16914,7 +16914,7 @@ public class ThriftHiveMetastore {
    if (field.type == org.apache.thrift.protocol.TType.BOOL) {
    this.deleteData = iprot.readBool();
    setDeleteDataIsSet(true);
    - } else {
    + } else {
    org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
    }
    break;
    @@ -17075,9 +17075,9 @@ public class ThriftHiveMetastore {
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
    static {
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
    - tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT,
    + tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT,
    new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
    - tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT,
    + tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT,
    new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
    metaDataMap = Collections.unmodifiableMap(tmpMap);
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_table_result.class, metaDataMap);
    @@ -17291,7 +17291,7 @@ public class ThriftHiveMetastore {
    while (true)
    {
    field = iprot.readFieldBegin();
    - if (field.type == org.apache.thrift.protocol.TType.STOP) {
    + if (field.type == org.apache.thrift.protocol.TType.STOP) {
    break;
    }
    switch (field.id) {
    @@ -17299,7 +17299,7 @@ public class ThriftHiveMetastore {
    if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
    this.o1 = new NoSuchObjectException();
    this.o1.read(iprot);
    - } else {
    + } else {
    org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
    }
    break;
    @@ -17307,7 +17307,7 @@ public class ThriftHiveMetastore {
    if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
    this.o3 = new MetaException();
    this.o3.read(iprot);
    - } else {
    + } else {
    org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
    }
    break;
    @@ -17457,9 +17457,9 @@ public class ThriftHiveMetastore {
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
    static {
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
    - tmpMap.put(_Fields.DB_NAME, new org.apache.thrift.meta_data.FieldMetaData("db_name", org.apache.thrift.TFieldRequirementType.DEFAULT,
    + tmpMap.put(_Fields.DB_NAME, new org.apache.thrift.meta_data.FieldMetaData("db_name", org.apache.thrift.TFieldRequirementType.DEFAULT,
    new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
    - tmpMap.put(_Fields.PATTERN, new org.apache.thrift.meta_data.FieldMetaData("pattern", org.apache.thrift.TFieldRequirementType.DEFAULT,
    + tmpMap.put(_Fields.PATTERN, new org.apache.thrift.meta_data.FieldMetaData("pattern", org.apache.thrift.TFieldRequirementType.DEFAULT,
    new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
    metaDataMap = Collections.unmodifiableMap(tmpMap);
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_tables_args.class, metaDataMap);
    @@ -17673,21 +17673,21 @@ public class ThriftHiveMetastore {
    while (true)
    {
    field = iprot.readFieldBegin();
    - if (field.type == org.apache.thrift.protocol.TType.STOP) {
    + if (field.type == org.apache.thrift.protocol.TType.STOP) {
    break;
    }
    switch (field.id) {
    case 1: // DB_NAME
    if (field.type == org.apache.thrift.protocol.TType.STRING) {
    this.db_name = iprot.readString();
    - } else {
    + } else {
    org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
    }
    break;
    case 2: // PATTERN
    if (field.type == org.apache.thrift.protocol.TType.STRING) {
    this.pattern = iprot.readString();
    - } else {
    + } else {
    org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
    }
    break;
    @@ -17839,10 +17839,10 @@ public class ThriftHiveMetastore {
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
    static {
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
    - tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
    - new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
    + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
    + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
    new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
    - tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT,
    + tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT,
    new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
    metaDataMap = Collections.unmodifiableMap(tmpMap);
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_tables_result.class, metaDataMap);
    @@ -18075,24 +18075,24 @@ public class ThriftHiveMetastore {
    while (true)
    {
    field = iprot.readFieldBegin();
    - if (field.type == org.apache.thrift.protocol.TType.STOP) {
    + if (field.type == org.apache.thrift.protocol.TType.STOP) {
    break;
    }
    switch (field.id) {
    case 0: // SUCCESS
    if (field.type == org.apache.thrift.protocol.TType.LIST) {
    {
    - org.apache.thrift.protocol.TList _list119 = iprot.readListBegin();
    - this.success = new ArrayList<String>(_list119.size);
    - for (int _i120 = 0; _i120 < _list119.size; ++_i120)
    + org.apache.thrift.protocol.TList _list123 = iprot.readListBegin();
    + this.success = new ArrayList<String>(_list123.size);
    + for (int _i124 = 0; _i124 < _list123.size; ++_i124)
    {
    - String _elem121; // required
    - _elem121 = iprot.readString();
    - this.success.add(_elem121);
    + String _elem125; // required
    + _elem125 = iprot.readString();
    + this.success.add(_elem125);
    }
    iprot.readListEnd();
    }
    - } else {
    + } else {
    org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
    }
    break;
    @@ -18100,7 +18100,7 @@ public class ThriftHiveMetastore {
    if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
    this.o1 = new MetaException();
    this.o1.read(iprot);
    - } else {
    + } else {
    org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
    }
    break;
    @@ -18120,9 +18120,9 @@ public class ThriftHiveMetastore {
    oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
    {
    oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
    - for (String _iter122 : this.success)
    + for (String _iter126 : this.success)
    {
    - oprot.writeString(_iter122);
    + oprot.writeString(_iter126);
    }
    oprot.writeListEnd();
    }
    @@ -18252,7 +18252,7 @@ public class ThriftHiveMetastore {
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
    static {
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
    - tmpMap.put(_Fields.DB_NAME, new org.apache.thrift.meta_data.FieldMetaData("db_name", org.apache.thrift.TFieldRequirementType.DEFAULT,
    + tmpMap.put(_Fields.DB_NAME, new org.apache.thrift.meta_data.FieldMetaData("db_name", org.apache.thrift.TFieldRequirementType.DEFAULT,
    new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
    metaDataMap = Collections.unmodifiableMap(tmpMap);
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_all_tables_args.class, metaDataMap);
    @@ -18405,14 +18405,14 @@ public class ThriftHiveMetastore {
    while (true)
    {
    field = iprot.readFieldBegin();
    - if (field.type == org.apache.thrift.protocol.TType.STOP) {
    + if (field.type == org.apache.thrift.protocol.TType.STOP) {
    break;
    }
    switch (field.id) {
    case 1: // DB_NAME
    if (field.type == org.apache.thrift.protocol.TType.STRING) {
    this.db_name = iprot.readString();
    - } else {
    + } else {
    org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
    }
    break;
    @@ -18551,10 +18551,10 @@ public class ThriftHiveMetastore {
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
    static {
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
    - tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
    - new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
    + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
    + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
    new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
    - tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT,
    + tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT,
    new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
    metaDataMap = Collections.unmodifiableMap(tmpMap);
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_all_tables_result.class, metaDataMap);
    @@ -18787,24 +18787,24 @@ public class ThriftHiveMetastore {
    while (true)
    {
    field = iprot.readFieldBegin();
    - if (field.type == org.apache.thrift.protocol.TType.STOP) {
    + if (field.type == org.apache.thrift.protocol.TType.STOP) {
    break;
    }
    switch (field.id) {
    case 0: // SUCCESS
    if (field.type == org.apache.thrift.protocol.TType.LIST) {
    {
    - org.apache.thrift.protocol.TList _list123 = iprot.readListBegin();
    - this.success = new ArrayList<String>(_list123.size);
    - for (int _i124 = 0; _i124 < _list123.size; ++_i124)
    + org.apache.thrift.protocol.TList _list127 = iprot.readListBegin();
    + this.success = new ArrayList<String>(_list127.size);
    + for (int _i128 = 0; _i128 < _list127.size; ++_i128)
    {
    - String _elem125; // required
    - _elem125 = iprot.readString();
    - this.success.add(_elem125);
    + String _elem129; // required
    + _elem129 = iprot.readString();
    + this.success.add(_elem129);
    }
    iprot.readListEnd();
    }
    - } else {
    + } else {
    org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
    }
    break;
    @@ -18812,7 +18812,7 @@ public class ThriftHiveMetastore {
    if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
    this.o1 = new MetaException();
    this.o1.read(iprot);
    - } else {
    + } else {
    org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
    }
    break;
    @@ -18832,9 +18832,9 @@ public class ThriftHiveMetastore {
    oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
    {
    oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
    - for (String _iter126 : this.success)
    + for (String _iter130 : this.success)
    {
    - oprot.writeString(_iter126);
    + oprot.writeString(_iter130);
    }
    oprot.writeListEnd();
    }
    @@ -18969,9 +18969,9 @@ public class ThriftHiveMetastore {
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
    static {
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
    - tmpMap.put(_Fields.DBNAME, new org.apache.thrift.meta_data.FieldMetaData("dbname", org.apache.thrift.TFieldRequirementType.DEFAULT,
    + tmpMap.put(_Fields.DBNAME, new org.apache.thrift.meta_data.FieldMetaData("dbname", org.apache.thrift.TFieldRequirementType.DEFAULT,
    new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
    - tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT,
    + tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT,
    new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
    metaDataMap = Collections.unmodifiableMap(tmpMap);
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_table_args.class, metaDataMap);
    @@ -19185,21 +19185,21 @@ public class ThriftHiveMetastore {
    while (true)
    {
    field = iprot.readFieldBegin();
    - if (field.type == org.apache.thrift.protocol.TType.STOP) {
    + if (field.type == org.apache.thrift.protocol.TType.STOP) {
    break;
    }
    switch (field.id) {
    case 1: // DBNAME
    if (field.type == org.apache.thrift.protocol.TType.STRING) {
    this.dbname = iprot.readString();
    - } else {
    + } else {
    org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
    }
    break;
    case 2: // TBL_NAME
    if (field.type == org.apache.thrift.protocol.TType.STRING) {
    this.tbl_name = iprot.readString();
    - } else {
    + } else {

    [... 5731 lines stripped ...]
  • Namit at Feb 11, 2012 at 7:50 am
    Added: hive/trunk/metastore/src/gen/thrift/gen-php/ThriftHiveMetastore.php
    URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/gen/thrift/gen-php/ThriftHiveMetastore.php?rev=1243013&view=auto
    ==============================================================================
    --- hive/trunk/metastore/src/gen/thrift/gen-php/ThriftHiveMetastore.php (added)
    +++ hive/trunk/metastore/src/gen/thrift/gen-php/ThriftHiveMetastore.php Sat Feb 11 07:49:28 2012
    @@ -0,0 +1,18732 @@
    +<?php
    +/**
    + * Autogenerated by Thrift
    + *
    + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
    + */
    +include_once $GLOBALS['THRIFT_ROOT'].'/Thrift.php';
    +
    +include_once $GLOBALS['THRIFT_ROOT'].'/packages/hive_metastore/hive_metastore_types.php';
    +include_once $GLOBALS['THRIFT_ROOT'].'/packages/fb303/FacebookService.php';
    +
    +interface ThriftHiveMetastoreIf extends FacebookServiceIf {
    + public function create_database($database);
    + public function get_database($name);
    + public function drop_database($name, $deleteData, $cascade);
    + public function get_databases($pattern);
    + public function get_all_databases();
    + public function alter_database($dbname, $db);
    + public function get_type($name);
    + public function create_type($type);
    + public function drop_type($type);
    + public function get_type_all($name);
    + public function get_fields($db_name, $table_name);
    + public function get_schema($db_name, $table_name);
    + public function create_table($tbl);
    + public function drop_table($dbname, $name, $deleteData);
    + public function get_tables($db_name, $pattern);
    + public function get_all_tables($db_name);
    + public function get_table($dbname, $tbl_name);
    + public function get_table_objects_by_name($dbname, $tbl_names);
    + public function get_table_names_by_filter($dbname, $filter, $max_tables);
    + public function alter_table($dbname, $tbl_name, $new_tbl);
    + public function add_partition($new_part);
    + public function add_partitions($new_parts);
    + public function append_partition($db_name, $tbl_name, $part_vals);
    + public function append_partition_by_name($db_name, $tbl_name, $part_name);
    + public function drop_partition($db_name, $tbl_name, $part_vals, $deleteData);
    + public function drop_partition_by_name($db_name, $tbl_name, $part_name, $deleteData);
    + public function get_partition($db_name, $tbl_name, $part_vals);
    + public function get_partition_with_auth($db_name, $tbl_name, $part_vals, $user_name, $group_names);
    + public function get_partition_by_name($db_name, $tbl_name, $part_name);
    + public function get_partitions($db_name, $tbl_name, $max_parts);
    + public function get_partitions_with_auth($db_name, $tbl_name, $max_parts, $user_name, $group_names);
    + public function get_partition_names($db_name, $tbl_name, $max_parts);
    + public function get_partitions_ps($db_name, $tbl_name, $part_vals, $max_parts);
    + public function get_partitions_ps_with_auth($db_name, $tbl_name, $part_vals, $max_parts, $user_name, $group_names);
    + public function get_partition_names_ps($db_name, $tbl_name, $part_vals, $max_parts);
    + public function get_partitions_by_filter($db_name, $tbl_name, $filter, $max_parts);
    + public function get_partitions_by_names($db_name, $tbl_name, $names);
    + public function alter_partition($db_name, $tbl_name, $new_part);
    + public function rename_partition($db_name, $tbl_name, $part_vals, $new_part);
    + public function get_config_value($name, $defaultValue);
    + public function partition_name_to_vals($part_name);
    + public function partition_name_to_spec($part_name);
    + public function markPartitionForEvent($db_name, $tbl_name, $part_vals, $eventType);
    + public function isPartitionMarkedForEvent($db_name, $tbl_name, $part_vals, $eventType);
    + public function add_index($new_index, $index_table);
    + public function alter_index($dbname, $base_tbl_name, $idx_name, $new_idx);
    + public function drop_index_by_name($db_name, $tbl_name, $index_name, $deleteData);
    + public function get_index_by_name($db_name, $tbl_name, $index_name);
    + public function get_indexes($db_name, $tbl_name, $max_indexes);
    + public function get_index_names($db_name, $tbl_name, $max_indexes);
    + public function create_role($role);
    + public function drop_role($role_name);
    + public function get_role_names();
    + public function grant_role($role_name, $principal_name, $principal_type, $grantor, $grantorType, $grant_option);
    + public function revoke_role($role_name, $principal_name, $principal_type);
    + public function list_roles($principal_name, $principal_type);
    + public function get_privilege_set($hiveObject, $user_name, $group_names);
    + public function list_privileges($principal_name, $principal_type, $hiveObject);
    + public function grant_privileges($privileges);
    + public function revoke_privileges($privileges);
    + public function set_ugi($user_name, $group_names);
    + public function get_delegation_token($token_owner, $renewer_kerberos_principal_name);
    + public function renew_delegation_token($token_str_form);
    + public function cancel_delegation_token($token_str_form);
    +}
    +
    +class ThriftHiveMetastoreClient extends FacebookServiceClient implements ThriftHiveMetastoreIf {
    + public function __construct($input, $output=null) {
    + parent::__construct($input, $output);
    + }
    +
    + public function create_database($database)
    + {
    + $this->send_create_database($database);
    + $this->recv_create_database();
    + }
    +
    + public function send_create_database($database)
    + {
    + $args = new metastore_ThriftHiveMetastore_create_database_args();
    + $args->database = $database;
    + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
    + if ($bin_accel)
    + {
    + thrift_protocol_write_binary($this->output_, 'create_database', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
    + }
    + else
    + {
    + $this->output_->writeMessageBegin('create_database', TMessageType::CALL, $this->seqid_);
    + $args->write($this->output_);
    + $this->output_->writeMessageEnd();
    + $this->output_->getTransport()->flush();
    + }
    + }
    +
    + public function recv_create_database()
    + {
    + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
    + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_create_database_result', $this->input_->isStrictRead());
    + else
    + {
    + $rseqid = 0;
    + $fname = null;
    + $mtype = 0;
    +
    + $this->input_->readMessageBegin($fname, $mtype, $rseqid);
    + if ($mtype == TMessageType::EXCEPTION) {
    + $x = new TApplicationException();
    + $x->read($this->input_);
    + $this->input_->readMessageEnd();
    + throw $x;
    + }
    + $result = new metastore_ThriftHiveMetastore_create_database_result();
    + $result->read($this->input_);
    + $this->input_->readMessageEnd();
    + }
    + if ($result->o1 !== null) {
    + throw $result->o1;
    + }
    + if ($result->o2 !== null) {
    + throw $result->o2;
    + }
    + if ($result->o3 !== null) {
    + throw $result->o3;
    + }
    + return;
    + }
    +
    + public function get_database($name)
    + {
    + $this->send_get_database($name);
    + return $this->recv_get_database();
    + }
    +
    + public function send_get_database($name)
    + {
    + $args = new metastore_ThriftHiveMetastore_get_database_args();
    + $args->name = $name;
    + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
    + if ($bin_accel)
    + {
    + thrift_protocol_write_binary($this->output_, 'get_database', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
    + }
    + else
    + {
    + $this->output_->writeMessageBegin('get_database', TMessageType::CALL, $this->seqid_);
    + $args->write($this->output_);
    + $this->output_->writeMessageEnd();
    + $this->output_->getTransport()->flush();
    + }
    + }
    +
    + public function recv_get_database()
    + {
    + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
    + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_get_database_result', $this->input_->isStrictRead());
    + else
    + {
    + $rseqid = 0;
    + $fname = null;
    + $mtype = 0;
    +
    + $this->input_->readMessageBegin($fname, $mtype, $rseqid);
    + if ($mtype == TMessageType::EXCEPTION) {
    + $x = new TApplicationException();
    + $x->read($this->input_);
    + $this->input_->readMessageEnd();
    + throw $x;
    + }
    + $result = new metastore_ThriftHiveMetastore_get_database_result();
    + $result->read($this->input_);
    + $this->input_->readMessageEnd();
    + }
    + if ($result->success !== null) {
    + return $result->success;
    + }
    + if ($result->o1 !== null) {
    + throw $result->o1;
    + }
    + if ($result->o2 !== null) {
    + throw $result->o2;
    + }
    + throw new Exception("get_database failed: unknown result");
    + }
    +
    + public function drop_database($name, $deleteData, $cascade)
    + {
    + $this->send_drop_database($name, $deleteData, $cascade);
    + $this->recv_drop_database();
    + }
    +
    + public function send_drop_database($name, $deleteData, $cascade)
    + {
    + $args = new metastore_ThriftHiveMetastore_drop_database_args();
    + $args->name = $name;
    + $args->deleteData = $deleteData;
    + $args->cascade = $cascade;
    + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
    + if ($bin_accel)
    + {
    + thrift_protocol_write_binary($this->output_, 'drop_database', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
    + }
    + else
    + {
    + $this->output_->writeMessageBegin('drop_database', TMessageType::CALL, $this->seqid_);
    + $args->write($this->output_);
    + $this->output_->writeMessageEnd();
    + $this->output_->getTransport()->flush();
    + }
    + }
    +
    + public function recv_drop_database()
    + {
    + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
    + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_drop_database_result', $this->input_->isStrictRead());
    + else
    + {
    + $rseqid = 0;
    + $fname = null;
    + $mtype = 0;
    +
    + $this->input_->readMessageBegin($fname, $mtype, $rseqid);
    + if ($mtype == TMessageType::EXCEPTION) {
    + $x = new TApplicationException();
    + $x->read($this->input_);
    + $this->input_->readMessageEnd();
    + throw $x;
    + }
    + $result = new metastore_ThriftHiveMetastore_drop_database_result();
    + $result->read($this->input_);
    + $this->input_->readMessageEnd();
    + }
    + if ($result->o1 !== null) {
    + throw $result->o1;
    + }
    + if ($result->o2 !== null) {
    + throw $result->o2;
    + }
    + if ($result->o3 !== null) {
    + throw $result->o3;
    + }
    + return;
    + }
    +
    + public function get_databases($pattern)
    + {
    + $this->send_get_databases($pattern);
    + return $this->recv_get_databases();
    + }
    +
    + public function send_get_databases($pattern)
    + {
    + $args = new metastore_ThriftHiveMetastore_get_databases_args();
    + $args->pattern = $pattern;
    + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
    + if ($bin_accel)
    + {
    + thrift_protocol_write_binary($this->output_, 'get_databases', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
    + }
    + else
    + {
    + $this->output_->writeMessageBegin('get_databases', TMessageType::CALL, $this->seqid_);
    + $args->write($this->output_);
    + $this->output_->writeMessageEnd();
    + $this->output_->getTransport()->flush();
    + }
    + }
    +
    + public function recv_get_databases()
    + {
    + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
    + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_get_databases_result', $this->input_->isStrictRead());
    + else
    + {
    + $rseqid = 0;
    + $fname = null;
    + $mtype = 0;
    +
    + $this->input_->readMessageBegin($fname, $mtype, $rseqid);
    + if ($mtype == TMessageType::EXCEPTION) {
    + $x = new TApplicationException();
    + $x->read($this->input_);
    + $this->input_->readMessageEnd();
    + throw $x;
    + }
    + $result = new metastore_ThriftHiveMetastore_get_databases_result();
    + $result->read($this->input_);
    + $this->input_->readMessageEnd();
    + }
    + if ($result->success !== null) {
    + return $result->success;
    + }
    + if ($result->o1 !== null) {
    + throw $result->o1;
    + }
    + throw new Exception("get_databases failed: unknown result");
    + }
    +
    + public function get_all_databases()
    + {
    + $this->send_get_all_databases();
    + return $this->recv_get_all_databases();
    + }
    +
    + public function send_get_all_databases()
    + {
    + $args = new metastore_ThriftHiveMetastore_get_all_databases_args();
    + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
    + if ($bin_accel)
    + {
    + thrift_protocol_write_binary($this->output_, 'get_all_databases', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
    + }
    + else
    + {
    + $this->output_->writeMessageBegin('get_all_databases', TMessageType::CALL, $this->seqid_);
    + $args->write($this->output_);
    + $this->output_->writeMessageEnd();
    + $this->output_->getTransport()->flush();
    + }
    + }
    +
    + public function recv_get_all_databases()
    + {
    + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
    + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_get_all_databases_result', $this->input_->isStrictRead());
    + else
    + {
    + $rseqid = 0;
    + $fname = null;
    + $mtype = 0;
    +
    + $this->input_->readMessageBegin($fname, $mtype, $rseqid);
    + if ($mtype == TMessageType::EXCEPTION) {
    + $x = new TApplicationException();
    + $x->read($this->input_);
    + $this->input_->readMessageEnd();
    + throw $x;
    + }
    + $result = new metastore_ThriftHiveMetastore_get_all_databases_result();
    + $result->read($this->input_);
    + $this->input_->readMessageEnd();
    + }
    + if ($result->success !== null) {
    + return $result->success;
    + }
    + if ($result->o1 !== null) {
    + throw $result->o1;
    + }
    + throw new Exception("get_all_databases failed: unknown result");
    + }
    +
    + public function alter_database($dbname, $db)
    + {
    + $this->send_alter_database($dbname, $db);
    + $this->recv_alter_database();
    + }
    +
    + public function send_alter_database($dbname, $db)
    + {
    + $args = new metastore_ThriftHiveMetastore_alter_database_args();
    + $args->dbname = $dbname;
    + $args->db = $db;
    + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
    + if ($bin_accel)
    + {
    + thrift_protocol_write_binary($this->output_, 'alter_database', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
    + }
    + else
    + {
    + $this->output_->writeMessageBegin('alter_database', TMessageType::CALL, $this->seqid_);
    + $args->write($this->output_);
    + $this->output_->writeMessageEnd();
    + $this->output_->getTransport()->flush();
    + }
    + }
    +
    + public function recv_alter_database()
    + {
    + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
    + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_alter_database_result', $this->input_->isStrictRead());
    + else
    + {
    + $rseqid = 0;
    + $fname = null;
    + $mtype = 0;
    +
    + $this->input_->readMessageBegin($fname, $mtype, $rseqid);
    + if ($mtype == TMessageType::EXCEPTION) {
    + $x = new TApplicationException();
    + $x->read($this->input_);
    + $this->input_->readMessageEnd();
    + throw $x;
    + }
    + $result = new metastore_ThriftHiveMetastore_alter_database_result();
    + $result->read($this->input_);
    + $this->input_->readMessageEnd();
    + }
    + if ($result->o1 !== null) {
    + throw $result->o1;
    + }
    + if ($result->o2 !== null) {
    + throw $result->o2;
    + }
    + return;
    + }
    +
    + public function get_type($name)
    + {
    + $this->send_get_type($name);
    + return $this->recv_get_type();
    + }
    +
    + public function send_get_type($name)
    + {
    + $args = new metastore_ThriftHiveMetastore_get_type_args();
    + $args->name = $name;
    + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
    + if ($bin_accel)
    + {
    + thrift_protocol_write_binary($this->output_, 'get_type', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
    + }
    + else
    + {
    + $this->output_->writeMessageBegin('get_type', TMessageType::CALL, $this->seqid_);
    + $args->write($this->output_);
    + $this->output_->writeMessageEnd();
    + $this->output_->getTransport()->flush();
    + }
    + }
    +
    + public function recv_get_type()
    + {
    + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
    + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_get_type_result', $this->input_->isStrictRead());
    + else
    + {
    + $rseqid = 0;
    + $fname = null;
    + $mtype = 0;
    +
    + $this->input_->readMessageBegin($fname, $mtype, $rseqid);
    + if ($mtype == TMessageType::EXCEPTION) {
    + $x = new TApplicationException();
    + $x->read($this->input_);
    + $this->input_->readMessageEnd();
    + throw $x;
    + }
    + $result = new metastore_ThriftHiveMetastore_get_type_result();
    + $result->read($this->input_);
    + $this->input_->readMessageEnd();
    + }
    + if ($result->success !== null) {
    + return $result->success;
    + }
    + if ($result->o1 !== null) {
    + throw $result->o1;
    + }
    + if ($result->o2 !== null) {
    + throw $result->o2;
    + }
    + throw new Exception("get_type failed: unknown result");
    + }
    +
    + public function create_type($type)
    + {
    + $this->send_create_type($type);
    + return $this->recv_create_type();
    + }
    +
    + public function send_create_type($type)
    + {
    + $args = new metastore_ThriftHiveMetastore_create_type_args();
    + $args->type = $type;
    + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
    + if ($bin_accel)
    + {
    + thrift_protocol_write_binary($this->output_, 'create_type', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
    + }
    + else
    + {
    + $this->output_->writeMessageBegin('create_type', TMessageType::CALL, $this->seqid_);
    + $args->write($this->output_);
    + $this->output_->writeMessageEnd();
    + $this->output_->getTransport()->flush();
    + }
    + }
    +
    + public function recv_create_type()
    + {
    + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
    + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_create_type_result', $this->input_->isStrictRead());
    + else
    + {
    + $rseqid = 0;
    + $fname = null;
    + $mtype = 0;
    +
    + $this->input_->readMessageBegin($fname, $mtype, $rseqid);
    + if ($mtype == TMessageType::EXCEPTION) {
    + $x = new TApplicationException();
    + $x->read($this->input_);
    + $this->input_->readMessageEnd();
    + throw $x;
    + }
    + $result = new metastore_ThriftHiveMetastore_create_type_result();
    + $result->read($this->input_);
    + $this->input_->readMessageEnd();
    + }
    + if ($result->success !== null) {
    + return $result->success;
    + }
    + if ($result->o1 !== null) {
    + throw $result->o1;
    + }
    + if ($result->o2 !== null) {
    + throw $result->o2;
    + }
    + if ($result->o3 !== null) {
    + throw $result->o3;
    + }
    + throw new Exception("create_type failed: unknown result");
    + }
    +
    + public function drop_type($type)
    + {
    + $this->send_drop_type($type);
    + return $this->recv_drop_type();
    + }
    +
    + public function send_drop_type($type)
    + {
    + $args = new metastore_ThriftHiveMetastore_drop_type_args();
    + $args->type = $type;
    + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
    + if ($bin_accel)
    + {
    + thrift_protocol_write_binary($this->output_, 'drop_type', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
    + }
    + else
    + {
    + $this->output_->writeMessageBegin('drop_type', TMessageType::CALL, $this->seqid_);
    + $args->write($this->output_);
    + $this->output_->writeMessageEnd();
    + $this->output_->getTransport()->flush();
    + }
    + }
    +
    + public function recv_drop_type()
    + {
    + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
    + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_drop_type_result', $this->input_->isStrictRead());
    + else
    + {
    + $rseqid = 0;
    + $fname = null;
    + $mtype = 0;
    +
    + $this->input_->readMessageBegin($fname, $mtype, $rseqid);
    + if ($mtype == TMessageType::EXCEPTION) {
    + $x = new TApplicationException();
    + $x->read($this->input_);
    + $this->input_->readMessageEnd();
    + throw $x;
    + }
    + $result = new metastore_ThriftHiveMetastore_drop_type_result();
    + $result->read($this->input_);
    + $this->input_->readMessageEnd();
    + }
    + if ($result->success !== null) {
    + return $result->success;
    + }
    + if ($result->o1 !== null) {
    + throw $result->o1;
    + }
    + if ($result->o2 !== null) {
    + throw $result->o2;
    + }
    + throw new Exception("drop_type failed: unknown result");
    + }
    +
    + public function get_type_all($name)
    + {
    + $this->send_get_type_all($name);
    + return $this->recv_get_type_all();
    + }
    +
    + public function send_get_type_all($name)
    + {
    + $args = new metastore_ThriftHiveMetastore_get_type_all_args();
    + $args->name = $name;
    + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
    + if ($bin_accel)
    + {
    + thrift_protocol_write_binary($this->output_, 'get_type_all', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
    + }
    + else
    + {
    + $this->output_->writeMessageBegin('get_type_all', TMessageType::CALL, $this->seqid_);
    + $args->write($this->output_);
    + $this->output_->writeMessageEnd();
    + $this->output_->getTransport()->flush();
    + }
    + }
    +
    + public function recv_get_type_all()
    + {
    + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
    + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_get_type_all_result', $this->input_->isStrictRead());
    + else
    + {
    + $rseqid = 0;
    + $fname = null;
    + $mtype = 0;
    +
    + $this->input_->readMessageBegin($fname, $mtype, $rseqid);
    + if ($mtype == TMessageType::EXCEPTION) {
    + $x = new TApplicationException();
    + $x->read($this->input_);
    + $this->input_->readMessageEnd();
    + throw $x;
    + }
    + $result = new metastore_ThriftHiveMetastore_get_type_all_result();
    + $result->read($this->input_);
    + $this->input_->readMessageEnd();
    + }
    + if ($result->success !== null) {
    + return $result->success;
    + }
    + if ($result->o2 !== null) {
    + throw $result->o2;
    + }
    + throw new Exception("get_type_all failed: unknown result");
    + }
    +
    + public function get_fields($db_name, $table_name)
    + {
    + $this->send_get_fields($db_name, $table_name);
    + return $this->recv_get_fields();
    + }
    +
    + public function send_get_fields($db_name, $table_name)
    + {
    + $args = new metastore_ThriftHiveMetastore_get_fields_args();
    + $args->db_name = $db_name;
    + $args->table_name = $table_name;
    + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
    + if ($bin_accel)
    + {
    + thrift_protocol_write_binary($this->output_, 'get_fields', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
    + }
    + else
    + {
    + $this->output_->writeMessageBegin('get_fields', TMessageType::CALL, $this->seqid_);
    + $args->write($this->output_);
    + $this->output_->writeMessageEnd();
    + $this->output_->getTransport()->flush();
    + }
    + }
    +
    + public function recv_get_fields()
    + {
    + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
    + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_get_fields_result', $this->input_->isStrictRead());
    + else
    + {
    + $rseqid = 0;
    + $fname = null;
    + $mtype = 0;
    +
    + $this->input_->readMessageBegin($fname, $mtype, $rseqid);
    + if ($mtype == TMessageType::EXCEPTION) {
    + $x = new TApplicationException();
    + $x->read($this->input_);
    + $this->input_->readMessageEnd();
    + throw $x;
    + }
    + $result = new metastore_ThriftHiveMetastore_get_fields_result();
    + $result->read($this->input_);
    + $this->input_->readMessageEnd();
    + }
    + if ($result->success !== null) {
    + return $result->success;
    + }
    + if ($result->o1 !== null) {
    + throw $result->o1;
    + }
    + if ($result->o2 !== null) {
    + throw $result->o2;
    + }
    + if ($result->o3 !== null) {
    + throw $result->o3;
    + }
    + throw new Exception("get_fields failed: unknown result");
    + }
    +
    + public function get_schema($db_name, $table_name)
    + {
    + $this->send_get_schema($db_name, $table_name);
    + return $this->recv_get_schema();
    + }
    +
    + public function send_get_schema($db_name, $table_name)
    + {
    + $args = new metastore_ThriftHiveMetastore_get_schema_args();
    + $args->db_name = $db_name;
    + $args->table_name = $table_name;
    + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
    + if ($bin_accel)
    + {
    + thrift_protocol_write_binary($this->output_, 'get_schema', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
    + }
    + else
    + {
    + $this->output_->writeMessageBegin('get_schema', TMessageType::CALL, $this->seqid_);
    + $args->write($this->output_);
    + $this->output_->writeMessageEnd();
    + $this->output_->getTransport()->flush();
    + }
    + }
    +
    + public function recv_get_schema()
    + {
    + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
    + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_get_schema_result', $this->input_->isStrictRead());
    + else
    + {
    + $rseqid = 0;
    + $fname = null;
    + $mtype = 0;
    +
    + $this->input_->readMessageBegin($fname, $mtype, $rseqid);
    + if ($mtype == TMessageType::EXCEPTION) {
    + $x = new TApplicationException();
    + $x->read($this->input_);
    + $this->input_->readMessageEnd();
    + throw $x;
    + }
    + $result = new metastore_ThriftHiveMetastore_get_schema_result();
    + $result->read($this->input_);
    + $this->input_->readMessageEnd();
    + }
    + if ($result->success !== null) {
    + return $result->success;
    + }
    + if ($result->o1 !== null) {
    + throw $result->o1;
    + }
    + if ($result->o2 !== null) {
    + throw $result->o2;
    + }
    + if ($result->o3 !== null) {
    + throw $result->o3;
    + }
    + throw new Exception("get_schema failed: unknown result");
    + }
    +
    + public function create_table($tbl)
    + {
    + $this->send_create_table($tbl);
    + $this->recv_create_table();
    + }
    +
    + public function send_create_table($tbl)
    + {
    + $args = new metastore_ThriftHiveMetastore_create_table_args();
    + $args->tbl = $tbl;
    + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
    + if ($bin_accel)
    + {
    + thrift_protocol_write_binary($this->output_, 'create_table', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
    + }
    + else
    + {
    + $this->output_->writeMessageBegin('create_table', TMessageType::CALL, $this->seqid_);
    + $args->write($this->output_);
    + $this->output_->writeMessageEnd();
    + $this->output_->getTransport()->flush();
    + }
    + }
    +
    + public function recv_create_table()
    + {
    + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
    + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_create_table_result', $this->input_->isStrictRead());
    + else
    + {
    + $rseqid = 0;
    + $fname = null;
    + $mtype = 0;
    +
    + $this->input_->readMessageBegin($fname, $mtype, $rseqid);
    + if ($mtype == TMessageType::EXCEPTION) {
    + $x = new TApplicationException();
    + $x->read($this->input_);
    + $this->input_->readMessageEnd();
    + throw $x;
    + }
    + $result = new metastore_ThriftHiveMetastore_create_table_result();
    + $result->read($this->input_);
    + $this->input_->readMessageEnd();
    + }
    + if ($result->o1 !== null) {
    + throw $result->o1;
    + }
    + if ($result->o2 !== null) {
    + throw $result->o2;
    + }
    + if ($result->o3 !== null) {
    + throw $result->o3;
    + }
    + if ($result->o4 !== null) {
    + throw $result->o4;
    + }
    + return;
    + }
    +
    + public function drop_table($dbname, $name, $deleteData)
    + {
    + $this->send_drop_table($dbname, $name, $deleteData);
    + $this->recv_drop_table();
    + }
    +
    + public function send_drop_table($dbname, $name, $deleteData)
    + {
    + $args = new metastore_ThriftHiveMetastore_drop_table_args();
    + $args->dbname = $dbname;
    + $args->name = $name;
    + $args->deleteData = $deleteData;
    + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
    + if ($bin_accel)
    + {
    + thrift_protocol_write_binary($this->output_, 'drop_table', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
    + }
    + else
    + {
    + $this->output_->writeMessageBegin('drop_table', TMessageType::CALL, $this->seqid_);
    + $args->write($this->output_);
    + $this->output_->writeMessageEnd();
    + $this->output_->getTransport()->flush();
    + }
    + }
    +
    + public function recv_drop_table()
    + {
    + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
    + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_drop_table_result', $this->input_->isStrictRead());
    + else
    + {
    + $rseqid = 0;
    + $fname = null;
    + $mtype = 0;
    +
    + $this->input_->readMessageBegin($fname, $mtype, $rseqid);
    + if ($mtype == TMessageType::EXCEPTION) {
    + $x = new TApplicationException();
    + $x->read($this->input_);
    + $this->input_->readMessageEnd();
    + throw $x;
    + }
    + $result = new metastore_ThriftHiveMetastore_drop_table_result();
    + $result->read($this->input_);
    + $this->input_->readMessageEnd();
    + }
    + if ($result->o1 !== null) {
    + throw $result->o1;
    + }
    + if ($result->o3 !== null) {
    + throw $result->o3;
    + }
    + return;
    + }
    +
    + public function get_tables($db_name, $pattern)
    + {
    + $this->send_get_tables($db_name, $pattern);
    + return $this->recv_get_tables();
    + }
    +
    + public function send_get_tables($db_name, $pattern)
    + {
    + $args = new metastore_ThriftHiveMetastore_get_tables_args();
    + $args->db_name = $db_name;
    + $args->pattern = $pattern;
    + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
    + if ($bin_accel)
    + {
    + thrift_protocol_write_binary($this->output_, 'get_tables', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
    + }
    + else
    + {
    + $this->output_->writeMessageBegin('get_tables', TMessageType::CALL, $this->seqid_);
    + $args->write($this->output_);
    + $this->output_->writeMessageEnd();
    + $this->output_->getTransport()->flush();
    + }
    + }
    +
    + public function recv_get_tables()
    + {
    + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
    + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_get_tables_result', $this->input_->isStrictRead());
    + else
    + {
    + $rseqid = 0;
    + $fname = null;
    + $mtype = 0;
    +
    + $this->input_->readMessageBegin($fname, $mtype, $rseqid);
    + if ($mtype == TMessageType::EXCEPTION) {
    + $x = new TApplicationException();
    + $x->read($this->input_);
    + $this->input_->readMessageEnd();
    + throw $x;
    + }
    + $result = new metastore_ThriftHiveMetastore_get_tables_result();
    + $result->read($this->input_);
    + $this->input_->readMessageEnd();
    + }
    + if ($result->success !== null) {
    + return $result->success;
    + }
    + if ($result->o1 !== null) {
    + throw $result->o1;
    + }
    + throw new Exception("get_tables failed: unknown result");
    + }
    +
    + public function get_all_tables($db_name)
    + {
    + $this->send_get_all_tables($db_name);
    + return $this->recv_get_all_tables();
    + }
    +
    + public function send_get_all_tables($db_name)
    + {
    + $args = new metastore_ThriftHiveMetastore_get_all_tables_args();
    + $args->db_name = $db_name;
    + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
    + if ($bin_accel)
    + {
    + thrift_protocol_write_binary($this->output_, 'get_all_tables', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
    + }
    + else
    + {
    + $this->output_->writeMessageBegin('get_all_tables', TMessageType::CALL, $this->seqid_);
    + $args->write($this->output_);
    + $this->output_->writeMessageEnd();
    + $this->output_->getTransport()->flush();
    + }
    + }
    +
    + public function recv_get_all_tables()
    + {
    + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
    + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_get_all_tables_result', $this->input_->isStrictRead());
    + else
    + {
    + $rseqid = 0;
    + $fname = null;
    + $mtype = 0;
    +
    + $this->input_->readMessageBegin($fname, $mtype, $rseqid);
    + if ($mtype == TMessageType::EXCEPTION) {
    + $x = new TApplicationException();
    + $x->read($this->input_);
    + $this->input_->readMessageEnd();
    + throw $x;
    + }
    + $result = new metastore_ThriftHiveMetastore_get_all_tables_result();
    + $result->read($this->input_);
    + $this->input_->readMessageEnd();
    + }
    + if ($result->success !== null) {
    + return $result->success;
    + }
    + if ($result->o1 !== null) {
    + throw $result->o1;
    + }
    + throw new Exception("get_all_tables failed: unknown result");
    + }
    +
    + public function get_table($dbname, $tbl_name)
    + {
    + $this->send_get_table($dbname, $tbl_name);
    + return $this->recv_get_table();
    + }
    +
    + public function send_get_table($dbname, $tbl_name)
    + {
    + $args = new metastore_ThriftHiveMetastore_get_table_args();
    + $args->dbname = $dbname;
    + $args->tbl_name = $tbl_name;
    + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
    + if ($bin_accel)
    + {
    + thrift_protocol_write_binary($this->output_, 'get_table', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
    + }
    + else
    + {
    + $this->output_->writeMessageBegin('get_table', TMessageType::CALL, $this->seqid_);
    + $args->write($this->output_);
    + $this->output_->writeMessageEnd();
    + $this->output_->getTransport()->flush();
    + }
    + }
    +
    + public function recv_get_table()
    + {
    + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
    + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_get_table_result', $this->input_->isStrictRead());
    + else
    + {
    + $rseqid = 0;
    + $fname = null;
    + $mtype = 0;
    +
    + $this->input_->readMessageBegin($fname, $mtype, $rseqid);
    + if ($mtype == TMessageType::EXCEPTION) {
    + $x = new TApplicationException();
    + $x->read($this->input_);
    + $this->input_->readMessageEnd();
    + throw $x;
    + }
    + $result = new metastore_ThriftHiveMetastore_get_table_result();
    + $result->read($this->input_);
    + $this->input_->readMessageEnd();
    + }
    + if ($result->success !== null) {
    + return $result->success;
    + }
    + if ($result->o1 !== null) {
    + throw $result->o1;
    + }
    + if ($result->o2 !== null) {
    + throw $result->o2;
    + }
    + throw new Exception("get_table failed: unknown result");
    + }
    +
    + public function get_table_objects_by_name($dbname, $tbl_names)
    + {
    + $this->send_get_table_objects_by_name($dbname, $tbl_names);
    + return $this->recv_get_table_objects_by_name();
    + }
    +
    + public function send_get_table_objects_by_name($dbname, $tbl_names)
    + {
    + $args = new metastore_ThriftHiveMetastore_get_table_objects_by_name_args();
    + $args->dbname = $dbname;
    + $args->tbl_names = $tbl_names;
    + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
    + if ($bin_accel)
    + {
    + thrift_protocol_write_binary($this->output_, 'get_table_objects_by_name', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
    + }
    + else
    + {
    + $this->output_->writeMessageBegin('get_table_objects_by_name', TMessageType::CALL, $this->seqid_);
    + $args->write($this->output_);
    + $this->output_->writeMessageEnd();
    + $this->output_->getTransport()->flush();
    + }
    + }
    +
    + public function recv_get_table_objects_by_name()
    + {
    + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
    + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_get_table_objects_by_name_result', $this->input_->isStrictRead());
    + else
    + {
    + $rseqid = 0;
    + $fname = null;
    + $mtype = 0;
    +
    + $this->input_->readMessageBegin($fname, $mtype, $rseqid);
    + if ($mtype == TMessageType::EXCEPTION) {
    + $x = new TApplicationException();
    + $x->read($this->input_);
    + $this->input_->readMessageEnd();
    + throw $x;
    + }
    + $result = new metastore_ThriftHiveMetastore_get_table_objects_by_name_result();
    + $result->read($this->input_);
    + $this->input_->readMessageEnd();
    + }
    + if ($result->success !== null) {
    + return $result->success;
    + }
    + if ($result->o1 !== null) {
    + throw $result->o1;
    + }
    + if ($result->o2 !== null) {
    + throw $result->o2;
    + }
    + if ($result->o3 !== null) {
    + throw $result->o3;
    + }
    + throw new Exception("get_table_objects_by_name failed: unknown result");
    + }
    +
    + public function get_table_names_by_filter($dbname, $filter, $max_tables)
    + {
    + $this->send_get_table_names_by_filter($dbname, $filter, $max_tables);
    + return $this->recv_get_table_names_by_filter();
    + }
    +
    + public function send_get_table_names_by_filter($dbname, $filter, $max_tables)
    + {
    + $args = new metastore_ThriftHiveMetastore_get_table_names_by_filter_args();
    + $args->dbname = $dbname;
    + $args->filter = $filter;
    + $args->max_tables = $max_tables;
    + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
    + if ($bin_accel)
    + {
    + thrift_protocol_write_binary($this->output_, 'get_table_names_by_filter', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
    + }
    + else
    + {
    + $this->output_->writeMessageBegin('get_table_names_by_filter', TMessageType::CALL, $this->seqid_);
    + $args->write($this->output_);
    + $this->output_->writeMessageEnd();
    + $this->output_->getTransport()->flush();
    + }
    + }
    +
    + public function recv_get_table_names_by_filter()
    + {
    + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
    + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_get_table_names_by_filter_result', $this->input_->isStrictRead());
    + else
    + {
    + $rseqid = 0;
    + $fname = null;
    + $mtype = 0;
    +
    + $this->input_->readMessageBegin($fname, $mtype, $rseqid);
    + if ($mtype == TMessageType::EXCEPTION) {
    + $x = new TApplicationException();
    + $x->read($this->input_);
    + $this->input_->readMessageEnd();
    + throw $x;
    + }
    + $result = new metastore_ThriftHiveMetastore_get_table_names_by_filter_result();
    + $result->read($this->input_);
    + $this->input_->readMessageEnd();
    + }
    + if ($result->success !== null) {
    + return $result->success;
    + }
    + if ($result->o1 !== null) {
    + throw $result->o1;
    + }
    + if ($result->o2 !== null) {
    + throw $result->o2;
    + }
    + if ($result->o3 !== null) {
    + throw $result->o3;
    + }
    + throw new Exception("get_table_names_by_filter failed: unknown result");
    + }
    +
    + public function alter_table($dbname, $tbl_name, $new_tbl)
    + {
    + $this->send_alter_table($dbname, $tbl_name, $new_tbl);
    + $this->recv_alter_table();
    + }
    +
    + public function send_alter_table($dbname, $tbl_name, $new_tbl)
    + {
    + $args = new metastore_ThriftHiveMetastore_alter_table_args();
    + $args->dbname = $dbname;
    + $args->tbl_name = $tbl_name;
    + $args->new_tbl = $new_tbl;
    + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
    + if ($bin_accel)
    + {
    + thrift_protocol_write_binary($this->output_, 'alter_table', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
    + }
    + else
    + {
    + $this->output_->writeMessageBegin('alter_table', TMessageType::CALL, $this->seqid_);
    + $args->write($this->output_);
    + $this->output_->writeMessageEnd();
    + $this->output_->getTransport()->flush();
    + }
    + }
    +
    + public function recv_alter_table()
    + {
    + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
    + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_alter_table_result', $this->input_->isStrictRead());
    + else
    + {
    + $rseqid = 0;
    + $fname = null;
    + $mtype = 0;
    +
    + $this->input_->readMessageBegin($fname, $mtype, $rseqid);
    + if ($mtype == TMessageType::EXCEPTION) {
    + $x = new TApplicationException();
    + $x->read($this->input_);
    + $this->input_->readMessageEnd();
    + throw $x;
    + }
    + $result = new metastore_ThriftHiveMetastore_alter_table_result();
    + $result->read($this->input_);
    + $this->input_->readMessageEnd();
    + }
    + if ($result->o1 !== null) {
    + throw $result->o1;
    + }
    + if ($result->o2 !== null) {
    + throw $result->o2;
    + }
    + return;
    + }
    +
    + public function add_partition($new_part)
    + {
    + $this->send_add_partition($new_part);
    + return $this->recv_add_partition();
    + }
    +
    + public function send_add_partition($new_part)
    + {
    + $args = new metastore_ThriftHiveMetastore_add_partition_args();
    + $args->new_part = $new_part;
    + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
    + if ($bin_accel)
    + {
    + thrift_protocol_write_binary($this->output_, 'add_partition', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
    + }
    + else
    + {
    + $this->output_->writeMessageBegin('add_partition', TMessageType::CALL, $this->seqid_);
    + $args->write($this->output_);
    + $this->output_->writeMessageEnd();
    + $this->output_->getTransport()->flush();
    + }
    + }
    +
    + public function recv_add_partition()
    + {
    + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
    + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_add_partition_result', $this->input_->isStrictRead());
    + else
    + {
    + $rseqid = 0;
    + $fname = null;
    + $mtype = 0;
    +
    + $this->input_->readMessageBegin($fname, $mtype, $rseqid);
    + if ($mtype == TMessageType::EXCEPTION) {
    + $x = new TApplicationException();
    + $x->read($this->input_);
    + $this->input_->readMessageEnd();
    + throw $x;
    + }
    + $result = new metastore_ThriftHiveMetastore_add_partition_result();
    + $result->read($this->input_);
    + $this->input_->readMessageEnd();
    + }
    + if ($result->success !== null) {
    + return $result->success;
    + }
    + if ($result->o1 !== null) {
    + throw $result->o1;
    + }
    + if ($result->o2 !== null) {
    + throw $result->o2;
    + }
    + if ($result->o3 !== null) {
    + throw $result->o3;
    + }
    + throw new Exception("add_partition failed: unknown result");
    + }
    +
    + public function add_partitions($new_parts)
    + {
    + $this->send_add_partitions($new_parts);
    + return $this->recv_add_partitions();
    + }
    +
    + public function send_add_partitions($new_parts)
    + {
    + $args = new metastore_ThriftHiveMetastore_add_partitions_args();
    + $args->new_parts = $new_parts;
    + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
    + if ($bin_accel)
    + {
    + thrift_protocol_write_binary($this->output_, 'add_partitions', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
    + }
    + else
    + {
    + $this->output_->writeMessageBegin('add_partitions', TMessageType::CALL, $this->seqid_);
    + $args->write($this->output_);
    + $this->output_->writeMessageEnd();
    + $this->output_->getTransport()->flush();
    + }
    + }
    +
    + public function recv_add_partitions()
    + {
    + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
    + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_add_partitions_result', $this->input_->isStrictRead());
    + else
    + {
    + $rseqid = 0;
    + $fname = null;
    + $mtype = 0;
    +
    + $this->input_->readMessageBegin($fname, $mtype, $rseqid);
    + if ($mtype == TMessageType::EXCEPTION) {
    + $x = new TApplicationException();
    + $x->read($this->input_);
    + $this->input_->readMessageEnd();
    + throw $x;
    + }
    + $result = new metastore_ThriftHiveMetastore_add_partitions_result();
    + $result->read($this->input_);
    + $this->input_->readMessageEnd();
    + }
    + if ($result->success !== null) {
    + return $result->success;
    + }
    + if ($result->o1 !== null) {
    + throw $result->o1;
    + }
    + if ($result->o2 !== null) {
    + throw $result->o2;
    + }
    + if ($result->o3 !== null) {
    + throw $result->o3;
    + }
    + throw new Exception("add_partitions failed: unknown result");
    + }
    +
    + public function append_partition($db_name, $tbl_name, $part_vals)
    + {
    + $this->send_append_partition($db_name, $tbl_name, $part_vals);
    + return $this->recv_append_partition();
    + }
    +
    + public function send_append_partition($db_name, $tbl_name, $part_vals)
    + {
    + $args = new metastore_ThriftHiveMetastore_append_partition_args();
    + $args->db_name = $db_name;
    + $args->tbl_name = $tbl_name;
    + $args->part_vals = $part_vals;
    + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
    + if ($bin_accel)
    + {
    + thrift_protocol_write_binary($this->output_, 'append_partition', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
    + }
    + else
    + {
    + $this->output_->writeMessageBegin('append_partition', TMessageType::CALL, $this->seqid_);
    + $args->write($this->output_);
    + $this->output_->writeMessageEnd();
    + $this->output_->getTransport()->flush();
    + }
    + }
    +
    + public function recv_append_partition()
    + {
    + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
    + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_append_partition_result', $this->input_->isStrictRead());
    + else
    + {
    + $rseqid = 0;
    + $fname = null;
    + $mtype = 0;
    +
    + $this->input_->readMessageBegin($fname, $mtype, $rseqid);
    + if ($mtype == TMessageType::EXCEPTION) {
    + $x = new TApplicationException();
    + $x->read($this->input_);
    + $this->input_->readMessageEnd();
    + throw $x;
    + }
    + $result = new metastore_ThriftHiveMetastore_append_partition_result();
    + $result->read($this->input_);
    + $this->input_->readMessageEnd();
    + }
    + if ($result->success !== null) {
    + return $result->success;
    + }
    + if ($result->o1 !== null) {
    + throw $result->o1;
    + }
    + if ($result->o2 !== null) {
    + throw $result->o2;
    + }
    + if ($result->o3 !== null) {
    + throw $result->o3;
    + }
    + throw new Exception("append_partition failed: unknown result");
    + }
    +
    + public function append_partition_by_name($db_name, $tbl_name, $part_name)
    + {
    + $this->send_append_partition_by_name($db_name, $tbl_name, $part_name);
    + return $this->recv_append_partition_by_name();
    + }
    +
    + public function send_append_partition_by_name($db_name, $tbl_name, $part_name)
    + {
    + $args = new metastore_ThriftHiveMetastore_append_partition_by_name_args();
    + $args->db_name = $db_name;
    + $args->tbl_name = $tbl_name;
    + $args->part_name = $part_name;
    + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
    + if ($bin_accel)
    + {
    + thrift_protocol_write_binary($this->output_, 'append_partition_by_name', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
    + }
    + else
    + {
    + $this->output_->writeMessageBegin('append_partition_by_name', TMessageType::CALL, $this->seqid_);
    + $args->write($this->output_);
    + $this->output_->writeMessageEnd();
    + $this->output_->getTransport()->flush();
    + }
    + }
    +
    + public function recv_append_partition_by_name()
    + {
    + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
    + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_append_partition_by_name_result', $this->input_->isStrictRead());
    + else
    + {
    + $rseqid = 0;
    + $fname = null;
    + $mtype = 0;
    +
    + $this->input_->readMessageBegin($fname, $mtype, $rseqid);
    + if ($mtype == TMessageType::EXCEPTION) {
    + $x = new TApplicationException();
    + $x->read($this->input_);
    + $this->input_->readMessageEnd();
    + throw $x;
    + }
    + $result = new metastore_ThriftHiveMetastore_append_partition_by_name_result();
    + $result->read($this->input_);
    + $this->input_->readMessageEnd();
    + }
    + if ($result->success !== null) {
    + return $result->success;
    + }
    + if ($result->o1 !== null) {
    + throw $result->o1;
    + }
    + if ($result->o2 !== null) {
    + throw $result->o2;
    + }
    + if ($result->o3 !== null) {
    + throw $result->o3;
    + }
    + throw new Exception("append_partition_by_name failed: unknown result");
    + }
    +
    + public function drop_partition($db_name, $tbl_name, $part_vals, $deleteData)
    + {
    + $this->send_drop_partition($db_name, $tbl_name, $part_vals, $deleteData);
    + return $this->recv_drop_partition();
    + }
    +
    + public function send_drop_partition($db_name, $tbl_name, $part_vals, $deleteData)
    + {
    + $args = new metastore_ThriftHiveMetastore_drop_partition_args();
    + $args->db_name = $db_name;
    + $args->tbl_name = $tbl_name;
    + $args->part_vals = $part_vals;
    + $args->deleteData = $deleteData;
    + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
    + if ($bin_accel)
    + {
    + thrift_protocol_write_binary($this->output_, 'drop_partition', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
    + }
    + else
    + {
    + $this->output_->writeMessageBegin('drop_partition', TMessageType::CALL, $this->seqid_);
    + $args->write($this->output_);
    + $this->output_->writeMessageEnd();
    + $this->output_->getTransport()->flush();
    + }
    + }
    +
    + public function recv_drop_partition()
    + {
    + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
    + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_drop_partition_result', $this->input_->isStrictRead());
    + else
    + {
    + $rseqid = 0;
    + $fname = null;
    + $mtype = 0;
    +
    + $this->input_->readMessageBegin($fname, $mtype, $rseqid);
    + if ($mtype == TMessageType::EXCEPTION) {
    + $x = new TApplicationException();
    + $x->read($this->input_);
    + $this->input_->readMessageEnd();
    + throw $x;
    + }
    + $result = new metastore_ThriftHiveMetastore_drop_partition_result();
    + $result->read($this->input_);
    + $this->input_->readMessageEnd();
    + }
    + if ($result->success !== null) {
    + return $result->success;
    + }
    + if ($result->o1 !== null) {
    + throw $result->o1;
    + }
    + if ($result->o2 !== null) {
    + throw $result->o2;
    + }
    + throw new Exception("drop_partition failed: unknown result");
    + }
    +
    + public function drop_partition_by_name($db_name, $tbl_name, $part_name, $deleteData)
    + {
    + $this->send_drop_partition_by_name($db_name, $tbl_name, $part_name, $deleteData);
    + return $this->recv_drop_partition_by_name();
    + }
    +
    + public function send_drop_partition_by_name($db_name, $tbl_name, $part_name, $deleteData)
    + {
    + $args = new metastore_ThriftHiveMetastore_drop_partition_by_name_args();
    + $args->db_name = $db_name;
    + $args->tbl_name = $tbl_name;
    + $args->part_name = $part_name;
    + $args->deleteData = $deleteData;
    + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
    + if ($bin_accel)
    + {
    + thrift_protocol_write_binary($this->output_, 'drop_partition_by_name', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
    + }
    + else
    + {
    + $this->output_->writeMessageBegin('drop_partition_by_name', TMessageType::CALL, $this->seqid_);
    + $args->write($this->output_);
    + $this->output_->writeMessageEnd();
    + $this->output_->getTransport()->flush();
    + }
    + }
    +
    + public function recv_drop_partition_by_name()
    + {
    + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
    + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_drop_partition_by_name_result', $this->input_->isStrictRead());
    + else
    + {
    + $rseqid = 0;
    + $fname = null;
    + $mtype = 0;
    +
    + $this->input_->readMessageBegin($fname, $mtype, $rseqid);
    + if ($mtype == TMessageType::EXCEPTION) {
    + $x = new TApplicationException();
    + $x->read($this->input_);
    + $this->input_->readMessageEnd();
    + throw $x;
    + }
    + $result = new metastore_ThriftHiveMetastore_drop_partition_by_name_result();
    + $result->read($this->input_);
    + $this->input_->readMessageEnd();
    + }
    + if ($result->success !== null) {
    + return $result->success;
    + }
    + if ($result->o1 !== null) {
    + throw $result->o1;
    + }
    + if ($result->o2 !== null) {
    + throw $result->o2;
    + }
    + throw new Exception("drop_partition_by_name failed: unknown result");
    + }
    +
    + public function get_partition($db_name, $tbl_name, $part_vals)
    + {
    + $this->send_get_partition($db_name, $tbl_name, $part_vals);
    + return $this->recv_get_partition();
    + }
    +
    + public function send_get_partition($db_name, $tbl_name, $part_vals)
    + {
    + $args = new metastore_ThriftHiveMetastore_get_partition_args();
    + $args->db_name = $db_name;
    + $args->tbl_name = $tbl_name;
    + $args->part_vals = $part_vals;
    + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
    + if ($bin_accel)
    + {
    + thrift_protocol_write_binary($this->output_, 'get_partition', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
    + }
    + else
    + {
    + $this->output_->writeMessageBegin('get_partition', TMessageType::CALL, $this->seqid_);
    + $args->write($this->output_);
    + $this->output_->writeMessageEnd();
    + $this->output_->getTransport()->flush();
    + }
    + }
    +
    + public function recv_get_partition()
    + {
    + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
    + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_get_partition_result', $this->input_->isStrictRead());
    + else
    + {
    + $rseqid = 0;
    + $fname = null;
    + $mtype = 0;
    +
    + $this->input_->readMessageBegin($fname, $mtype, $rseqid);
    + if ($mtype == TMessageType::EXCEPTION) {
    + $x = new TApplicationException();
    + $x->read($this->input_);
    + $this->input_->readMessageEnd();
    + throw $x;
    + }
    + $result = new metastore_ThriftHiveMetastore_get_partition_result();
    + $result->read($this->input_);
    + $this->input_->readMessageEnd();
    + }
    + if ($result->success !== null) {
    + return $result->success;
    + }
    + if ($result->o1 !== null) {
    + throw $result->o1;
    + }
    + if ($result->o2 !== null) {
    + throw $result->o2;
    + }
    + throw new Exception("get_partition failed: unknown result");
    + }
    +
    + public function get_partition_with_auth($db_name, $tbl_name, $part_vals, $user_name, $group_names)
    + {
    + $this->send_get_partition_with_auth($db_name, $tbl_name, $part_vals, $user_name, $group_names);
    + return $this->recv_get_partition_with_auth();
    + }
    +
    + public function send_get_partition_with_auth($db_name, $tbl_name, $part_vals, $user_name, $group_names)
    + {
    + $args = new metastore_ThriftHiveMetastore_get_partition_with_auth_args();
    + $args->db_name = $db_name;
    + $args->tbl_name = $tbl_name;
    + $args->part_vals = $part_vals;
    + $args->user_name = $user_name;
    + $args->group_names = $group_names;
    + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
    + if ($bin_accel)
    + {
    + thrift_protocol_write_binary($this->output_, 'get_partition_with_auth', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
    + }
    + else
    + {
    + $this->output_->writeMessageBegin('get_partition_with_auth', TMessageType::CALL, $this->seqid_);
    + $args->write($this->output_);
    + $this->output_->writeMessageEnd();
    + $this->output_->getTransport()->flush();
    + }
    + }
    +
    + public function recv_get_partition_with_auth()
    + {
    + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
    + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_get_partition_with_auth_result', $this->input_->isStrictRead());
    + else
    + {
    + $rseqid = 0;
    + $fname = null;
    + $mtype = 0;
    +
    + $this->input_->readMessageBegin($fname, $mtype, $rseqid);
    + if ($mtype == TMessageType::EXCEPTION) {
    + $x = new TApplicationException();
    + $x->read($this->input_);
    + $this->input_->readMessageEnd();
    + throw $x;
    + }
    + $result = new metastore_ThriftHiveMetastore_get_partition_with_auth_result();
    + $result->read($this->input_);
    + $this->input_->readMessageEnd();
    + }
    + if ($result->success !== null) {
    + return $result->success;
    + }
    + if ($result->o1 !== null) {
    + throw $result->o1;
    + }
    + if ($result->o2 !== null) {
    + throw $result->o2;
    + }
    + throw new Exception("get_partition_with_auth failed: unknown result");
    + }
    +
    + public function get_partition_by_name($db_name, $tbl_name, $part_name)
    + {
    + $this->send_get_partition_by_name($db_name, $tbl_name, $part_name);
    + return $this->recv_get_partition_by_name();
    + }
    +
    + public function send_get_partition_by_name($db_name, $tbl_name, $part_name)
    + {
    + $args = new metastore_ThriftHiveMetastore_get_partition_by_name_args();
    + $args->db_name = $db_name;
    + $args->tbl_name = $tbl_name;
    + $args->part_name = $part_name;
    + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
    + if ($bin_accel)
    + {
    + thrift_protocol_write_binary($this->output_, 'get_partition_by_name', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
    + }
    + else
    + {
    + $this->output_->writeMessageBegin('get_partition_by_name', TMessageType::CALL, $this->seqid_);
    + $args->write($this->output_);
    + $this->output_->writeMessageEnd();
    + $this->output_->getTransport()->flush();
    + }
    + }
    +
    + public function recv_get_partition_by_name()
    + {
    + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
    + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_get_partition_by_name_result', $this->input_->isStrictRead());
    + else
    + {
    + $rseqid = 0;
    + $fname = null;
    + $mtype = 0;
    +
    + $this->input_->readMessageBegin($fname, $mtype, $rseqid);
    + if ($mtype == TMessageType::EXCEPTION) {
    + $x = new TApplicationException();
    + $x->read($this->input_);
    + $this->input_->readMessageEnd();
    + throw $x;
    + }
    + $result = new metastore_ThriftHiveMetastore_get_partition_by_name_result();
    + $result->read($this->input_);
    + $this->input_->readMessageEnd();
    + }
    + if ($result->success !== null) {
    + return $result->success;
    + }
    + if ($result->o1 !== null) {
    + throw $result->o1;
    + }
    + if ($result->o2 !== null) {
    + throw $result->o2;
    + }
    + throw new Exception("get_partition_by_name failed: unknown result");
    + }
    +
    + public function get_partitions($db_name, $tbl_name, $max_parts)
    + {
    + $this->send_get_partitions($db_name, $tbl_name, $max_parts);
    + return $this->recv_get_partitions();
    + }
    +
    + public function send_get_partitions($db_name, $tbl_name, $max_parts)
    + {
    + $args = new metastore_ThriftHiveMetastore_get_partitions_args();
    + $args->db_name = $db_name;
    + $args->tbl_name = $tbl_name;
    + $args->max_parts = $max_parts;
    + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
    + if ($bin_accel)
    + {
    + thrift_protocol_write_binary($this->output_, 'get_partitions', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
    + }
    + else
    + {
    + $this->output_->writeMessageBegin('get_partitions', TMessageType::CALL, $this->seqid_);
    + $args->write($this->output_);
    + $this->output_->writeMessageEnd();
    + $this->output_->getTransport()->flush();
    + }
    + }
    +
    + public function recv_get_partitions()
    + {
    + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
    + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_get_partitions_result', $this->input_->isStrictRead());
    + else
    + {
    + $rseqid = 0;
    + $fname = null;
    + $mtype = 0;
    +
    + $this->input_->readMessageBegin($fname, $mtype, $rseqid);
    + if ($mtype == TMessageType::EXCEPTION) {
    + $x = new TApplicationException();
    + $x->read($this->input_);
    + $this->input_->readMessageEnd();
    + throw $x;
    + }
    + $result = new metastore_ThriftHiveMetastore_get_partitions_result();
    + $result->read($this->input_);
    + $this->input_->readMessageEnd();
    + }
    + if ($result->success !== null) {
    + return $result->success;
    + }
    + if ($result->o1 !== null) {
    + throw $result->o1;
    + }
    + if ($result->o2 !== null) {
    + throw $result->o2;
    + }
    + throw new Exception("get_partitions failed: unknown result");
    + }
    +
    + public function get_partitions_with_auth($db_name, $tbl_name, $max_parts, $user_name, $group_names)
    + {
    + $this->send_get_partitions_with_auth($db_name, $tbl_name, $max_parts, $user_name, $group_names);
    + return $this->recv_get_partitions_with_auth();
    + }
    +
    + public function send_get_partitions_with_auth($db_name, $tbl_name, $max_parts, $user_name, $group_names)
    + {
    + $args = new metastore_ThriftHiveMetastore_get_partitions_with_auth_args();
    + $args->db_name = $db_name;
    + $args->tbl_name = $tbl_name;
    + $args->max_parts = $max_parts;
    + $args->user_name = $user_name;
    + $args->group_names = $group_names;
    + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
    + if ($bin_accel)
    + {
    + thrift_protocol_write_binary($this->output_, 'get_partitions_with_auth', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
    + }
    + else
    + {
    + $this->output_->writeMessageBegin('get_partitions_with_auth', TMessageType::CALL, $this->seqid_);
    + $args->write($this->output_);
    + $this->output_->writeMessageEnd();
    + $this->output_->getTransport()->flush();
    + }
    + }
    +
    + public function recv_get_partitions_with_auth()
    + {
    + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
    + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_get_partitions_with_auth_result', $this->input_->isStrictRead());
    + else
    + {
    + $rseqid = 0;
    + $fname = null;
    + $mtype = 0;
    +
    + $this->input_->readMessageBegin($fname, $mtype, $rseqid);
    + if ($mtype == TMessageType::EXCEPTION) {
    + $x = new TApplicationException();
    + $x->read($this->input_);
    + $this->input_->readMessageEnd();
    + throw $x;
    + }
    + $result = new metastore_ThriftHiveMetastore_get_partitions_with_auth_result();
    + $result->read($this->input_);
    + $this->input_->readMessageEnd();
    + }
    + if ($result->success !== null) {
    + return $result->success;
    + }
    + if ($result->o1 !== null) {
    + throw $result->o1;
    + }
    + if ($result->o2 !== null) {
    + throw $result->o2;
    + }
    + throw new Exception("get_partitions_with_auth failed: unknown result");
    + }
    +
    + public function get_partition_names($db_name, $tbl_name, $max_parts)
    + {
    + $this->send_get_partition_names($db_name, $tbl_name, $max_parts);
    + return $this->recv_get_partition_names();
    + }
    +
    + public function send_get_partition_names($db_name, $tbl_name, $max_parts)
    + {
    + $args = new metastore_ThriftHiveMetastore_get_partition_names_args();
    + $args->db_name = $db_name;
    + $args->tbl_name = $tbl_name;
    + $args->max_parts = $max_parts;
    + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
    + if ($bin_accel)
    + {
    + thrift_protocol_write_binary($this->output_, 'get_partition_names', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
    + }
    + else
    + {
    + $this->output_->writeMessageBegin('get_partition_names', TMessageType::CALL, $this->seqid_);
    + $args->write($this->output_);
    + $this->output_->writeMessageEnd();
    + $this->output_->getTransport()->flush();
    + }
    + }
    +
    + public function recv_get_partition_names()
    + {
    + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
    + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_get_partition_names_result', $this->input_->isStrictRead());
    + else
    + {
    + $rseqid = 0;
    + $fname = null;
    + $mtype = 0;
    +
    + $this->input_->readMessageBegin($fname, $mtype, $rseqid);
    + if ($mtype == TMessageType::EXCEPTION) {
    + $x = new TApplicationException();
    + $x->read($this->input_);
    + $this->input_->readMessageEnd();
    + throw $x;
    + }
    + $result = new metastore_ThriftHiveMetastore_get_partition_names_result();
    + $result->read($this->input_);
    + $this->input_->readMessageEnd();
    + }
    + if ($result->success !== null) {
    + return $result->success;
    + }
    + if ($result->o2 !== null) {
    + throw $result->o2;
    + }
    + throw new Exception("get_partition_names failed: unknown result");
    + }
    +
    + public function get_partitions_ps($db_name, $tbl_name, $part_vals, $max_parts)
    + {
    + $this->send_get_partitions_ps($db_name, $tbl_name, $part_vals, $max_parts);
    + return $this->recv_get_partitions_ps();
    + }
    +
    + public function send_get_partitions_ps($db_name, $tbl_name, $part_vals, $max_parts)
    + {
    + $args = new metastore_ThriftHiveMetastore_get_partitions_ps_args();
    + $args->db_name = $db_name;
    + $args->tbl_name = $tbl_name;
    + $args->part_vals = $part_vals;
    + $args->max_parts = $max_parts;
    + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
    + if ($bin_accel)
    + {
    + thrift_protocol_write_binary($this->output_, 'get_partitions_ps', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
    + }
    + else
    + {
    + $this->output_->writeMessageBegin('get_partitions_ps', TMessageType::CALL, $this->seqid_);
    + $args->write($this->output_);
    + $this->output_->writeMessageEnd();
    + $this->output_->getTransport()->flush();
    + }
    + }
    +
    + public function recv_get_partitions_ps()
    + {
    + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
    + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_get_partitions_ps_result', $this->input_->isStrictRead());
    + else
    + {
    + $rseqid = 0;
    + $fname = null;
    + $mtype = 0;
    +
    + $this->input_->readMessageBegin($fname, $mtype, $rseqid);
    + if ($mtype == TMessageType::EXCEPTION) {
    + $x = new TApplicationException();
    + $x->read($this->input_);
    + $this->input_->readMessageEnd();
    + throw $x;
    + }
    + $result = new metastore_ThriftHiveMetastore_get_partitions_ps_result();
    + $result->read($this->input_);
    + $this->input_->readMessageEnd();
    + }
    + if ($result->success !== null) {
    + return $result->success;
    + }
    + if ($result->o1 !== null) {
    + throw $result->o1;
    + }
    + if ($result->o2 !== null) {
    + throw $result->o2;
    + }
    + throw new Exception("get_partitions_ps failed: unknown result");
    + }
    +
    + public function get_partitions_ps_with_auth($db_name, $tbl_name, $part_vals, $max_parts, $user_name, $group_names)
    + {
    + $this->send_get_partitions_ps_with_auth($db_name, $tbl_name, $part_vals, $max_parts, $user_name, $group_names);
    + return $this->recv_get_partitions_ps_with_auth();
    + }
    +
    + public function send_get_partitions_ps_with_auth($db_name, $tbl_name, $part_vals, $max_parts, $user_name, $group_names)
    + {
    + $args = new metastore_ThriftHiveMetastore_get_partitions_ps_with_auth_args();
    + $args->db_name = $db_name;
    + $args->tbl_name = $tbl_name;
    + $args->part_vals = $part_vals;
    + $args->max_parts = $max_parts;
    + $args->user_name = $user_name;
    + $args->group_names = $group_names;
    + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
    + if ($bin_accel)
    + {
    + thrift_protocol_write_binary($this->output_, 'get_partitions_ps_with_auth', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
    + }
    + else
    + {
    + $this->output_->writeMessageBegin('get_partitions_ps_with_auth', TMessageType::CALL, $this->seqid_);
    + $args->write($this->output_);
    + $this->output_->writeMessageEnd();
    + $this->output_->getTransport()->flush();
    + }
    + }
    +
    + public function recv_get_partitions_ps_with_auth()
    + {
    + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
    + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_get_partitions_ps_with_auth_result', $this->input_->isStrictRead());
    + else
    + {
    + $rseqid = 0;
    + $fname = null;
    + $mtype = 0;
    +
    + $this->input_->readMessageBegin($fname, $mtype, $rseqid);
    + if ($mtype == TMessageType::EXCEPTION) {
    + $x = new TApplicationException();
    + $x->read($this->input_);
    + $this->input_->readMessageEnd();
    + throw $x;
    + }
    + $result = new metastore_ThriftHiveMetastore_get_partitions_ps_with_auth_result();
    + $result->read($this->input_);
    + $this->input_->readMessageEnd();
    + }
    + if ($result->success !== null) {
    + return $result->success;
    + }
    + if ($result->o1 !== null) {
    + throw $result->o1;
    + }
    + if ($result->o2 !== null) {
    + throw $result->o2;
    + }
    + throw new Exception("get_partitions_ps_with_auth failed: unknown result");
    + }
    +
    + public function get_partition_names_ps($db_name, $tbl_name, $part_vals, $max_parts)
    + {
    + $this->send_get_partition_names_ps($db_name, $tbl_name, $part_vals, $max_parts);
    + return $this->recv_get_partition_names_ps();
    + }
    +
    + public function send_get_partition_names_ps($db_name, $tbl_name, $part_vals, $max_parts)
    + {
    + $args = new metastore_ThriftHiveMetastore_get_partition_names_ps_args();
    + $args->db_name = $db_name;
    + $args->tbl_name = $tbl_name;
    + $args->part_vals = $part_vals;
    + $args->max_parts = $max_parts;
    + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
    + if ($bin_accel)
    + {
    + thrift_protocol_write_binary($this->output_, 'get_partition_names_ps', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
    + }
    + else
    + {
    + $this->output_->writeMessageBegin('get_partition_names_ps', TMessageType::CALL, $this->seqid_);
    + $args->write($this->output_);
    + $this->output_->writeMessageEnd();
    + $this->output_->getTransport()->flush();
    + }
    + }
    +
    + public function recv_get_partition_names_ps()
    + {
    + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
    + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_get_partition_names_ps_result', $this->input_->isStrictRead());
    + else
    + {
    + $rseqid = 0;
    + $fname = null;
    + $mtype = 0;
    +
    + $this->input_->readMessageBegin($fname, $mtype, $rseqid);
    + if ($mtype == TMessageType::EXCEPTION) {
    + $x = new TApplicationException();
    + $x->read($this->input_);
    + $this->input_->readMessageEnd();
    + throw $x;
    + }
    + $result = new metastore_ThriftHiveMetastore_get_partition_names_ps_result();
    + $result->read($this->input_);
    + $this->input_->readMessageEnd();
    + }
    + if ($result->success !== null) {
    + return $result->success;
    + }
    + if ($result->o1 !== null) {
    + throw $result->o1;
    + }
    + if ($result->o2 !== null) {
    + throw $result->o2;
    + }
    + throw new Exception("get_partition_names_ps failed: unknown result");
    + }
    +
    + public function get_partitions_by_filter($db_name, $tbl_name, $filter, $max_parts)
    + {
    + $this->send_get_partitions_by_filter($db_name, $tbl_name, $filter, $max_parts);
    + return $this->recv_get_partitions_by_filter();
    + }
    +
    + public function send_get_partitions_by_filter($db_name, $tbl_name, $filter, $max_parts)
    + {
    + $args = new metastore_ThriftHiveMetastore_get_partitions_by_filter_args();
    + $args->db_name = $db_name;
    + $args->tbl_name = $tbl_name;
    + $args->filter = $filter;
    + $args->max_parts = $max_parts;
    + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
    + if ($bin_accel)
    + {
    + thrift_protocol_write_binary($this->output_, 'get_partitions_by_filter', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
    + }
    + else
    + {
    + $this->output_->writeMessageBegin('get_partitions_by_filter', TMessageType::CALL, $this->seqid_);
    + $args->write($this->output_);
    + $this->output_->writeMessageEnd();
    + $this->output_->getTransport()->flush();
    + }
    + }
    +
    + public function recv_get_partitions_by_filter()
    + {
    + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
    + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_get_partitions_by_filter_result', $this->input_->isStrictRead());
    + else
    + {
    + $rseqid = 0;
    + $fname = null;
    + $mtype = 0;
    +
    + $this->input_->readMessageBegin($fname, $mtype, $rseqid);
    + if ($mtype == TMessageType::EXCEPTION) {
    + $x = new TApplicationException();
    + $x->read($this->input_);
    + $this->input_->readMessageEnd();
    + throw $x;
    + }
    + $result = new metastore_ThriftHiveMetastore_get_partitions_by_filter_result();
    + $result->read($this->input_);
    + $this->input_->readMessageEnd();
    + }
    + if ($result->success !== null) {
    + return $result->success;
    + }
    + if ($result->o1 !== null) {
    + throw $result->o1;
    + }
    + if ($result->o2 !== null) {
    + throw $result->o2;
    + }
    + throw new Exception("get_partitions_by_filter failed: unknown result");
    + }
    +
    + public function get_partitions_by_names($db_name, $tbl_name, $names)
    + {
    + $this->send_get_partitions_by_names($db_name, $tbl_name, $names);
    + return $this->recv_get_partitions_by_names();
    + }
    +
    + public function send_get_partitions_by_names($db_name, $tbl_name, $names)
    + {
    + $args = new metastore_ThriftHiveMetastore_get_partitions_by_names_args();
    + $args->db_name = $db_name;
    + $args->tbl_name = $tbl_name;
    + $args->names = $names;
    + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
    + if ($bin_accel)
    + {
    + thrift_protocol_write_binary($this->output_, 'get_partitions_by_names', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
    + }
    + else
    + {
    + $this->output_->writeMessageBegin('get_partitions_by_names', TMessageType::CALL, $this->seqid_);
    + $args->write($this->output_);
    + $this->output_->writeMessageEnd();
    + $this->output_->getTransport()->flush();
    + }
    + }
    +
    + public function recv_get_partitions_by_names()
    + {
    + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
    + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_get_partitions_by_names_result', $this->input_->isStrictRead());
    + else
    + {
    + $rseqid = 0;
    + $fname = null;
    + $mtype = 0;
    +
    + $this->input_->readMessageBegin($fname, $mtype, $rseqid);
    + if ($mtype == TMessageType::EXCEPTION) {
    + $x = new TApplicationException();
    + $x->read($this->input_);
    + $this->input_->readMessageEnd();
    + throw $x;
    + }
    + $result = new metastore_ThriftHiveMetastore_get_partitions_by_names_result();
    + $result->read($this->input_);
    + $this->input_->readMessageEnd();
    + }
    + if ($result->success !== null) {
    + return $result->success;
    + }
    + if ($result->o1 !== null) {
    + throw $result->o1;
    + }
    + if ($result->o2 !== null) {
    + throw $result->o2;
    + }
    + throw new Exception("get_partitions_by_names failed: unknown result");
    + }
    +
    + public function alter_partition($db_name, $tbl_name, $new_part)
    + {
    + $this->send_alter_partition($db_name, $tbl_name, $new_part);
    + $this->recv_alter_partition();
    + }
    +
    + public function send_alter_partition($db_name, $tbl_name, $new_part)
    + {
    + $args = new metastore_ThriftHiveMetastore_alter_partition_args();
    + $args->db_name = $db_name;
    + $args->tbl_name = $tbl_name;
    + $args->new_part = $new_part;
    + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
    + if ($bin_accel)
    + {
    + thrift_protocol_write_binary($this->output_, 'alter_partition', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
    + }
    + else
    + {
    + $this->output_->writeMessageBegin('alter_partition', TMessageType::CALL, $this->seqid_);
    + $args->write($this->output_);
    + $this->output_->writeMessageEnd();
    + $this->output_->getTransport()->flush();
    + }
    + }
    +
    + public function recv_alter_partition()
    + {
    + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
    + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_alter_partition_result', $this->input_->isStrictRead());
    + else
    + {
    + $rseqid = 0;
    + $fname = null;
    + $mtype = 0;
    +
    + $this->input_->readMessageBegin($fname, $mtype, $rseqid);
    + if ($mtype == TMessageType::EXCEPTION) {
    + $x = new TApplicationException();
    + $x->read($this->input_);
    + $this->input_->readMessageEnd();
    + throw $x;
    + }
    + $result = new metastore_ThriftHiveMetastore_alter_partition_result();
    + $result->read($this->input_);
    + $this->input_->readMessageEnd();
    + }
    + if ($result->o1 !== null) {
    + throw $result->o1;
    + }
    + if ($result->o2 !== null) {
    + throw $result->o2;
    + }
    + return;
    + }
    +
    + public function rename_partition($db_name, $tbl_name, $part_vals, $new_part)
    + {
    + $this->send_rename_partition($db_name, $tbl_name, $part_vals, $new_part);
    + $this->recv_rename_partition();
    + }
    +
    + public function send_rename_partition($db_name, $tbl_name, $part_vals, $new_part)
    + {
    + $args = new metastore_ThriftHiveMetastore_rename_partition_args();
    + $args->db_name = $db_name;
    + $args->tbl_name = $tbl_name;
    + $args->part_vals = $part_vals;
    + $args->new_part = $new_part;
    + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
    + if ($bin_accel)
    + {
    + thrift_protocol_write_binary($this->output_, 'rename_partition', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
    + }
    + else
    + {
    + $this->output_->writeMessageBegin('rename_partition', TMessageType::CALL, $this->seqid_);
    + $args->write($this->output_);
    + $this->output_->writeMessageEnd();
    + $this->output_->getTransport()->flush();
    + }
    + }
    +
    + public function recv_rename_partition()
    + {
    + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
    + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_rename_partition_result', $this->input_->isStrictRead());
    + else
    + {
    + $rseqid = 0;
    + $fname = null;
    + $mtype = 0;
    +
    + $this->input_->readMessageBegin($fname, $mtype, $rseqid);
    + if ($mtype == TMessageType::EXCEPTION) {
    + $x = new TApplicationException();
    + $x->read($this->input_);
    + $this->input_->readMessageEnd();
    + throw $x;
    + }
    + $result = new metastore_ThriftHiveMetastore_rename_partition_result();
    + $result->read($this->input_);
    + $this->input_->readMessageEnd();
    + }
    + if ($result->o1 !== null) {
    + throw $result->o1;
    + }
    + if ($result->o2 !== null) {
    + throw $result->o2;
    + }
    + return;
    + }
    +
    + public function get_config_value($name, $defaultValue)
    + {
    + $this->send_get_config_value($name, $defaultValue);
    + return $this->recv_get_config_value();
    + }
    +
    + public function send_get_config_value($name, $defaultValue)
    + {
    + $args = new metastore_ThriftHiveMetastore_get_config_value_args();
    + $args->name = $name;
    + $args->defaultValue = $defaultValue;
    + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
    + if ($bin_accel)
    + {
    + thrift_protocol_write_binary($this->output_, 'get_config_value', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
    + }
    + else
    + {
    + $this->output_->writeMessageBegin('get_config_value', TMessageType::CALL, $this->seqid_);
    + $args->write($this->output_);
    + $this->output_->writeMessageEnd();
    + $this->output_->getTransport()->flush();
    + }
    + }
    +
    + public function recv_get_config_value()
    + {
    + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
    + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_get_config_value_result', $this->input_->isStrictRead());
    + else
    + {
    + $rseqid = 0;
    + $fname = null;
    + $mtype = 0;
    +
    + $this->input_->readMessageBegin($fname, $mtype, $rseqid);
    + if ($mtype == TMessageType::EXCEPTION) {
    + $x = new TApplicationException();
    + $x->read($this->input_);
    + $this->input_->readMessageEnd();
    + throw $x;
    + }
    + $result = new metastore_ThriftHiveMetastore_get_config_value_result();
    + $result->read($this->input_);
    + $this->input_->readMessageEnd();
    + }
    + if ($result->success !== null) {
    + return $result->success;
    + }
    + if ($result->o1 !== null) {
    + throw $result->o1;
    + }
    + throw new Exception("get_config_value failed: unknown result");
    + }
    +
    + public function partition_name_to_vals($part_name)
    + {
    + $this->send_partition_name_to_vals($part_name);
    + return $this->recv_partition_name_to_vals();
    + }
    +
    + public function send_partition_name_to_vals($part_name)
    + {
    + $args = new metastore_ThriftHiveMetastore_partition_name_to_vals_args();
    + $args->part_name = $part_name;
    + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
    + if ($bin_accel)
    + {
    + thrift_protocol_write_binary($this->output_, 'partition_name_to_vals', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
    + }
    + else
    + {

    [... 16298 lines stripped ...]
  • Namit at Feb 11, 2012 at 7:50 am
    Modified: hive/trunk/metastore/src/gen/thrift/gen-cpp/hive_metastore_types.cpp
    URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/gen/thrift/gen-cpp/hive_metastore_types.cpp?rev=1243013&r1=1243012&r2=1243013&view=diff
    ==============================================================================
    --- hive/trunk/metastore/src/gen/thrift/gen-cpp/hive_metastore_types.cpp (original)
    +++ hive/trunk/metastore/src/gen/thrift/gen-cpp/hive_metastore_types.cpp Sat Feb 11 07:49:28 2012
    @@ -1253,8 +1253,73 @@ uint32_t Order::write(::apache::thrift::
    return xfer;
    }

    -const char* StorageDescriptor::ascii_fingerprint = "11E4CE18F895C13812C853DFDCD1293F";
    -const uint8_t StorageDescriptor::binary_fingerprint[16] = {0x11,0xE4,0xCE,0x18,0xF8,0x95,0xC1,0x38,0x12,0xC8,0x53,0xDF,0xDC,0xD1,0x29,0x3F};
    +const char* RegionStorageDescriptor::ascii_fingerprint = "07A9615F837F7D0A952B595DD3020972";
    +const uint8_t RegionStorageDescriptor::binary_fingerprint[16] = {0x07,0xA9,0x61,0x5F,0x83,0x7F,0x7D,0x0A,0x95,0x2B,0x59,0x5D,0xD3,0x02,0x09,0x72};
    +
    +uint32_t RegionStorageDescriptor::read(::apache::thrift::protocol::TProtocol* iprot) {
    +
    + uint32_t xfer = 0;
    + std::string fname;
    + ::apache::thrift::protocol::TType ftype;
    + int16_t fid;
    +
    + xfer += iprot->readStructBegin(fname);
    +
    + using ::apache::thrift::protocol::TProtocolException;
    +
    +
    + while (true)
    + {
    + xfer += iprot->readFieldBegin(fname, ftype, fid);
    + if (ftype == ::apache::thrift::protocol::T_STOP) {
    + break;
    + }
    + switch (fid)
    + {
    + case 1:
    + if (ftype == ::apache::thrift::protocol::T_STRING) {
    + xfer += iprot->readString(this->regionName);
    + this->__isset.regionName = true;
    + } else {
    + xfer += iprot->skip(ftype);
    + }
    + break;
    + case 2:
    + if (ftype == ::apache::thrift::protocol::T_STRING) {
    + xfer += iprot->readString(this->location);
    + this->__isset.location = true;
    + } else {
    + xfer += iprot->skip(ftype);
    + }
    + break;
    + default:
    + xfer += iprot->skip(ftype);
    + break;
    + }
    + xfer += iprot->readFieldEnd();
    + }
    +
    + xfer += iprot->readStructEnd();
    +
    + return xfer;
    +}
    +
    +uint32_t RegionStorageDescriptor::write(::apache::thrift::protocol::TProtocol* oprot) const {
    + uint32_t xfer = 0;
    + xfer += oprot->writeStructBegin("RegionStorageDescriptor");
    + xfer += oprot->writeFieldBegin("regionName", ::apache::thrift::protocol::T_STRING, 1);
    + xfer += oprot->writeString(this->regionName);
    + xfer += oprot->writeFieldEnd();
    + xfer += oprot->writeFieldBegin("location", ::apache::thrift::protocol::T_STRING, 2);
    + xfer += oprot->writeString(this->location);
    + xfer += oprot->writeFieldEnd();
    + xfer += oprot->writeFieldStop();
    + xfer += oprot->writeStructEnd();
    + return xfer;
    +}
    +
    +const char* StorageDescriptor::ascii_fingerprint = "67BFF60B597E40E541193F85E811DC8D";
    +const uint8_t StorageDescriptor::binary_fingerprint[16] = {0x67,0xBF,0xF6,0x0B,0x59,0x7E,0x40,0xE5,0x41,0x19,0x3F,0x85,0xE8,0x11,0xDC,0x8D};

    uint32_t StorageDescriptor::read(::apache::thrift::protocol::TProtocol* iprot) {

    @@ -1407,6 +1472,34 @@ uint32_t StorageDescriptor::read(::apach
    xfer += iprot->skip(ftype);
    }
    break;
    + case 11:
    + if (ftype == ::apache::thrift::protocol::T_STRING) {
    + xfer += iprot->readString(this->primaryRegionName);
    + this->__isset.primaryRegionName = true;
    + } else {
    + xfer += iprot->skip(ftype);
    + }
    + break;
    + case 12:
    + if (ftype == ::apache::thrift::protocol::T_LIST) {
    + {
    + this->secondaryRegions.clear();
    + uint32_t _size101;
    + ::apache::thrift::protocol::TType _etype104;
    + iprot->readListBegin(_etype104, _size101);
    + this->secondaryRegions.resize(_size101);
    + uint32_t _i105;
    + for (_i105 = 0; _i105 < _size101; ++_i105)
    + {
    + xfer += this->secondaryRegions[_i105].read(iprot);
    + }
    + iprot->readListEnd();
    + }
    + this->__isset.secondaryRegions = true;
    + } else {
    + xfer += iprot->skip(ftype);
    + }
    + break;
    default:
    xfer += iprot->skip(ftype);
    break;
    @@ -1425,10 +1518,10 @@ uint32_t StorageDescriptor::write(::apac
    xfer += oprot->writeFieldBegin("cols", ::apache::thrift::protocol::T_LIST, 1);
    {
    xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->cols.size()));
    - std::vector<FieldSchema> ::const_iterator _iter101;
    - for (_iter101 = this->cols.begin(); _iter101 != this->cols.end(); ++_iter101)
    + std::vector<FieldSchema> ::const_iterator _iter106;
    + for (_iter106 = this->cols.begin(); _iter106 != this->cols.end(); ++_iter106)
    {
    - xfer += (*_iter101).write(oprot);
    + xfer += (*_iter106).write(oprot);
    }
    xfer += oprot->writeListEnd();
    }
    @@ -1454,10 +1547,10 @@ uint32_t StorageDescriptor::write(::apac
    xfer += oprot->writeFieldBegin("bucketCols", ::apache::thrift::protocol::T_LIST, 8);
    {
    xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->bucketCols.size()));
    - std::vector<std::string> ::const_iterator _iter102;
    - for (_iter102 = this->bucketCols.begin(); _iter102 != this->bucketCols.end(); ++_iter102)
    + std::vector<std::string> ::const_iterator _iter107;
    + for (_iter107 = this->bucketCols.begin(); _iter107 != this->bucketCols.end(); ++_iter107)
    {
    - xfer += oprot->writeString((*_iter102));
    + xfer += oprot->writeString((*_iter107));
    }
    xfer += oprot->writeListEnd();
    }
    @@ -1465,10 +1558,10 @@ uint32_t StorageDescriptor::write(::apac
    xfer += oprot->writeFieldBegin("sortCols", ::apache::thrift::protocol::T_LIST, 9);
    {
    xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->sortCols.size()));
    - std::vector<Order> ::const_iterator _iter103;
    - for (_iter103 = this->sortCols.begin(); _iter103 != this->sortCols.end(); ++_iter103)
    + std::vector<Order> ::const_iterator _iter108;
    + for (_iter108 = this->sortCols.begin(); _iter108 != this->sortCols.end(); ++_iter108)
    {
    - xfer += (*_iter103).write(oprot);
    + xfer += (*_iter108).write(oprot);
    }
    xfer += oprot->writeListEnd();
    }
    @@ -1476,22 +1569,36 @@ uint32_t StorageDescriptor::write(::apac
    xfer += oprot->writeFieldBegin("parameters", ::apache::thrift::protocol::T_MAP, 10);
    {
    xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->parameters.size()));
    - std::map<std::string, std::string> ::const_iterator _iter104;
    - for (_iter104 = this->parameters.begin(); _iter104 != this->parameters.end(); ++_iter104)
    + std::map<std::string, std::string> ::const_iterator _iter109;
    + for (_iter109 = this->parameters.begin(); _iter109 != this->parameters.end(); ++_iter109)
    {
    - xfer += oprot->writeString(_iter104->first);
    - xfer += oprot->writeString(_iter104->second);
    + xfer += oprot->writeString(_iter109->first);
    + xfer += oprot->writeString(_iter109->second);
    }
    xfer += oprot->writeMapEnd();
    }
    xfer += oprot->writeFieldEnd();
    + xfer += oprot->writeFieldBegin("primaryRegionName", ::apache::thrift::protocol::T_STRING, 11);
    + xfer += oprot->writeString(this->primaryRegionName);
    + xfer += oprot->writeFieldEnd();
    + xfer += oprot->writeFieldBegin("secondaryRegions", ::apache::thrift::protocol::T_LIST, 12);
    + {
    + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->secondaryRegions.size()));
    + std::vector<RegionStorageDescriptor> ::const_iterator _iter110;
    + for (_iter110 = this->secondaryRegions.begin(); _iter110 != this->secondaryRegions.end(); ++_iter110)
    + {
    + xfer += (*_iter110).write(oprot);
    + }
    + xfer += oprot->writeListEnd();
    + }
    + xfer += oprot->writeFieldEnd();
    xfer += oprot->writeFieldStop();
    xfer += oprot->writeStructEnd();
    return xfer;
    }

    -const char* Table::ascii_fingerprint = "26BE788C09746068A2616712C9262900";
    -const uint8_t Table::binary_fingerprint[16] = {0x26,0xBE,0x78,0x8C,0x09,0x74,0x60,0x68,0xA2,0x61,0x67,0x12,0xC9,0x26,0x29,0x00};
    +const char* Table::ascii_fingerprint = "6FF520A3FDB5F73BB03D09C027BC88E2";
    +const uint8_t Table::binary_fingerprint[16] = {0x6F,0xF5,0x20,0xA3,0xFD,0xB5,0xF7,0x3B,0xB0,0x3D,0x09,0xC0,0x27,0xBC,0x88,0xE2};

    uint32_t Table::read(::apache::thrift::protocol::TProtocol* iprot) {

    @@ -1573,14 +1680,14 @@ uint32_t Table::read(::apache::thrift::p
    if (ftype == ::apache::thrift::protocol::T_LIST) {
    {
    this->partitionKeys.clear();
    - uint32_t _size105;
    - ::apache::thrift::protocol::TType _etype108;
    - iprot->readListBegin(_etype108, _size105);
    - this->partitionKeys.resize(_size105);
    - uint32_t _i109;
    - for (_i109 = 0; _i109 < _size105; ++_i109)
    + uint32_t _size111;
    + ::apache::thrift::protocol::TType _etype114;
    + iprot->readListBegin(_etype114, _size111);
    + this->partitionKeys.resize(_size111);
    + uint32_t _i115;
    + for (_i115 = 0; _i115 < _size111; ++_i115)
    {
    - xfer += this->partitionKeys[_i109].read(iprot);
    + xfer += this->partitionKeys[_i115].read(iprot);
    }
    iprot->readListEnd();
    }
    @@ -1593,17 +1700,17 @@ uint32_t Table::read(::apache::thrift::p
    if (ftype == ::apache::thrift::protocol::T_MAP) {
    {
    this->parameters.clear();
    - uint32_t _size110;
    - ::apache::thrift::protocol::TType _ktype111;
    - ::apache::thrift::protocol::TType _vtype112;
    - iprot->readMapBegin(_ktype111, _vtype112, _size110);
    - uint32_t _i114;
    - for (_i114 = 0; _i114 < _size110; ++_i114)
    + uint32_t _size116;
    + ::apache::thrift::protocol::TType _ktype117;
    + ::apache::thrift::protocol::TType _vtype118;
    + iprot->readMapBegin(_ktype117, _vtype118, _size116);
    + uint32_t _i120;
    + for (_i120 = 0; _i120 < _size116; ++_i120)
    {
    - std::string _key115;
    - xfer += iprot->readString(_key115);
    - std::string& _val116 = this->parameters[_key115];
    - xfer += iprot->readString(_val116);
    + std::string _key121;
    + xfer += iprot->readString(_key121);
    + std::string& _val122 = this->parameters[_key121];
    + xfer += iprot->readString(_val122);
    }
    iprot->readMapEnd();
    }
    @@ -1683,10 +1790,10 @@ uint32_t Table::write(::apache::thrift::
    xfer += oprot->writeFieldBegin("partitionKeys", ::apache::thrift::protocol::T_LIST, 8);
    {
    xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->partitionKeys.size()));
    - std::vector<FieldSchema> ::const_iterator _iter117;
    - for (_iter117 = this->partitionKeys.begin(); _iter117 != this->partitionKeys.end(); ++_iter117)
    + std::vector<FieldSchema> ::const_iterator _iter123;
    + for (_iter123 = this->partitionKeys.begin(); _iter123 != this->partitionKeys.end(); ++_iter123)
    {
    - xfer += (*_iter117).write(oprot);
    + xfer += (*_iter123).write(oprot);
    }
    xfer += oprot->writeListEnd();
    }
    @@ -1694,11 +1801,11 @@ uint32_t Table::write(::apache::thrift::
    xfer += oprot->writeFieldBegin("parameters", ::apache::thrift::protocol::T_MAP, 9);
    {
    xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->parameters.size()));
    - std::map<std::string, std::string> ::const_iterator _iter118;
    - for (_iter118 = this->parameters.begin(); _iter118 != this->parameters.end(); ++_iter118)
    + std::map<std::string, std::string> ::const_iterator _iter124;
    + for (_iter124 = this->parameters.begin(); _iter124 != this->parameters.end(); ++_iter124)
    {
    - xfer += oprot->writeString(_iter118->first);
    - xfer += oprot->writeString(_iter118->second);
    + xfer += oprot->writeString(_iter124->first);
    + xfer += oprot->writeString(_iter124->second);
    }
    xfer += oprot->writeMapEnd();
    }
    @@ -1722,8 +1829,8 @@ uint32_t Table::write(::apache::thrift::
    return xfer;
    }

    -const char* Partition::ascii_fingerprint = "F480E1D1B8AEBDDB37F8E180C0F07395";
    -const uint8_t Partition::binary_fingerprint[16] = {0xF4,0x80,0xE1,0xD1,0xB8,0xAE,0xBD,0xDB,0x37,0xF8,0xE1,0x80,0xC0,0xF0,0x73,0x95};
    +const char* Partition::ascii_fingerprint = "9DC9BCB205A70AFE078D9663673DA11B";
    +const uint8_t Partition::binary_fingerprint[16] = {0x9D,0xC9,0xBC,0xB2,0x05,0xA7,0x0A,0xFE,0x07,0x8D,0x96,0x63,0x67,0x3D,0xA1,0x1B};

    uint32_t Partition::read(::apache::thrift::protocol::TProtocol* iprot) {

    @@ -1749,14 +1856,14 @@ uint32_t Partition::read(::apache::thrif
    if (ftype == ::apache::thrift::protocol::T_LIST) {
    {
    this->values.clear();
    - uint32_t _size119;
    - ::apache::thrift::protocol::TType _etype122;
    - iprot->readListBegin(_etype122, _size119);
    - this->values.resize(_size119);
    - uint32_t _i123;
    - for (_i123 = 0; _i123 < _size119; ++_i123)
    + uint32_t _size125;
    + ::apache::thrift::protocol::TType _etype128;
    + iprot->readListBegin(_etype128, _size125);
    + this->values.resize(_size125);
    + uint32_t _i129;
    + for (_i129 = 0; _i129 < _size125; ++_i129)
    {
    - xfer += iprot->readString(this->values[_i123]);
    + xfer += iprot->readString(this->values[_i129]);
    }
    iprot->readListEnd();
    }
    @@ -1809,17 +1916,17 @@ uint32_t Partition::read(::apache::thrif
    if (ftype == ::apache::thrift::protocol::T_MAP) {
    {
    this->parameters.clear();
    - uint32_t _size124;
    - ::apache::thrift::protocol::TType _ktype125;
    - ::apache::thrift::protocol::TType _vtype126;
    - iprot->readMapBegin(_ktype125, _vtype126, _size124);
    - uint32_t _i128;
    - for (_i128 = 0; _i128 < _size124; ++_i128)
    + uint32_t _size130;
    + ::apache::thrift::protocol::TType _ktype131;
    + ::apache::thrift::protocol::TType _vtype132;
    + iprot->readMapBegin(_ktype131, _vtype132, _size130);
    + uint32_t _i134;
    + for (_i134 = 0; _i134 < _size130; ++_i134)
    {
    - std::string _key129;
    - xfer += iprot->readString(_key129);
    - std::string& _val130 = this->parameters[_key129];
    - xfer += iprot->readString(_val130);
    + std::string _key135;
    + xfer += iprot->readString(_key135);
    + std::string& _val136 = this->parameters[_key135];
    + xfer += iprot->readString(_val136);
    }
    iprot->readMapEnd();
    }
    @@ -1854,10 +1961,10 @@ uint32_t Partition::write(::apache::thri
    xfer += oprot->writeFieldBegin("values", ::apache::thrift::protocol::T_LIST, 1);
    {
    xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->values.size()));
    - std::vector<std::string> ::const_iterator _iter131;
    - for (_iter131 = this->values.begin(); _iter131 != this->values.end(); ++_iter131)
    + std::vector<std::string> ::const_iterator _iter137;
    + for (_iter137 = this->values.begin(); _iter137 != this->values.end(); ++_iter137)
    {
    - xfer += oprot->writeString((*_iter131));
    + xfer += oprot->writeString((*_iter137));
    }
    xfer += oprot->writeListEnd();
    }
    @@ -1880,11 +1987,11 @@ uint32_t Partition::write(::apache::thri
    xfer += oprot->writeFieldBegin("parameters", ::apache::thrift::protocol::T_MAP, 7);
    {
    xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->parameters.size()));
    - std::map<std::string, std::string> ::const_iterator _iter132;
    - for (_iter132 = this->parameters.begin(); _iter132 != this->parameters.end(); ++_iter132)
    + std::map<std::string, std::string> ::const_iterator _iter138;
    + for (_iter138 = this->parameters.begin(); _iter138 != this->parameters.end(); ++_iter138)
    {
    - xfer += oprot->writeString(_iter132->first);
    - xfer += oprot->writeString(_iter132->second);
    + xfer += oprot->writeString(_iter138->first);
    + xfer += oprot->writeString(_iter138->second);
    }
    xfer += oprot->writeMapEnd();
    }
    @@ -1899,8 +2006,8 @@ uint32_t Partition::write(::apache::thri
    return xfer;
    }

    -const char* Index::ascii_fingerprint = "5FEE4F7E28935B644F207D74459F6A29";
    -const uint8_t Index::binary_fingerprint[16] = {0x5F,0xEE,0x4F,0x7E,0x28,0x93,0x5B,0x64,0x4F,0x20,0x7D,0x74,0x45,0x9F,0x6A,0x29};
    +const char* Index::ascii_fingerprint = "23D1851E2E1791DEBCC4F08B8E0AA688";
    +const uint8_t Index::binary_fingerprint[16] = {0x23,0xD1,0x85,0x1E,0x2E,0x17,0x91,0xDE,0xBC,0xC4,0xF0,0x8B,0x8E,0x0A,0xA6,0x88};

    uint32_t Index::read(::apache::thrift::protocol::TProtocol* iprot) {

    @@ -1990,17 +2097,17 @@ uint32_t Index::read(::apache::thrift::p
    if (ftype == ::apache::thrift::protocol::T_MAP) {
    {
    this->parameters.clear();
    - uint32_t _size133;
    - ::apache::thrift::protocol::TType _ktype134;
    - ::apache::thrift::protocol::TType _vtype135;
    - iprot->readMapBegin(_ktype134, _vtype135, _size133);
    - uint32_t _i137;
    - for (_i137 = 0; _i137 < _size133; ++_i137)
    + uint32_t _size139;
    + ::apache::thrift::protocol::TType _ktype140;
    + ::apache::thrift::protocol::TType _vtype141;
    + iprot->readMapBegin(_ktype140, _vtype141, _size139);
    + uint32_t _i143;
    + for (_i143 = 0; _i143 < _size139; ++_i143)
    {
    - std::string _key138;
    - xfer += iprot->readString(_key138);
    - std::string& _val139 = this->parameters[_key138];
    - xfer += iprot->readString(_val139);
    + std::string _key144;
    + xfer += iprot->readString(_key144);
    + std::string& _val145 = this->parameters[_key144];
    + xfer += iprot->readString(_val145);
    }
    iprot->readMapEnd();
    }
    @@ -2059,11 +2166,11 @@ uint32_t Index::write(::apache::thrift::
    xfer += oprot->writeFieldBegin("parameters", ::apache::thrift::protocol::T_MAP, 9);
    {
    xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->parameters.size()));
    - std::map<std::string, std::string> ::const_iterator _iter140;
    - for (_iter140 = this->parameters.begin(); _iter140 != this->parameters.end(); ++_iter140)
    + std::map<std::string, std::string> ::const_iterator _iter146;
    + for (_iter146 = this->parameters.begin(); _iter146 != this->parameters.end(); ++_iter146)
    {
    - xfer += oprot->writeString(_iter140->first);
    - xfer += oprot->writeString(_iter140->second);
    + xfer += oprot->writeString(_iter146->first);
    + xfer += oprot->writeString(_iter146->second);
    }
    xfer += oprot->writeMapEnd();
    }
    @@ -2103,14 +2210,14 @@ uint32_t Schema::read(::apache::thrift::
    if (ftype == ::apache::thrift::protocol::T_LIST) {
    {
    this->fieldSchemas.clear();
    - uint32_t _size141;
    - ::apache::thrift::protocol::TType _etype144;
    - iprot->readListBegin(_etype144, _size141);
    - this->fieldSchemas.resize(_size141);
    - uint32_t _i145;
    - for (_i145 = 0; _i145 < _size141; ++_i145)
    + uint32_t _size147;
    + ::apache::thrift::protocol::TType _etype150;
    + iprot->readListBegin(_etype150, _size147);
    + this->fieldSchemas.resize(_size147);
    + uint32_t _i151;
    + for (_i151 = 0; _i151 < _size147; ++_i151)
    {
    - xfer += this->fieldSchemas[_i145].read(iprot);
    + xfer += this->fieldSchemas[_i151].read(iprot);
    }
    iprot->readListEnd();
    }
    @@ -2123,17 +2230,17 @@ uint32_t Schema::read(::apache::thrift::
    if (ftype == ::apache::thrift::protocol::T_MAP) {
    {
    this->properties.clear();
    - uint32_t _size146;
    - ::apache::thrift::protocol::TType _ktype147;
    - ::apache::thrift::protocol::TType _vtype148;
    - iprot->readMapBegin(_ktype147, _vtype148, _size146);
    - uint32_t _i150;
    - for (_i150 = 0; _i150 < _size146; ++_i150)
    + uint32_t _size152;
    + ::apache::thrift::protocol::TType _ktype153;
    + ::apache::thrift::protocol::TType _vtype154;
    + iprot->readMapBegin(_ktype153, _vtype154, _size152);
    + uint32_t _i156;
    + for (_i156 = 0; _i156 < _size152; ++_i156)
    {
    - std::string _key151;
    - xfer += iprot->readString(_key151);
    - std::string& _val152 = this->properties[_key151];
    - xfer += iprot->readString(_val152);
    + std::string _key157;
    + xfer += iprot->readString(_key157);
    + std::string& _val158 = this->properties[_key157];
    + xfer += iprot->readString(_val158);
    }
    iprot->readMapEnd();
    }
    @@ -2160,10 +2267,10 @@ uint32_t Schema::write(::apache::thrift:
    xfer += oprot->writeFieldBegin("fieldSchemas", ::apache::thrift::protocol::T_LIST, 1);
    {
    xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->fieldSchemas.size()));
    - std::vector<FieldSchema> ::const_iterator _iter153;
    - for (_iter153 = this->fieldSchemas.begin(); _iter153 != this->fieldSchemas.end(); ++_iter153)
    + std::vector<FieldSchema> ::const_iterator _iter159;
    + for (_iter159 = this->fieldSchemas.begin(); _iter159 != this->fieldSchemas.end(); ++_iter159)
    {
    - xfer += (*_iter153).write(oprot);
    + xfer += (*_iter159).write(oprot);
    }
    xfer += oprot->writeListEnd();
    }
    @@ -2171,11 +2278,11 @@ uint32_t Schema::write(::apache::thrift:
    xfer += oprot->writeFieldBegin("properties", ::apache::thrift::protocol::T_MAP, 2);
    {
    xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->properties.size()));
    - std::map<std::string, std::string> ::const_iterator _iter154;
    - for (_iter154 = this->properties.begin(); _iter154 != this->properties.end(); ++_iter154)
    + std::map<std::string, std::string> ::const_iterator _iter160;
    + for (_iter160 = this->properties.begin(); _iter160 != this->properties.end(); ++_iter160)
    {
    - xfer += oprot->writeString(_iter154->first);
    - xfer += oprot->writeString(_iter154->second);
    + xfer += oprot->writeString(_iter160->first);
    + xfer += oprot->writeString(_iter160->second);
    }
    xfer += oprot->writeMapEnd();
    }

    Modified: hive/trunk/metastore/src/gen/thrift/gen-cpp/hive_metastore_types.h
    URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/gen/thrift/gen-cpp/hive_metastore_types.h?rev=1243013&r1=1243012&r2=1243013&view=diff
    ==============================================================================
    --- hive/trunk/metastore/src/gen/thrift/gen-cpp/hive_metastore_types.h (original)
    +++ hive/trunk/metastore/src/gen/thrift/gen-cpp/hive_metastore_types.h Sat Feb 11 07:49:28 2012
    @@ -774,8 +774,57 @@ class Order {

    };

    +typedef struct _RegionStorageDescriptor__isset {
    + _RegionStorageDescriptor__isset() : regionName(false), location(false) {}
    + bool regionName;
    + bool location;
    +} _RegionStorageDescriptor__isset;
    +
    +class RegionStorageDescriptor {
    + public:
    +
    + static const char* ascii_fingerprint; // = "07A9615F837F7D0A952B595DD3020972";
    + static const uint8_t binary_fingerprint[16]; // = {0x07,0xA9,0x61,0x5F,0x83,0x7F,0x7D,0x0A,0x95,0x2B,0x59,0x5D,0xD3,0x02,0x09,0x72};
    +
    + RegionStorageDescriptor() : regionName(""), location("") {
    + }
    +
    + virtual ~RegionStorageDescriptor() throw() {}
    +
    + std::string regionName;
    + std::string location;
    +
    + _RegionStorageDescriptor__isset __isset;
    +
    + void __set_regionName(const std::string& val) {
    + regionName = val;
    + }
    +
    + void __set_location(const std::string& val) {
    + location = val;
    + }
    +
    + bool operator == (const RegionStorageDescriptor & rhs) const
    + {
    + if (!(regionName == rhs.regionName))
    + return false;
    + if (!(location == rhs.location))
    + return false;
    + return true;
    + }
    + bool operator != (const RegionStorageDescriptor &rhs) const {
    + return !(*this == rhs);
    + }
    +
    + bool operator < (const RegionStorageDescriptor & ) const;
    +
    + uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
    + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
    +
    +};
    +
    typedef struct _StorageDescriptor__isset {
    - _StorageDescriptor__isset() : cols(false), location(false), inputFormat(false), outputFormat(false), compressed(false), numBuckets(false), serdeInfo(false), bucketCols(false), sortCols(false), parameters(false) {}
    + _StorageDescriptor__isset() : cols(false), location(false), inputFormat(false), outputFormat(false), compressed(false), numBuckets(false), serdeInfo(false), bucketCols(false), sortCols(false), parameters(false), primaryRegionName(false), secondaryRegions(false) {}
    bool cols;
    bool location;
    bool inputFormat;
    @@ -786,15 +835,17 @@ typedef struct _StorageDescriptor__isset
    bool bucketCols;
    bool sortCols;
    bool parameters;
    + bool primaryRegionName;
    + bool secondaryRegions;
    } _StorageDescriptor__isset;

    class StorageDescriptor {
    public:

    - static const char* ascii_fingerprint; // = "11E4CE18F895C13812C853DFDCD1293F";
    - static const uint8_t binary_fingerprint[16]; // = {0x11,0xE4,0xCE,0x18,0xF8,0x95,0xC1,0x38,0x12,0xC8,0x53,0xDF,0xDC,0xD1,0x29,0x3F};
    + static const char* ascii_fingerprint; // = "67BFF60B597E40E541193F85E811DC8D";
    + static const uint8_t binary_fingerprint[16]; // = {0x67,0xBF,0xF6,0x0B,0x59,0x7E,0x40,0xE5,0x41,0x19,0x3F,0x85,0xE8,0x11,0xDC,0x8D};

    - StorageDescriptor() : location(""), inputFormat(""), outputFormat(""), compressed(0), numBuckets(0) {
    + StorageDescriptor() : location(""), inputFormat(""), outputFormat(""), compressed(0), numBuckets(0), primaryRegionName("") {
    }

    virtual ~StorageDescriptor() throw() {}
    @@ -809,6 +860,8 @@ class StorageDescriptor {
    std::vector<std::string> bucketCols;
    std::vector<Order> sortCols;
    std::map<std::string, std::string> parameters;
    + std::string primaryRegionName;
    + std::vector<RegionStorageDescriptor> secondaryRegions;

    _StorageDescriptor__isset __isset;

    @@ -852,6 +905,14 @@ class StorageDescriptor {
    parameters = val;
    }

    + void __set_primaryRegionName(const std::string& val) {
    + primaryRegionName = val;
    + }
    +
    + void __set_secondaryRegions(const std::vector<RegionStorageDescriptor> & val) {
    + secondaryRegions = val;
    + }
    +
    bool operator == (const StorageDescriptor & rhs) const
    {
    if (!(cols == rhs.cols))
    @@ -874,6 +935,10 @@ class StorageDescriptor {
    return false;
    if (!(parameters == rhs.parameters))
    return false;
    + if (!(primaryRegionName == rhs.primaryRegionName))
    + return false;
    + if (!(secondaryRegions == rhs.secondaryRegions))
    + return false;
    return true;
    }
    bool operator != (const StorageDescriptor &rhs) const {
    @@ -907,8 +972,8 @@ typedef struct _Table__isset {
    class Table {
    public:

    - static const char* ascii_fingerprint; // = "26BE788C09746068A2616712C9262900";
    - static const uint8_t binary_fingerprint[16]; // = {0x26,0xBE,0x78,0x8C,0x09,0x74,0x60,0x68,0xA2,0x61,0x67,0x12,0xC9,0x26,0x29,0x00};
    + static const char* ascii_fingerprint; // = "6FF520A3FDB5F73BB03D09C027BC88E2";
    + static const uint8_t binary_fingerprint[16]; // = {0x6F,0xF5,0x20,0xA3,0xFD,0xB5,0xF7,0x3B,0xB0,0x3D,0x09,0xC0,0x27,0xBC,0x88,0xE2};

    Table() : tableName(""), dbName(""), owner(""), createTime(0), lastAccessTime(0), retention(0), viewOriginalText(""), viewExpandedText(""), tableType("") {
    }
    @@ -1042,8 +1107,8 @@ typedef struct _Partition__isset {
    class Partition {
    public:

    - static const char* ascii_fingerprint; // = "F480E1D1B8AEBDDB37F8E180C0F07395";
    - static const uint8_t binary_fingerprint[16]; // = {0xF4,0x80,0xE1,0xD1,0xB8,0xAE,0xBD,0xDB,0x37,0xF8,0xE1,0x80,0xC0,0xF0,0x73,0x95};
    + static const char* ascii_fingerprint; // = "9DC9BCB205A70AFE078D9663673DA11B";
    + static const uint8_t binary_fingerprint[16]; // = {0x9D,0xC9,0xBC,0xB2,0x05,0xA7,0x0A,0xFE,0x07,0x8D,0x96,0x63,0x67,0x3D,0xA1,0x1B};

    Partition() : dbName(""), tableName(""), createTime(0), lastAccessTime(0) {
    }
    @@ -1144,8 +1209,8 @@ typedef struct _Index__isset {
    class Index {
    public:

    - static const char* ascii_fingerprint; // = "5FEE4F7E28935B644F207D74459F6A29";
    - static const uint8_t binary_fingerprint[16]; // = {0x5F,0xEE,0x4F,0x7E,0x28,0x93,0x5B,0x64,0x4F,0x20,0x7D,0x74,0x45,0x9F,0x6A,0x29};
    + static const char* ascii_fingerprint; // = "23D1851E2E1791DEBCC4F08B8E0AA688";
    + static const uint8_t binary_fingerprint[16]; // = {0x23,0xD1,0x85,0x1E,0x2E,0x17,0x91,0xDE,0xBC,0xC4,0xF0,0x8B,0x8E,0x0A,0xA6,0x88};

    Index() : indexName(""), indexHandlerClass(""), dbName(""), origTableName(""), createTime(0), lastAccessTime(0), indexTableName(""), deferredRebuild(0) {
    }

    Modified: hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Index.java
    URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Index.java?rev=1243013&r1=1243012&r2=1243013&view=diff
    ==============================================================================
    --- hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Index.java (original)
    +++ hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Index.java Sat Feb 11 07:49:28 2012
    @@ -949,15 +949,15 @@ public class Index implements org.apache
    case 9: // PARAMETERS
    if (field.type == org.apache.thrift.protocol.TType.MAP) {
    {
    - org.apache.thrift.protocol.TMap _map84 = iprot.readMapBegin();
    - this.parameters = new HashMap<String,String>(2*_map84.size);
    - for (int _i85 = 0; _i85 < _map84.size; ++_i85)
    + org.apache.thrift.protocol.TMap _map88 = iprot.readMapBegin();
    + this.parameters = new HashMap<String,String>(2*_map88.size);
    + for (int _i89 = 0; _i89 < _map88.size; ++_i89)
    {
    - String _key86; // required
    - String _val87; // required
    - _key86 = iprot.readString();
    - _val87 = iprot.readString();
    - this.parameters.put(_key86, _val87);
    + String _key90; // required
    + String _val91; // required
    + _key90 = iprot.readString();
    + _val91 = iprot.readString();
    + this.parameters.put(_key90, _val91);
    }
    iprot.readMapEnd();
    }
    @@ -1026,10 +1026,10 @@ public class Index implements org.apache
    oprot.writeFieldBegin(PARAMETERS_FIELD_DESC);
    {
    oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, this.parameters.size()));
    - for (Map.Entry<String, String> _iter88 : this.parameters.entrySet())
    + for (Map.Entry<String, String> _iter92 : this.parameters.entrySet())
    {
    - oprot.writeString(_iter88.getKey());
    - oprot.writeString(_iter88.getValue());
    + oprot.writeString(_iter92.getKey());
    + oprot.writeString(_iter92.getValue());
    }
    oprot.writeMapEnd();
    }

    Modified: hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Partition.java
    URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Partition.java?rev=1243013&r1=1243012&r2=1243013&view=diff
    ==============================================================================
    --- hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Partition.java (original)
    +++ hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Partition.java Sat Feb 11 07:49:28 2012
    @@ -772,13 +772,13 @@ public class Partition implements org.ap
    case 1: // VALUES
    if (field.type == org.apache.thrift.protocol.TType.LIST) {
    {
    - org.apache.thrift.protocol.TList _list75 = iprot.readListBegin();
    - this.values = new ArrayList<String>(_list75.size);
    - for (int _i76 = 0; _i76 < _list75.size; ++_i76)
    + org.apache.thrift.protocol.TList _list79 = iprot.readListBegin();
    + this.values = new ArrayList<String>(_list79.size);
    + for (int _i80 = 0; _i80 < _list79.size; ++_i80)
    {
    - String _elem77; // required
    - _elem77 = iprot.readString();
    - this.values.add(_elem77);
    + String _elem81; // required
    + _elem81 = iprot.readString();
    + this.values.add(_elem81);
    }
    iprot.readListEnd();
    }
    @@ -827,15 +827,15 @@ public class Partition implements org.ap
    case 7: // PARAMETERS
    if (field.type == org.apache.thrift.protocol.TType.MAP) {
    {
    - org.apache.thrift.protocol.TMap _map78 = iprot.readMapBegin();
    - this.parameters = new HashMap<String,String>(2*_map78.size);
    - for (int _i79 = 0; _i79 < _map78.size; ++_i79)
    + org.apache.thrift.protocol.TMap _map82 = iprot.readMapBegin();
    + this.parameters = new HashMap<String,String>(2*_map82.size);
    + for (int _i83 = 0; _i83 < _map82.size; ++_i83)
    {
    - String _key80; // required
    - String _val81; // required
    - _key80 = iprot.readString();
    - _val81 = iprot.readString();
    - this.parameters.put(_key80, _val81);
    + String _key84; // required
    + String _val85; // required
    + _key84 = iprot.readString();
    + _val85 = iprot.readString();
    + this.parameters.put(_key84, _val85);
    }
    iprot.readMapEnd();
    }
    @@ -868,9 +868,9 @@ public class Partition implements org.ap
    oprot.writeFieldBegin(VALUES_FIELD_DESC);
    {
    oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.values.size()));
    - for (String _iter82 : this.values)
    + for (String _iter86 : this.values)
    {
    - oprot.writeString(_iter82);
    + oprot.writeString(_iter86);
    }
    oprot.writeListEnd();
    }
    @@ -901,10 +901,10 @@ public class Partition implements org.ap
    oprot.writeFieldBegin(PARAMETERS_FIELD_DESC);
    {
    oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, this.parameters.size()));
    - for (Map.Entry<String, String> _iter83 : this.parameters.entrySet())
    + for (Map.Entry<String, String> _iter87 : this.parameters.entrySet())
    {
    - oprot.writeString(_iter83.getKey());
    - oprot.writeString(_iter83.getValue());
    + oprot.writeString(_iter87.getKey());
    + oprot.writeString(_iter87.getValue());
    }
    oprot.writeMapEnd();
    }

    Added: hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/RegionStorageDescriptor.java
    URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/RegionStorageDescriptor.java?rev=1243013&view=auto
    ==============================================================================
    --- hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/RegionStorageDescriptor.java (added)
    +++ hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/RegionStorageDescriptor.java Sat Feb 11 07:49:28 2012
    @@ -0,0 +1,404 @@
    +/**
    + * Autogenerated by Thrift Compiler (0.7.0)
    + *
    + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
    + */
    +package org.apache.hadoop.hive.metastore.api;
    +
    +import java.util.List;
    +import java.util.ArrayList;
    +import java.util.Map;
    +import java.util.HashMap;
    +import java.util.EnumMap;
    +import java.util.Set;
    +import java.util.HashSet;
    +import java.util.EnumSet;
    +import java.util.Collections;
    +import java.util.BitSet;
    +import java.nio.ByteBuffer;
    +import java.util.Arrays;
    +import org.slf4j.Logger;
    +import org.slf4j.LoggerFactory;
    +
    +public class RegionStorageDescriptor implements org.apache.thrift.TBase<RegionStorageDescriptor, RegionStorageDescriptor._Fields>, java.io.Serializable, Cloneable {
    + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("RegionStorageDescriptor");
    +
    + private static final org.apache.thrift.protocol.TField REGION_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("regionName", org.apache.thrift.protocol.TType.STRING, (short)1);
    + private static final org.apache.thrift.protocol.TField LOCATION_FIELD_DESC = new org.apache.thrift.protocol.TField("location", org.apache.thrift.protocol.TType.STRING, (short)2);
    +
    + private String regionName; // required
    + private String location; // required
    +
    + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
    + public enum _Fields implements org.apache.thrift.TFieldIdEnum {
    + REGION_NAME((short)1, "regionName"),
    + LOCATION((short)2, "location");
    +
    + private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
    +
    + static {
    + for (_Fields field : EnumSet.allOf(_Fields.class)) {
    + byName.put(field.getFieldName(), field);
    + }
    + }
    +
    + /**
    + * Find the _Fields constant that matches fieldId, or null if its not found.
    + */
    + public static _Fields findByThriftId(int fieldId) {
    + switch(fieldId) {
    + case 1: // REGION_NAME
    + return REGION_NAME;
    + case 2: // LOCATION
    + return LOCATION;
    + default:
    + return null;
    + }
    + }
    +
    + /**
    + * Find the _Fields constant that matches fieldId, throwing an exception
    + * if it is not found.
    + */
    + public static _Fields findByThriftIdOrThrow(int fieldId) {
    + _Fields fields = findByThriftId(fieldId);
    + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
    + return fields;
    + }
    +
    + /**
    + * Find the _Fields constant that matches name, or null if its not found.
    + */
    + public static _Fields findByName(String name) {
    + return byName.get(name);
    + }
    +
    + private final short _thriftId;
    + private final String _fieldName;
    +
    + _Fields(short thriftId, String fieldName) {
    + _thriftId = thriftId;
    + _fieldName = fieldName;
    + }
    +
    + public short getThriftFieldId() {
    + return _thriftId;
    + }
    +
    + public String getFieldName() {
    + return _fieldName;
    + }
    + }
    +
    + // isset id assignments
    +
    + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
    + static {
    + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
    + tmpMap.put(_Fields.REGION_NAME, new org.apache.thrift.meta_data.FieldMetaData("regionName", org.apache.thrift.TFieldRequirementType.DEFAULT,
    + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
    + tmpMap.put(_Fields.LOCATION, new org.apache.thrift.meta_data.FieldMetaData("location", org.apache.thrift.TFieldRequirementType.DEFAULT,
    + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
    + metaDataMap = Collections.unmodifiableMap(tmpMap);
    + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(RegionStorageDescriptor.class, metaDataMap);
    + }
    +
    + public RegionStorageDescriptor() {
    + }
    +
    + public RegionStorageDescriptor(
    + String regionName,
    + String location)
    + {
    + this();
    + this.regionName = regionName;
    + this.location = location;
    + }
    +
    + /**
    + * Performs a deep copy on <i>other</i>.
    + */
    + public RegionStorageDescriptor(RegionStorageDescriptor other) {
    + if (other.isSetRegionName()) {
    + this.regionName = other.regionName;
    + }
    + if (other.isSetLocation()) {
    + this.location = other.location;
    + }
    + }
    +
    + public RegionStorageDescriptor deepCopy() {
    + return new RegionStorageDescriptor(this);
    + }
    +
    + @Override
    + public void clear() {
    + this.regionName = null;
    + this.location = null;
    + }
    +
    + public String getRegionName() {
    + return this.regionName;
    + }
    +
    + public void setRegionName(String regionName) {
    + this.regionName = regionName;
    + }
    +
    + public void unsetRegionName() {
    + this.regionName = null;
    + }
    +
    + /** Returns true if field regionName is set (has been assigned a value) and false otherwise */
    + public boolean isSetRegionName() {
    + return this.regionName != null;
    + }
    +
    + public void setRegionNameIsSet(boolean value) {
    + if (!value) {
    + this.regionName = null;
    + }
    + }
    +
    + public String getLocation() {
    + return this.location;
    + }
    +
    + public void setLocation(String location) {
    + this.location = location;
    + }
    +
    + public void unsetLocation() {
    + this.location = null;
    + }
    +
    + /** Returns true if field location is set (has been assigned a value) and false otherwise */
    + public boolean isSetLocation() {
    + return this.location != null;
    + }
    +
    + public void setLocationIsSet(boolean value) {
    + if (!value) {
    + this.location = null;
    + }
    + }
    +
    + public void setFieldValue(_Fields field, Object value) {
    + switch (field) {
    + case REGION_NAME:
    + if (value == null) {
    + unsetRegionName();
    + } else {
    + setRegionName((String)value);
    + }
    + break;
    +
    + case LOCATION:
    + if (value == null) {
    + unsetLocation();
    + } else {
    + setLocation((String)value);
    + }
    + break;
    +
    + }
    + }
    +
    + public Object getFieldValue(_Fields field) {
    + switch (field) {
    + case REGION_NAME:
    + return getRegionName();
    +
    + case LOCATION:
    + return getLocation();
    +
    + }
    + throw new IllegalStateException();
    + }
    +
    + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
    + public boolean isSet(_Fields field) {
    + if (field == null) {
    + throw new IllegalArgumentException();
    + }
    +
    + switch (field) {
    + case REGION_NAME:
    + return isSetRegionName();
    + case LOCATION:
    + return isSetLocation();
    + }
    + throw new IllegalStateException();
    + }
    +
    + @Override
    + public boolean equals(Object that) {
    + if (that == null)
    + return false;
    + if (that instanceof RegionStorageDescriptor)
    + return this.equals((RegionStorageDescriptor)that);
    + return false;
    + }
    +
    + public boolean equals(RegionStorageDescriptor that) {
    + if (that == null)
    + return false;
    +
    + boolean this_present_regionName = true && this.isSetRegionName();
    + boolean that_present_regionName = true && that.isSetRegionName();
    + if (this_present_regionName || that_present_regionName) {
    + if (!(this_present_regionName && that_present_regionName))
    + return false;
    + if (!this.regionName.equals(that.regionName))
    + return false;
    + }
    +
    + boolean this_present_location = true && this.isSetLocation();
    + boolean that_present_location = true && that.isSetLocation();
    + if (this_present_location || that_present_location) {
    + if (!(this_present_location && that_present_location))
    + return false;
    + if (!this.location.equals(that.location))
    + return false;
    + }
    +
    + return true;
    + }
    +
    + @Override
    + public int hashCode() {
    + return 0;
    + }
    +
    + public int compareTo(RegionStorageDescriptor other) {
    + if (!getClass().equals(other.getClass())) {
    + return getClass().getName().compareTo(other.getClass().getName());
    + }
    +
    + int lastComparison = 0;
    + RegionStorageDescriptor typedOther = (RegionStorageDescriptor)other;
    +
    + lastComparison = Boolean.valueOf(isSetRegionName()).compareTo(typedOther.isSetRegionName());
    + if (lastComparison != 0) {
    + return lastComparison;
    + }
    + if (isSetRegionName()) {
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.regionName, typedOther.regionName);
    + if (lastComparison != 0) {
    + return lastComparison;
    + }
    + }
    + lastComparison = Boolean.valueOf(isSetLocation()).compareTo(typedOther.isSetLocation());
    + if (lastComparison != 0) {
    + return lastComparison;
    + }
    + if (isSetLocation()) {
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.location, typedOther.location);
    + if (lastComparison != 0) {
    + return lastComparison;
    + }
    + }
    + return 0;
    + }
    +
    + public _Fields fieldForId(int fieldId) {
    + return _Fields.findByThriftId(fieldId);
    + }
    +
    + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
    + org.apache.thrift.protocol.TField field;
    + iprot.readStructBegin();
    + while (true)
    + {
    + field = iprot.readFieldBegin();
    + if (field.type == org.apache.thrift.protocol.TType.STOP) {
    + break;
    + }
    + switch (field.id) {
    + case 1: // REGION_NAME
    + if (field.type == org.apache.thrift.protocol.TType.STRING) {
    + this.regionName = iprot.readString();
    + } else {
    + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
    + }
    + break;
    + case 2: // LOCATION
    + if (field.type == org.apache.thrift.protocol.TType.STRING) {
    + this.location = iprot.readString();
    + } else {
    + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
    + }
    + break;
    + default:
    + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
    + }
    + iprot.readFieldEnd();
    + }
    + iprot.readStructEnd();
    + validate();
    + }
    +
    + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
    + validate();
    +
    + oprot.writeStructBegin(STRUCT_DESC);
    + if (this.regionName != null) {
    + oprot.writeFieldBegin(REGION_NAME_FIELD_DESC);
    + oprot.writeString(this.regionName);
    + oprot.writeFieldEnd();
    + }
    + if (this.location != null) {
    + oprot.writeFieldBegin(LOCATION_FIELD_DESC);
    + oprot.writeString(this.location);
    + oprot.writeFieldEnd();
    + }
    + oprot.writeFieldStop();
    + oprot.writeStructEnd();
    + }
    +
    + @Override
    + public String toString() {
    + StringBuilder sb = new StringBuilder("RegionStorageDescriptor(");
    + boolean first = true;
    +
    + sb.append("regionName:");
    + if (this.regionName == null) {
    + sb.append("null");
    + } else {
    + sb.append(this.regionName);
    + }
    + first = false;
    + if (!first) sb.append(", ");
    + sb.append("location:");
    + if (this.location == null) {
    + sb.append("null");
    + } else {
    + sb.append(this.location);
    + }
    + first = false;
    + sb.append(")");
    + return sb.toString();
    + }
    +
    + public void validate() throws org.apache.thrift.TException {
    + // check for required fields
    + }
    +
    + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
    + try {
    + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
    + } catch (org.apache.thrift.TException te) {
    + throw new java.io.IOException(te);
    + }
    + }
    +
    + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
    + try {
    + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
    + } catch (org.apache.thrift.TException te) {
    + throw new java.io.IOException(te);
    + }
    + }
    +
    +}
    +

    Modified: hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Schema.java
    URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Schema.java?rev=1243013&r1=1243012&r2=1243013&view=diff
    ==============================================================================
    --- hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Schema.java (original)
    +++ hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Schema.java Sat Feb 11 07:49:28 2012
    @@ -363,14 +363,14 @@ public class Schema implements org.apach
    case 1: // FIELD_SCHEMAS
    if (field.type == org.apache.thrift.protocol.TType.LIST) {
    {
    - org.apache.thrift.protocol.TList _list89 = iprot.readListBegin();
    - this.fieldSchemas = new ArrayList<FieldSchema>(_list89.size);
    - for (int _i90 = 0; _i90 < _list89.size; ++_i90)
    + org.apache.thrift.protocol.TList _list93 = iprot.readListBegin();
    + this.fieldSchemas = new ArrayList<FieldSchema>(_list93.size);
    + for (int _i94 = 0; _i94 < _list93.size; ++_i94)
    {
    - FieldSchema _elem91; // required
    - _elem91 = new FieldSchema();
    - _elem91.read(iprot);
    - this.fieldSchemas.add(_elem91);
    + FieldSchema _elem95; // required
    + _elem95 = new FieldSchema();
    + _elem95.read(iprot);
    + this.fieldSchemas.add(_elem95);
    }
    iprot.readListEnd();
    }
    @@ -381,15 +381,15 @@ public class Schema implements org.apach
    case 2: // PROPERTIES
    if (field.type == org.apache.thrift.protocol.TType.MAP) {
    {
    - org.apache.thrift.protocol.TMap _map92 = iprot.readMapBegin();
    - this.properties = new HashMap<String,String>(2*_map92.size);
    - for (int _i93 = 0; _i93 < _map92.size; ++_i93)
    + org.apache.thrift.protocol.TMap _map96 = iprot.readMapBegin();
    + this.properties = new HashMap<String,String>(2*_map96.size);
    + for (int _i97 = 0; _i97 < _map96.size; ++_i97)
    {
    - String _key94; // required
    - String _val95; // required
    - _key94 = iprot.readString();
    - _val95 = iprot.readString();
    - this.properties.put(_key94, _val95);
    + String _key98; // required
    + String _val99; // required
    + _key98 = iprot.readString();
    + _val99 = iprot.readString();
    + this.properties.put(_key98, _val99);
    }
    iprot.readMapEnd();
    }
    @@ -414,9 +414,9 @@ public class Schema implements org.apach
    oprot.writeFieldBegin(FIELD_SCHEMAS_FIELD_DESC);
    {
    oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.fieldSchemas.size()));
    - for (FieldSchema _iter96 : this.fieldSchemas)
    + for (FieldSchema _iter100 : this.fieldSchemas)
    {
    - _iter96.write(oprot);
    + _iter100.write(oprot);
    }
    oprot.writeListEnd();
    }
    @@ -426,10 +426,10 @@ public class Schema implements org.apach
    oprot.writeFieldBegin(PROPERTIES_FIELD_DESC);
    {
    oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, this.properties.size()));
    - for (Map.Entry<String, String> _iter97 : this.properties.entrySet())
    + for (Map.Entry<String, String> _iter101 : this.properties.entrySet())
    {
    - oprot.writeString(_iter97.getKey());
    - oprot.writeString(_iter97.getValue());
    + oprot.writeString(_iter101.getKey());
    + oprot.writeString(_iter101.getValue());
    }
    oprot.writeMapEnd();
    }

    Modified: hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/StorageDescriptor.java
    URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/StorageDescriptor.java?rev=1243013&r1=1243012&r2=1243013&view=diff
    ==============================================================================
    --- hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/StorageDescriptor.java (original)
    +++ hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/StorageDescriptor.java Sat Feb 11 07:49:28 2012
    @@ -33,6 +33,8 @@ public class StorageDescriptor implement
    private static final org.apache.thrift.protocol.TField BUCKET_COLS_FIELD_DESC = new org.apache.thrift.protocol.TField("bucketCols", org.apache.thrift.protocol.TType.LIST, (short)8);
    private static final org.apache.thrift.protocol.TField SORT_COLS_FIELD_DESC = new org.apache.thrift.protocol.TField("sortCols", org.apache.thrift.protocol.TType.LIST, (short)9);
    private static final org.apache.thrift.protocol.TField PARAMETERS_FIELD_DESC = new org.apache.thrift.protocol.TField("parameters", org.apache.thrift.protocol.TType.MAP, (short)10);
    + private static final org.apache.thrift.protocol.TField PRIMARY_REGION_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("primaryRegionName", org.apache.thrift.protocol.TType.STRING, (short)11);
    + private static final org.apache.thrift.protocol.TField SECONDARY_REGIONS_FIELD_DESC = new org.apache.thrift.protocol.TField("secondaryRegions", org.apache.thrift.protocol.TType.LIST, (short)12);

    private List<FieldSchema> cols; // required
    private String location; // required
    @@ -44,6 +46,8 @@ public class StorageDescriptor implement
    private List<String> bucketCols; // required
    private List<Order> sortCols; // required
    private Map<String,String> parameters; // required
    + private String primaryRegionName; // required
    + private List<RegionStorageDescriptor> secondaryRegions; // required

    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
    @@ -56,7 +60,9 @@ public class StorageDescriptor implement
    SERDE_INFO((short)7, "serdeInfo"),
    BUCKET_COLS((short)8, "bucketCols"),
    SORT_COLS((short)9, "sortCols"),
    - PARAMETERS((short)10, "parameters");
    + PARAMETERS((short)10, "parameters"),
    + PRIMARY_REGION_NAME((short)11, "primaryRegionName"),
    + SECONDARY_REGIONS((short)12, "secondaryRegions");

    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();

    @@ -91,6 +97,10 @@ public class StorageDescriptor implement
    return SORT_COLS;
    case 10: // PARAMETERS
    return PARAMETERS;
    + case 11: // PRIMARY_REGION_NAME
    + return PRIMARY_REGION_NAME;
    + case 12: // SECONDARY_REGIONS
    + return SECONDARY_REGIONS;
    default:
    return null;
    }
    @@ -163,6 +173,11 @@ public class StorageDescriptor implement
    new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP,
    new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING),
    new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
    + tmpMap.put(_Fields.PRIMARY_REGION_NAME, new org.apache.thrift.meta_data.FieldMetaData("primaryRegionName", org.apache.thrift.TFieldRequirementType.DEFAULT,
    + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
    + tmpMap.put(_Fields.SECONDARY_REGIONS, new org.apache.thrift.meta_data.FieldMetaData("secondaryRegions", org.apache.thrift.TFieldRequirementType.DEFAULT,
    + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
    + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, RegionStorageDescriptor.class))));
    metaDataMap = Collections.unmodifiableMap(tmpMap);
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(StorageDescriptor.class, metaDataMap);
    }
    @@ -180,7 +195,9 @@ public class StorageDescriptor implement
    SerDeInfo serdeInfo,
    List<String> bucketCols,
    List<Order> sortCols,
    - Map<String,String> parameters)
    + Map<String,String> parameters,
    + String primaryRegionName,
    + List<RegionStorageDescriptor> secondaryRegions)
    {
    this();
    this.cols = cols;
    @@ -195,6 +212,8 @@ public class StorageDescriptor implement
    this.bucketCols = bucketCols;
    this.sortCols = sortCols;
    this.parameters = parameters;
    + this.primaryRegionName = primaryRegionName;
    + this.secondaryRegions = secondaryRegions;
    }

    /**
    @@ -253,6 +272,16 @@ public class StorageDescriptor implement
    }
    this.parameters = __this__parameters;
    }
    + if (other.isSetPrimaryRegionName()) {
    + this.primaryRegionName = other.primaryRegionName;
    + }
    + if (other.isSetSecondaryRegions()) {
    + List<RegionStorageDescriptor> __this__secondaryRegions = new ArrayList<RegionStorageDescriptor>();
    + for (RegionStorageDescriptor other_element : other.secondaryRegions) {
    + __this__secondaryRegions.add(new RegionStorageDescriptor(other_element));
    + }
    + this.secondaryRegions = __this__secondaryRegions;
    + }
    }

    public StorageDescriptor deepCopy() {
    @@ -273,6 +302,8 @@ public class StorageDescriptor implement
    this.bucketCols = null;
    this.sortCols = null;
    this.parameters = null;
    + this.primaryRegionName = null;
    + this.secondaryRegions = null;
    }

    public int getColsSize() {
    @@ -559,6 +590,67 @@ public class StorageDescriptor implement
    }
    }

    + public String getPrimaryRegionName() {
    + return this.primaryRegionName;
    + }
    +
    + public void setPrimaryRegionName(String primaryRegionName) {
    + this.primaryRegionName = primaryRegionName;
    + }
    +
    + public void unsetPrimaryRegionName() {
    + this.primaryRegionName = null;
    + }
    +
    + /** Returns true if field primaryRegionName is set (has been assigned a value) and false otherwise */
    + public boolean isSetPrimaryRegionName() {
    + return this.primaryRegionName != null;
    + }
    +
    + public void setPrimaryRegionNameIsSet(boolean value) {
    + if (!value) {
    + this.primaryRegionName = null;
    + }
    + }
    +
    + public int getSecondaryRegionsSize() {
    + return (this.secondaryRegions == null) ? 0 : this.secondaryRegions.size();
    + }
    +
    + public java.util.Iterator<RegionStorageDescriptor> getSecondaryRegionsIterator() {
    + return (this.secondaryRegions == null) ? null : this.secondaryRegions.iterator();
    + }
    +
    + public void addToSecondaryRegions(RegionStorageDescriptor elem) {
    + if (this.secondaryRegions == null) {
    + this.secondaryRegions = new ArrayList<RegionStorageDescriptor>();
    + }
    + this.secondaryRegions.add(elem);
    + }
    +
    + public List<RegionStorageDescriptor> getSecondaryRegions() {
    + return this.secondaryRegions;
    + }
    +
    + public void setSecondaryRegions(List<RegionStorageDescriptor> secondaryRegions) {
    + this.secondaryRegions = secondaryRegions;
    + }
    +
    + public void unsetSecondaryRegions() {
    + this.secondaryRegions = null;
    + }
    +
    + /** Returns true if field secondaryRegions is set (has been assigned a value) and false otherwise */
    + public boolean isSetSecondaryRegions() {
    + return this.secondaryRegions != null;
    + }
    +
    + public void setSecondaryRegionsIsSet(boolean value) {
    + if (!value) {
    + this.secondaryRegions = null;
    + }
    + }
    +
    public void setFieldValue(_Fields field, Object value) {
    switch (field) {
    case COLS:
    @@ -641,6 +733,22 @@ public class StorageDescriptor implement
    }
    break;

    + case PRIMARY_REGION_NAME:
    + if (value == null) {
    + unsetPrimaryRegionName();
    + } else {
    + setPrimaryRegionName((String)value);
    + }
    + break;
    +
    + case SECONDARY_REGIONS:
    + if (value == null) {
    + unsetSecondaryRegions();
    + } else {
    + setSecondaryRegions((List<RegionStorageDescriptor>)value);
    + }
    + break;
    +
    }
    }

    @@ -676,6 +784,12 @@ public class StorageDescriptor implement
    case PARAMETERS:
    return getParameters();

    + case PRIMARY_REGION_NAME:
    + return getPrimaryRegionName();
    +
    + case SECONDARY_REGIONS:
    + return getSecondaryRegions();
    +
    }
    throw new IllegalStateException();
    }
    @@ -707,6 +821,10 @@ public class StorageDescriptor implement
    return isSetSortCols();
    case PARAMETERS:
    return isSetParameters();
    + case PRIMARY_REGION_NAME:
    + return isSetPrimaryRegionName();
    + case SECONDARY_REGIONS:
    + return isSetSecondaryRegions();
    }
    throw new IllegalStateException();
    }
    @@ -814,6 +932,24 @@ public class StorageDescriptor implement
    return false;
    }

    + boolean this_present_primaryRegionName = true && this.isSetPrimaryRegionName();
    + boolean that_present_primaryRegionName = true && that.isSetPrimaryRegionName();
    + if (this_present_primaryRegionName || that_present_primaryRegionName) {
    + if (!(this_present_primaryRegionName && that_present_primaryRegionName))
    + return false;
    + if (!this.primaryRegionName.equals(that.primaryRegionName))
    + return false;
    + }
    +
    + boolean this_present_secondaryRegions = true && this.isSetSecondaryRegions();
    + boolean that_present_secondaryRegions = true && that.isSetSecondaryRegions();
    + if (this_present_secondaryRegions || that_present_secondaryRegions) {
    + if (!(this_present_secondaryRegions && that_present_secondaryRegions))
    + return false;
    + if (!this.secondaryRegions.equals(that.secondaryRegions))
    + return false;
    + }
    +
    return true;
    }

    @@ -930,6 +1066,26 @@ public class StorageDescriptor implement
    return lastComparison;
    }
    }
    + lastComparison = Boolean.valueOf(isSetPrimaryRegionName()).compareTo(typedOther.isSetPrimaryRegionName());
    + if (lastComparison != 0) {
    + return lastComparison;
    + }
    + if (isSetPrimaryRegionName()) {
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.primaryRegionName, typedOther.primaryRegionName);
    + if (lastComparison != 0) {
    + return lastComparison;
    + }
    + }
    + lastComparison = Boolean.valueOf(isSetSecondaryRegions()).compareTo(typedOther.isSetSecondaryRegions());
    + if (lastComparison != 0) {
    + return lastComparison;
    + }
    + if (isSetSecondaryRegions()) {
    + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.secondaryRegions, typedOther.secondaryRegions);
    + if (lastComparison != 0) {
    + return lastComparison;
    + }
    + }
    return 0;
    }

    @@ -1064,6 +1220,31 @@ public class StorageDescriptor implement
    org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
    }
    break;
    + case 11: // PRIMARY_REGION_NAME
    + if (field.type == org.apache.thrift.protocol.TType.STRING) {
    + this.primaryRegionName = iprot.readString();
    + } else {
    + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
    + }
    + break;
    + case 12: // SECONDARY_REGIONS
    + if (field.type == org.apache.thrift.protocol.TType.LIST) {
    + {
    + org.apache.thrift.protocol.TList _list62 = iprot.readListBegin();
    + this.secondaryRegions = new ArrayList<RegionStorageDescriptor>(_list62.size);
    + for (int _i63 = 0; _i63 < _list62.size; ++_i63)
    + {
    + RegionStorageDescriptor _elem64; // required
    + _elem64 = new RegionStorageDescriptor();
    + _elem64.read(iprot);
    + this.secondaryRegions.add(_elem64);
    + }
    + iprot.readListEnd();
    + }
    + } else {
    + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
    + }
    + break;
    default:
    org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
    }
    @@ -1081,9 +1262,9 @@ public class StorageDescriptor implement
    oprot.writeFieldBegin(COLS_FIELD_DESC);
    {
    oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.cols.size()));
    - for (FieldSchema _iter62 : this.cols)
    + for (FieldSchema _iter65 : this.cols)
    {
    - _iter62.write(oprot);
    + _iter65.write(oprot);
    }
    oprot.writeListEnd();
    }
    @@ -1119,9 +1300,9 @@ public class StorageDescriptor implement
    oprot.writeFieldBegin(BUCKET_COLS_FIELD_DESC);
    {
    oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.bucketCols.size()));
    - for (String _iter63 : this.bucketCols)
    + for (String _iter66 : this.bucketCols)
    {
    - oprot.writeString(_iter63);
    + oprot.writeString(_iter66);
    }
    oprot.writeListEnd();
    }
    @@ -1131,9 +1312,9 @@ public class StorageDescriptor implement
    oprot.writeFieldBegin(SORT_COLS_FIELD_DESC);
    {
    oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.sortCols.size()));
    - for (Order _iter64 : this.sortCols)
    + for (Order _iter67 : this.sortCols)
    {
    - _iter64.write(oprot);
    + _iter67.write(oprot);
    }
    oprot.writeListEnd();
    }
    @@ -1143,15 +1324,32 @@ public class StorageDescriptor implement
    oprot.writeFieldBegin(PARAMETERS_FIELD_DESC);
    {
    oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, this.parameters.size()));
    - for (Map.Entry<String, String> _iter65 : this.parameters.entrySet())
    + for (Map.Entry<String, String> _iter68 : this.parameters.entrySet())
    {
    - oprot.writeString(_iter65.getKey());
    - oprot.writeString(_iter65.getValue());
    + oprot.writeString(_iter68.getKey());
    + oprot.writeString(_iter68.getValue());
    }
    oprot.writeMapEnd();
    }
    oprot.writeFieldEnd();
    }
    + if (this.primaryRegionName != null) {
    + oprot.writeFieldBegin(PRIMARY_REGION_NAME_FIELD_DESC);
    + oprot.writeString(this.primaryRegionName);
    + oprot.writeFieldEnd();
    + }
    + if (this.secondaryRegions != null) {
    + oprot.writeFieldBegin(SECONDARY_REGIONS_FIELD_DESC);
    + {
    + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.secondaryRegions.size()));
    + for (RegionStorageDescriptor _iter69 : this.secondaryRegions)
    + {
    + _iter69.write(oprot);
    + }
    + oprot.writeListEnd();
    + }
    + oprot.writeFieldEnd();
    + }
    oprot.writeFieldStop();
    oprot.writeStructEnd();
    }
    @@ -1232,6 +1430,22 @@ public class StorageDescriptor implement
    sb.append(this.parameters);
    }
    first = false;
    + if (!first) sb.append(", ");
    + sb.append("primaryRegionName:");
    + if (this.primaryRegionName == null) {
    + sb.append("null");
    + } else {
    + sb.append(this.primaryRegionName);
    + }
    + first = false;
    + if (!first) sb.append(", ");
    + sb.append("secondaryRegions:");
    + if (this.secondaryRegions == null) {
    + sb.append("null");
    + } else {
    + sb.append(this.secondaryRegions);
    + }
    + first = false;
    sb.append(")");
    return sb.toString();
    }

    Modified: hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Table.java
    URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Table.java?rev=1243013&r1=1243012&r2=1243013&view=diff
    ==============================================================================
    --- hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Table.java (original)
    +++ hive/trunk/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Table.java Sat Feb 11 07:49:28 2012
    @@ -1165,14 +1165,14 @@ public class Table implements org.apache
    case 8: // PARTITION_KEYS
    if (field.type == org.apache.thrift.protocol.TType.LIST) {
    {
    - org.apache.thrift.protocol.TList _list66 = iprot.readListBegin();
    - this.partitionKeys = new ArrayList<FieldSchema>(_list66.size);
    - for (int _i67 = 0; _i67 < _list66.size; ++_i67)
    + org.apache.thrift.protocol.TList _list70 = iprot.readListBegin();
    + this.partitionKeys = new ArrayList<FieldSchema>(_list70.size);
    + for (int _i71 = 0; _i71 < _list70.size; ++_i71)
    {
    - FieldSchema _elem68; // required
    - _elem68 = new FieldSchema();
    - _elem68.read(iprot);
    - this.partitionKeys.add(_elem68);
    + FieldSchema _elem72; // required
    + _elem72 = new FieldSchema();
    + _elem72.read(iprot);
    + this.partitionKeys.add(_elem72);
    }
    iprot.readListEnd();
    }
    @@ -1183,15 +1183,15 @@ public class Table implements org.apache
    case 9: // PARAMETERS
    if (field.type == org.apache.thrift.protocol.TType.MAP) {
    {
    - org.apache.thrift.protocol.TMap _map69 = iprot.readMapBegin();
    - this.parameters = new HashMap<String,String>(2*_map69.size);
    - for (int _i70 = 0; _i70 < _map69.size; ++_i70)
    + org.apache.thrift.protocol.TMap _map73 = iprot.readMapBegin();
    + this.parameters = new HashMap<String,String>(2*_map73.size);
    + for (int _i74 = 0; _i74 < _map73.size; ++_i74)
    {
    - String _key71; // required
    - String _val72; // required
    - _key71 = iprot.readString();
    - _val72 = iprot.readString();
    - this.parameters.put(_key71, _val72);
    + String _key75; // required
    + String _val76; // required
    + _key75 = iprot.readString();
    + _val76 = iprot.readString();
    + this.parameters.put(_key75, _val76);
    }
    iprot.readMapEnd();
    }
    @@ -1274,9 +1274,9 @@ public class Table implements org.apache
    oprot.writeFieldBegin(PARTITION_KEYS_FIELD_DESC);
    {
    oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.partitionKeys.size()));
    - for (FieldSchema _iter73 : this.partitionKeys)
    + for (FieldSchema _iter77 : this.partitionKeys)
    {
    - _iter73.write(oprot);
    + _iter77.write(oprot);
    }
    oprot.writeListEnd();
    }
    @@ -1286,10 +1286,10 @@ public class Table implements org.apache
    oprot.writeFieldBegin(PARAMETERS_FIELD_DESC);
    {
    oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, this.parameters.size()));
    - for (Map.Entry<String, String> _iter74 : this.parameters.entrySet())
    + for (Map.Entry<String, String> _iter78 : this.parameters.entrySet())
    {
    - oprot.writeString(_iter74.getKey());
    - oprot.writeString(_iter74.getValue());
    + oprot.writeString(_iter78.getKey());
    + oprot.writeString(_iter78.getValue());
    }
    oprot.writeMapEnd();
    }
  • Namit at Feb 11, 2012 at 7:50 am
    Modified: hive/trunk/metastore/src/gen/thrift/gen-php/hive_metastore/ThriftHiveMetastore.php
    URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/gen/thrift/gen-php/hive_metastore/ThriftHiveMetastore.php?rev=1243013&r1=1243012&r2=1243013&view=diff
    ==============================================================================
    --- hive/trunk/metastore/src/gen/thrift/gen-php/hive_metastore/ThriftHiveMetastore.php (original)
    +++ hive/trunk/metastore/src/gen/thrift/gen-php/hive_metastore/ThriftHiveMetastore.php Sat Feb 11 07:49:28 2012
    @@ -4533,14 +4533,14 @@ class ThriftHiveMetastore_get_databases_
    case 0:
    if ($ftype == TType::LST) {
    $this->success = array();
    - $_size174 = 0;
    - $_etype177 = 0;
    - $xfer += $input->readListBegin($_etype177, $_size174);
    - for ($_i178 = 0; $_i178 < $_size174; ++$_i178)
    - {
    - $elem179 = null;
    - $xfer += $input->readString($elem179);
    - $this->success []= $elem179;
    + $_size181 = 0;
    + $_etype184 = 0;
    + $xfer += $input->readListBegin($_etype184, $_size181);
    + for ($_i185 = 0; $_i185 < $_size181; ++$_i185)
    + {
    + $elem186 = null;
    + $xfer += $input->readString($elem186);
    + $this->success []= $elem186;
    }
    $xfer += $input->readListEnd();
    } else {
    @@ -4576,9 +4576,9 @@ class ThriftHiveMetastore_get_databases_
    {
    $output->writeListBegin(TType::STRING, count($this->success));
    {
    - foreach ($this->success as $iter180)
    + foreach ($this->success as $iter187)
    {
    - $xfer += $output->writeString($iter180);
    + $xfer += $output->writeString($iter187);
    }
    }
    $output->writeListEnd();
    @@ -4703,14 +4703,14 @@ class ThriftHiveMetastore_get_all_databa
    case 0:
    if ($ftype == TType::LST) {
    $this->success = array();
    - $_size181 = 0;
    - $_etype184 = 0;
    - $xfer += $input->readListBegin($_etype184, $_size181);
    - for ($_i185 = 0; $_i185 < $_size181; ++$_i185)
    + $_size188 = 0;
    + $_etype191 = 0;
    + $xfer += $input->readListBegin($_etype191, $_size188);
    + for ($_i192 = 0; $_i192 < $_size188; ++$_i192)
    {
    - $elem186 = null;
    - $xfer += $input->readString($elem186);
    - $this->success []= $elem186;
    + $elem193 = null;
    + $xfer += $input->readString($elem193);
    + $this->success []= $elem193;
    }
    $xfer += $input->readListEnd();
    } else {
    @@ -4746,9 +4746,9 @@ class ThriftHiveMetastore_get_all_databa
    {
    $output->writeListBegin(TType::STRING, count($this->success));
    {
    - foreach ($this->success as $iter187)
    + foreach ($this->success as $iter194)
    {
    - $xfer += $output->writeString($iter187);
    + $xfer += $output->writeString($iter194);
    }
    }
    $output->writeListEnd();
    @@ -5689,18 +5689,18 @@ class ThriftHiveMetastore_get_type_all_r
    case 0:
    if ($ftype == TType::MAP) {
    $this->success = array();
    - $_size188 = 0;
    - $_ktype189 = 0;
    - $_vtype190 = 0;
    - $xfer += $input->readMapBegin($_ktype189, $_vtype190, $_size188);
    - for ($_i192 = 0; $_i192 < $_size188; ++$_i192)
    - {
    - $key193 = '';
    - $val194 = new Type();
    - $xfer += $input->readString($key193);
    - $val194 = new Type();
    - $xfer += $val194->read($input);
    - $this->success[$key193] = $val194;
    + $_size195 = 0;
    + $_ktype196 = 0;
    + $_vtype197 = 0;
    + $xfer += $input->readMapBegin($_ktype196, $_vtype197, $_size195);
    + for ($_i199 = 0; $_i199 < $_size195; ++$_i199)
    + {
    + $key200 = '';
    + $val201 = new Type();
    + $xfer += $input->readString($key200);
    + $val201 = new Type();
    + $xfer += $val201->read($input);
    + $this->success[$key200] = $val201;
    }
    $xfer += $input->readMapEnd();
    } else {
    @@ -5736,10 +5736,10 @@ class ThriftHiveMetastore_get_type_all_r
    {
    $output->writeMapBegin(TType::STRING, TType::STRUCT, count($this->success));
    {
    - foreach ($this->success as $kiter195 => $viter196)
    + foreach ($this->success as $kiter202 => $viter203)
    {
    - $xfer += $output->writeString($kiter195);
    - $xfer += $viter196->write($output);
    + $xfer += $output->writeString($kiter202);
    + $xfer += $viter203->write($output);
    }
    }
    $output->writeMapEnd();
    @@ -5925,15 +5925,15 @@ class ThriftHiveMetastore_get_fields_res
    case 0:
    if ($ftype == TType::LST) {
    $this->success = array();
    - $_size197 = 0;
    - $_etype200 = 0;
    - $xfer += $input->readListBegin($_etype200, $_size197);
    - for ($_i201 = 0; $_i201 < $_size197; ++$_i201)
    - {
    - $elem202 = null;
    - $elem202 = new FieldSchema();
    - $xfer += $elem202->read($input);
    - $this->success []= $elem202;
    + $_size204 = 0;
    + $_etype207 = 0;
    + $xfer += $input->readListBegin($_etype207, $_size204);
    + for ($_i208 = 0; $_i208 < $_size204; ++$_i208)
    + {
    + $elem209 = null;
    + $elem209 = new FieldSchema();
    + $xfer += $elem209->read($input);
    + $this->success []= $elem209;
    }
    $xfer += $input->readListEnd();
    } else {
    @@ -5985,9 +5985,9 @@ class ThriftHiveMetastore_get_fields_res
    {
    $output->writeListBegin(TType::STRUCT, count($this->success));
    {
    - foreach ($this->success as $iter203)
    + foreach ($this->success as $iter210)
    {
    - $xfer += $iter203->write($output);
    + $xfer += $iter210->write($output);
    }
    }
    $output->writeListEnd();
    @@ -6183,15 +6183,15 @@ class ThriftHiveMetastore_get_schema_res
    case 0:
    if ($ftype == TType::LST) {
    $this->success = array();
    - $_size204 = 0;
    - $_etype207 = 0;
    - $xfer += $input->readListBegin($_etype207, $_size204);
    - for ($_i208 = 0; $_i208 < $_size204; ++$_i208)
    + $_size211 = 0;
    + $_etype214 = 0;
    + $xfer += $input->readListBegin($_etype214, $_size211);
    + for ($_i215 = 0; $_i215 < $_size211; ++$_i215)
    {
    - $elem209 = null;
    - $elem209 = new FieldSchema();
    - $xfer += $elem209->read($input);
    - $this->success []= $elem209;
    + $elem216 = null;
    + $elem216 = new FieldSchema();
    + $xfer += $elem216->read($input);
    + $this->success []= $elem216;
    }
    $xfer += $input->readListEnd();
    } else {
    @@ -6243,9 +6243,9 @@ class ThriftHiveMetastore_get_schema_res
    {
    $output->writeListBegin(TType::STRUCT, count($this->success));
    {
    - foreach ($this->success as $iter210)
    + foreach ($this->success as $iter217)
    {
    - $xfer += $iter210->write($output);
    + $xfer += $iter217->write($output);
    }
    }
    $output->writeListEnd();
    @@ -6847,14 +6847,14 @@ class ThriftHiveMetastore_get_tables_res
    case 0:
    if ($ftype == TType::LST) {
    $this->success = array();
    - $_size211 = 0;
    - $_etype214 = 0;
    - $xfer += $input->readListBegin($_etype214, $_size211);
    - for ($_i215 = 0; $_i215 < $_size211; ++$_i215)
    + $_size218 = 0;
    + $_etype221 = 0;
    + $xfer += $input->readListBegin($_etype221, $_size218);
    + for ($_i222 = 0; $_i222 < $_size218; ++$_i222)
    {
    - $elem216 = null;
    - $xfer += $input->readString($elem216);
    - $this->success []= $elem216;
    + $elem223 = null;
    + $xfer += $input->readString($elem223);
    + $this->success []= $elem223;
    }
    $xfer += $input->readListEnd();
    } else {
    @@ -6890,9 +6890,9 @@ class ThriftHiveMetastore_get_tables_res
    {
    $output->writeListBegin(TType::STRING, count($this->success));
    {
    - foreach ($this->success as $iter217)
    + foreach ($this->success as $iter224)
    {
    - $xfer += $output->writeString($iter217);
    + $xfer += $output->writeString($iter224);
    }
    }
    $output->writeListEnd();
    @@ -7039,14 +7039,14 @@ class ThriftHiveMetastore_get_all_tables
    case 0:
    if ($ftype == TType::LST) {
    $this->success = array();
    - $_size218 = 0;
    - $_etype221 = 0;
    - $xfer += $input->readListBegin($_etype221, $_size218);
    - for ($_i222 = 0; $_i222 < $_size218; ++$_i222)
    + $_size225 = 0;
    + $_etype228 = 0;
    + $xfer += $input->readListBegin($_etype228, $_size225);
    + for ($_i229 = 0; $_i229 < $_size225; ++$_i229)
    {
    - $elem223 = null;
    - $xfer += $input->readString($elem223);
    - $this->success []= $elem223;
    + $elem230 = null;
    + $xfer += $input->readString($elem230);
    + $this->success []= $elem230;
    }
    $xfer += $input->readListEnd();
    } else {
    @@ -7082,9 +7082,9 @@ class ThriftHiveMetastore_get_all_tables
    {
    $output->writeListBegin(TType::STRING, count($this->success));
    {
    - foreach ($this->success as $iter224)
    + foreach ($this->success as $iter231)
    {
    - $xfer += $output->writeString($iter224);
    + $xfer += $output->writeString($iter231);
    }
    }
    $output->writeListEnd();
    @@ -7378,14 +7378,14 @@ class ThriftHiveMetastore_get_table_obje
    case 2:
    if ($ftype == TType::LST) {
    $this->tbl_names = array();
    - $_size225 = 0;
    - $_etype228 = 0;
    - $xfer += $input->readListBegin($_etype228, $_size225);
    - for ($_i229 = 0; $_i229 < $_size225; ++$_i229)
    + $_size232 = 0;
    + $_etype235 = 0;
    + $xfer += $input->readListBegin($_etype235, $_size232);
    + for ($_i236 = 0; $_i236 < $_size232; ++$_i236)
    {
    - $elem230 = null;
    - $xfer += $input->readString($elem230);
    - $this->tbl_names []= $elem230;
    + $elem237 = null;
    + $xfer += $input->readString($elem237);
    + $this->tbl_names []= $elem237;
    }
    $xfer += $input->readListEnd();
    } else {
    @@ -7418,9 +7418,9 @@ class ThriftHiveMetastore_get_table_obje
    {
    $output->writeListBegin(TType::STRING, count($this->tbl_names));
    {
    - foreach ($this->tbl_names as $iter231)
    + foreach ($this->tbl_names as $iter238)
    {
    - $xfer += $output->writeString($iter231);
    + $xfer += $output->writeString($iter238);
    }
    }
    $output->writeListEnd();
    @@ -7509,15 +7509,15 @@ class ThriftHiveMetastore_get_table_obje
    case 0:
    if ($ftype == TType::LST) {
    $this->success = array();
    - $_size232 = 0;
    - $_etype235 = 0;
    - $xfer += $input->readListBegin($_etype235, $_size232);
    - for ($_i236 = 0; $_i236 < $_size232; ++$_i236)
    + $_size239 = 0;
    + $_etype242 = 0;
    + $xfer += $input->readListBegin($_etype242, $_size239);
    + for ($_i243 = 0; $_i243 < $_size239; ++$_i243)
    {
    - $elem237 = null;
    - $elem237 = new Table();
    - $xfer += $elem237->read($input);
    - $this->success []= $elem237;
    + $elem244 = null;
    + $elem244 = new Table();
    + $xfer += $elem244->read($input);
    + $this->success []= $elem244;
    }
    $xfer += $input->readListEnd();
    } else {
    @@ -7569,9 +7569,9 @@ class ThriftHiveMetastore_get_table_obje
    {
    $output->writeListBegin(TType::STRUCT, count($this->success));
    {
    - foreach ($this->success as $iter238)
    + foreach ($this->success as $iter245)
    {
    - $xfer += $iter238->write($output);
    + $xfer += $iter245->write($output);
    }
    }
    $output->writeListEnd();
    @@ -7786,14 +7786,14 @@ class ThriftHiveMetastore_get_table_name
    case 0:
    if ($ftype == TType::LST) {
    $this->success = array();
    - $_size239 = 0;
    - $_etype242 = 0;
    - $xfer += $input->readListBegin($_etype242, $_size239);
    - for ($_i243 = 0; $_i243 < $_size239; ++$_i243)
    + $_size246 = 0;
    + $_etype249 = 0;
    + $xfer += $input->readListBegin($_etype249, $_size246);
    + for ($_i250 = 0; $_i250 < $_size246; ++$_i250)
    {
    - $elem244 = null;
    - $xfer += $input->readString($elem244);
    - $this->success []= $elem244;
    + $elem251 = null;
    + $xfer += $input->readString($elem251);
    + $this->success []= $elem251;
    }
    $xfer += $input->readListEnd();
    } else {
    @@ -7845,9 +7845,9 @@ class ThriftHiveMetastore_get_table_name
    {
    $output->writeListBegin(TType::STRING, count($this->success));
    {
    - foreach ($this->success as $iter245)
    + foreach ($this->success as $iter252)
    {
    - $xfer += $output->writeString($iter245);
    + $xfer += $output->writeString($iter252);
    }
    }
    $output->writeListEnd();
    @@ -8357,15 +8357,15 @@ class ThriftHiveMetastore_add_partitions
    case 1:
    if ($ftype == TType::LST) {
    $this->new_parts = array();
    - $_size246 = 0;
    - $_etype249 = 0;
    - $xfer += $input->readListBegin($_etype249, $_size246);
    - for ($_i250 = 0; $_i250 < $_size246; ++$_i250)
    + $_size253 = 0;
    + $_etype256 = 0;
    + $xfer += $input->readListBegin($_etype256, $_size253);
    + for ($_i257 = 0; $_i257 < $_size253; ++$_i257)
    {
    - $elem251 = null;
    - $elem251 = new Partition();
    - $xfer += $elem251->read($input);
    - $this->new_parts []= $elem251;
    + $elem258 = null;
    + $elem258 = new Partition();
    + $xfer += $elem258->read($input);
    + $this->new_parts []= $elem258;
    }
    $xfer += $input->readListEnd();
    } else {
    @@ -8393,9 +8393,9 @@ class ThriftHiveMetastore_add_partitions
    {
    $output->writeListBegin(TType::STRUCT, count($this->new_parts));
    {
    - foreach ($this->new_parts as $iter252)
    + foreach ($this->new_parts as $iter259)
    {
    - $xfer += $iter252->write($output);
    + $xfer += $iter259->write($output);
    }
    }
    $output->writeListEnd();
    @@ -8624,14 +8624,14 @@ class ThriftHiveMetastore_append_partiti
    case 3:
    if ($ftype == TType::LST) {
    $this->part_vals = array();
    - $_size253 = 0;
    - $_etype256 = 0;
    - $xfer += $input->readListBegin($_etype256, $_size253);
    - for ($_i257 = 0; $_i257 < $_size253; ++$_i257)
    + $_size260 = 0;
    + $_etype263 = 0;
    + $xfer += $input->readListBegin($_etype263, $_size260);
    + for ($_i264 = 0; $_i264 < $_size260; ++$_i264)
    {
    - $elem258 = null;
    - $xfer += $input->readString($elem258);
    - $this->part_vals []= $elem258;
    + $elem265 = null;
    + $xfer += $input->readString($elem265);
    + $this->part_vals []= $elem265;
    }
    $xfer += $input->readListEnd();
    } else {
    @@ -8669,9 +8669,9 @@ class ThriftHiveMetastore_append_partiti
    {
    $output->writeListBegin(TType::STRING, count($this->part_vals));
    {
    - foreach ($this->part_vals as $iter259)
    + foreach ($this->part_vals as $iter266)
    {
    - $xfer += $output->writeString($iter259);
    + $xfer += $output->writeString($iter266);
    }
    }
    $output->writeListEnd();
    @@ -9168,14 +9168,14 @@ class ThriftHiveMetastore_drop_partition
    case 3:
    if ($ftype == TType::LST) {
    $this->part_vals = array();
    - $_size260 = 0;
    - $_etype263 = 0;
    - $xfer += $input->readListBegin($_etype263, $_size260);
    - for ($_i264 = 0; $_i264 < $_size260; ++$_i264)
    + $_size267 = 0;
    + $_etype270 = 0;
    + $xfer += $input->readListBegin($_etype270, $_size267);
    + for ($_i271 = 0; $_i271 < $_size267; ++$_i271)
    {
    - $elem265 = null;
    - $xfer += $input->readString($elem265);
    - $this->part_vals []= $elem265;
    + $elem272 = null;
    + $xfer += $input->readString($elem272);
    + $this->part_vals []= $elem272;
    }
    $xfer += $input->readListEnd();
    } else {
    @@ -9220,9 +9220,9 @@ class ThriftHiveMetastore_drop_partition
    {
    $output->writeListBegin(TType::STRING, count($this->part_vals));
    {
    - foreach ($this->part_vals as $iter266)
    + foreach ($this->part_vals as $iter273)
    {
    - $xfer += $output->writeString($iter266);
    + $xfer += $output->writeString($iter273);
    }
    }
    $output->writeListEnd();
    @@ -9682,14 +9682,14 @@ class ThriftHiveMetastore_get_partition_
    case 3:
    if ($ftype == TType::LST) {
    $this->part_vals = array();
    - $_size267 = 0;
    - $_etype270 = 0;
    - $xfer += $input->readListBegin($_etype270, $_size267);
    - for ($_i271 = 0; $_i271 < $_size267; ++$_i271)
    + $_size274 = 0;
    + $_etype277 = 0;
    + $xfer += $input->readListBegin($_etype277, $_size274);
    + for ($_i278 = 0; $_i278 < $_size274; ++$_i278)
    {
    - $elem272 = null;
    - $xfer += $input->readString($elem272);
    - $this->part_vals []= $elem272;
    + $elem279 = null;
    + $xfer += $input->readString($elem279);
    + $this->part_vals []= $elem279;
    }
    $xfer += $input->readListEnd();
    } else {
    @@ -9727,9 +9727,9 @@ class ThriftHiveMetastore_get_partition_
    {
    $output->writeListBegin(TType::STRING, count($this->part_vals));
    {
    - foreach ($this->part_vals as $iter273)
    + foreach ($this->part_vals as $iter280)
    {
    - $xfer += $output->writeString($iter273);
    + $xfer += $output->writeString($iter280);
    }
    }
    $output->writeListEnd();
    @@ -9961,14 +9961,14 @@ class ThriftHiveMetastore_get_partition_
    case 3:
    if ($ftype == TType::LST) {
    $this->part_vals = array();
    - $_size274 = 0;
    - $_etype277 = 0;
    - $xfer += $input->readListBegin($_etype277, $_size274);
    - for ($_i278 = 0; $_i278 < $_size274; ++$_i278)
    - {
    - $elem279 = null;
    - $xfer += $input->readString($elem279);
    - $this->part_vals []= $elem279;
    + $_size281 = 0;
    + $_etype284 = 0;
    + $xfer += $input->readListBegin($_etype284, $_size281);
    + for ($_i285 = 0; $_i285 < $_size281; ++$_i285)
    + {
    + $elem286 = null;
    + $xfer += $input->readString($elem286);
    + $this->part_vals []= $elem286;
    }
    $xfer += $input->readListEnd();
    } else {
    @@ -9985,14 +9985,14 @@ class ThriftHiveMetastore_get_partition_
    case 5:
    if ($ftype == TType::LST) {
    $this->group_names = array();
    - $_size280 = 0;
    - $_etype283 = 0;
    - $xfer += $input->readListBegin($_etype283, $_size280);
    - for ($_i284 = 0; $_i284 < $_size280; ++$_i284)
    - {
    - $elem285 = null;
    - $xfer += $input->readString($elem285);
    - $this->group_names []= $elem285;
    + $_size287 = 0;
    + $_etype290 = 0;
    + $xfer += $input->readListBegin($_etype290, $_size287);
    + for ($_i291 = 0; $_i291 < $_size287; ++$_i291)
    + {
    + $elem292 = null;
    + $xfer += $input->readString($elem292);
    + $this->group_names []= $elem292;
    }
    $xfer += $input->readListEnd();
    } else {
    @@ -10030,9 +10030,9 @@ class ThriftHiveMetastore_get_partition_
    {
    $output->writeListBegin(TType::STRING, count($this->part_vals));
    {
    - foreach ($this->part_vals as $iter286)
    + foreach ($this->part_vals as $iter293)
    {
    - $xfer += $output->writeString($iter286);
    + $xfer += $output->writeString($iter293);
    }
    }
    $output->writeListEnd();
    @@ -10052,9 +10052,9 @@ class ThriftHiveMetastore_get_partition_
    {
    $output->writeListBegin(TType::STRING, count($this->group_names));
    {
    - foreach ($this->group_names as $iter287)
    + foreach ($this->group_names as $iter294)
    {
    - $xfer += $output->writeString($iter287);
    + $xfer += $output->writeString($iter294);
    }
    }
    $output->writeListEnd();
    @@ -10600,15 +10600,15 @@ class ThriftHiveMetastore_get_partitions
    case 0:
    if ($ftype == TType::LST) {
    $this->success = array();
    - $_size288 = 0;
    - $_etype291 = 0;
    - $xfer += $input->readListBegin($_etype291, $_size288);
    - for ($_i292 = 0; $_i292 < $_size288; ++$_i292)
    - {
    - $elem293 = null;
    - $elem293 = new Partition();
    - $xfer += $elem293->read($input);
    - $this->success []= $elem293;
    + $_size295 = 0;
    + $_etype298 = 0;
    + $xfer += $input->readListBegin($_etype298, $_size295);
    + for ($_i299 = 0; $_i299 < $_size295; ++$_i299)
    + {
    + $elem300 = null;
    + $elem300 = new Partition();
    + $xfer += $elem300->read($input);
    + $this->success []= $elem300;
    }
    $xfer += $input->readListEnd();
    } else {
    @@ -10652,9 +10652,9 @@ class ThriftHiveMetastore_get_partitions
    {
    $output->writeListBegin(TType::STRUCT, count($this->success));
    {
    - foreach ($this->success as $iter294)
    + foreach ($this->success as $iter301)
    {
    - $xfer += $iter294->write($output);
    + $xfer += $iter301->write($output);
    }
    }
    $output->writeListEnd();
    @@ -10785,14 +10785,14 @@ class ThriftHiveMetastore_get_partitions
    case 5:
    if ($ftype == TType::LST) {
    $this->group_names = array();
    - $_size295 = 0;
    - $_etype298 = 0;
    - $xfer += $input->readListBegin($_etype298, $_size295);
    - for ($_i299 = 0; $_i299 < $_size295; ++$_i299)
    + $_size302 = 0;
    + $_etype305 = 0;
    + $xfer += $input->readListBegin($_etype305, $_size302);
    + for ($_i306 = 0; $_i306 < $_size302; ++$_i306)
    {
    - $elem300 = null;
    - $xfer += $input->readString($elem300);
    - $this->group_names []= $elem300;
    + $elem307 = null;
    + $xfer += $input->readString($elem307);
    + $this->group_names []= $elem307;
    }
    $xfer += $input->readListEnd();
    } else {
    @@ -10840,9 +10840,9 @@ class ThriftHiveMetastore_get_partitions
    {
    $output->writeListBegin(TType::STRING, count($this->group_names));
    {
    - foreach ($this->group_names as $iter301)
    + foreach ($this->group_names as $iter308)
    {
    - $xfer += $output->writeString($iter301);
    + $xfer += $output->writeString($iter308);
    }
    }
    $output->writeListEnd();
    @@ -10922,15 +10922,15 @@ class ThriftHiveMetastore_get_partitions
    case 0:
    if ($ftype == TType::LST) {
    $this->success = array();
    - $_size302 = 0;
    - $_etype305 = 0;
    - $xfer += $input->readListBegin($_etype305, $_size302);
    - for ($_i306 = 0; $_i306 < $_size302; ++$_i306)
    + $_size309 = 0;
    + $_etype312 = 0;
    + $xfer += $input->readListBegin($_etype312, $_size309);
    + for ($_i313 = 0; $_i313 < $_size309; ++$_i313)
    {
    - $elem307 = null;
    - $elem307 = new Partition();
    - $xfer += $elem307->read($input);
    - $this->success []= $elem307;
    + $elem314 = null;
    + $elem314 = new Partition();
    + $xfer += $elem314->read($input);
    + $this->success []= $elem314;
    }
    $xfer += $input->readListEnd();
    } else {
    @@ -10974,9 +10974,9 @@ class ThriftHiveMetastore_get_partitions
    {
    $output->writeListBegin(TType::STRUCT, count($this->success));
    {
    - foreach ($this->success as $iter308)
    + foreach ($this->success as $iter315)
    {
    - $xfer += $iter308->write($output);
    + $xfer += $iter315->write($output);
    }
    }
    $output->writeListEnd();
    @@ -11168,14 +11168,14 @@ class ThriftHiveMetastore_get_partition_
    case 0:
    if ($ftype == TType::LST) {
    $this->success = array();
    - $_size309 = 0;
    - $_etype312 = 0;
    - $xfer += $input->readListBegin($_etype312, $_size309);
    - for ($_i313 = 0; $_i313 < $_size309; ++$_i313)
    + $_size316 = 0;
    + $_etype319 = 0;
    + $xfer += $input->readListBegin($_etype319, $_size316);
    + for ($_i320 = 0; $_i320 < $_size316; ++$_i320)
    {
    - $elem314 = null;
    - $xfer += $input->readString($elem314);
    - $this->success []= $elem314;
    + $elem321 = null;
    + $xfer += $input->readString($elem321);
    + $this->success []= $elem321;
    }
    $xfer += $input->readListEnd();
    } else {
    @@ -11211,9 +11211,9 @@ class ThriftHiveMetastore_get_partition_
    {
    $output->writeListBegin(TType::STRING, count($this->success));
    {
    - foreach ($this->success as $iter315)
    + foreach ($this->success as $iter322)
    {
    - $xfer += $output->writeString($iter315);
    + $xfer += $output->writeString($iter322);
    }
    }
    $output->writeListEnd();
    @@ -11317,14 +11317,14 @@ class ThriftHiveMetastore_get_partitions
    case 3:
    if ($ftype == TType::LST) {
    $this->part_vals = array();
    - $_size316 = 0;
    - $_etype319 = 0;
    - $xfer += $input->readListBegin($_etype319, $_size316);
    - for ($_i320 = 0; $_i320 < $_size316; ++$_i320)
    + $_size323 = 0;
    + $_etype326 = 0;
    + $xfer += $input->readListBegin($_etype326, $_size323);
    + for ($_i327 = 0; $_i327 < $_size323; ++$_i327)
    {
    - $elem321 = null;
    - $xfer += $input->readString($elem321);
    - $this->part_vals []= $elem321;
    + $elem328 = null;
    + $xfer += $input->readString($elem328);
    + $this->part_vals []= $elem328;
    }
    $xfer += $input->readListEnd();
    } else {
    @@ -11369,9 +11369,9 @@ class ThriftHiveMetastore_get_partitions
    {
    $output->writeListBegin(TType::STRING, count($this->part_vals));
    {
    - foreach ($this->part_vals as $iter322)
    + foreach ($this->part_vals as $iter329)
    {
    - $xfer += $output->writeString($iter322);
    + $xfer += $output->writeString($iter329);
    }
    }
    $output->writeListEnd();
    @@ -11456,15 +11456,15 @@ class ThriftHiveMetastore_get_partitions
    case 0:
    if ($ftype == TType::LST) {
    $this->success = array();
    - $_size323 = 0;
    - $_etype326 = 0;
    - $xfer += $input->readListBegin($_etype326, $_size323);
    - for ($_i327 = 0; $_i327 < $_size323; ++$_i327)
    + $_size330 = 0;
    + $_etype333 = 0;
    + $xfer += $input->readListBegin($_etype333, $_size330);
    + for ($_i334 = 0; $_i334 < $_size330; ++$_i334)
    {
    - $elem328 = null;
    - $elem328 = new Partition();
    - $xfer += $elem328->read($input);
    - $this->success []= $elem328;
    + $elem335 = null;
    + $elem335 = new Partition();
    + $xfer += $elem335->read($input);
    + $this->success []= $elem335;
    }
    $xfer += $input->readListEnd();
    } else {
    @@ -11508,9 +11508,9 @@ class ThriftHiveMetastore_get_partitions
    {
    $output->writeListBegin(TType::STRUCT, count($this->success));
    {
    - foreach ($this->success as $iter329)
    + foreach ($this->success as $iter336)
    {
    - $xfer += $iter329->write($output);
    + $xfer += $iter336->write($output);
    }
    }
    $output->writeListEnd();
    @@ -11639,14 +11639,14 @@ class ThriftHiveMetastore_get_partitions
    case 3:
    if ($ftype == TType::LST) {
    $this->part_vals = array();
    - $_size330 = 0;
    - $_etype333 = 0;
    - $xfer += $input->readListBegin($_etype333, $_size330);
    - for ($_i334 = 0; $_i334 < $_size330; ++$_i334)
    - {
    - $elem335 = null;
    - $xfer += $input->readString($elem335);
    - $this->part_vals []= $elem335;
    + $_size337 = 0;
    + $_etype340 = 0;
    + $xfer += $input->readListBegin($_etype340, $_size337);
    + for ($_i341 = 0; $_i341 < $_size337; ++$_i341)
    + {
    + $elem342 = null;
    + $xfer += $input->readString($elem342);
    + $this->part_vals []= $elem342;
    }
    $xfer += $input->readListEnd();
    } else {
    @@ -11670,14 +11670,14 @@ class ThriftHiveMetastore_get_partitions
    case 6:
    if ($ftype == TType::LST) {
    $this->group_names = array();
    - $_size336 = 0;
    - $_etype339 = 0;
    - $xfer += $input->readListBegin($_etype339, $_size336);
    - for ($_i340 = 0; $_i340 < $_size336; ++$_i340)
    - {
    - $elem341 = null;
    - $xfer += $input->readString($elem341);
    - $this->group_names []= $elem341;
    + $_size343 = 0;
    + $_etype346 = 0;
    + $xfer += $input->readListBegin($_etype346, $_size343);
    + for ($_i347 = 0; $_i347 < $_size343; ++$_i347)
    + {
    + $elem348 = null;
    + $xfer += $input->readString($elem348);
    + $this->group_names []= $elem348;
    }
    $xfer += $input->readListEnd();
    } else {
    @@ -11715,9 +11715,9 @@ class ThriftHiveMetastore_get_partitions
    {
    $output->writeListBegin(TType::STRING, count($this->part_vals));
    {
    - foreach ($this->part_vals as $iter342)
    + foreach ($this->part_vals as $iter349)
    {
    - $xfer += $output->writeString($iter342);
    + $xfer += $output->writeString($iter349);
    }
    }
    $output->writeListEnd();
    @@ -11742,9 +11742,9 @@ class ThriftHiveMetastore_get_partitions
    {
    $output->writeListBegin(TType::STRING, count($this->group_names));
    {
    - foreach ($this->group_names as $iter343)
    + foreach ($this->group_names as $iter350)
    {
    - $xfer += $output->writeString($iter343);
    + $xfer += $output->writeString($iter350);
    }
    }
    $output->writeListEnd();
    @@ -11824,15 +11824,15 @@ class ThriftHiveMetastore_get_partitions
    case 0:
    if ($ftype == TType::LST) {
    $this->success = array();
    - $_size344 = 0;
    - $_etype347 = 0;
    - $xfer += $input->readListBegin($_etype347, $_size344);
    - for ($_i348 = 0; $_i348 < $_size344; ++$_i348)
    - {
    - $elem349 = null;
    - $elem349 = new Partition();
    - $xfer += $elem349->read($input);
    - $this->success []= $elem349;
    + $_size351 = 0;
    + $_etype354 = 0;
    + $xfer += $input->readListBegin($_etype354, $_size351);
    + for ($_i355 = 0; $_i355 < $_size351; ++$_i355)
    + {
    + $elem356 = null;
    + $elem356 = new Partition();
    + $xfer += $elem356->read($input);
    + $this->success []= $elem356;
    }
    $xfer += $input->readListEnd();
    } else {
    @@ -11876,9 +11876,9 @@ class ThriftHiveMetastore_get_partitions
    {
    $output->writeListBegin(TType::STRUCT, count($this->success));
    {
    - foreach ($this->success as $iter350)
    + foreach ($this->success as $iter357)
    {
    - $xfer += $iter350->write($output);
    + $xfer += $iter357->write($output);
    }
    }
    $output->writeListEnd();
    @@ -11987,14 +11987,14 @@ class ThriftHiveMetastore_get_partition_
    case 3:
    if ($ftype == TType::LST) {
    $this->part_vals = array();
    - $_size351 = 0;
    - $_etype354 = 0;
    - $xfer += $input->readListBegin($_etype354, $_size351);
    - for ($_i355 = 0; $_i355 < $_size351; ++$_i355)
    + $_size358 = 0;
    + $_etype361 = 0;
    + $xfer += $input->readListBegin($_etype361, $_size358);
    + for ($_i362 = 0; $_i362 < $_size358; ++$_i362)
    {
    - $elem356 = null;
    - $xfer += $input->readString($elem356);
    - $this->part_vals []= $elem356;
    + $elem363 = null;
    + $xfer += $input->readString($elem363);
    + $this->part_vals []= $elem363;
    }
    $xfer += $input->readListEnd();
    } else {
    @@ -12039,9 +12039,9 @@ class ThriftHiveMetastore_get_partition_
    {
    $output->writeListBegin(TType::STRING, count($this->part_vals));
    {
    - foreach ($this->part_vals as $iter357)
    + foreach ($this->part_vals as $iter364)
    {
    - $xfer += $output->writeString($iter357);
    + $xfer += $output->writeString($iter364);
    }
    }
    $output->writeListEnd();
    @@ -12125,14 +12125,14 @@ class ThriftHiveMetastore_get_partition_
    case 0:
    if ($ftype == TType::LST) {
    $this->success = array();
    - $_size358 = 0;
    - $_etype361 = 0;
    - $xfer += $input->readListBegin($_etype361, $_size358);
    - for ($_i362 = 0; $_i362 < $_size358; ++$_i362)
    + $_size365 = 0;
    + $_etype368 = 0;
    + $xfer += $input->readListBegin($_etype368, $_size365);
    + for ($_i369 = 0; $_i369 < $_size365; ++$_i369)
    {
    - $elem363 = null;
    - $xfer += $input->readString($elem363);
    - $this->success []= $elem363;
    + $elem370 = null;
    + $xfer += $input->readString($elem370);
    + $this->success []= $elem370;
    }
    $xfer += $input->readListEnd();
    } else {
    @@ -12176,9 +12176,9 @@ class ThriftHiveMetastore_get_partition_
    {
    $output->writeListBegin(TType::STRING, count($this->success));
    {
    - foreach ($this->success as $iter364)
    + foreach ($this->success as $iter371)
    {
    - $xfer += $output->writeString($iter364);
    + $xfer += $output->writeString($iter371);
    }
    }
    $output->writeListEnd();
    @@ -12400,15 +12400,15 @@ class ThriftHiveMetastore_get_partitions
    case 0:
    if ($ftype == TType::LST) {
    $this->success = array();
    - $_size365 = 0;
    - $_etype368 = 0;
    - $xfer += $input->readListBegin($_etype368, $_size365);
    - for ($_i369 = 0; $_i369 < $_size365; ++$_i369)
    + $_size372 = 0;
    + $_etype375 = 0;
    + $xfer += $input->readListBegin($_etype375, $_size372);
    + for ($_i376 = 0; $_i376 < $_size372; ++$_i376)
    {
    - $elem370 = null;
    - $elem370 = new Partition();
    - $xfer += $elem370->read($input);
    - $this->success []= $elem370;
    + $elem377 = null;
    + $elem377 = new Partition();
    + $xfer += $elem377->read($input);
    + $this->success []= $elem377;
    }
    $xfer += $input->readListEnd();
    } else {
    @@ -12452,9 +12452,9 @@ class ThriftHiveMetastore_get_partitions
    {
    $output->writeListBegin(TType::STRUCT, count($this->success));
    {
    - foreach ($this->success as $iter371)
    + foreach ($this->success as $iter378)
    {
    - $xfer += $iter371->write($output);
    + $xfer += $iter378->write($output);
    }
    }
    $output->writeListEnd();
    @@ -12555,14 +12555,14 @@ class ThriftHiveMetastore_get_partitions
    case 3:
    if ($ftype == TType::LST) {
    $this->names = array();
    - $_size372 = 0;
    - $_etype375 = 0;
    - $xfer += $input->readListBegin($_etype375, $_size372);
    - for ($_i376 = 0; $_i376 < $_size372; ++$_i376)
    + $_size379 = 0;
    + $_etype382 = 0;
    + $xfer += $input->readListBegin($_etype382, $_size379);
    + for ($_i383 = 0; $_i383 < $_size379; ++$_i383)
    {
    - $elem377 = null;
    - $xfer += $input->readString($elem377);
    - $this->names []= $elem377;
    + $elem384 = null;
    + $xfer += $input->readString($elem384);
    + $this->names []= $elem384;
    }
    $xfer += $input->readListEnd();
    } else {
    @@ -12600,9 +12600,9 @@ class ThriftHiveMetastore_get_partitions
    {
    $output->writeListBegin(TType::STRING, count($this->names));
    {
    - foreach ($this->names as $iter378)
    + foreach ($this->names as $iter385)
    {
    - $xfer += $output->writeString($iter378);
    + $xfer += $output->writeString($iter385);
    }
    }
    $output->writeListEnd();
    @@ -12682,15 +12682,15 @@ class ThriftHiveMetastore_get_partitions
    case 0:
    if ($ftype == TType::LST) {
    $this->success = array();
    - $_size379 = 0;
    - $_etype382 = 0;
    - $xfer += $input->readListBegin($_etype382, $_size379);
    - for ($_i383 = 0; $_i383 < $_size379; ++$_i383)
    + $_size386 = 0;
    + $_etype389 = 0;
    + $xfer += $input->readListBegin($_etype389, $_size386);
    + for ($_i390 = 0; $_i390 < $_size386; ++$_i390)
    {
    - $elem384 = null;
    - $elem384 = new Partition();
    - $xfer += $elem384->read($input);
    - $this->success []= $elem384;
    + $elem391 = null;
    + $elem391 = new Partition();
    + $xfer += $elem391->read($input);
    + $this->success []= $elem391;
    }
    $xfer += $input->readListEnd();
    } else {
    @@ -12734,9 +12734,9 @@ class ThriftHiveMetastore_get_partitions
    {
    $output->writeListBegin(TType::STRUCT, count($this->success));
    {
    - foreach ($this->success as $iter385)
    + foreach ($this->success as $iter392)
    {
    - $xfer += $iter385->write($output);
    + $xfer += $iter392->write($output);
    }
    }
    $output->writeListEnd();
    @@ -13059,14 +13059,14 @@ class ThriftHiveMetastore_rename_partiti
    case 3:
    if ($ftype == TType::LST) {
    $this->part_vals = array();
    - $_size386 = 0;
    - $_etype389 = 0;
    - $xfer += $input->readListBegin($_etype389, $_size386);
    - for ($_i390 = 0; $_i390 < $_size386; ++$_i390)
    + $_size393 = 0;
    + $_etype396 = 0;
    + $xfer += $input->readListBegin($_etype396, $_size393);
    + for ($_i397 = 0; $_i397 < $_size393; ++$_i397)
    {
    - $elem391 = null;
    - $xfer += $input->readString($elem391);
    - $this->part_vals []= $elem391;
    + $elem398 = null;
    + $xfer += $input->readString($elem398);
    + $this->part_vals []= $elem398;
    }
    $xfer += $input->readListEnd();
    } else {
    @@ -13112,9 +13112,9 @@ class ThriftHiveMetastore_rename_partiti
    {
    $output->writeListBegin(TType::STRING, count($this->part_vals));
    {
    - foreach ($this->part_vals as $iter392)
    + foreach ($this->part_vals as $iter399)
    {
    - $xfer += $output->writeString($iter392);
    + $xfer += $output->writeString($iter399);
    }
    }
    $output->writeListEnd();
    @@ -13546,14 +13546,14 @@ class ThriftHiveMetastore_partition_name
    case 0:
    if ($ftype == TType::LST) {
    $this->success = array();
    - $_size393 = 0;
    - $_etype396 = 0;
    - $xfer += $input->readListBegin($_etype396, $_size393);
    - for ($_i397 = 0; $_i397 < $_size393; ++$_i397)
    + $_size400 = 0;
    + $_etype403 = 0;
    + $xfer += $input->readListBegin($_etype403, $_size400);
    + for ($_i404 = 0; $_i404 < $_size400; ++$_i404)
    {
    - $elem398 = null;
    - $xfer += $input->readString($elem398);
    - $this->success []= $elem398;
    + $elem405 = null;
    + $xfer += $input->readString($elem405);
    + $this->success []= $elem405;
    }
    $xfer += $input->readListEnd();
    } else {
    @@ -13589,9 +13589,9 @@ class ThriftHiveMetastore_partition_name
    {
    $output->writeListBegin(TType::STRING, count($this->success));
    {
    - foreach ($this->success as $iter399)
    + foreach ($this->success as $iter406)
    {
    - $xfer += $output->writeString($iter399);
    + $xfer += $output->writeString($iter406);
    }
    }
    $output->writeListEnd();
    @@ -13742,17 +13742,17 @@ class ThriftHiveMetastore_partition_name
    case 0:
    if ($ftype == TType::MAP) {
    $this->success = array();
    - $_size400 = 0;
    - $_ktype401 = 0;
    - $_vtype402 = 0;
    - $xfer += $input->readMapBegin($_ktype401, $_vtype402, $_size400);
    - for ($_i404 = 0; $_i404 < $_size400; ++$_i404)
    - {
    - $key405 = '';
    - $val406 = '';
    - $xfer += $input->readString($key405);
    - $xfer += $input->readString($val406);
    - $this->success[$key405] = $val406;
    + $_size407 = 0;
    + $_ktype408 = 0;
    + $_vtype409 = 0;
    + $xfer += $input->readMapBegin($_ktype408, $_vtype409, $_size407);
    + for ($_i411 = 0; $_i411 < $_size407; ++$_i411)
    + {
    + $key412 = '';
    + $val413 = '';
    + $xfer += $input->readString($key412);
    + $xfer += $input->readString($val413);
    + $this->success[$key412] = $val413;
    }
    $xfer += $input->readMapEnd();
    } else {
    @@ -13788,10 +13788,10 @@ class ThriftHiveMetastore_partition_name
    {
    $output->writeMapBegin(TType::STRING, TType::STRING, count($this->success));
    {
    - foreach ($this->success as $kiter407 => $viter408)
    + foreach ($this->success as $kiter414 => $viter415)
    {
    - $xfer += $output->writeString($kiter407);
    - $xfer += $output->writeString($viter408);
    + $xfer += $output->writeString($kiter414);
    + $xfer += $output->writeString($viter415);
    }
    }
    $output->writeMapEnd();
    @@ -13899,17 +13899,17 @@ class ThriftHiveMetastore_markPartitionF
    case 3:
    if ($ftype == TType::MAP) {
    $this->part_vals = array();
    - $_size409 = 0;
    - $_ktype410 = 0;
    - $_vtype411 = 0;
    - $xfer += $input->readMapBegin($_ktype410, $_vtype411, $_size409);
    - for ($_i413 = 0; $_i413 < $_size409; ++$_i413)
    - {
    - $key414 = '';
    - $val415 = '';
    - $xfer += $input->readString($key414);
    - $xfer += $input->readString($val415);
    - $this->part_vals[$key414] = $val415;
    + $_size416 = 0;
    + $_ktype417 = 0;
    + $_vtype418 = 0;
    + $xfer += $input->readMapBegin($_ktype417, $_vtype418, $_size416);
    + for ($_i420 = 0; $_i420 < $_size416; ++$_i420)
    + {
    + $key421 = '';
    + $val422 = '';
    + $xfer += $input->readString($key421);
    + $xfer += $input->readString($val422);
    + $this->part_vals[$key421] = $val422;
    }
    $xfer += $input->readMapEnd();
    } else {
    @@ -13954,10 +13954,10 @@ class ThriftHiveMetastore_markPartitionF
    {
    $output->writeMapBegin(TType::STRING, TType::STRING, count($this->part_vals));
    {
    - foreach ($this->part_vals as $kiter416 => $viter417)
    + foreach ($this->part_vals as $kiter423 => $viter424)
    {
    - $xfer += $output->writeString($kiter416);
    - $xfer += $output->writeString($viter417);
    + $xfer += $output->writeString($kiter423);
    + $xfer += $output->writeString($viter424);
    }
    }
    $output->writeMapEnd();
    @@ -14249,17 +14249,17 @@ class ThriftHiveMetastore_isPartitionMar
    case 3:
    if ($ftype == TType::MAP) {
    $this->part_vals = array();
    - $_size418 = 0;
    - $_ktype419 = 0;
    - $_vtype420 = 0;
    - $xfer += $input->readMapBegin($_ktype419, $_vtype420, $_size418);
    - for ($_i422 = 0; $_i422 < $_size418; ++$_i422)
    - {
    - $key423 = '';
    - $val424 = '';
    - $xfer += $input->readString($key423);
    - $xfer += $input->readString($val424);
    - $this->part_vals[$key423] = $val424;
    + $_size425 = 0;
    + $_ktype426 = 0;
    + $_vtype427 = 0;
    + $xfer += $input->readMapBegin($_ktype426, $_vtype427, $_size425);
    + for ($_i429 = 0; $_i429 < $_size425; ++$_i429)
    + {
    + $key430 = '';
    + $val431 = '';
    + $xfer += $input->readString($key430);
    + $xfer += $input->readString($val431);
    + $this->part_vals[$key430] = $val431;
    }
    $xfer += $input->readMapEnd();
    } else {
    @@ -14304,10 +14304,10 @@ class ThriftHiveMetastore_isPartitionMar
    {
    $output->writeMapBegin(TType::STRING, TType::STRING, count($this->part_vals));
    {
    - foreach ($this->part_vals as $kiter425 => $viter426)
    + foreach ($this->part_vals as $kiter432 => $viter433)
    {
    - $xfer += $output->writeString($kiter425);
    - $xfer += $output->writeString($viter426);
    + $xfer += $output->writeString($kiter432);
    + $xfer += $output->writeString($viter433);
    }
    }
    $output->writeMapEnd();
    @@ -15667,15 +15667,15 @@ class ThriftHiveMetastore_get_indexes_re
    case 0:
    if ($ftype == TType::LST) {
    $this->success = array();
    - $_size427 = 0;
    - $_etype430 = 0;
    - $xfer += $input->readListBegin($_etype430, $_size427);
    - for ($_i431 = 0; $_i431 < $_size427; ++$_i431)
    - {
    - $elem432 = null;
    - $elem432 = new Index();
    - $xfer += $elem432->read($input);
    - $this->success []= $elem432;
    + $_size434 = 0;
    + $_etype437 = 0;
    + $xfer += $input->readListBegin($_etype437, $_size434);
    + for ($_i438 = 0; $_i438 < $_size434; ++$_i438)
    + {
    + $elem439 = null;
    + $elem439 = new Index();
    + $xfer += $elem439->read($input);
    + $this->success []= $elem439;
    }
    $xfer += $input->readListEnd();
    } else {
    @@ -15719,9 +15719,9 @@ class ThriftHiveMetastore_get_indexes_re
    {
    $output->writeListBegin(TType::STRUCT, count($this->success));
    {
    - foreach ($this->success as $iter433)
    + foreach ($this->success as $iter440)
    {
    - $xfer += $iter433->write($output);
    + $xfer += $iter440->write($output);
    }
    }
    $output->writeListEnd();
    @@ -15913,14 +15913,14 @@ class ThriftHiveMetastore_get_index_name
    case 0:
    if ($ftype == TType::LST) {
    $this->success = array();
    - $_size434 = 0;
    - $_etype437 = 0;
    - $xfer += $input->readListBegin($_etype437, $_size434);
    - for ($_i438 = 0; $_i438 < $_size434; ++$_i438)
    + $_size441 = 0;
    + $_etype444 = 0;
    + $xfer += $input->readListBegin($_etype444, $_size441);
    + for ($_i445 = 0; $_i445 < $_size441; ++$_i445)
    {
    - $elem439 = null;
    - $xfer += $input->readString($elem439);
    - $this->success []= $elem439;
    + $elem446 = null;
    + $xfer += $input->readString($elem446);
    + $this->success []= $elem446;
    }
    $xfer += $input->readListEnd();
    } else {
    @@ -15956,9 +15956,9 @@ class ThriftHiveMetastore_get_index_name
    {
    $output->writeListBegin(TType::STRING, count($this->success));
    {
    - foreach ($this->success as $iter440)
    + foreach ($this->success as $iter447)
    {
    - $xfer += $output->writeString($iter440);
    + $xfer += $output->writeString($iter447);
    }
    }
    $output->writeListEnd();
    @@ -16420,14 +16420,14 @@ class ThriftHiveMetastore_get_role_names
    case 0:
    if ($ftype == TType::LST) {
    $this->success = array();
    - $_size441 = 0;
    - $_etype444 = 0;
    - $xfer += $input->readListBegin($_etype444, $_size441);
    - for ($_i445 = 0; $_i445 < $_size441; ++$_i445)
    + $_size448 = 0;
    + $_etype451 = 0;
    + $xfer += $input->readListBegin($_etype451, $_size448);
    + for ($_i452 = 0; $_i452 < $_size448; ++$_i452)
    {
    - $elem446 = null;
    - $xfer += $input->readString($elem446);
    - $this->success []= $elem446;
    + $elem453 = null;
    + $xfer += $input->readString($elem453);
    + $this->success []= $elem453;
    }
    $xfer += $input->readListEnd();
    } else {
    @@ -16463,9 +16463,9 @@ class ThriftHiveMetastore_get_role_names
    {
    $output->writeListBegin(TType::STRING, count($this->success));
    {
    - foreach ($this->success as $iter447)
    + foreach ($this->success as $iter454)
    {
    - $xfer += $output->writeString($iter447);
    + $xfer += $output->writeString($iter454);
    }
    }
    $output->writeListEnd();
    @@ -17105,15 +17105,15 @@ class ThriftHiveMetastore_list_roles_res
    case 0:
    if ($ftype == TType::LST) {
    $this->success = array();
    - $_size448 = 0;
    - $_etype451 = 0;
    - $xfer += $input->readListBegin($_etype451, $_size448);
    - for ($_i452 = 0; $_i452 < $_size448; ++$_i452)
    + $_size455 = 0;
    + $_etype458 = 0;
    + $xfer += $input->readListBegin($_etype458, $_size455);
    + for ($_i459 = 0; $_i459 < $_size455; ++$_i459)
    {
    - $elem453 = null;
    - $elem453 = new Role();
    - $xfer += $elem453->read($input);
    - $this->success []= $elem453;
    + $elem460 = null;
    + $elem460 = new Role();
    + $xfer += $elem460->read($input);
    + $this->success []= $elem460;
    }
    $xfer += $input->readListEnd();
    } else {
    @@ -17149,9 +17149,9 @@ class ThriftHiveMetastore_list_roles_res
    {
    $output->writeListBegin(TType::STRUCT, count($this->success));
    {
    - foreach ($this->success as $iter454)
    + foreach ($this->success as $iter461)
    {
    - $xfer += $iter454->write($output);
    + $xfer += $iter461->write($output);
    }
    }
    $output->writeListEnd();
    @@ -17249,14 +17249,14 @@ class ThriftHiveMetastore_get_privilege_
    case 3:
    if ($ftype == TType::LST) {
    $this->group_names = array();
    - $_size455 = 0;
    - $_etype458 = 0;
    - $xfer += $input->readListBegin($_etype458, $_size455);
    - for ($_i459 = 0; $_i459 < $_size455; ++$_i459)
    + $_size462 = 0;
    + $_etype465 = 0;
    + $xfer += $input->readListBegin($_etype465, $_size462);
    + for ($_i466 = 0; $_i466 < $_size462; ++$_i466)
    {
    - $elem460 = null;
    - $xfer += $input->readString($elem460);
    - $this->group_names []= $elem460;
    + $elem467 = null;
    + $xfer += $input->readString($elem467);
    + $this->group_names []= $elem467;
    }
    $xfer += $input->readListEnd();
    } else {
    @@ -17297,9 +17297,9 @@ class ThriftHiveMetastore_get_privilege_
    {
    $output->writeListBegin(TType::STRING, count($this->group_names));
    {
    - foreach ($this->group_names as $iter461)
    + foreach ($this->group_names as $iter468)
    {
    - $xfer += $output->writeString($iter461);
    + $xfer += $output->writeString($iter468);
    }
    }
    $output->writeListEnd();
    @@ -17586,15 +17586,15 @@ class ThriftHiveMetastore_list_privilege
    case 0:
    if ($ftype == TType::LST) {
    $this->success = array();
    - $_size462 = 0;
    - $_etype465 = 0;
    - $xfer += $input->readListBegin($_etype465, $_size462);
    - for ($_i466 = 0; $_i466 < $_size462; ++$_i466)
    + $_size469 = 0;
    + $_etype472 = 0;
    + $xfer += $input->readListBegin($_etype472, $_size469);
    + for ($_i473 = 0; $_i473 < $_size469; ++$_i473)
    {
    - $elem467 = null;
    - $elem467 = new HiveObjectPrivilege();
    - $xfer += $elem467->read($input);
    - $this->success []= $elem467;
    + $elem474 = null;
    + $elem474 = new HiveObjectPrivilege();
    + $xfer += $elem474->read($input);
    + $this->success []= $elem474;
    }
    $xfer += $input->readListEnd();
    } else {
    @@ -17630,9 +17630,9 @@ class ThriftHiveMetastore_list_privilege
    {
    $output->writeListBegin(TType::STRUCT, count($this->success));
    {
    - foreach ($this->success as $iter468)
    + foreach ($this->success as $iter475)
    {
    - $xfer += $iter468->write($output);
    + $xfer += $iter475->write($output);
    }
    }
    $output->writeListEnd();
    @@ -18055,14 +18055,14 @@ class ThriftHiveMetastore_set_ugi_args {
    case 2:
    if ($ftype == TType::LST) {
    $this->group_names = array();
    - $_size469 = 0;
    - $_etype472 = 0;
    - $xfer += $input->readListBegin($_etype472, $_size469);
    - for ($_i473 = 0; $_i473 < $_size469; ++$_i473)
    + $_size476 = 0;
    + $_etype479 = 0;
    + $xfer += $input->readListBegin($_etype479, $_size476);
    + for ($_i480 = 0; $_i480 < $_size476; ++$_i480)
    {
    - $elem474 = null;
    - $xfer += $input->readString($elem474);
    - $this->group_names []= $elem474;
    + $elem481 = null;
    + $xfer += $input->readString($elem481);
    + $this->group_names []= $elem481;
    }
    $xfer += $input->readListEnd();
    } else {
    @@ -18095,9 +18095,9 @@ class ThriftHiveMetastore_set_ugi_args {
    {
    $output->writeListBegin(TType::STRING, count($this->group_names));
    {
    - foreach ($this->group_names as $iter475)
    + foreach ($this->group_names as $iter482)
    {
    - $xfer += $output->writeString($iter475);
    + $xfer += $output->writeString($iter482);
    }
    }
    $output->writeListEnd();
    @@ -18167,14 +18167,14 @@ class ThriftHiveMetastore_set_ugi_result
    case 0:
    if ($ftype == TType::LST) {
    $this->success = array();
    - $_size476 = 0;
    - $_etype479 = 0;
    - $xfer += $input->readListBegin($_etype479, $_size476);
    - for ($_i480 = 0; $_i480 < $_size476; ++$_i480)
    - {
    - $elem481 = null;
    - $xfer += $input->readString($elem481);
    - $this->success []= $elem481;
    + $_size483 = 0;
    + $_etype486 = 0;
    + $xfer += $input->readListBegin($_etype486, $_size483);
    + for ($_i487 = 0; $_i487 < $_size483; ++$_i487)
    + {
    + $elem488 = null;
    + $xfer += $input->readString($elem488);
    + $this->success []= $elem488;
    }
    $xfer += $input->readListEnd();
    } else {
    @@ -18210,9 +18210,9 @@ class ThriftHiveMetastore_set_ugi_result
    {
    $output->writeListBegin(TType::STRING, count($this->success));
    {
    - foreach ($this->success as $iter482)
    + foreach ($this->success as $iter489)
    {
    - $xfer += $output->writeString($iter482);
    + $xfer += $output->writeString($iter489);
    }
    }
    $output->writeListEnd();

    Modified: hive/trunk/metastore/src/gen/thrift/gen-php/hive_metastore/hive_metastore_types.php
    URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/gen/thrift/gen-php/hive_metastore/hive_metastore_types.php?rev=1243013&r1=1243012&r2=1243013&view=diff
    ==============================================================================
    --- hive/trunk/metastore/src/gen/thrift/gen-php/hive_metastore/hive_metastore_types.php (original)
    +++ hive/trunk/metastore/src/gen/thrift/gen-php/hive_metastore/hive_metastore_types.php Sat Feb 11 07:49:28 2012
    @@ -1825,6 +1825,98 @@ class Order {

    }

    +class RegionStorageDescriptor {
    + static $_TSPEC;
    +
    + public $regionName = null;
    + public $location = null;
    +
    + public function __construct($vals=null) {
    + if (!isset(self::$_TSPEC)) {
    + self::$_TSPEC = array(
    + 1 => array(
    + 'var' => 'regionName',
    + 'type' => TType::STRING,
    + ),
    + 2 => array(
    + 'var' => 'location',
    + 'type' => TType::STRING,
    + ),
    + );
    + }
    + if (is_array($vals)) {
    + if (isset($vals['regionName'])) {
    + $this->regionName = $vals['regionName'];
    + }
    + if (isset($vals['location'])) {
    + $this->location = $vals['location'];
    + }
    + }
    + }
    +
    + public function getName() {
    + return 'RegionStorageDescriptor';
    + }
    +
    + public function read($input)
    + {
    + $xfer = 0;
    + $fname = null;
    + $ftype = 0;
    + $fid = 0;
    + $xfer += $input->readStructBegin($fname);
    + while (true)
    + {
    + $xfer += $input->readFieldBegin($fname, $ftype, $fid);
    + if ($ftype == TType::STOP) {
    + break;
    + }
    + switch ($fid)
    + {
    + case 1:
    + if ($ftype == TType::STRING) {
    + $xfer += $input->readString($this->regionName);
    + } else {
    + $xfer += $input->skip($ftype);
    + }
    + break;
    + case 2:
    + if ($ftype == TType::STRING) {
    + $xfer += $input->readString($this->location);
    + } else {
    + $xfer += $input->skip($ftype);
    + }
    + break;
    + default:
    + $xfer += $input->skip($ftype);
    + break;
    + }
    + $xfer += $input->readFieldEnd();
    + }
    + $xfer += $input->readStructEnd();
    + return $xfer;
    + }
    +
    + public function write($output) {
    + $xfer = 0;
    + $xfer += $output->writeStructBegin('RegionStorageDescriptor');
    + if ($this->regionName !== null) {
    + $xfer += $output->writeFieldBegin('regionName', TType::STRING, 1);
    + $xfer += $output->writeString($this->regionName);
    + $xfer += $output->writeFieldEnd();
    + }
    + if ($this->location !== null) {
    + $xfer += $output->writeFieldBegin('location', TType::STRING, 2);
    + $xfer += $output->writeString($this->location);
    + $xfer += $output->writeFieldEnd();
    + }
    + $xfer += $output->writeFieldStop();
    + $xfer += $output->writeStructEnd();
    + return $xfer;
    + }
    +
    +}
    +
    class StorageDescriptor {
    static $_TSPEC;

    @@ -1838,6 +1930,8 @@ class StorageDescriptor {
    public $bucketCols = null;
    public $sortCols = null;
    public $parameters = null;
    + public $primaryRegionName = null;
    + public $secondaryRegions = null;

    public function __construct($vals=null) {
    if (!isset(self::$_TSPEC)) {
    @@ -1905,6 +1999,19 @@ class StorageDescriptor {
    'type' => TType::STRING,
    ),
    ),
    + 11 => array(
    + 'var' => 'primaryRegionName',
    + 'type' => TType::STRING,
    + ),
    + 12 => array(
    + 'var' => 'secondaryRegions',
    + 'type' => TType::LST,
    + 'etype' => TType::STRUCT,
    + 'elem' => array(
    + 'type' => TType::STRUCT,
    + 'class' => 'RegionStorageDescriptor',
    + ),
    + ),
    );
    }
    if (is_array($vals)) {
    @@ -1938,6 +2045,12 @@ class StorageDescriptor {
    if (isset($vals['parameters'])) {
    $this->parameters = $vals['parameters'];
    }
    + if (isset($vals['primaryRegionName'])) {
    + $this->primaryRegionName = $vals['primaryRegionName'];
    + }
    + if (isset($vals['secondaryRegions'])) {
    + $this->secondaryRegions = $vals['secondaryRegions'];
    + }
    }
    }

    @@ -2076,6 +2189,31 @@ class StorageDescriptor {
    $xfer += $input->skip($ftype);
    }
    break;
    + case 11:
    + if ($ftype == TType::STRING) {
    + $xfer += $input->readString($this->primaryRegionName);
    + } else {
    + $xfer += $input->skip($ftype);
    + }
    + break;
    + case 12:
    + if ($ftype == TType::LST) {
    + $this->secondaryRegions = array();
    + $_size112 = 0;
    + $_etype115 = 0;
    + $xfer += $input->readListBegin($_etype115, $_size112);
    + for ($_i116 = 0; $_i116 < $_size112; ++$_i116)
    + {
    + $elem117 = null;
    + $elem117 = new RegionStorageDescriptor();
    + $xfer += $elem117->read($input);
    + $this->secondaryRegions []= $elem117;
    + }
    + $xfer += $input->readListEnd();
    + } else {
    + $xfer += $input->skip($ftype);
    + }
    + break;
    default:
    $xfer += $input->skip($ftype);
    break;
    @@ -2097,9 +2235,9 @@ class StorageDescriptor {
    {
    $output->writeListBegin(TType::STRUCT, count($this->cols));
    {
    - foreach ($this->cols as $iter112)
    + foreach ($this->cols as $iter118)
    {
    - $xfer += $iter112->write($output);
    + $xfer += $iter118->write($output);
    }
    }
    $output->writeListEnd();
    @@ -2147,9 +2285,9 @@ class StorageDescriptor {
    {
    $output->writeListBegin(TType::STRING, count($this->bucketCols));
    {
    - foreach ($this->bucketCols as $iter113)
    + foreach ($this->bucketCols as $iter119)
    {
    - $xfer += $output->writeString($iter113);
    + $xfer += $output->writeString($iter119);
    }
    }
    $output->writeListEnd();
    @@ -2164,9 +2302,9 @@ class StorageDescriptor {
    {
    $output->writeListBegin(TType::STRUCT, count($this->sortCols));
    {
    - foreach ($this->sortCols as $iter114)
    + foreach ($this->sortCols as $iter120)
    {
    - $xfer += $iter114->write($output);
    + $xfer += $iter120->write($output);
    }
    }
    $output->writeListEnd();
    @@ -2181,16 +2319,38 @@ class StorageDescriptor {
    {
    $output->writeMapBegin(TType::STRING, TType::STRING, count($this->parameters));
    {
    - foreach ($this->parameters as $kiter115 => $viter116)
    + foreach ($this->parameters as $kiter121 => $viter122)
    {
    - $xfer += $output->writeString($kiter115);
    - $xfer += $output->writeString($viter116);
    + $xfer += $output->writeString($kiter121);
    + $xfer += $output->writeString($viter122);
    }
    }
    $output->writeMapEnd();
    }
    $xfer += $output->writeFieldEnd();
    }
    + if ($this->primaryRegionName !== null) {
    + $xfer += $output->writeFieldBegin('primaryRegionName', TType::STRING, 11);
    + $xfer += $output->writeString($this->primaryRegionName);
    + $xfer += $output->writeFieldEnd();
    + }
    + if ($this->secondaryRegions !== null) {
    + if (!is_array($this->secondaryRegions)) {
    + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
    + }
    + $xfer += $output->writeFieldBegin('secondaryRegions', TType::LST, 12);
    + {
    + $output->writeListBegin(TType::STRUCT, count($this->secondaryRegions));
    + {
    + foreach ($this->secondaryRegions as $iter123)
    + {
    + $xfer += $iter123->write($output);
    + }
    + }
    + $output->writeListEnd();
    + }
    + $xfer += $output->writeFieldEnd();
    + }
    $xfer += $output->writeFieldStop();
    $xfer += $output->writeStructEnd();
    return $xfer;
    @@ -2402,15 +2562,15 @@ class Table {
    case 8:
    if ($ftype == TType::LST) {
    $this->partitionKeys = array();
    - $_size117 = 0;
    - $_etype120 = 0;
    - $xfer += $input->readListBegin($_etype120, $_size117);
    - for ($_i121 = 0; $_i121 < $_size117; ++$_i121)
    + $_size124 = 0;
    + $_etype127 = 0;
    + $xfer += $input->readListBegin($_etype127, $_size124);
    + for ($_i128 = 0; $_i128 < $_size124; ++$_i128)
    {
    - $elem122 = null;
    - $elem122 = new FieldSchema();
    - $xfer += $elem122->read($input);
    - $this->partitionKeys []= $elem122;
    + $elem129 = null;
    + $elem129 = new FieldSchema();
    + $xfer += $elem129->read($input);
    + $this->partitionKeys []= $elem129;
    }
    $xfer += $input->readListEnd();
    } else {
    @@ -2420,17 +2580,17 @@ class Table {
    case 9:
    if ($ftype == TType::MAP) {
    $this->parameters = array();
    - $_size123 = 0;
    - $_ktype124 = 0;
    - $_vtype125 = 0;
    - $xfer += $input->readMapBegin($_ktype124, $_vtype125, $_size123);
    - for ($_i127 = 0; $_i127 < $_size123; ++$_i127)
    + $_size130 = 0;
    + $_ktype131 = 0;
    + $_vtype132 = 0;
    + $xfer += $input->readMapBegin($_ktype131, $_vtype132, $_size130);
    + for ($_i134 = 0; $_i134 < $_size130; ++$_i134)
    {
    - $key128 = '';
    - $val129 = '';
    - $xfer += $input->readString($key128);
    - $xfer += $input->readString($val129);
    - $this->parameters[$key128] = $val129;
    + $key135 = '';
    + $val136 = '';
    + $xfer += $input->readString($key135);
    + $xfer += $input->readString($val136);
    + $this->parameters[$key135] = $val136;
    }
    $xfer += $input->readMapEnd();
    } else {
    @@ -2525,9 +2685,9 @@ class Table {
    {
    $output->writeListBegin(TType::STRUCT, count($this->partitionKeys));
    {
    - foreach ($this->partitionKeys as $iter130)
    + foreach ($this->partitionKeys as $iter137)
    {
    - $xfer += $iter130->write($output);
    + $xfer += $iter137->write($output);
    }
    }
    $output->writeListEnd();
    @@ -2542,10 +2702,10 @@ class Table {
    {
    $output->writeMapBegin(TType::STRING, TType::STRING, count($this->parameters));
    {
    - foreach ($this->parameters as $kiter131 => $viter132)
    + foreach ($this->parameters as $kiter138 => $viter139)
    {
    - $xfer += $output->writeString($kiter131);
    - $xfer += $output->writeString($viter132);
    + $xfer += $output->writeString($kiter138);
    + $xfer += $output->writeString($viter139);
    }
    }
    $output->writeMapEnd();
    @@ -2695,14 +2855,14 @@ class Partition {
    case 1:
    if ($ftype == TType::LST) {
    $this->values = array();
    - $_size133 = 0;
    - $_etype136 = 0;
    - $xfer += $input->readListBegin($_etype136, $_size133);
    - for ($_i137 = 0; $_i137 < $_size133; ++$_i137)
    + $_size140 = 0;
    + $_etype143 = 0;
    + $xfer += $input->readListBegin($_etype143, $_size140);
    + for ($_i144 = 0; $_i144 < $_size140; ++$_i144)
    {
    - $elem138 = null;
    - $xfer += $input->readString($elem138);
    - $this->values []= $elem138;
    + $elem145 = null;
    + $xfer += $input->readString($elem145);
    + $this->values []= $elem145;
    }
    $xfer += $input->readListEnd();
    } else {
    @@ -2748,17 +2908,17 @@ class Partition {
    case 7:
    if ($ftype == TType::MAP) {
    $this->parameters = array();
    - $_size139 = 0;
    - $_ktype140 = 0;
    - $_vtype141 = 0;
    - $xfer += $input->readMapBegin($_ktype140, $_vtype141, $_size139);
    - for ($_i143 = 0; $_i143 < $_size139; ++$_i143)
    + $_size146 = 0;
    + $_ktype147 = 0;
    + $_vtype148 = 0;
    + $xfer += $input->readMapBegin($_ktype147, $_vtype148, $_size146);
    + for ($_i150 = 0; $_i150 < $_size146; ++$_i150)
    {
    - $key144 = '';
    - $val145 = '';
    - $xfer += $input->readString($key144);
    - $xfer += $input->readString($val145);
    - $this->parameters[$key144] = $val145;
    + $key151 = '';
    + $val152 = '';
    + $xfer += $input->readString($key151);
    + $xfer += $input->readString($val152);
    + $this->parameters[$key151] = $val152;
    }
    $xfer += $input->readMapEnd();
    } else {
    @@ -2794,9 +2954,9 @@ class Partition {
    {
    $output->writeListBegin(TType::STRING, count($this->values));
    {
    - foreach ($this->values as $iter146)
    + foreach ($this->values as $iter153)
    {
    - $xfer += $output->writeString($iter146);
    + $xfer += $output->writeString($iter153);
    }
    }
    $output->writeListEnd();
    @@ -2839,10 +2999,10 @@ class Partition {
    {
    $output->writeMapBegin(TType::STRING, TType::STRING, count($this->parameters));
    {
    - foreach ($this->parameters as $kiter147 => $viter148)
    + foreach ($this->parameters as $kiter154 => $viter155)
    {
    - $xfer += $output->writeString($kiter147);
    - $xfer += $output->writeString($viter148);
    + $xfer += $output->writeString($kiter154);
    + $xfer += $output->writeString($viter155);
    }
    }
    $output->writeMapEnd();
    @@ -3045,17 +3205,17 @@ class Index {
    case 9:
    if ($ftype == TType::MAP) {
    $this->parameters = array();
    - $_size149 = 0;
    - $_ktype150 = 0;
    - $_vtype151 = 0;
    - $xfer += $input->readMapBegin($_ktype150, $_vtype151, $_size149);
    - for ($_i153 = 0; $_i153 < $_size149; ++$_i153)
    + $_size156 = 0;
    + $_ktype157 = 0;
    + $_vtype158 = 0;
    + $xfer += $input->readMapBegin($_ktype157, $_vtype158, $_size156);
    + for ($_i160 = 0; $_i160 < $_size156; ++$_i160)
    {
    - $key154 = '';
    - $val155 = '';
    - $xfer += $input->readString($key154);
    - $xfer += $input->readString($val155);
    - $this->parameters[$key154] = $val155;
    + $key161 = '';
    + $val162 = '';
    + $xfer += $input->readString($key161);
    + $xfer += $input->readString($val162);
    + $this->parameters[$key161] = $val162;
    }
    $xfer += $input->readMapEnd();
    } else {
    @@ -3133,10 +3293,10 @@ class Index {
    {
    $output->writeMapBegin(TType::STRING, TType::STRING, count($this->parameters));
    {
    - foreach ($this->parameters as $kiter156 => $viter157)
    + foreach ($this->parameters as $kiter163 => $viter164)
    {
    - $xfer += $output->writeString($kiter156);
    - $xfer += $output->writeString($viter157);
    + $xfer += $output->writeString($kiter163);
    + $xfer += $output->writeString($viter164);
    }
    }
    $output->writeMapEnd();
    @@ -3219,15 +3379,15 @@ class Schema {
    case 1:
    if ($ftype == TType::LST) {
    $this->fieldSchemas = array();
    - $_size158 = 0;
    - $_etype161 = 0;
    - $xfer += $input->readListBegin($_etype161, $_size158);
    - for ($_i162 = 0; $_i162 < $_size158; ++$_i162)
    + $_size165 = 0;
    + $_etype168 = 0;
    + $xfer += $input->readListBegin($_etype168, $_size165);
    + for ($_i169 = 0; $_i169 < $_size165; ++$_i169)
    {
    - $elem163 = null;
    - $elem163 = new FieldSchema();
    - $xfer += $elem163->read($input);
    - $this->fieldSchemas []= $elem163;
    + $elem170 = null;
    + $elem170 = new FieldSchema();
    + $xfer += $elem170->read($input);
    + $this->fieldSchemas []= $elem170;
    }
    $xfer += $input->readListEnd();
    } else {
    @@ -3237,17 +3397,17 @@ class Schema {
    case 2:
    if ($ftype == TType::MAP) {
    $this->properties = array();
    - $_size164 = 0;
    - $_ktype165 = 0;
    - $_vtype166 = 0;
    - $xfer += $input->readMapBegin($_ktype165, $_vtype166, $_size164);
    - for ($_i168 = 0; $_i168 < $_size164; ++$_i168)
    + $_size171 = 0;
    + $_ktype172 = 0;
    + $_vtype173 = 0;
    + $xfer += $input->readMapBegin($_ktype172, $_vtype173, $_size171);
    + for ($_i175 = 0; $_i175 < $_size171; ++$_i175)
    {
    - $key169 = '';
    - $val170 = '';
    - $xfer += $input->readString($key169);
    - $xfer += $input->readString($val170);
    - $this->properties[$key169] = $val170;
    + $key176 = '';
    + $val177 = '';
    + $xfer += $input->readString($key176);
    + $xfer += $input->readString($val177);
    + $this->properties[$key176] = $val177;
    }
    $xfer += $input->readMapEnd();
    } else {
    @@ -3275,9 +3435,9 @@ class Schema {
    {
    $output->writeListBegin(TType::STRUCT, count($this->fieldSchemas));
    {
    - foreach ($this->fieldSchemas as $iter171)
    + foreach ($this->fieldSchemas as $iter178)
    {
    - $xfer += $iter171->write($output);
    + $xfer += $iter178->write($output);
    }
    }
    $output->writeListEnd();
    @@ -3292,10 +3452,10 @@ class Schema {
    {
    $output->writeMapBegin(TType::STRING, TType::STRING, count($this->properties));
    {
    - foreach ($this->properties as $kiter172 => $viter173)
    + foreach ($this->properties as $kiter179 => $viter180)
    {
    - $xfer += $output->writeString($kiter172);
    - $xfer += $output->writeString($viter173);
    + $xfer += $output->writeString($kiter179);
    + $xfer += $output->writeString($viter180);
    }
    }
    $output->writeMapEnd();

    Added: hive/trunk/metastore/src/gen/thrift/gen-php/hive_metastore_constants.php
    URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/gen/thrift/gen-php/hive_metastore_constants.php?rev=1243013&view=auto
    ==============================================================================
    --- hive/trunk/metastore/src/gen/thrift/gen-php/hive_metastore_constants.php (added)
    +++ hive/trunk/metastore/src/gen/thrift/gen-php/hive_metastore_constants.php Sat Feb 11 07:49:28 2012
    @@ -0,0 +1,49 @@
    +<?php
    +/**
    + * Autogenerated by Thrift
    + *
    + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
    + */
    +include_once $GLOBALS['THRIFT_ROOT'].'/packages/hive_metastore/hive_metastore_types.php';
    +
    +$GLOBALS['hive_metastore_CONSTANTS'] = array();
    +
    +$GLOBALS['hive_metastore_CONSTANTS']['DDL_TIME'] = "transient_lastDdlTime";
    +
    +$GLOBALS['hive_metastore_CONSTANTS']['HIVE_FILTER_FIELD_OWNER'] = "hive_filter_field_owner__";
    +
    +$GLOBALS['hive_metastore_CONSTANTS']['HIVE_FILTER_FIELD_PARAMS'] = "hive_filter_field_params__";
    +
    +$GLOBALS['hive_metastore_CONSTANTS']['HIVE_FILTER_FIELD_LAST_ACCESS'] = "hive_filter_field_last_access__";
    +
    +$GLOBALS['hive_metastore_CONSTANTS']['IS_ARCHIVED'] = "is_archived";
    +
    +$GLOBALS['hive_metastore_CONSTANTS']['ORIGINAL_LOCATION'] = "original_location";
    +
    +$GLOBALS['hive_metastore_CONSTANTS']['META_TABLE_COLUMNS'] = "columns";
    +
    +$GLOBALS['hive_metastore_CONSTANTS']['META_TABLE_COLUMN_TYPES'] = "columns.types";
    +
    +$GLOBALS['hive_metastore_CONSTANTS']['BUCKET_FIELD_NAME'] = "bucket_field_name";
    +
    +$GLOBALS['hive_metastore_CONSTANTS']['BUCKET_COUNT'] = "bucket_count";
    +
    +$GLOBALS['hive_metastore_CONSTANTS']['FIELD_TO_DIMENSION'] = "field_to_dimension";
    +
    +$GLOBALS['hive_metastore_CONSTANTS']['META_TABLE_NAME'] = "name";
    +
    +$GLOBALS['hive_metastore_CONSTANTS']['META_TABLE_DB'] = "db";
    +
    +$GLOBALS['hive_metastore_CONSTANTS']['META_TABLE_LOCATION'] = "location";
    +
    +$GLOBALS['hive_metastore_CONSTANTS']['META_TABLE_SERDE'] = "serde";
    +
    +$GLOBALS['hive_metastore_CONSTANTS']['META_TABLE_PARTITION_COLUMNS'] = "partition_columns";
    +
    +$GLOBALS['hive_metastore_CONSTANTS']['FILE_INPUT_FORMAT'] = "file.inputformat";
    +
    +$GLOBALS['hive_metastore_CONSTANTS']['FILE_OUTPUT_FORMAT'] = "file.outputformat";
    +
    +$GLOBALS['hive_metastore_CONSTANTS']['META_TABLE_STORAGE'] = "storage_handler";
    +
    +?>
  • Namit at Feb 11, 2012 at 7:50 am
    Added: hive/trunk/metastore/src/gen/thrift/gen-php/hive_metastore_types.php
    URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/gen/thrift/gen-php/hive_metastore_types.php?rev=1243013&view=auto
    ==============================================================================
    --- hive/trunk/metastore/src/gen/thrift/gen-php/hive_metastore_types.php (added)
    +++ hive/trunk/metastore/src/gen/thrift/gen-php/hive_metastore_types.php Sat Feb 11 07:49:28 2012
    @@ -0,0 +1,4124 @@
    +<?php
    +/**
    + * Autogenerated by Thrift
    + *
    + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
    + */
    +include_once $GLOBALS['THRIFT_ROOT'].'/Thrift.php';
    +
    +include_once $GLOBALS['THRIFT_ROOT'].'/packages/fb303/fb303_types.php';
    +
    +$GLOBALS['metastore_E_HiveObjectType'] = array(
    + 'GLOBAL' => 1,
    + 'DATABASE' => 2,
    + 'TABLE' => 3,
    + 'PARTITION' => 4,
    + 'COLUMN' => 5,
    +);
    +
    +final class metastore_HiveObjectType {
    + const GLOBAL = 1;
    + const DATABASE = 2;
    + const TABLE = 3;
    + const PARTITION = 4;
    + const COLUMN = 5;
    + static public $__names = array(
    + 1 => 'GLOBAL',
    + 2 => 'DATABASE',
    + 3 => 'TABLE',
    + 4 => 'PARTITION',
    + 5 => 'COLUMN',
    + );
    +}
    +
    +$GLOBALS['metastore_E_PrincipalType'] = array(
    + 'USER' => 1,
    + 'ROLE' => 2,
    + 'GROUP' => 3,
    +);
    +
    +final class metastore_PrincipalType {
    + const USER = 1;
    + const ROLE = 2;
    + const GROUP = 3;
    + static public $__names = array(
    + 1 => 'USER',
    + 2 => 'ROLE',
    + 3 => 'GROUP',
    + );
    +}
    +
    +$GLOBALS['metastore_E_PartitionEventType'] = array(
    + 'LOAD_DONE' => 1,
    +);
    +
    +final class metastore_PartitionEventType {
    + const LOAD_DONE = 1;
    + static public $__names = array(
    + 1 => 'LOAD_DONE',
    + );
    +}
    +
    +class metastore_Version {
    + static $_TSPEC;
    +
    + public $version = null;
    + public $comments = null;
    +
    + public function __construct($vals=null) {
    + if (!isset(self::$_TSPEC)) {
    + self::$_TSPEC = array(
    + 1 => array(
    + 'var' => 'version',
    + 'type' => TType::STRING,
    + ),
    + 2 => array(
    + 'var' => 'comments',
    + 'type' => TType::STRING,
    + ),
    + );
    + }
    + if (is_array($vals)) {
    + if (isset($vals['version'])) {
    + $this->version = $vals['version'];
    + }
    + if (isset($vals['comments'])) {
    + $this->comments = $vals['comments'];
    + }
    + }
    + }
    +
    + public function getName() {
    + return 'Version';
    + }
    +
    + public function read($input)
    + {
    + $xfer = 0;
    + $fname = null;
    + $ftype = 0;
    + $fid = 0;
    + $xfer += $input->readStructBegin($fname);
    + while (true)
    + {
    + $xfer += $input->readFieldBegin($fname, $ftype, $fid);
    + if ($ftype == TType::STOP) {
    + break;
    + }
    + switch ($fid)
    + {
    + case 1:
    + if ($ftype == TType::STRING) {
    + $xfer += $input->readString($this->version);
    + } else {
    + $xfer += $input->skip($ftype);
    + }
    + break;
    + case 2:
    + if ($ftype == TType::STRING) {
    + $xfer += $input->readString($this->comments);
    + } else {
    + $xfer += $input->skip($ftype);
    + }
    + break;
    + default:
    + $xfer += $input->skip($ftype);
    + break;
    + }
    + $xfer += $input->readFieldEnd();
    + }
    + $xfer += $input->readStructEnd();
    + return $xfer;
    + }
    +
    + public function write($output) {
    + $xfer = 0;
    + $xfer += $output->writeStructBegin('Version');
    + if ($this->version !== null) {
    + $xfer += $output->writeFieldBegin('version', TType::STRING, 1);
    + $xfer += $output->writeString($this->version);
    + $xfer += $output->writeFieldEnd();
    + }
    + if ($this->comments !== null) {
    + $xfer += $output->writeFieldBegin('comments', TType::STRING, 2);
    + $xfer += $output->writeString($this->comments);
    + $xfer += $output->writeFieldEnd();
    + }
    + $xfer += $output->writeFieldStop();
    + $xfer += $output->writeStructEnd();
    + return $xfer;
    + }
    +
    +}
    +
    +class metastore_FieldSchema {
    + static $_TSPEC;
    +
    + public $name = null;
    + public $type = null;
    + public $comment = null;
    +
    + public function __construct($vals=null) {
    + if (!isset(self::$_TSPEC)) {
    + self::$_TSPEC = array(
    + 1 => array(
    + 'var' => 'name',
    + 'type' => TType::STRING,
    + ),
    + 2 => array(
    + 'var' => 'type',
    + 'type' => TType::STRING,
    + ),
    + 3 => array(
    + 'var' => 'comment',
    + 'type' => TType::STRING,
    + ),
    + );
    + }
    + if (is_array($vals)) {
    + if (isset($vals['name'])) {
    + $this->name = $vals['name'];
    + }
    + if (isset($vals['type'])) {
    + $this->type = $vals['type'];
    + }
    + if (isset($vals['comment'])) {
    + $this->comment = $vals['comment'];
    + }
    + }
    + }
    +
    + public function getName() {
    + return 'FieldSchema';
    + }
    +
    + public function read($input)
    + {
    + $xfer = 0;
    + $fname = null;
    + $ftype = 0;
    + $fid = 0;
    + $xfer += $input->readStructBegin($fname);
    + while (true)
    + {
    + $xfer += $input->readFieldBegin($fname, $ftype, $fid);
    + if ($ftype == TType::STOP) {
    + break;
    + }
    + switch ($fid)
    + {
    + case 1:
    + if ($ftype == TType::STRING) {
    + $xfer += $input->readString($this->name);
    + } else {
    + $xfer += $input->skip($ftype);
    + }
    + break;
    + case 2:
    + if ($ftype == TType::STRING) {
    + $xfer += $input->readString($this->type);
    + } else {
    + $xfer += $input->skip($ftype);
    + }
    + break;
    + case 3:
    + if ($ftype == TType::STRING) {
    + $xfer += $input->readString($this->comment);
    + } else {
    + $xfer += $input->skip($ftype);
    + }
    + break;
    + default:
    + $xfer += $input->skip($ftype);
    + break;
    + }
    + $xfer += $input->readFieldEnd();
    + }
    + $xfer += $input->readStructEnd();
    + return $xfer;
    + }
    +
    + public function write($output) {
    + $xfer = 0;
    + $xfer += $output->writeStructBegin('FieldSchema');
    + if ($this->name !== null) {
    + $xfer += $output->writeFieldBegin('name', TType::STRING, 1);
    + $xfer += $output->writeString($this->name);
    + $xfer += $output->writeFieldEnd();
    + }
    + if ($this->type !== null) {
    + $xfer += $output->writeFieldBegin('type', TType::STRING, 2);
    + $xfer += $output->writeString($this->type);
    + $xfer += $output->writeFieldEnd();
    + }
    + if ($this->comment !== null) {
    + $xfer += $output->writeFieldBegin('comment', TType::STRING, 3);
    + $xfer += $output->writeString($this->comment);
    + $xfer += $output->writeFieldEnd();
    + }
    + $xfer += $output->writeFieldStop();
    + $xfer += $output->writeStructEnd();
    + return $xfer;
    + }
    +
    +}
    +
    +class metastore_Type {
    + static $_TSPEC;
    +
    + public $name = null;
    + public $type1 = null;
    + public $type2 = null;
    + public $fields = null;
    +
    + public function __construct($vals=null) {
    + if (!isset(self::$_TSPEC)) {
    + self::$_TSPEC = array(
    + 1 => array(
    + 'var' => 'name',
    + 'type' => TType::STRING,
    + ),
    + 2 => array(
    + 'var' => 'type1',
    + 'type' => TType::STRING,
    + ),
    + 3 => array(
    + 'var' => 'type2',
    + 'type' => TType::STRING,
    + ),
    + 4 => array(
    + 'var' => 'fields',
    + 'type' => TType::LST,
    + 'etype' => TType::STRUCT,
    + 'elem' => array(
    + 'type' => TType::STRUCT,
    + 'class' => 'metastore_FieldSchema',
    + ),
    + ),
    + );
    + }
    + if (is_array($vals)) {
    + if (isset($vals['name'])) {
    + $this->name = $vals['name'];
    + }
    + if (isset($vals['type1'])) {
    + $this->type1 = $vals['type1'];
    + }
    + if (isset($vals['type2'])) {
    + $this->type2 = $vals['type2'];
    + }
    + if (isset($vals['fields'])) {
    + $this->fields = $vals['fields'];
    + }
    + }
    + }
    +
    + public function getName() {
    + return 'Type';
    + }
    +
    + public function read($input)
    + {
    + $xfer = 0;
    + $fname = null;
    + $ftype = 0;
    + $fid = 0;
    + $xfer += $input->readStructBegin($fname);
    + while (true)
    + {
    + $xfer += $input->readFieldBegin($fname, $ftype, $fid);
    + if ($ftype == TType::STOP) {
    + break;
    + }
    + switch ($fid)
    + {
    + case 1:
    + if ($ftype == TType::STRING) {
    + $xfer += $input->readString($this->name);
    + } else {
    + $xfer += $input->skip($ftype);
    + }
    + break;
    + case 2:
    + if ($ftype == TType::STRING) {
    + $xfer += $input->readString($this->type1);
    + } else {
    + $xfer += $input->skip($ftype);
    + }
    + break;
    + case 3:
    + if ($ftype == TType::STRING) {
    + $xfer += $input->readString($this->type2);
    + } else {
    + $xfer += $input->skip($ftype);
    + }
    + break;
    + case 4:
    + if ($ftype == TType::LST) {
    + $this->fields = array();
    + $_size0 = 0;
    + $_etype3 = 0;
    + $xfer += $input->readListBegin($_etype3, $_size0);
    + for ($_i4 = 0; $_i4 < $_size0; ++$_i4)
    + {
    + $elem5 = null;
    + $elem5 = new metastore_FieldSchema();
    + $xfer += $elem5->read($input);
    + $this->fields []= $elem5;
    + }
    + $xfer += $input->readListEnd();
    + } else {
    + $xfer += $input->skip($ftype);
    + }
    + break;
    + default:
    + $xfer += $input->skip($ftype);
    + break;
    + }
    + $xfer += $input->readFieldEnd();
    + }
    + $xfer += $input->readStructEnd();
    + return $xfer;
    + }
    +
    + public function write($output) {
    + $xfer = 0;
    + $xfer += $output->writeStructBegin('Type');
    + if ($this->name !== null) {
    + $xfer += $output->writeFieldBegin('name', TType::STRING, 1);
    + $xfer += $output->writeString($this->name);
    + $xfer += $output->writeFieldEnd();
    + }
    + if ($this->type1 !== null) {
    + $xfer += $output->writeFieldBegin('type1', TType::STRING, 2);
    + $xfer += $output->writeString($this->type1);
    + $xfer += $output->writeFieldEnd();
    + }
    + if ($this->type2 !== null) {
    + $xfer += $output->writeFieldBegin('type2', TType::STRING, 3);
    + $xfer += $output->writeString($this->type2);
    + $xfer += $output->writeFieldEnd();
    + }
    + if ($this->fields !== null) {
    + if (!is_array($this->fields)) {
    + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
    + }
    + $xfer += $output->writeFieldBegin('fields', TType::LST, 4);
    + {
    + $output->writeListBegin(TType::STRUCT, count($this->fields));
    + {
    + foreach ($this->fields as $iter6)
    + {
    + $xfer += $iter6->write($output);
    + }
    + }
    + $output->writeListEnd();
    + }
    + $xfer += $output->writeFieldEnd();
    + }
    + $xfer += $output->writeFieldStop();
    + $xfer += $output->writeStructEnd();
    + return $xfer;
    + }
    +
    +}
    +
    +class metastore_HiveObjectRef {
    + static $_TSPEC;
    +
    + public $objectType = null;
    + public $dbName = null;
    + public $objectName = null;
    + public $partValues = null;
    + public $columnName = null;
    +
    + public function __construct($vals=null) {
    + if (!isset(self::$_TSPEC)) {
    + self::$_TSPEC = array(
    + 1 => array(
    + 'var' => 'objectType',
    + 'type' => TType::I32,
    + ),
    + 2 => array(
    + 'var' => 'dbName',
    + 'type' => TType::STRING,
    + ),
    + 3 => array(
    + 'var' => 'objectName',
    + 'type' => TType::STRING,
    + ),
    + 4 => array(
    + 'var' => 'partValues',
    + 'type' => TType::LST,
    + 'etype' => TType::STRING,
    + 'elem' => array(
    + 'type' => TType::STRING,
    + ),
    + ),
    + 5 => array(
    + 'var' => 'columnName',
    + 'type' => TType::STRING,
    + ),
    + );
    + }
    + if (is_array($vals)) {
    + if (isset($vals['objectType'])) {
    + $this->objectType = $vals['objectType'];
    + }
    + if (isset($vals['dbName'])) {
    + $this->dbName = $vals['dbName'];
    + }
    + if (isset($vals['objectName'])) {
    + $this->objectName = $vals['objectName'];
    + }
    + if (isset($vals['partValues'])) {
    + $this->partValues = $vals['partValues'];
    + }
    + if (isset($vals['columnName'])) {
    + $this->columnName = $vals['columnName'];
    + }
    + }
    + }
    +
    + public function getName() {
    + return 'HiveObjectRef';
    + }
    +
    + public function read($input)
    + {
    + $xfer = 0;
    + $fname = null;
    + $ftype = 0;
    + $fid = 0;
    + $xfer += $input->readStructBegin($fname);
    + while (true)
    + {
    + $xfer += $input->readFieldBegin($fname, $ftype, $fid);
    + if ($ftype == TType::STOP) {
    + break;
    + }
    + switch ($fid)
    + {
    + case 1:
    + if ($ftype == TType::I32) {
    + $xfer += $input->readI32($this->objectType);
    + } else {
    + $xfer += $input->skip($ftype);
    + }
    + break;
    + case 2:
    + if ($ftype == TType::STRING) {
    + $xfer += $input->readString($this->dbName);
    + } else {
    + $xfer += $input->skip($ftype);
    + }
    + break;
    + case 3:
    + if ($ftype == TType::STRING) {
    + $xfer += $input->readString($this->objectName);
    + } else {
    + $xfer += $input->skip($ftype);
    + }
    + break;
    + case 4:
    + if ($ftype == TType::LST) {
    + $this->partValues = array();
    + $_size7 = 0;
    + $_etype10 = 0;
    + $xfer += $input->readListBegin($_etype10, $_size7);
    + for ($_i11 = 0; $_i11 < $_size7; ++$_i11)
    + {
    + $elem12 = null;
    + $xfer += $input->readString($elem12);
    + $this->partValues []= $elem12;
    + }
    + $xfer += $input->readListEnd();
    + } else {
    + $xfer += $input->skip($ftype);
    + }
    + break;
    + case 5:
    + if ($ftype == TType::STRING) {
    + $xfer += $input->readString($this->columnName);
    + } else {
    + $xfer += $input->skip($ftype);
    + }
    + break;
    + default:
    + $xfer += $input->skip($ftype);
    + break;
    + }
    + $xfer += $input->readFieldEnd();
    + }
    + $xfer += $input->readStructEnd();
    + return $xfer;
    + }
    +
    + public function write($output) {
    + $xfer = 0;
    + $xfer += $output->writeStructBegin('HiveObjectRef');
    + if ($this->objectType !== null) {
    + $xfer += $output->writeFieldBegin('objectType', TType::I32, 1);
    + $xfer += $output->writeI32($this->objectType);
    + $xfer += $output->writeFieldEnd();
    + }
    + if ($this->dbName !== null) {
    + $xfer += $output->writeFieldBegin('dbName', TType::STRING, 2);
    + $xfer += $output->writeString($this->dbName);
    + $xfer += $output->writeFieldEnd();
    + }
    + if ($this->objectName !== null) {
    + $xfer += $output->writeFieldBegin('objectName', TType::STRING, 3);
    + $xfer += $output->writeString($this->objectName);
    + $xfer += $output->writeFieldEnd();
    + }
    + if ($this->partValues !== null) {
    + if (!is_array($this->partValues)) {
    + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
    + }
    + $xfer += $output->writeFieldBegin('partValues', TType::LST, 4);
    + {
    + $output->writeListBegin(TType::STRING, count($this->partValues));
    + {
    + foreach ($this->partValues as $iter13)
    + {
    + $xfer += $output->writeString($iter13);
    + }
    + }
    + $output->writeListEnd();
    + }
    + $xfer += $output->writeFieldEnd();
    + }
    + if ($this->columnName !== null) {
    + $xfer += $output->writeFieldBegin('columnName', TType::STRING, 5);
    + $xfer += $output->writeString($this->columnName);
    + $xfer += $output->writeFieldEnd();
    + }
    + $xfer += $output->writeFieldStop();
    + $xfer += $output->writeStructEnd();
    + return $xfer;
    + }
    +
    +}
    +
    +class metastore_PrivilegeGrantInfo {
    + static $_TSPEC;
    +
    + public $privilege = null;
    + public $createTime = null;
    + public $grantor = null;
    + public $grantorType = null;
    + public $grantOption = null;
    +
    + public function __construct($vals=null) {
    + if (!isset(self::$_TSPEC)) {
    + self::$_TSPEC = array(
    + 1 => array(
    + 'var' => 'privilege',
    + 'type' => TType::STRING,
    + ),
    + 2 => array(
    + 'var' => 'createTime',
    + 'type' => TType::I32,
    + ),
    + 3 => array(
    + 'var' => 'grantor',
    + 'type' => TType::STRING,
    + ),
    + 4 => array(
    + 'var' => 'grantorType',
    + 'type' => TType::I32,
    + ),
    + 5 => array(
    + 'var' => 'grantOption',
    + 'type' => TType::BOOL,
    + ),
    + );
    + }
    + if (is_array($vals)) {
    + if (isset($vals['privilege'])) {
    + $this->privilege = $vals['privilege'];
    + }
    + if (isset($vals['createTime'])) {
    + $this->createTime = $vals['createTime'];
    + }
    + if (isset($vals['grantor'])) {
    + $this->grantor = $vals['grantor'];
    + }
    + if (isset($vals['grantorType'])) {
    + $this->grantorType = $vals['grantorType'];
    + }
    + if (isset($vals['grantOption'])) {
    + $this->grantOption = $vals['grantOption'];
    + }
    + }
    + }
    +
    + public function getName() {
    + return 'PrivilegeGrantInfo';
    + }
    +
    + public function read($input)
    + {
    + $xfer = 0;
    + $fname = null;
    + $ftype = 0;
    + $fid = 0;
    + $xfer += $input->readStructBegin($fname);
    + while (true)
    + {
    + $xfer += $input->readFieldBegin($fname, $ftype, $fid);
    + if ($ftype == TType::STOP) {
    + break;
    + }
    + switch ($fid)
    + {
    + case 1:
    + if ($ftype == TType::STRING) {
    + $xfer += $input->readString($this->privilege);
    + } else {
    + $xfer += $input->skip($ftype);
    + }
    + break;
    + case 2:
    + if ($ftype == TType::I32) {
    + $xfer += $input->readI32($this->createTime);
    + } else {
    + $xfer += $input->skip($ftype);
    + }
    + break;
    + case 3:
    + if ($ftype == TType::STRING) {
    + $xfer += $input->readString($this->grantor);
    + } else {
    + $xfer += $input->skip($ftype);
    + }
    + break;
    + case 4:
    + if ($ftype == TType::I32) {
    + $xfer += $input->readI32($this->grantorType);
    + } else {
    + $xfer += $input->skip($ftype);
    + }
    + break;
    + case 5:
    + if ($ftype == TType::BOOL) {
    + $xfer += $input->readBool($this->grantOption);
    + } else {
    + $xfer += $input->skip($ftype);
    + }
    + break;
    + default:
    + $xfer += $input->skip($ftype);
    + break;
    + }
    + $xfer += $input->readFieldEnd();
    + }
    + $xfer += $input->readStructEnd();
    + return $xfer;
    + }
    +
    + public function write($output) {
    + $xfer = 0;
    + $xfer += $output->writeStructBegin('PrivilegeGrantInfo');
    + if ($this->privilege !== null) {
    + $xfer += $output->writeFieldBegin('privilege', TType::STRING, 1);
    + $xfer += $output->writeString($this->privilege);
    + $xfer += $output->writeFieldEnd();
    + }
    + if ($this->createTime !== null) {
    + $xfer += $output->writeFieldBegin('createTime', TType::I32, 2);
    + $xfer += $output->writeI32($this->createTime);
    + $xfer += $output->writeFieldEnd();
    + }
    + if ($this->grantor !== null) {
    + $xfer += $output->writeFieldBegin('grantor', TType::STRING, 3);
    + $xfer += $output->writeString($this->grantor);
    + $xfer += $output->writeFieldEnd();
    + }
    + if ($this->grantorType !== null) {
    + $xfer += $output->writeFieldBegin('grantorType', TType::I32, 4);
    + $xfer += $output->writeI32($this->grantorType);
    + $xfer += $output->writeFieldEnd();
    + }
    + if ($this->grantOption !== null) {
    + $xfer += $output->writeFieldBegin('grantOption', TType::BOOL, 5);
    + $xfer += $output->writeBool($this->grantOption);
    + $xfer += $output->writeFieldEnd();
    + }
    + $xfer += $output->writeFieldStop();
    + $xfer += $output->writeStructEnd();
    + return $xfer;
    + }
    +
    +}
    +
    +class metastore_HiveObjectPrivilege {
    + static $_TSPEC;
    +
    + public $hiveObject = null;
    + public $principalName = null;
    + public $principalType = null;
    + public $grantInfo = null;
    +
    + public function __construct($vals=null) {
    + if (!isset(self::$_TSPEC)) {
    + self::$_TSPEC = array(
    + 1 => array(
    + 'var' => 'hiveObject',
    + 'type' => TType::STRUCT,
    + 'class' => 'metastore_HiveObjectRef',
    + ),
    + 2 => array(
    + 'var' => 'principalName',
    + 'type' => TType::STRING,
    + ),
    + 3 => array(
    + 'var' => 'principalType',
    + 'type' => TType::I32,
    + ),
    + 4 => array(
    + 'var' => 'grantInfo',
    + 'type' => TType::STRUCT,
    + 'class' => 'metastore_PrivilegeGrantInfo',
    + ),
    + );
    + }
    + if (is_array($vals)) {
    + if (isset($vals['hiveObject'])) {
    + $this->hiveObject = $vals['hiveObject'];
    + }
    + if (isset($vals['principalName'])) {
    + $this->principalName = $vals['principalName'];
    + }
    + if (isset($vals['principalType'])) {
    + $this->principalType = $vals['principalType'];
    + }
    + if (isset($vals['grantInfo'])) {
    + $this->grantInfo = $vals['grantInfo'];
    + }
    + }
    + }
    +
    + public function getName() {
    + return 'HiveObjectPrivilege';
    + }
    +
    + public function read($input)
    + {
    + $xfer = 0;
    + $fname = null;
    + $ftype = 0;
    + $fid = 0;
    + $xfer += $input->readStructBegin($fname);
    + while (true)
    + {
    + $xfer += $input->readFieldBegin($fname, $ftype, $fid);
    + if ($ftype == TType::STOP) {
    + break;
    + }
    + switch ($fid)
    + {
    + case 1:
    + if ($ftype == TType::STRUCT) {
    + $this->hiveObject = new metastore_HiveObjectRef();
    + $xfer += $this->hiveObject->read($input);
    + } else {
    + $xfer += $input->skip($ftype);
    + }
    + break;
    + case 2:
    + if ($ftype == TType::STRING) {
    + $xfer += $input->readString($this->principalName);
    + } else {
    + $xfer += $input->skip($ftype);
    + }
    + break;
    + case 3:
    + if ($ftype == TType::I32) {
    + $xfer += $input->readI32($this->principalType);
    + } else {
    + $xfer += $input->skip($ftype);
    + }
    + break;
    + case 4:
    + if ($ftype == TType::STRUCT) {
    + $this->grantInfo = new metastore_PrivilegeGrantInfo();
    + $xfer += $this->grantInfo->read($input);
    + } else {
    + $xfer += $input->skip($ftype);
    + }
    + break;
    + default:
    + $xfer += $input->skip($ftype);
    + break;
    + }
    + $xfer += $input->readFieldEnd();
    + }
    + $xfer += $input->readStructEnd();
    + return $xfer;
    + }
    +
    + public function write($output) {
    + $xfer = 0;
    + $xfer += $output->writeStructBegin('HiveObjectPrivilege');
    + if ($this->hiveObject !== null) {
    + if (!is_object($this->hiveObject)) {
    + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
    + }
    + $xfer += $output->writeFieldBegin('hiveObject', TType::STRUCT, 1);
    + $xfer += $this->hiveObject->write($output);
    + $xfer += $output->writeFieldEnd();
    + }
    + if ($this->principalName !== null) {
    + $xfer += $output->writeFieldBegin('principalName', TType::STRING, 2);
    + $xfer += $output->writeString($this->principalName);
    + $xfer += $output->writeFieldEnd();
    + }
    + if ($this->principalType !== null) {
    + $xfer += $output->writeFieldBegin('principalType', TType::I32, 3);
    + $xfer += $output->writeI32($this->principalType);
    + $xfer += $output->writeFieldEnd();
    + }
    + if ($this->grantInfo !== null) {
    + if (!is_object($this->grantInfo)) {
    + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
    + }
    + $xfer += $output->writeFieldBegin('grantInfo', TType::STRUCT, 4);
    + $xfer += $this->grantInfo->write($output);
    + $xfer += $output->writeFieldEnd();
    + }
    + $xfer += $output->writeFieldStop();
    + $xfer += $output->writeStructEnd();
    + return $xfer;
    + }
    +
    +}
    +
    +class metastore_PrivilegeBag {
    + static $_TSPEC;
    +
    + public $privileges = null;
    +
    + public function __construct($vals=null) {
    + if (!isset(self::$_TSPEC)) {
    + self::$_TSPEC = array(
    + 1 => array(
    + 'var' => 'privileges',
    + 'type' => TType::LST,
    + 'etype' => TType::STRUCT,
    + 'elem' => array(
    + 'type' => TType::STRUCT,
    + 'class' => 'metastore_HiveObjectPrivilege',
    + ),
    + ),
    + );
    + }
    + if (is_array($vals)) {
    + if (isset($vals['privileges'])) {
    + $this->privileges = $vals['privileges'];
    + }
    + }
    + }
    +
    + public function getName() {
    + return 'PrivilegeBag';
    + }
    +
    + public function read($input)
    + {
    + $xfer = 0;
    + $fname = null;
    + $ftype = 0;
    + $fid = 0;
    + $xfer += $input->readStructBegin($fname);
    + while (true)
    + {
    + $xfer += $input->readFieldBegin($fname, $ftype, $fid);
    + if ($ftype == TType::STOP) {
    + break;
    + }
    + switch ($fid)
    + {
    + case 1:
    + if ($ftype == TType::LST) {
    + $this->privileges = array();
    + $_size14 = 0;
    + $_etype17 = 0;
    + $xfer += $input->readListBegin($_etype17, $_size14);
    + for ($_i18 = 0; $_i18 < $_size14; ++$_i18)
    + {
    + $elem19 = null;
    + $elem19 = new metastore_HiveObjectPrivilege();
    + $xfer += $elem19->read($input);
    + $this->privileges []= $elem19;
    + }
    + $xfer += $input->readListEnd();
    + } else {
    + $xfer += $input->skip($ftype);
    + }
    + break;
    + default:
    + $xfer += $input->skip($ftype);
    + break;
    + }
    + $xfer += $input->readFieldEnd();
    + }
    + $xfer += $input->readStructEnd();
    + return $xfer;
    + }
    +
    + public function write($output) {
    + $xfer = 0;
    + $xfer += $output->writeStructBegin('PrivilegeBag');
    + if ($this->privileges !== null) {
    + if (!is_array($this->privileges)) {
    + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
    + }
    + $xfer += $output->writeFieldBegin('privileges', TType::LST, 1);
    + {
    + $output->writeListBegin(TType::STRUCT, count($this->privileges));
    + {
    + foreach ($this->privileges as $iter20)
    + {
    + $xfer += $iter20->write($output);
    + }
    + }
    + $output->writeListEnd();
    + }
    + $xfer += $output->writeFieldEnd();
    + }
    + $xfer += $output->writeFieldStop();
    + $xfer += $output->writeStructEnd();
    + return $xfer;
    + }
    +
    +}
    +
    +class metastore_PrincipalPrivilegeSet {
    + static $_TSPEC;
    +
    + public $userPrivileges = null;
    + public $groupPrivileges = null;
    + public $rolePrivileges = null;
    +
    + public function __construct($vals=null) {
    + if (!isset(self::$_TSPEC)) {
    + self::$_TSPEC = array(
    + 1 => array(
    + 'var' => 'userPrivileges',
    + 'type' => TType::MAP,
    + 'ktype' => TType::STRING,
    + 'vtype' => TType::LST,
    + 'key' => array(
    + 'type' => TType::STRING,
    + ),
    + 'val' => array(
    + 'type' => TType::LST,
    + 'etype' => TType::STRUCT,
    + 'elem' => array(
    + 'type' => TType::STRUCT,
    + 'class' => 'metastore_PrivilegeGrantInfo',
    + ),
    + ),
    + ),
    + 2 => array(
    + 'var' => 'groupPrivileges',
    + 'type' => TType::MAP,
    + 'ktype' => TType::STRING,
    + 'vtype' => TType::LST,
    + 'key' => array(
    + 'type' => TType::STRING,
    + ),
    + 'val' => array(
    + 'type' => TType::LST,
    + 'etype' => TType::STRUCT,
    + 'elem' => array(
    + 'type' => TType::STRUCT,
    + 'class' => 'metastore_PrivilegeGrantInfo',
    + ),
    + ),
    + ),
    + 3 => array(
    + 'var' => 'rolePrivileges',
    + 'type' => TType::MAP,
    + 'ktype' => TType::STRING,
    + 'vtype' => TType::LST,
    + 'key' => array(
    + 'type' => TType::STRING,
    + ),
    + 'val' => array(
    + 'type' => TType::LST,
    + 'etype' => TType::STRUCT,
    + 'elem' => array(
    + 'type' => TType::STRUCT,
    + 'class' => 'metastore_PrivilegeGrantInfo',
    + ),
    + ),
    + ),
    + );
    + }
    + if (is_array($vals)) {
    + if (isset($vals['userPrivileges'])) {
    + $this->userPrivileges = $vals['userPrivileges'];
    + }
    + if (isset($vals['groupPrivileges'])) {
    + $this->groupPrivileges = $vals['groupPrivileges'];
    + }
    + if (isset($vals['rolePrivileges'])) {
    + $this->rolePrivileges = $vals['rolePrivileges'];
    + }
    + }
    + }
    +
    + public function getName() {
    + return 'PrincipalPrivilegeSet';
    + }
    +
    + public function read($input)
    + {
    + $xfer = 0;
    + $fname = null;
    + $ftype = 0;
    + $fid = 0;
    + $xfer += $input->readStructBegin($fname);
    + while (true)
    + {
    + $xfer += $input->readFieldBegin($fname, $ftype, $fid);
    + if ($ftype == TType::STOP) {
    + break;
    + }
    + switch ($fid)
    + {
    + case 1:
    + if ($ftype == TType::MAP) {
    + $this->userPrivileges = array();
    + $_size21 = 0;
    + $_ktype22 = 0;
    + $_vtype23 = 0;
    + $xfer += $input->readMapBegin($_ktype22, $_vtype23, $_size21);
    + for ($_i25 = 0; $_i25 < $_size21; ++$_i25)
    + {
    + $key26 = '';
    + $val27 = array();
    + $xfer += $input->readString($key26);
    + $val27 = array();
    + $_size28 = 0;
    + $_etype31 = 0;
    + $xfer += $input->readListBegin($_etype31, $_size28);
    + for ($_i32 = 0; $_i32 < $_size28; ++$_i32)
    + {
    + $elem33 = null;
    + $elem33 = new metastore_PrivilegeGrantInfo();
    + $xfer += $elem33->read($input);
    + $val27 []= $elem33;
    + }
    + $xfer += $input->readListEnd();
    + $this->userPrivileges[$key26] = $val27;
    + }
    + $xfer += $input->readMapEnd();
    + } else {
    + $xfer += $input->skip($ftype);
    + }
    + break;
    + case 2:
    + if ($ftype == TType::MAP) {
    + $this->groupPrivileges = array();
    + $_size34 = 0;
    + $_ktype35 = 0;
    + $_vtype36 = 0;
    + $xfer += $input->readMapBegin($_ktype35, $_vtype36, $_size34);
    + for ($_i38 = 0; $_i38 < $_size34; ++$_i38)
    + {
    + $key39 = '';
    + $val40 = array();
    + $xfer += $input->readString($key39);
    + $val40 = array();
    + $_size41 = 0;
    + $_etype44 = 0;
    + $xfer += $input->readListBegin($_etype44, $_size41);
    + for ($_i45 = 0; $_i45 < $_size41; ++$_i45)
    + {
    + $elem46 = null;
    + $elem46 = new metastore_PrivilegeGrantInfo();
    + $xfer += $elem46->read($input);
    + $val40 []= $elem46;
    + }
    + $xfer += $input->readListEnd();
    + $this->groupPrivileges[$key39] = $val40;
    + }
    + $xfer += $input->readMapEnd();
    + } else {
    + $xfer += $input->skip($ftype);
    + }
    + break;
    + case 3:
    + if ($ftype == TType::MAP) {
    + $this->rolePrivileges = array();
    + $_size47 = 0;
    + $_ktype48 = 0;
    + $_vtype49 = 0;
    + $xfer += $input->readMapBegin($_ktype48, $_vtype49, $_size47);
    + for ($_i51 = 0; $_i51 < $_size47; ++$_i51)
    + {
    + $key52 = '';
    + $val53 = array();
    + $xfer += $input->readString($key52);
    + $val53 = array();
    + $_size54 = 0;
    + $_etype57 = 0;
    + $xfer += $input->readListBegin($_etype57, $_size54);
    + for ($_i58 = 0; $_i58 < $_size54; ++$_i58)
    + {
    + $elem59 = null;
    + $elem59 = new metastore_PrivilegeGrantInfo();
    + $xfer += $elem59->read($input);
    + $val53 []= $elem59;
    + }
    + $xfer += $input->readListEnd();
    + $this->rolePrivileges[$key52] = $val53;
    + }
    + $xfer += $input->readMapEnd();
    + } else {
    + $xfer += $input->skip($ftype);
    + }
    + break;
    + default:
    + $xfer += $input->skip($ftype);
    + break;
    + }
    + $xfer += $input->readFieldEnd();
    + }
    + $xfer += $input->readStructEnd();
    + return $xfer;
    + }
    +
    + public function write($output) {
    + $xfer = 0;
    + $xfer += $output->writeStructBegin('PrincipalPrivilegeSet');
    + if ($this->userPrivileges !== null) {
    + if (!is_array($this->userPrivileges)) {
    + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
    + }
    + $xfer += $output->writeFieldBegin('userPrivileges', TType::MAP, 1);
    + {
    + $output->writeMapBegin(TType::STRING, TType::LST, count($this->userPrivileges));
    + {
    + foreach ($this->userPrivileges as $kiter60 => $viter61)
    + {
    + $xfer += $output->writeString($kiter60);
    + {
    + $output->writeListBegin(TType::STRUCT, count($viter61));
    + {
    + foreach ($viter61 as $iter62)
    + {
    + $xfer += $iter62->write($output);
    + }
    + }
    + $output->writeListEnd();
    + }
    + }
    + }
    + $output->writeMapEnd();
    + }
    + $xfer += $output->writeFieldEnd();
    + }
    + if ($this->groupPrivileges !== null) {
    + if (!is_array($this->groupPrivileges)) {
    + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
    + }
    + $xfer += $output->writeFieldBegin('groupPrivileges', TType::MAP, 2);
    + {
    + $output->writeMapBegin(TType::STRING, TType::LST, count($this->groupPrivileges));
    + {
    + foreach ($this->groupPrivileges as $kiter63 => $viter64)
    + {
    + $xfer += $output->writeString($kiter63);
    + {
    + $output->writeListBegin(TType::STRUCT, count($viter64));
    + {
    + foreach ($viter64 as $iter65)
    + {
    + $xfer += $iter65->write($output);
    + }
    + }
    + $output->writeListEnd();
    + }
    + }
    + }
    + $output->writeMapEnd();
    + }
    + $xfer += $output->writeFieldEnd();
    + }
    + if ($this->rolePrivileges !== null) {
    + if (!is_array($this->rolePrivileges)) {
    + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
    + }
    + $xfer += $output->writeFieldBegin('rolePrivileges', TType::MAP, 3);
    + {
    + $output->writeMapBegin(TType::STRING, TType::LST, count($this->rolePrivileges));
    + {
    + foreach ($this->rolePrivileges as $kiter66 => $viter67)
    + {
    + $xfer += $output->writeString($kiter66);
    + {
    + $output->writeListBegin(TType::STRUCT, count($viter67));
    + {
    + foreach ($viter67 as $iter68)
    + {
    + $xfer += $iter68->write($output);
    + }
    + }
    + $output->writeListEnd();
    + }
    + }
    + }
    + $output->writeMapEnd();
    + }
    + $xfer += $output->writeFieldEnd();
    + }
    + $xfer += $output->writeFieldStop();
    + $xfer += $output->writeStructEnd();
    + return $xfer;
    + }
    +
    +}
    +
    +class metastore_Role {
    + static $_TSPEC;
    +
    + public $roleName = null;
    + public $createTime = null;
    + public $ownerName = null;
    +
    + public function __construct($vals=null) {
    + if (!isset(self::$_TSPEC)) {
    + self::$_TSPEC = array(
    + 1 => array(
    + 'var' => 'roleName',
    + 'type' => TType::STRING,
    + ),
    + 2 => array(
    + 'var' => 'createTime',
    + 'type' => TType::I32,
    + ),
    + 3 => array(
    + 'var' => 'ownerName',
    + 'type' => TType::STRING,
    + ),
    + );
    + }
    + if (is_array($vals)) {
    + if (isset($vals['roleName'])) {
    + $this->roleName = $vals['roleName'];
    + }
    + if (isset($vals['createTime'])) {
    + $this->createTime = $vals['createTime'];
    + }
    + if (isset($vals['ownerName'])) {
    + $this->ownerName = $vals['ownerName'];
    + }
    + }
    + }
    +
    + public function getName() {
    + return 'Role';
    + }
    +
    + public function read($input)
    + {
    + $xfer = 0;
    + $fname = null;
    + $ftype = 0;
    + $fid = 0;
    + $xfer += $input->readStructBegin($fname);
    + while (true)
    + {
    + $xfer += $input->readFieldBegin($fname, $ftype, $fid);
    + if ($ftype == TType::STOP) {
    + break;
    + }
    + switch ($fid)
    + {
    + case 1:
    + if ($ftype == TType::STRING) {
    + $xfer += $input->readString($this->roleName);
    + } else {
    + $xfer += $input->skip($ftype);
    + }
    + break;
    + case 2:
    + if ($ftype == TType::I32) {
    + $xfer += $input->readI32($this->createTime);
    + } else {
    + $xfer += $input->skip($ftype);
    + }
    + break;
    + case 3:
    + if ($ftype == TType::STRING) {
    + $xfer += $input->readString($this->ownerName);
    + } else {
    + $xfer += $input->skip($ftype);
    + }
    + break;
    + default:
    + $xfer += $input->skip($ftype);
    + break;
    + }
    + $xfer += $input->readFieldEnd();
    + }
    + $xfer += $input->readStructEnd();
    + return $xfer;
    + }
    +
    + public function write($output) {
    + $xfer = 0;
    + $xfer += $output->writeStructBegin('Role');
    + if ($this->roleName !== null) {
    + $xfer += $output->writeFieldBegin('roleName', TType::STRING, 1);
    + $xfer += $output->writeString($this->roleName);
    + $xfer += $output->writeFieldEnd();
    + }
    + if ($this->createTime !== null) {
    + $xfer += $output->writeFieldBegin('createTime', TType::I32, 2);
    + $xfer += $output->writeI32($this->createTime);
    + $xfer += $output->writeFieldEnd();
    + }
    + if ($this->ownerName !== null) {
    + $xfer += $output->writeFieldBegin('ownerName', TType::STRING, 3);
    + $xfer += $output->writeString($this->ownerName);
    + $xfer += $output->writeFieldEnd();
    + }
    + $xfer += $output->writeFieldStop();
    + $xfer += $output->writeStructEnd();
    + return $xfer;
    + }
    +
    +}
    +
    +class metastore_Database {
    + static $_TSPEC;
    +
    + public $name = null;
    + public $description = null;
    + public $locationUri = null;
    + public $parameters = null;
    + public $privileges = null;
    +
    + public function __construct($vals=null) {
    + if (!isset(self::$_TSPEC)) {
    + self::$_TSPEC = array(
    + 1 => array(
    + 'var' => 'name',
    + 'type' => TType::STRING,
    + ),
    + 2 => array(
    + 'var' => 'description',
    + 'type' => TType::STRING,
    + ),
    + 3 => array(
    + 'var' => 'locationUri',
    + 'type' => TType::STRING,
    + ),
    + 4 => array(
    + 'var' => 'parameters',
    + 'type' => TType::MAP,
    + 'ktype' => TType::STRING,
    + 'vtype' => TType::STRING,
    + 'key' => array(
    + 'type' => TType::STRING,
    + ),
    + 'val' => array(
    + 'type' => TType::STRING,
    + ),
    + ),
    + 5 => array(
    + 'var' => 'privileges',
    + 'type' => TType::STRUCT,
    + 'class' => 'metastore_PrincipalPrivilegeSet',
    + ),
    + );
    + }
    + if (is_array($vals)) {
    + if (isset($vals['name'])) {
    + $this->name = $vals['name'];
    + }
    + if (isset($vals['description'])) {
    + $this->description = $vals['description'];
    + }
    + if (isset($vals['locationUri'])) {
    + $this->locationUri = $vals['locationUri'];
    + }
    + if (isset($vals['parameters'])) {
    + $this->parameters = $vals['parameters'];
    + }
    + if (isset($vals['privileges'])) {
    + $this->privileges = $vals['privileges'];
    + }
    + }
    + }
    +
    + public function getName() {
    + return 'Database';
    + }
    +
    + public function read($input)
    + {
    + $xfer = 0;
    + $fname = null;
    + $ftype = 0;
    + $fid = 0;
    + $xfer += $input->readStructBegin($fname);
    + while (true)
    + {
    + $xfer += $input->readFieldBegin($fname, $ftype, $fid);
    + if ($ftype == TType::STOP) {
    + break;
    + }
    + switch ($fid)
    + {
    + case 1:
    + if ($ftype == TType::STRING) {
    + $xfer += $input->readString($this->name);
    + } else {
    + $xfer += $input->skip($ftype);
    + }
    + break;
    + case 2:
    + if ($ftype == TType::STRING) {
    + $xfer += $input->readString($this->description);
    + } else {
    + $xfer += $input->skip($ftype);
    + }
    + break;
    + case 3:
    + if ($ftype == TType::STRING) {
    + $xfer += $input->readString($this->locationUri);
    + } else {
    + $xfer += $input->skip($ftype);
    + }
    + break;
    + case 4:
    + if ($ftype == TType::MAP) {
    + $this->parameters = array();
    + $_size69 = 0;
    + $_ktype70 = 0;
    + $_vtype71 = 0;
    + $xfer += $input->readMapBegin($_ktype70, $_vtype71, $_size69);
    + for ($_i73 = 0; $_i73 < $_size69; ++$_i73)
    + {
    + $key74 = '';
    + $val75 = '';
    + $xfer += $input->readString($key74);
    + $xfer += $input->readString($val75);
    + $this->parameters[$key74] = $val75;
    + }
    + $xfer += $input->readMapEnd();
    + } else {
    + $xfer += $input->skip($ftype);
    + }
    + break;
    + case 5:
    + if ($ftype == TType::STRUCT) {
    + $this->privileges = new metastore_PrincipalPrivilegeSet();
    + $xfer += $this->privileges->read($input);
    + } else {
    + $xfer += $input->skip($ftype);
    + }
    + break;
    + default:
    + $xfer += $input->skip($ftype);
    + break;
    + }
    + $xfer += $input->readFieldEnd();
    + }
    + $xfer += $input->readStructEnd();
    + return $xfer;
    + }
    +
    + public function write($output) {
    + $xfer = 0;
    + $xfer += $output->writeStructBegin('Database');
    + if ($this->name !== null) {
    + $xfer += $output->writeFieldBegin('name', TType::STRING, 1);
    + $xfer += $output->writeString($this->name);
    + $xfer += $output->writeFieldEnd();
    + }
    + if ($this->description !== null) {
    + $xfer += $output->writeFieldBegin('description', TType::STRING, 2);
    + $xfer += $output->writeString($this->description);
    + $xfer += $output->writeFieldEnd();
    + }
    + if ($this->locationUri !== null) {
    + $xfer += $output->writeFieldBegin('locationUri', TType::STRING, 3);
    + $xfer += $output->writeString($this->locationUri);
    + $xfer += $output->writeFieldEnd();
    + }
    + if ($this->parameters !== null) {
    + if (!is_array($this->parameters)) {
    + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
    + }
    + $xfer += $output->writeFieldBegin('parameters', TType::MAP, 4);
    + {
    + $output->writeMapBegin(TType::STRING, TType::STRING, count($this->parameters));
    + {
    + foreach ($this->parameters as $kiter76 => $viter77)
    + {
    + $xfer += $output->writeString($kiter76);
    + $xfer += $output->writeString($viter77);
    + }
    + }
    + $output->writeMapEnd();
    + }
    + $xfer += $output->writeFieldEnd();
    + }
    + if ($this->privileges !== null) {
    + if (!is_object($this->privileges)) {
    + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
    + }
    + $xfer += $output->writeFieldBegin('privileges', TType::STRUCT, 5);
    + $xfer += $this->privileges->write($output);
    + $xfer += $output->writeFieldEnd();
    + }
    + $xfer += $output->writeFieldStop();
    + $xfer += $output->writeStructEnd();
    + return $xfer;
    + }
    +
    +}
    +
    +class metastore_SerDeInfo {
    + static $_TSPEC;
    +
    + public $name = null;
    + public $serializationLib = null;
    + public $parameters = null;
    +
    + public function __construct($vals=null) {
    + if (!isset(self::$_TSPEC)) {
    + self::$_TSPEC = array(
    + 1 => array(
    + 'var' => 'name',
    + 'type' => TType::STRING,
    + ),
    + 2 => array(
    + 'var' => 'serializationLib',
    + 'type' => TType::STRING,
    + ),
    + 3 => array(
    + 'var' => 'parameters',
    + 'type' => TType::MAP,
    + 'ktype' => TType::STRING,
    + 'vtype' => TType::STRING,
    + 'key' => array(
    + 'type' => TType::STRING,
    + ),
    + 'val' => array(
    + 'type' => TType::STRING,
    + ),
    + ),
    + );
    + }
    + if (is_array($vals)) {
    + if (isset($vals['name'])) {
    + $this->name = $vals['name'];
    + }
    + if (isset($vals['serializationLib'])) {
    + $this->serializationLib = $vals['serializationLib'];
    + }
    + if (isset($vals['parameters'])) {
    + $this->parameters = $vals['parameters'];
    + }
    + }
    + }
    +
    + public function getName() {
    + return 'SerDeInfo';
    + }
    +
    + public function read($input)
    + {
    + $xfer = 0;
    + $fname = null;
    + $ftype = 0;
    + $fid = 0;
    + $xfer += $input->readStructBegin($fname);
    + while (true)
    + {
    + $xfer += $input->readFieldBegin($fname, $ftype, $fid);
    + if ($ftype == TType::STOP) {
    + break;
    + }
    + switch ($fid)
    + {
    + case 1:
    + if ($ftype == TType::STRING) {
    + $xfer += $input->readString($this->name);
    + } else {
    + $xfer += $input->skip($ftype);
    + }
    + break;
    + case 2:
    + if ($ftype == TType::STRING) {
    + $xfer += $input->readString($this->serializationLib);
    + } else {
    + $xfer += $input->skip($ftype);
    + }
    + break;
    + case 3:
    + if ($ftype == TType::MAP) {
    + $this->parameters = array();
    + $_size78 = 0;
    + $_ktype79 = 0;
    + $_vtype80 = 0;
    + $xfer += $input->readMapBegin($_ktype79, $_vtype80, $_size78);
    + for ($_i82 = 0; $_i82 < $_size78; ++$_i82)
    + {
    + $key83 = '';
    + $val84 = '';
    + $xfer += $input->readString($key83);
    + $xfer += $input->readString($val84);
    + $this->parameters[$key83] = $val84;
    + }
    + $xfer += $input->readMapEnd();
    + } else {
    + $xfer += $input->skip($ftype);
    + }
    + break;
    + default:
    + $xfer += $input->skip($ftype);
    + break;
    + }
    + $xfer += $input->readFieldEnd();
    + }
    + $xfer += $input->readStructEnd();
    + return $xfer;
    + }
    +
    + public function write($output) {
    + $xfer = 0;
    + $xfer += $output->writeStructBegin('SerDeInfo');
    + if ($this->name !== null) {
    + $xfer += $output->writeFieldBegin('name', TType::STRING, 1);
    + $xfer += $output->writeString($this->name);
    + $xfer += $output->writeFieldEnd();
    + }
    + if ($this->serializationLib !== null) {
    + $xfer += $output->writeFieldBegin('serializationLib', TType::STRING, 2);
    + $xfer += $output->writeString($this->serializationLib);
    + $xfer += $output->writeFieldEnd();
    + }
    + if ($this->parameters !== null) {
    + if (!is_array($this->parameters)) {
    + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
    + }
    + $xfer += $output->writeFieldBegin('parameters', TType::MAP, 3);
    + {
    + $output->writeMapBegin(TType::STRING, TType::STRING, count($this->parameters));
    + {
    + foreach ($this->parameters as $kiter85 => $viter86)
    + {
    + $xfer += $output->writeString($kiter85);
    + $xfer += $output->writeString($viter86);
    + }
    + }
    + $output->writeMapEnd();
    + }
    + $xfer += $output->writeFieldEnd();
    + }
    + $xfer += $output->writeFieldStop();
    + $xfer += $output->writeStructEnd();
    + return $xfer;
    + }
    +
    +}
    +
    +class metastore_Order {
    + static $_TSPEC;
    +
    + public $col = null;
    + public $order = null;
    +
    + public function __construct($vals=null) {
    + if (!isset(self::$_TSPEC)) {
    + self::$_TSPEC = array(
    + 1 => array(
    + 'var' => 'col',
    + 'type' => TType::STRING,
    + ),
    + 2 => array(
    + 'var' => 'order',
    + 'type' => TType::I32,
    + ),
    + );
    + }
    + if (is_array($vals)) {
    + if (isset($vals['col'])) {
    + $this->col = $vals['col'];
    + }
    + if (isset($vals['order'])) {
    + $this->order = $vals['order'];
    + }
    + }
    + }
    +
    + public function getName() {
    + return 'Order';
    + }
    +
    + public function read($input)
    + {
    + $xfer = 0;
    + $fname = null;
    + $ftype = 0;
    + $fid = 0;
    + $xfer += $input->readStructBegin($fname);
    + while (true)
    + {
    + $xfer += $input->readFieldBegin($fname, $ftype, $fid);
    + if ($ftype == TType::STOP) {
    + break;
    + }
    + switch ($fid)
    + {
    + case 1:
    + if ($ftype == TType::STRING) {
    + $xfer += $input->readString($this->col);
    + } else {
    + $xfer += $input->skip($ftype);
    + }
    + break;
    + case 2:
    + if ($ftype == TType::I32) {
    + $xfer += $input->readI32($this->order);
    + } else {
    + $xfer += $input->skip($ftype);
    + }
    + break;
    + default:
    + $xfer += $input->skip($ftype);
    + break;
    + }
    + $xfer += $input->readFieldEnd();
    + }
    + $xfer += $input->readStructEnd();
    + return $xfer;
    + }
    +
    + public function write($output) {
    + $xfer = 0;
    + $xfer += $output->writeStructBegin('Order');
    + if ($this->col !== null) {
    + $xfer += $output->writeFieldBegin('col', TType::STRING, 1);
    + $xfer += $output->writeString($this->col);
    + $xfer += $output->writeFieldEnd();
    + }
    + if ($this->order !== null) {
    + $xfer += $output->writeFieldBegin('order', TType::I32, 2);
    + $xfer += $output->writeI32($this->order);
    + $xfer += $output->writeFieldEnd();
    + }
    + $xfer += $output->writeFieldStop();
    + $xfer += $output->writeStructEnd();
    + return $xfer;
    + }
    +
    +}
    +
    +class metastore_StorageDescriptor {
    + static $_TSPEC;
    +
    + public $cols = null;
    + public $location = null;
    + public $inputFormat = null;
    + public $outputFormat = null;
    + public $compressed = null;
    + public $numBuckets = null;
    + public $serdeInfo = null;
    + public $bucketCols = null;
    + public $sortCols = null;
    + public $parameters = null;
    + public $primaryClusterName = null;
    +
    + public function __construct($vals=null) {
    + if (!isset(self::$_TSPEC)) {
    + self::$_TSPEC = array(
    + 1 => array(
    + 'var' => 'cols',
    + 'type' => TType::LST,
    + 'etype' => TType::STRUCT,
    + 'elem' => array(
    + 'type' => TType::STRUCT,
    + 'class' => 'metastore_FieldSchema',
    + ),
    + ),
    + 2 => array(
    + 'var' => 'location',
    + 'type' => TType::STRING,
    + ),
    + 3 => array(
    + 'var' => 'inputFormat',
    + 'type' => TType::STRING,
    + ),
    + 4 => array(
    + 'var' => 'outputFormat',
    + 'type' => TType::STRING,
    + ),
    + 5 => array(
    + 'var' => 'compressed',
    + 'type' => TType::BOOL,
    + ),
    + 6 => array(
    + 'var' => 'numBuckets',
    + 'type' => TType::I32,
    + ),
    + 7 => array(
    + 'var' => 'serdeInfo',
    + 'type' => TType::STRUCT,
    + 'class' => 'metastore_SerDeInfo',
    + ),
    + 8 => array(
    + 'var' => 'bucketCols',
    + 'type' => TType::LST,
    + 'etype' => TType::STRING,
    + 'elem' => array(
    + 'type' => TType::STRING,
    + ),
    + ),
    + 9 => array(
    + 'var' => 'sortCols',
    + 'type' => TType::LST,
    + 'etype' => TType::STRUCT,
    + 'elem' => array(
    + 'type' => TType::STRUCT,
    + 'class' => 'metastore_Order',
    + ),
    + ),
    + 10 => array(
    + 'var' => 'parameters',
    + 'type' => TType::MAP,
    + 'ktype' => TType::STRING,
    + 'vtype' => TType::STRING,
    + 'key' => array(
    + 'type' => TType::STRING,
    + ),
    + 'val' => array(
    + 'type' => TType::STRING,
    + ),
    + ),
    + 11 => array(
    + 'var' => 'primaryClusterName',
    + 'type' => TType::STRING,
    + ),
    + );
    + }
    + if (is_array($vals)) {
    + if (isset($vals['cols'])) {
    + $this->cols = $vals['cols'];
    + }
    + if (isset($vals['location'])) {
    + $this->location = $vals['location'];
    + }
    + if (isset($vals['inputFormat'])) {
    + $this->inputFormat = $vals['inputFormat'];
    + }
    + if (isset($vals['outputFormat'])) {
    + $this->outputFormat = $vals['outputFormat'];
    + }
    + if (isset($vals['compressed'])) {
    + $this->compressed = $vals['compressed'];
    + }
    + if (isset($vals['numBuckets'])) {
    + $this->numBuckets = $vals['numBuckets'];
    + }
    + if (isset($vals['serdeInfo'])) {
    + $this->serdeInfo = $vals['serdeInfo'];
    + }
    + if (isset($vals['bucketCols'])) {
    + $this->bucketCols = $vals['bucketCols'];
    + }
    + if (isset($vals['sortCols'])) {
    + $this->sortCols = $vals['sortCols'];
    + }
    + if (isset($vals['parameters'])) {
    + $this->parameters = $vals['parameters'];
    + }
    + if (isset($vals['primaryClusterName'])) {
    + $this->primaryClusterName = $vals['primaryClusterName'];
    + }
    + }
    + }
    +
    + public function getName() {
    + return 'StorageDescriptor';
    + }
    +
    + public function read($input)
    + {
    + $xfer = 0;
    + $fname = null;
    + $ftype = 0;
    + $fid = 0;
    + $xfer += $input->readStructBegin($fname);
    + while (true)
    + {
    + $xfer += $input->readFieldBegin($fname, $ftype, $fid);
    + if ($ftype == TType::STOP) {
    + break;
    + }
    + switch ($fid)
    + {
    + case 1:
    + if ($ftype == TType::LST) {
    + $this->cols = array();
    + $_size87 = 0;
    + $_etype90 = 0;
    + $xfer += $input->readListBegin($_etype90, $_size87);
    + for ($_i91 = 0; $_i91 < $_size87; ++$_i91)
    + {
    + $elem92 = null;
    + $elem92 = new metastore_FieldSchema();
    + $xfer += $elem92->read($input);
    + $this->cols []= $elem92;
    + }
    + $xfer += $input->readListEnd();
    + } else {
    + $xfer += $input->skip($ftype);
    + }
    + break;
    + case 2:
    + if ($ftype == TType::STRING) {
    + $xfer += $input->readString($this->location);
    + } else {
    + $xfer += $input->skip($ftype);
    + }
    + break;
    + case 3:
    + if ($ftype == TType::STRING) {
    + $xfer += $input->readString($this->inputFormat);
    + } else {
    + $xfer += $input->skip($ftype);
    + }
    + break;
    + case 4:
    + if ($ftype == TType::STRING) {
    + $xfer += $input->readString($this->outputFormat);
    + } else {
    + $xfer += $input->skip($ftype);
    + }
    + break;
    + case 5:
    + if ($ftype == TType::BOOL) {
    + $xfer += $input->readBool($this->compressed);
    + } else {
    + $xfer += $input->skip($ftype);
    + }
    + break;
    + case 6:
    + if ($ftype == TType::I32) {
    + $xfer += $input->readI32($this->numBuckets);
    + } else {
    + $xfer += $input->skip($ftype);
    + }
    + break;
    + case 7:
    + if ($ftype == TType::STRUCT) {
    + $this->serdeInfo = new metastore_SerDeInfo();
    + $xfer += $this->serdeInfo->read($input);
    + } else {
    + $xfer += $input->skip($ftype);
    + }
    + break;
    + case 8:
    + if ($ftype == TType::LST) {
    + $this->bucketCols = array();
    + $_size93 = 0;
    + $_etype96 = 0;
    + $xfer += $input->readListBegin($_etype96, $_size93);
    + for ($_i97 = 0; $_i97 < $_size93; ++$_i97)
    + {
    + $elem98 = null;
    + $xfer += $input->readString($elem98);
    + $this->bucketCols []= $elem98;
    + }
    + $xfer += $input->readListEnd();
    + } else {
    + $xfer += $input->skip($ftype);
    + }
    + break;
    + case 9:
    + if ($ftype == TType::LST) {
    + $this->sortCols = array();
    + $_size99 = 0;
    + $_etype102 = 0;
    + $xfer += $input->readListBegin($_etype102, $_size99);
    + for ($_i103 = 0; $_i103 < $_size99; ++$_i103)
    + {
    + $elem104 = null;
    + $elem104 = new metastore_Order();
    + $xfer += $elem104->read($input);
    + $this->sortCols []= $elem104;
    + }
    + $xfer += $input->readListEnd();
    + } else {
    + $xfer += $input->skip($ftype);
    + }
    + break;
    + case 10:
    + if ($ftype == TType::MAP) {
    + $this->parameters = array();
    + $_size105 = 0;
    + $_ktype106 = 0;
    + $_vtype107 = 0;
    + $xfer += $input->readMapBegin($_ktype106, $_vtype107, $_size105);
    + for ($_i109 = 0; $_i109 < $_size105; ++$_i109)
    + {
    + $key110 = '';
    + $val111 = '';
    + $xfer += $input->readString($key110);
    + $xfer += $input->readString($val111);
    + $this->parameters[$key110] = $val111;
    + }
    + $xfer += $input->readMapEnd();
    + } else {
    + $xfer += $input->skip($ftype);
    + }
    + break;
    + case 11:
    + if ($ftype == TType::STRING) {
    + $xfer += $input->readString($this->primaryClusterName);
    + } else {
    + $xfer += $input->skip($ftype);
    + }
    + break;
    + default:
    + $xfer += $input->skip($ftype);
    + break;
    + }
    + $xfer += $input->readFieldEnd();
    + }
    + $xfer += $input->readStructEnd();
    + return $xfer;
    + }
    +
    + public function write($output) {
    + $xfer = 0;
    + $xfer += $output->writeStructBegin('StorageDescriptor');
    + if ($this->cols !== null) {
    + if (!is_array($this->cols)) {
    + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
    + }
    + $xfer += $output->writeFieldBegin('cols', TType::LST, 1);
    + {
    + $output->writeListBegin(TType::STRUCT, count($this->cols));
    + {
    + foreach ($this->cols as $iter112)
    + {
    + $xfer += $iter112->write($output);
    + }
    + }
    + $output->writeListEnd();
    + }
    + $xfer += $output->writeFieldEnd();
    + }
    + if ($this->location !== null) {
    + $xfer += $output->writeFieldBegin('location', TType::STRING, 2);
    + $xfer += $output->writeString($this->location);
    + $xfer += $output->writeFieldEnd();
    + }
    + if ($this->inputFormat !== null) {
    + $xfer += $output->writeFieldBegin('inputFormat', TType::STRING, 3);
    + $xfer += $output->writeString($this->inputFormat);
    + $xfer += $output->writeFieldEnd();
    + }
    + if ($this->outputFormat !== null) {
    + $xfer += $output->writeFieldBegin('outputFormat', TType::STRING, 4);
    + $xfer += $output->writeString($this->outputFormat);
    + $xfer += $output->writeFieldEnd();
    + }
    + if ($this->compressed !== null) {
    + $xfer += $output->writeFieldBegin('compressed', TType::BOOL, 5);
    + $xfer += $output->writeBool($this->compressed);
    + $xfer += $output->writeFieldEnd();
    + }
    + if ($this->numBuckets !== null) {
    + $xfer += $output->writeFieldBegin('numBuckets', TType::I32, 6);
    + $xfer += $output->writeI32($this->numBuckets);
    + $xfer += $output->writeFieldEnd();
    + }
    + if ($this->serdeInfo !== null) {
    + if (!is_object($this->serdeInfo)) {
    + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
    + }
    + $xfer += $output->writeFieldBegin('serdeInfo', TType::STRUCT, 7);
    + $xfer += $this->serdeInfo->write($output);
    + $xfer += $output->writeFieldEnd();
    + }
    + if ($this->bucketCols !== null) {
    + if (!is_array($this->bucketCols)) {
    + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
    + }
    + $xfer += $output->writeFieldBegin('bucketCols', TType::LST, 8);
    + {
    + $output->writeListBegin(TType::STRING, count($this->bucketCols));
    + {
    + foreach ($this->bucketCols as $iter113)
    + {
    + $xfer += $output->writeString($iter113);
    + }
    + }
    + $output->writeListEnd();
    + }
    + $xfer += $output->writeFieldEnd();
    + }
    + if ($this->sortCols !== null) {
    + if (!is_array($this->sortCols)) {
    + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
    + }
    + $xfer += $output->writeFieldBegin('sortCols', TType::LST, 9);
    + {
    + $output->writeListBegin(TType::STRUCT, count($this->sortCols));
    + {
    + foreach ($this->sortCols as $iter114)
    + {
    + $xfer += $iter114->write($output);
    + }
    + }
    + $output->writeListEnd();
    + }
    + $xfer += $output->writeFieldEnd();
    + }
    + if ($this->parameters !== null) {
    + if (!is_array($this->parameters)) {
    + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
    + }
    + $xfer += $output->writeFieldBegin('parameters', TType::MAP, 10);
    + {
    + $output->writeMapBegin(TType::STRING, TType::STRING, count($this->parameters));
    + {
    + foreach ($this->parameters as $kiter115 => $viter116)
    + {
    + $xfer += $output->writeString($kiter115);
    + $xfer += $output->writeString($viter116);
    + }
    + }
    + $output->writeMapEnd();
    + }
    + $xfer += $output->writeFieldEnd();
    + }
    + if ($this->primaryClusterName !== null) {
    + $xfer += $output->writeFieldBegin('primaryClusterName', TType::STRING, 11);
    + $xfer += $output->writeString($this->primaryClusterName);
    + $xfer += $output->writeFieldEnd();
    + }
    + $xfer += $output->writeFieldStop();
    + $xfer += $output->writeStructEnd();
    + return $xfer;
    + }
    +
    +}
    +
    +class metastore_Table {
    + static $_TSPEC;
    +
    + public $tableName = null;
    + public $dbName = null;
    + public $owner = null;
    + public $createTime = null;
    + public $lastAccessTime = null;
    + public $retention = null;
    + public $sd = null;
    + public $partitionKeys = null;
    + public $parameters = null;
    + public $viewOriginalText = null;
    + public $viewExpandedText = null;
    + public $tableType = null;
    + public $privileges = null;
    +
    + public function __construct($vals=null) {
    + if (!isset(self::$_TSPEC)) {
    + self::$_TSPEC = array(
    + 1 => array(
    + 'var' => 'tableName',
    + 'type' => TType::STRING,
    + ),
    + 2 => array(
    + 'var' => 'dbName',
    + 'type' => TType::STRING,
    + ),
    + 3 => array(
    + 'var' => 'owner',
    + 'type' => TType::STRING,
    + ),
    + 4 => array(
    + 'var' => 'createTime',
    + 'type' => TType::I32,
    + ),
    + 5 => array(
    + 'var' => 'lastAccessTime',
    + 'type' => TType::I32,
    + ),
    + 6 => array(
    + 'var' => 'retention',
    + 'type' => TType::I32,
    + ),
    + 7 => array(
    + 'var' => 'sd',
    + 'type' => TType::STRUCT,
    + 'class' => 'metastore_StorageDescriptor',
    + ),
    + 8 => array(
    + 'var' => 'partitionKeys',
    + 'type' => TType::LST,
    + 'etype' => TType::STRUCT,
    + 'elem' => array(
    + 'type' => TType::STRUCT,
    + 'class' => 'metastore_FieldSchema',
    + ),
    + ),
    + 9 => array(
    + 'var' => 'parameters',
    + 'type' => TType::MAP,
    + 'ktype' => TType::STRING,
    + 'vtype' => TType::STRING,
    + 'key' => array(
    + 'type' => TType::STRING,
    + ),
    + 'val' => array(
    + 'type' => TType::STRING,
    + ),
    + ),
    + 10 => array(
    + 'var' => 'viewOriginalText',
    + 'type' => TType::STRING,
    + ),
    + 11 => array(
    + 'var' => 'viewExpandedText',
    + 'type' => TType::STRING,
    + ),
    + 12 => array(
    + 'var' => 'tableType',
    + 'type' => TType::STRING,
    + ),
    + 13 => array(
    + 'var' => 'privileges',
    + 'type' => TType::STRUCT,
    + 'class' => 'metastore_PrincipalPrivilegeSet',
    + ),
    + );
    + }
    + if (is_array($vals)) {
    + if (isset($vals['tableName'])) {
    + $this->tableName = $vals['tableName'];
    + }
    + if (isset($vals['dbName'])) {
    + $this->dbName = $vals['dbName'];
    + }
    + if (isset($vals['owner'])) {
    + $this->owner = $vals['owner'];
    + }
    + if (isset($vals['createTime'])) {
    + $this->createTime = $vals['createTime'];
    + }
    + if (isset($vals['lastAccessTime'])) {
    + $this->lastAccessTime = $vals['lastAccessTime'];
    + }
    + if (isset($vals['retention'])) {
    + $this->retention = $vals['retention'];
    + }
    + if (isset($vals['sd'])) {
    + $this->sd = $vals['sd'];
    + }
    + if (isset($vals['partitionKeys'])) {
    + $this->partitionKeys = $vals['partitionKeys'];
    + }
    + if (isset($vals['parameters'])) {
    + $this->parameters = $vals['parameters'];
    + }
    + if (isset($vals['viewOriginalText'])) {
    + $this->viewOriginalText = $vals['viewOriginalText'];
    + }
    + if (isset($vals['viewExpandedText'])) {
    + $this->viewExpandedText = $vals['viewExpandedText'];
    + }
    + if (isset($vals['tableType'])) {
    + $this->tableType = $vals['tableType'];
    + }
    + if (isset($vals['privileges'])) {
    + $this->privileges = $vals['privileges'];
    + }
    + }
    + }
    +
    + public function getName() {
    + return 'Table';
    + }
    +
    + public function read($input)
    + {
    + $xfer = 0;
    + $fname = null;
    + $ftype = 0;
    + $fid = 0;
    + $xfer += $input->readStructBegin($fname);
    + while (true)
    + {
    + $xfer += $input->readFieldBegin($fname, $ftype, $fid);
    + if ($ftype == TType::STOP) {
    + break;
    + }
    + switch ($fid)
    + {
    + case 1:
    + if ($ftype == TType::STRING) {
    + $xfer += $input->readString($this->tableName);
    + } else {
    + $xfer += $input->skip($ftype);
    + }
    + break;
    + case 2:
    + if ($ftype == TType::STRING) {
    + $xfer += $input->readString($this->dbName);
    + } else {
    + $xfer += $input->skip($ftype);
    + }
    + break;
    + case 3:
    + if ($ftype == TType::STRING) {
    + $xfer += $input->readString($this->owner);
    + } else {
    + $xfer += $input->skip($ftype);
    + }
    + break;
    + case 4:
    + if ($ftype == TType::I32) {
    + $xfer += $input->readI32($this->createTime);
    + } else {
    + $xfer += $input->skip($ftype);
    + }
    + break;
    + case 5:
    + if ($ftype == TType::I32) {
    + $xfer += $input->readI32($this->lastAccessTime);
    + } else {
    + $xfer += $input->skip($ftype);
    + }
    + break;
    + case 6:
    + if ($ftype == TType::I32) {
    + $xfer += $input->readI32($this->retention);
    + } else {
    + $xfer += $input->skip($ftype);
    + }
    + break;
    + case 7:
    + if ($ftype == TType::STRUCT) {
    + $this->sd = new metastore_StorageDescriptor();
    + $xfer += $this->sd->read($input);
    + } else {
    + $xfer += $input->skip($ftype);
    + }
    + break;
    + case 8:
    + if ($ftype == TType::LST) {
    + $this->partitionKeys = array();
    + $_size117 = 0;
    + $_etype120 = 0;
    + $xfer += $input->readListBegin($_etype120, $_size117);
    + for ($_i121 = 0; $_i121 < $_size117; ++$_i121)
    + {
    + $elem122 = null;
    + $elem122 = new metastore_FieldSchema();
    + $xfer += $elem122->read($input);
    + $this->partitionKeys []= $elem122;
    + }
    + $xfer += $input->readListEnd();
    + } else {
    + $xfer += $input->skip($ftype);
    + }
    + break;
    + case 9:
    + if ($ftype == TType::MAP) {
    + $this->parameters = array();
    + $_size123 = 0;
    + $_ktype124 = 0;
    + $_vtype125 = 0;
    + $xfer += $input->readMapBegin($_ktype124, $_vtype125, $_size123);
    + for ($_i127 = 0; $_i127 < $_size123; ++$_i127)
    + {
    + $key128 = '';
    + $val129 = '';
    + $xfer += $input->readString($key128);
    + $xfer += $input->readString($val129);
    + $this->parameters[$key128] = $val129;
    + }
    + $xfer += $input->readMapEnd();
    + } else {
    + $xfer += $input->skip($ftype);
    + }
    + break;
    + case 10:
    + if ($ftype == TType::STRING) {
    + $xfer += $input->readString($this->viewOriginalText);
    + } else {
    + $xfer += $input->skip($ftype);
    + }
    + break;
    + case 11:
    + if ($ftype == TType::STRING) {
    + $xfer += $input->readString($this->viewExpandedText);
    + } else {
    + $xfer += $input->skip($ftype);
    + }
    + break;
    + case 12:
    + if ($ftype == TType::STRING) {
    + $xfer += $input->readString($this->tableType);
    + } else {
    + $xfer += $input->skip($ftype);
    + }
    + break;
    + case 13:
    + if ($ftype == TType::STRUCT) {
    + $this->privileges = new metastore_PrincipalPrivilegeSet();
    + $xfer += $this->privileges->read($input);
    + } else {
    + $xfer += $input->skip($ftype);
    + }
    + break;
    + default:
    + $xfer += $input->skip($ftype);
    + break;
    + }
    + $xfer += $input->readFieldEnd();
    + }
    + $xfer += $input->readStructEnd();
    + return $xfer;
    + }
    +
    + public function write($output) {
    + $xfer = 0;
    + $xfer += $output->writeStructBegin('Table');
    + if ($this->tableName !== null) {
    + $xfer += $output->writeFieldBegin('tableName', TType::STRING, 1);
    + $xfer += $output->writeString($this->tableName);
    + $xfer += $output->writeFieldEnd();
    + }
    + if ($this->dbName !== null) {
    + $xfer += $output->writeFieldBegin('dbName', TType::STRING, 2);
    + $xfer += $output->writeString($this->dbName);
    + $xfer += $output->writeFieldEnd();
    + }
    + if ($this->owner !== null) {
    + $xfer += $output->writeFieldBegin('owner', TType::STRING, 3);
    + $xfer += $output->writeString($this->owner);
    + $xfer += $output->writeFieldEnd();
    + }
    + if ($this->createTime !== null) {
    + $xfer += $output->writeFieldBegin('createTime', TType::I32, 4);
    + $xfer += $output->writeI32($this->createTime);
    + $xfer += $output->writeFieldEnd();
    + }
    + if ($this->lastAccessTime !== null) {
    + $xfer += $output->writeFieldBegin('lastAccessTime', TType::I32, 5);
    + $xfer += $output->writeI32($this->lastAccessTime);
    + $xfer += $output->writeFieldEnd();
    + }
    + if ($this->retention !== null) {
    + $xfer += $output->writeFieldBegin('retention', TType::I32, 6);
    + $xfer += $output->writeI32($this->retention);
    + $xfer += $output->writeFieldEnd();
    + }
    + if ($this->sd !== null) {
    + if (!is_object($this->sd)) {
    + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
    + }
    + $xfer += $output->writeFieldBegin('sd', TType::STRUCT, 7);
    + $xfer += $this->sd->write($output);
    + $xfer += $output->writeFieldEnd();
    + }
    + if ($this->partitionKeys !== null) {
    + if (!is_array($this->partitionKeys)) {
    + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
    + }
    + $xfer += $output->writeFieldBegin('partitionKeys', TType::LST, 8);
    + {
    + $output->writeListBegin(TType::STRUCT, count($this->partitionKeys));
    + {
    + foreach ($this->partitionKeys as $iter130)
    + {
    + $xfer += $iter130->write($output);
    + }
    + }
    + $output->writeListEnd();
    + }
    + $xfer += $output->writeFieldEnd();
    + }
    + if ($this->parameters !== null) {
    + if (!is_array($this->parameters)) {
    + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
    + }
    + $xfer += $output->writeFieldBegin('parameters', TType::MAP, 9);
    + {
    + $output->writeMapBegin(TType::STRING, TType::STRING, count($this->parameters));
    + {
    + foreach ($this->parameters as $kiter131 => $viter132)
    + {
    + $xfer += $output->writeString($kiter131);
    + $xfer += $output->writeString($viter132);
    + }
    + }
    + $output->writeMapEnd();
    + }
    + $xfer += $output->writeFieldEnd();
    + }
    + if ($this->viewOriginalText !== null) {
    + $xfer += $output->writeFieldBegin('viewOriginalText', TType::STRING, 10);
    + $xfer += $output->writeString($this->viewOriginalText);
    + $xfer += $output->writeFieldEnd();
    + }
    + if ($this->viewExpandedText !== null) {
    + $xfer += $output->writeFieldBegin('viewExpandedText', TType::STRING, 11);
    + $xfer += $output->writeString($this->viewExpandedText);
    + $xfer += $output->writeFieldEnd();
    + }
    + if ($this->tableType !== null) {
    + $xfer += $output->writeFieldBegin('tableType', TType::STRING, 12);
    + $xfer += $output->writeString($this->tableType);
    + $xfer += $output->writeFieldEnd();
    + }
    + if ($this->privileges !== null) {
    + if (!is_object($this->privileges)) {
    + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
    + }
    + $xfer += $output->writeFieldBegin('privileges', TType::STRUCT, 13);
    + $xfer += $this->privileges->write($output);
    + $xfer += $output->writeFieldEnd();
    + }
    + $xfer += $output->writeFieldStop();
    + $xfer += $output->writeStructEnd();
    + return $xfer;
    + }
    +
    +}
    +
    +class metastore_Partition {
    + static $_TSPEC;
    +
    + public $values = null;
    + public $dbName = null;
    + public $tableName = null;
    + public $createTime = null;
    + public $lastAccessTime = null;
    + public $sd = null;
    + public $parameters = null;
    + public $privileges = null;
    +
    + public function __construct($vals=null) {
    + if (!isset(self::$_TSPEC)) {
    + self::$_TSPEC = array(
    + 1 => array(
    + 'var' => 'values',
    + 'type' => TType::LST,
    + 'etype' => TType::STRING,
    + 'elem' => array(
    + 'type' => TType::STRING,
    + ),
    + ),
    + 2 => array(
    + 'var' => 'dbName',
    + 'type' => TType::STRING,
    + ),
    + 3 => array(
    + 'var' => 'tableName',
    + 'type' => TType::STRING,
    + ),
    + 4 => array(
    + 'var' => 'createTime',
    + 'type' => TType::I32,
    + ),
    + 5 => array(
    + 'var' => 'lastAccessTime',
    + 'type' => TType::I32,
    + ),
    + 6 => array(
    + 'var' => 'sd',
    + 'type' => TType::STRUCT,
    + 'class' => 'metastore_StorageDescriptor',
    + ),
    + 7 => array(
    + 'var' => 'parameters',
    + 'type' => TType::MAP,
    + 'ktype' => TType::STRING,
    + 'vtype' => TType::STRING,
    + 'key' => array(
    + 'type' => TType::STRING,
    + ),
    + 'val' => array(
    + 'type' => TType::STRING,
    + ),
    + ),
    + 8 => array(
    + 'var' => 'privileges',
    + 'type' => TType::STRUCT,
    + 'class' => 'metastore_PrincipalPrivilegeSet',
    + ),
    + );
    + }
    + if (is_array($vals)) {
    + if (isset($vals['values'])) {
    + $this->values = $vals['values'];
    + }
    + if (isset($vals['dbName'])) {
    + $this->dbName = $vals['dbName'];
    + }
    + if (isset($vals['tableName'])) {
    + $this->tableName = $vals['tableName'];
    + }
    + if (isset($vals['createTime'])) {
    + $this->createTime = $vals['createTime'];
    + }
    + if (isset($vals['lastAccessTime'])) {
    + $this->lastAccessTime = $vals['lastAccessTime'];
    + }
    + if (isset($vals['sd'])) {
    + $this->sd = $vals['sd'];
    + }
    + if (isset($vals['parameters'])) {
    + $this->parameters = $vals['parameters'];
    + }
    + if (isset($vals['privileges'])) {
    + $this->privileges = $vals['privileges'];
    + }
    + }
    + }
    +
    + public function getName() {
    + return 'Partition';
    + }
    +
    + public function read($input)
    + {
    + $xfer = 0;
    + $fname = null;
    + $ftype = 0;
    + $fid = 0;
    + $xfer += $input->readStructBegin($fname);
    + while (true)
    + {
    + $xfer += $input->readFieldBegin($fname, $ftype, $fid);
    + if ($ftype == TType::STOP) {
    + break;
    + }
    + switch ($fid)
    + {
    + case 1:
    + if ($ftype == TType::LST) {
    + $this->values = array();
    + $_size133 = 0;
    + $_etype136 = 0;
    + $xfer += $input->readListBegin($_etype136, $_size133);
    + for ($_i137 = 0; $_i137 < $_size133; ++$_i137)
    + {
    + $elem138 = null;
    + $xfer += $input->readString($elem138);
    + $this->values []= $elem138;
    + }
    + $xfer += $input->readListEnd();
    + } else {
    + $xfer += $input->skip($ftype);
    + }
    + break;
    + case 2:
    + if ($ftype == TType::STRING) {
    + $xfer += $input->readString($this->dbName);
    + } else {
    + $xfer += $input->skip($ftype);
    + }
    + break;
    + case 3:
    + if ($ftype == TType::STRING) {
    + $xfer += $input->readString($this->tableName);
    + } else {
    + $xfer += $input->skip($ftype);
    + }
    + break;
    + case 4:
    + if ($ftype == TType::I32) {
    + $xfer += $input->readI32($this->createTime);
    + } else {
    + $xfer += $input->skip($ftype);
    + }
    + break;
    + case 5:
    + if ($ftype == TType::I32) {
    + $xfer += $input->readI32($this->lastAccessTime);
    + } else {
    + $xfer += $input->skip($ftype);
    + }
    + break;
    + case 6:
    + if ($ftype == TType::STRUCT) {
    + $this->sd = new metastore_StorageDescriptor();
    + $xfer += $this->sd->read($input);
    + } else {
    + $xfer += $input->skip($ftype);
    + }
    + break;
    + case 7:
    + if ($ftype == TType::MAP) {
    + $this->parameters = array();
    + $_size139 = 0;
    + $_ktype140 = 0;
    + $_vtype141 = 0;
    + $xfer += $input->readMapBegin($_ktype140, $_vtype141, $_size139);
    + for ($_i143 = 0; $_i143 < $_size139; ++$_i143)
    + {
    + $key144 = '';
    + $val145 = '';
    + $xfer += $input->readString($key144);
    + $xfer += $input->readString($val145);
    + $this->parameters[$key144] = $val145;
    + }
    + $xfer += $input->readMapEnd();
    + } else {
    + $xfer += $input->skip($ftype);
    + }
    + break;
    + case 8:
    + if ($ftype == TType::STRUCT) {
    + $this->privileges = new metastore_PrincipalPrivilegeSet();
    + $xfer += $this->privileges->read($input);
    + } else {
    + $xfer += $input->skip($ftype);
    + }
    + break;
    + default:
    + $xfer += $input->skip($ftype);
    + break;
    + }
    + $xfer += $input->readFieldEnd();
    + }
    + $xfer += $input->readStructEnd();
    + return $xfer;
    + }
    +
    + public function write($output) {
    + $xfer = 0;
    + $xfer += $output->writeStructBegin('Partition');
    + if ($this->values !== null) {
    + if (!is_array($this->values)) {
    + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
    + }
    + $xfer += $output->writeFieldBegin('values', TType::LST, 1);
    + {
    + $output->writeListBegin(TType::STRING, count($this->values));
    + {
    + foreach ($this->values as $iter146)
    + {
    + $xfer += $output->writeString($iter146);
    + }
    + }
    + $output->writeListEnd();
    + }
    + $xfer += $output->writeFieldEnd();
    + }
    + if ($this->dbName !== null) {
    + $xfer += $output->writeFieldBegin('dbName', TType::STRING, 2);
    + $xfer += $output->writeString($this->dbName);
    + $xfer += $output->writeFieldEnd();
    + }
    + if ($this->tableName !== null) {
    + $xfer += $output->writeFieldBegin('tableName', TType::STRING, 3);
    + $xfer += $output->writeString($this->tableName);
    + $xfer += $output->writeFieldEnd();
    + }
    + if ($this->createTime !== null) {
    + $xfer += $output->writeFieldBegin('createTime', TType::I32, 4);
    + $xfer += $output->writeI32($this->createTime);
    + $xfer += $output->writeFieldEnd();
    + }
    + if ($this->lastAccessTime !== null) {
    + $xfer += $output->writeFieldBegin('lastAccessTime', TType::I32, 5);
    + $xfer += $output->writeI32($this->lastAccessTime);
    + $xfer += $output->writeFieldEnd();
    + }
    + if ($this->sd !== null) {
    + if (!is_object($this->sd)) {
    + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
    + }
    + $xfer += $output->writeFieldBegin('sd', TType::STRUCT, 6);
    + $xfer += $this->sd->write($output);
    + $xfer += $output->writeFieldEnd();
    + }
    + if ($this->parameters !== null) {
    + if (!is_array($this->parameters)) {
    + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
    + }
    + $xfer += $output->writeFieldBegin('parameters', TType::MAP, 7);
    + {
    + $output->writeMapBegin(TType::STRING, TType::STRING, count($this->parameters));
    + {
    + foreach ($this->parameters as $kiter147 => $viter148)
    + {
    + $xfer += $output->writeString($kiter147);
    + $xfer += $output->writeString($viter148);
    + }
    + }
    + $output->writeMapEnd();
    + }
    + $xfer += $output->writeFieldEnd();
    + }
    + if ($this->privileges !== null) {
    + if (!is_object($this->privileges)) {
    + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
    + }
    + $xfer += $output->writeFieldBegin('privileges', TType::STRUCT, 8);
    + $xfer += $this->privileges->write($output);
    + $xfer += $output->writeFieldEnd();
    + }
    + $xfer += $output->writeFieldStop();
    + $xfer += $output->writeStructEnd();
    + return $xfer;
    + }
    +
    +}
    +
    +class metastore_Index {
    + static $_TSPEC;
    +
    + public $indexName = null;
    + public $indexHandlerClass = null;
    + public $dbName = null;
    + public $origTableName = null;
    + public $createTime = null;
    + public $lastAccessTime = null;
    + public $indexTableName = null;
    + public $sd = null;
    + public $parameters = null;
    + public $deferredRebuild = null;
    +
    + public function __construct($vals=null) {
    + if (!isset(self::$_TSPEC)) {
    + self::$_TSPEC = array(
    + 1 => array(
    + 'var' => 'indexName',
    + 'type' => TType::STRING,
    + ),
    + 2 => array(
    + 'var' => 'indexHandlerClass',
    + 'type' => TType::STRING,
    + ),
    + 3 => array(
    + 'var' => 'dbName',
    + 'type' => TType::STRING,
    + ),
    + 4 => array(
    + 'var' => 'origTableName',
    + 'type' => TType::STRING,
    + ),
    + 5 => array(
    + 'var' => 'createTime',
    + 'type' => TType::I32,
    + ),
    + 6 => array(
    + 'var' => 'lastAccessTime',
    + 'type' => TType::I32,
    + ),
    + 7 => array(
    + 'var' => 'indexTableName',
    + 'type' => TType::STRING,
    + ),
    + 8 => array(
    + 'var' => 'sd',
    + 'type' => TType::STRUCT,
    + 'class' => 'metastore_StorageDescriptor',
    + ),
    + 9 => array(
    + 'var' => 'parameters',
    + 'type' => TType::MAP,
    + 'ktype' => TType::STRING,
    + 'vtype' => TType::STRING,
    + 'key' => array(
    + 'type' => TType::STRING,
    + ),
    + 'val' => array(
    + 'type' => TType::STRING,
    + ),
    + ),
    + 10 => array(
    + 'var' => 'deferredRebuild',
    + 'type' => TType::BOOL,
    + ),
    + );
    + }
    + if (is_array($vals)) {
    + if (isset($vals['indexName'])) {
    + $this->indexName = $vals['indexName'];
    + }
    + if (isset($vals['indexHandlerClass'])) {
    + $this->indexHandlerClass = $vals['indexHandlerClass'];
    + }
    + if (isset($vals['dbName'])) {
    + $this->dbName = $vals['dbName'];
    + }
    + if (isset($vals['origTableName'])) {
    + $this->origTableName = $vals['origTableName'];
    + }
    + if (isset($vals['createTime'])) {
    + $this->createTime = $vals['createTime'];
    + }
    + if (isset($vals['lastAccessTime'])) {
    + $this->lastAccessTime = $vals['lastAccessTime'];
    + }
    + if (isset($vals['indexTableName'])) {
    + $this->indexTableName = $vals['indexTableName'];
    + }
    + if (isset($vals['sd'])) {
    + $this->sd = $vals['sd'];
    + }
    + if (isset($vals['parameters'])) {
    + $this->parameters = $vals['parameters'];
    + }
    + if (isset($vals['deferredRebuild'])) {
    + $this->deferredRebuild = $vals['deferredRebuild'];
    + }
    + }
    + }
    +
    + public function getName() {
    + return 'Index';
    + }
    +
    + public function read($input)
    + {
    + $xfer = 0;
    + $fname = null;
    + $ftype = 0;
    + $fid = 0;
    + $xfer += $input->readStructBegin($fname);
    + while (true)
    + {
    + $xfer += $input->readFieldBegin($fname, $ftype, $fid);
    + if ($ftype == TType::STOP) {
    + break;
    + }
    + switch ($fid)
    + {
    + case 1:
    + if ($ftype == TType::STRING) {
    + $xfer += $input->readString($this->indexName);
    + } else {
    + $xfer += $input->skip($ftype);
    + }
    + break;
    + case 2:
    + if ($ftype == TType::STRING) {
    + $xfer += $input->readString($this->indexHandlerClass);
    + } else {
    + $xfer += $input->skip($ftype);
    + }
    + break;
    + case 3:
    + if ($ftype == TType::STRING) {
    + $xfer += $input->readString($this->dbName);
    + } else {
    + $xfer += $input->skip($ftype);
    + }
    + break;
    + case 4:
    + if ($ftype == TType::STRING) {
    + $xfer += $input->readString($this->origTableName);

    [... 1094 lines stripped ...]
  • Namit at Feb 11, 2012 at 7:50 am
    Modified: hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/parse/BaseSemanticAnalyzer.java
    URL: http://svn.apache.org/viewvc/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/parse/BaseSemanticAnalyzer.java?rev=1243013&r1=1243012&r2=1243013&view=diff
    ==============================================================================
    --- hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/parse/BaseSemanticAnalyzer.java (original)
    +++ hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/parse/BaseSemanticAnalyzer.java Sat Feb 11 07:49:28 2012
    @@ -239,6 +239,13 @@ public abstract class BaseSemanticAnalyz
    public abstract void analyzeInternal(ASTNode ast) throws SemanticException;

    public void analyze(ASTNode ast, Context ctx) throws SemanticException {
    + boolean useDefaultRegion =
    + HiveConf.getBoolVar(conf, HiveConf.ConfVars.HIVE_USE_INPUT_PRIMARY_REGION);
    +
    + if (!useDefaultRegion) {
    + throw new SemanticException(ErrorMsg.USE_DEFAULT_REGION.getMsg());
    + }
    +
    this.ctx = ctx;
    analyzeInternal(ast);
    }
    @@ -777,7 +784,7 @@ public abstract class BaseSemanticAnalyz
    }
    return partSpec;
    }
    -
    +
    /**
    * Checks if given specification is proper specification for prefix of
    * partition cols, for table partitioned by ds, hr, min valid ones are
    @@ -805,7 +812,7 @@ public abstract class BaseSemanticAnalyz
    if (spec == null) {
    throw new HiveException("partition spec is not specified");
    }
    -
    +
    Iterator<String> itrPsKeys = spec.keySet().iterator();
    for (FieldSchema fs: partCols) {
    if(!itrPsKeys.hasNext()) {
    @@ -816,14 +823,14 @@ public abstract class BaseSemanticAnalyz
    ErrorPartSpec(spec, partCols);
    }
    }
    -
    +
    if(itrPsKeys.hasNext()) {
    ErrorPartSpec(spec, partCols);
    }

    return true;
    }
    -
    +
    private static void ErrorPartSpec(Map<String, String> partSpec,
    List<FieldSchema> parts) throws SemanticException {
    StringBuilder sb =

    Modified: hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/parse/ErrorMsg.java
    URL: http://svn.apache.org/viewvc/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/parse/ErrorMsg.java?rev=1243013&r1=1243012&r2=1243013&view=diff
    ==============================================================================
    --- hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/parse/ErrorMsg.java (original)
    +++ hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/parse/ErrorMsg.java Sat Feb 11 07:49:28 2012
    @@ -106,6 +106,7 @@ public enum ErrorMsg {
    + "denaminator in sample clause for table"),
    NEED_PARTITION_ERROR("Need to specify partition columns because the destination "
    + "table is partitioned"),
    + USE_DEFAULT_REGION("Only default region can be used"),
    CTAS_CTLT_COEXISTENCE("Create table command does not allow LIKE and AS-SELECT in "
    + "the same command"),
    LINES_TERMINATED_BY_NON_NEWLINE("LINES TERMINATED BY only supports newline '\\n' right now"),

    Modified: hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/parse/ImportSemanticAnalyzer.java
    URL: http://svn.apache.org/viewvc/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/parse/ImportSemanticAnalyzer.java?rev=1243013&r1=1243012&r2=1243013&view=diff
    ==============================================================================
    --- hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/parse/ImportSemanticAnalyzer.java (original)
    +++ hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/parse/ImportSemanticAnalyzer.java Sat Feb 11 07:49:28 2012
    @@ -111,7 +111,8 @@ public class ImportSemanticAnalyzer exte
    table.getSd().getSerdeInfo().getSerializationLib(),
    null, // storagehandler passed as table params
    table.getSd().getSerdeInfo().getParameters(),
    - table.getParameters(), false);
    + table.getParameters(), false,
    + table.getSd().getPrimaryRegionName());


    List<FieldSchema> partCols = tblDesc.getPartCols();

    Modified: hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java
    URL: http://svn.apache.org/viewvc/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java?rev=1243013&r1=1243012&r2=1243013&view=diff
    ==============================================================================
    --- hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java (original)
    +++ hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java Sat Feb 11 07:49:28 2012
    @@ -7944,6 +7944,8 @@ public class SemanticAnalyzer extends Ba
    RowFormatParams rowFormatParams = new RowFormatParams();
    StorageFormat storageFormat = new StorageFormat();
    AnalyzeCreateCommonVars shared = new AnalyzeCreateCommonVars();
    + String defaultRegionName =
    + HiveConf.getVar(conf, HiveConf.ConfVars.HIVE_DEFAULT_REGION_NAME);

    LOG.info("Creating table " + tableName + " position="
    + ast.getCharPositionInLine());
    @@ -8082,7 +8084,9 @@ public class SemanticAnalyzer extends Ba
    bucketCols, sortCols, numBuckets, rowFormatParams.fieldDelim, rowFormatParams.fieldEscape,
    rowFormatParams.collItemDelim, rowFormatParams.mapKeyDelim, rowFormatParams.lineDelim, comment,
    storageFormat.inputFormat, storageFormat.outputFormat, location, shared.serde,
    - storageFormat.storageHandler, shared.serdeProps, tblProps, ifNotExists);
    + storageFormat.storageHandler, shared.serdeProps,
    + tblProps, ifNotExists,
    + defaultRegionName);

    validateCreateTable(crtTblDesc);
    // outputs is empty, which means this create table happens in the current
    @@ -8124,7 +8128,8 @@ public class SemanticAnalyzer extends Ba
    bucketCols, sortCols, numBuckets, rowFormatParams.fieldDelim, rowFormatParams.fieldEscape,
    rowFormatParams.collItemDelim, rowFormatParams.mapKeyDelim, rowFormatParams.lineDelim, comment, storageFormat.inputFormat,
    storageFormat.outputFormat, location, shared.serde, storageFormat.storageHandler, shared.serdeProps,
    - tblProps, ifNotExists);
    + tblProps, ifNotExists,
    + defaultRegionName);
    qb.setTableDesc(crtTblDesc);

    SessionState.get().setCommandType(HiveOperation.CREATETABLE_AS_SELECT);

    Modified: hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/plan/CreateTableDesc.java
    URL: http://svn.apache.org/viewvc/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/plan/CreateTableDesc.java?rev=1243013&r1=1243012&r2=1243013&view=diff
    ==============================================================================
    --- hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/plan/CreateTableDesc.java (original)
    +++ hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/plan/CreateTableDesc.java Sat Feb 11 07:49:28 2012
    @@ -56,6 +56,7 @@ public class CreateTableDesc extends DDL
    Map<String, String> serdeProps;
    Map<String, String> tblProps;
    boolean ifNotExists;
    + String primaryRegionName;

    public CreateTableDesc() {
    }
    @@ -69,13 +70,14 @@ public class CreateTableDesc extends DDL
    String storageHandler,
    Map<String, String> serdeProps,
    Map<String, String> tblProps,
    - boolean ifNotExists) {
    + boolean ifNotExists,
    + String primaryRegionName) {

    this(tableName, isExternal, cols, partCols,
    bucketCols, sortCols, numBuckets, fieldDelim, fieldEscape,
    collItemDelim, mapKeyDelim, lineDelim, comment, inputFormat,
    outputFormat, location, serName, storageHandler, serdeProps,
    - tblProps, ifNotExists);
    + tblProps, ifNotExists, primaryRegionName);

    this.databaseName = databaseName;
    }
    @@ -89,7 +91,8 @@ public class CreateTableDesc extends DDL
    String storageHandler,
    Map<String, String> serdeProps,
    Map<String, String> tblProps,
    - boolean ifNotExists) {
    + boolean ifNotExists,
    + String primaryRegionName) {
    this.tableName = tableName;
    this.isExternal = isExternal;
    this.bucketCols = new ArrayList<String>(bucketCols);
    @@ -111,6 +114,7 @@ public class CreateTableDesc extends DDL
    this.serdeProps = serdeProps;
    this.tblProps = tblProps;
    this.ifNotExists = ifNotExists;
    + this.primaryRegionName = primaryRegionName;
    }

    @Explain(displayName = "columns")
    @@ -342,4 +346,19 @@ public class CreateTableDesc extends DDL
    this.tblProps = tblProps;
    }

    + /**
    + * @return the primaryRegionName
    + */
    + @Explain(displayName = "primaryRegionName")
    + public String getPrimaryRegionName() {
    + return primaryRegionName;
    + }
    +
    + /**
    + * @param primaryRegionName
    + * the primaryRegionName to set
    + */
    + public void setPrimaryRegionName(String primaryRegionName) {
    + this.primaryRegionName = primaryRegionName;
    + }
    }

    Modified: hive/trunk/ql/src/test/org/apache/hadoop/hive/ql/metadata/TestHive.java
    URL: http://svn.apache.org/viewvc/hive/trunk/ql/src/test/org/apache/hadoop/hive/ql/metadata/TestHive.java?rev=1243013&r1=1243012&r2=1243013&view=diff
    ==============================================================================
    --- hive/trunk/ql/src/test/org/apache/hadoop/hive/ql/metadata/TestHive.java (original)
    +++ hive/trunk/ql/src/test/org/apache/hadoop/hive/ql/metadata/TestHive.java Sat Feb 11 07:49:28 2012
    @@ -33,6 +33,7 @@ import org.apache.hadoop.hive.metastore.
    import org.apache.hadoop.hive.metastore.Warehouse;
    import org.apache.hadoop.hive.metastore.api.Database;
    import org.apache.hadoop.hive.metastore.api.FieldSchema;
    +import org.apache.hadoop.hive.metastore.api.RegionStorageDescriptor;
    import org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat;
    import org.apache.hadoop.hive.serde.Constants;
    import org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe;
    @@ -135,6 +136,9 @@ public class TestHive extends TestCase {
    tbl.setSerdeParam(Constants.FIELD_DELIM, "1");
    tbl.setSerializationLib(LazySimpleSerDe.class.getName());

    + tbl.getTTable().getSd().setPrimaryRegionName(HiveConf.ConfVars.HIVE_DEFAULT_REGION_NAME.defaultVal);
    + tbl.getTTable().getSd().setSecondaryRegions(new ArrayList<RegionStorageDescriptor>());
    +
    // create table
    try {
    hm.createTable(tbl);
    @@ -209,6 +213,11 @@ public class TestHive extends TestCase {
    tbl.setSerdeParam(Constants.SERIALIZATION_CLASS, Complex.class.getName());
    tbl.setSerdeParam(Constants.SERIALIZATION_FORMAT, TBinaryProtocol.class
    .getName());
    +
    + tbl.getTTable().getSd().setPrimaryRegionName(HiveConf.ConfVars.HIVE_DEFAULT_REGION_NAME.defaultVal);
    + tbl.getTTable().getSd().setSecondaryRegions(new ArrayList<RegionStorageDescriptor>());
    +
    +
    try {
    hm.createTable(tbl);
    } catch (HiveException e) {

    Modified: hive/trunk/ql/src/test/results/clientpositive/create_union_table.q.out
    URL: http://svn.apache.org/viewvc/hive/trunk/ql/src/test/results/clientpositive/create_union_table.q.out?rev=1243013&r1=1243012&r2=1243013&view=diff
    ==============================================================================
    --- hive/trunk/ql/src/test/results/clientpositive/create_union_table.q.out (original)
    +++ hive/trunk/ql/src/test/results/clientpositive/create_union_table.q.out Sat Feb 11 07:49:28 2012
    @@ -19,6 +19,7 @@ STAGE PLANS:
    input format: org.apache.hadoop.mapred.TextInputFormat
    # buckets: -1
    output format: org.apache.hadoop.hive.ql.io.IgnoreKeyTextOutputFormat
    + primaryRegionName:
    name: abc
    isExternal: false


    Modified: hive/trunk/ql/src/test/results/clientpositive/ctas.q.out
    URL: http://svn.apache.org/viewvc/hive/trunk/ql/src/test/results/clientpositive/ctas.q.out?rev=1243013&r1=1243012&r2=1243013&view=diff
    ==============================================================================
    --- hive/trunk/ql/src/test/results/clientpositive/ctas.q.out (original)
    +++ hive/trunk/ql/src/test/results/clientpositive/ctas.q.out Sat Feb 11 07:49:28 2012
    @@ -104,6 +104,7 @@ STAGE PLANS:
    input format: org.apache.hadoop.mapred.TextInputFormat
    # buckets: -1
    output format: org.apache.hadoop.hive.ql.io.IgnoreKeyTextOutputFormat
    + primaryRegionName:
    name: nzhang_CTAS1
    isExternal: false

    @@ -263,6 +264,7 @@ STAGE PLANS:
    input format: org.apache.hadoop.mapred.TextInputFormat
    # buckets: -1
    output format: org.apache.hadoop.hive.ql.io.IgnoreKeyTextOutputFormat
    + primaryRegionName:
    name: nzhang_ctas2
    isExternal: false

    @@ -422,6 +424,7 @@ STAGE PLANS:
    input format: org.apache.hadoop.hive.ql.io.RCFileInputFormat
    # buckets: -1
    output format: org.apache.hadoop.hive.ql.io.RCFileOutputFormat
    + primaryRegionName:
    serde name: org.apache.hadoop.hive.serde2.columnar.ColumnarSerDe
    name: nzhang_ctas3
    isExternal: false
    @@ -650,6 +653,7 @@ STAGE PLANS:
    input format: org.apache.hadoop.mapred.TextInputFormat
    # buckets: -1
    output format: org.apache.hadoop.hive.ql.io.IgnoreKeyTextOutputFormat
    + primaryRegionName:
    name: nzhang_ctas4
    isExternal: false

    @@ -893,6 +897,7 @@ STAGE PLANS:

    # buckets: -1
    output format: org.apache.hadoop.hive.ql.io.IgnoreKeyTextOutputFormat
    + primaryRegionName:
    name: nzhang_ctas5
    isExternal: false


    Modified: hive/trunk/ql/src/test/results/clientpositive/fileformat_sequencefile.q.out
    URL: http://svn.apache.org/viewvc/hive/trunk/ql/src/test/results/clientpositive/fileformat_sequencefile.q.out?rev=1243013&r1=1243012&r2=1243013&view=diff
    ==============================================================================
    --- hive/trunk/ql/src/test/results/clientpositive/fileformat_sequencefile.q.out (original)
    +++ hive/trunk/ql/src/test/results/clientpositive/fileformat_sequencefile.q.out Sat Feb 11 07:49:28 2012
    @@ -23,6 +23,7 @@ STAGE PLANS:
    input format: org.apache.hadoop.mapred.SequenceFileInputFormat
    # buckets: -1
    output format: org.apache.hadoop.mapred.SequenceFileOutputFormat
    + primaryRegionName:
    name: dest1
    isExternal: false


    Modified: hive/trunk/ql/src/test/results/clientpositive/fileformat_text.q.out
    URL: http://svn.apache.org/viewvc/hive/trunk/ql/src/test/results/clientpositive/fileformat_text.q.out?rev=1243013&r1=1243012&r2=1243013&view=diff
    ==============================================================================
    --- hive/trunk/ql/src/test/results/clientpositive/fileformat_text.q.out (original)
    +++ hive/trunk/ql/src/test/results/clientpositive/fileformat_text.q.out Sat Feb 11 07:49:28 2012
    @@ -23,6 +23,7 @@ STAGE PLANS:
    input format: org.apache.hadoop.mapred.TextInputFormat
    # buckets: -1
    output format: org.apache.hadoop.hive.ql.io.IgnoreKeyTextOutputFormat
    + primaryRegionName:
    name: dest1
    isExternal: false


    Modified: hive/trunk/ql/src/test/results/clientpositive/input15.q.out
    URL: http://svn.apache.org/viewvc/hive/trunk/ql/src/test/results/clientpositive/input15.q.out?rev=1243013&r1=1243012&r2=1243013&view=diff
    ==============================================================================
    --- hive/trunk/ql/src/test/results/clientpositive/input15.q.out (original)
    +++ hive/trunk/ql/src/test/results/clientpositive/input15.q.out Sat Feb 11 07:49:28 2012
    @@ -20,6 +20,7 @@ STAGE PLANS:
    input format: org.apache.hadoop.mapred.TextInputFormat
    # buckets: -1
    output format: org.apache.hadoop.hive.ql.io.IgnoreKeyTextOutputFormat
    + primaryRegionName:
    name: TEST15
    isExternal: false


    Modified: hive/trunk/ql/src/test/results/clientpositive/inputddl1.q.out
    URL: http://svn.apache.org/viewvc/hive/trunk/ql/src/test/results/clientpositive/inputddl1.q.out?rev=1243013&r1=1243012&r2=1243013&view=diff
    ==============================================================================
    --- hive/trunk/ql/src/test/results/clientpositive/inputddl1.q.out (original)
    +++ hive/trunk/ql/src/test/results/clientpositive/inputddl1.q.out Sat Feb 11 07:49:28 2012
    @@ -19,6 +19,7 @@ STAGE PLANS:
    input format: org.apache.hadoop.mapred.TextInputFormat
    # buckets: -1
    output format: org.apache.hadoop.hive.ql.io.IgnoreKeyTextOutputFormat
    + primaryRegionName:
    name: INPUTDDL1
    isExternal: false


    Modified: hive/trunk/ql/src/test/results/clientpositive/inputddl2.q.out
    URL: http://svn.apache.org/viewvc/hive/trunk/ql/src/test/results/clientpositive/inputddl2.q.out?rev=1243013&r1=1243012&r2=1243013&view=diff
    ==============================================================================
    --- hive/trunk/ql/src/test/results/clientpositive/inputddl2.q.out (original)
    +++ hive/trunk/ql/src/test/results/clientpositive/inputddl2.q.out Sat Feb 11 07:49:28 2012
    @@ -20,6 +20,7 @@ STAGE PLANS:
    # buckets: -1
    output format: org.apache.hadoop.hive.ql.io.IgnoreKeyTextOutputFormat
    partition columns: ds string, country string
    + primaryRegionName:
    name: INPUTDDL2
    isExternal: false


    Modified: hive/trunk/ql/src/test/results/clientpositive/inputddl3.q.out
    URL: http://svn.apache.org/viewvc/hive/trunk/ql/src/test/results/clientpositive/inputddl3.q.out?rev=1243013&r1=1243012&r2=1243013&view=diff
    ==============================================================================
    --- hive/trunk/ql/src/test/results/clientpositive/inputddl3.q.out (original)
    +++ hive/trunk/ql/src/test/results/clientpositive/inputddl3.q.out Sat Feb 11 07:49:28 2012
    @@ -20,6 +20,7 @@ STAGE PLANS:
    input format: org.apache.hadoop.mapred.TextInputFormat
    # buckets: -1
    output format: org.apache.hadoop.hive.ql.io.IgnoreKeyTextOutputFormat
    + primaryRegionName:
    name: INPUTDDL3
    isExternal: false


    Modified: hive/trunk/ql/src/test/results/clientpositive/merge3.q.out
    URL: http://svn.apache.org/viewvc/hive/trunk/ql/src/test/results/clientpositive/merge3.q.out?rev=1243013&r1=1243012&r2=1243013&view=diff
    ==============================================================================
    --- hive/trunk/ql/src/test/results/clientpositive/merge3.q.out (original)
    +++ hive/trunk/ql/src/test/results/clientpositive/merge3.q.out Sat Feb 11 07:49:28 2012
    @@ -164,6 +164,7 @@ STAGE PLANS:
    input format: org.apache.hadoop.mapred.TextInputFormat
    # buckets: -1
    output format: org.apache.hadoop.hive.ql.io.IgnoreKeyTextOutputFormat
    + primaryRegionName:
    name: merge_src2
    isExternal: false


    Modified: hive/trunk/ql/src/test/results/clientpositive/rcfile_createas1.q.out
    URL: http://svn.apache.org/viewvc/hive/trunk/ql/src/test/results/clientpositive/rcfile_createas1.q.out?rev=1243013&r1=1243012&r2=1243013&view=diff
    ==============================================================================
    --- hive/trunk/ql/src/test/results/clientpositive/rcfile_createas1.q.out (original)
    +++ hive/trunk/ql/src/test/results/clientpositive/rcfile_createas1.q.out Sat Feb 11 07:49:28 2012
    @@ -114,6 +114,7 @@ STAGE PLANS:
    input format: org.apache.hadoop.hive.ql.io.RCFileInputFormat
    # buckets: -1
    output format: org.apache.hadoop.hive.ql.io.RCFileOutputFormat
    + primaryRegionName:
    serde name: org.apache.hadoop.hive.serde2.columnar.ColumnarSerDe
    name: rcfile_createas1b
    isExternal: false

    Modified: hive/trunk/ql/src/test/results/clientpositive/smb_mapjoin9.q.out
    URL: http://svn.apache.org/viewvc/hive/trunk/ql/src/test/results/clientpositive/smb_mapjoin9.q.out?rev=1243013&r1=1243012&r2=1243013&view=diff
    ==============================================================================
    --- hive/trunk/ql/src/test/results/clientpositive/smb_mapjoin9.q.out (original)
    +++ hive/trunk/ql/src/test/results/clientpositive/smb_mapjoin9.q.out Sat Feb 11 07:49:28 2012
    @@ -126,6 +126,7 @@ STAGE PLANS:
    input format: org.apache.hadoop.mapred.TextInputFormat
    # buckets: -1
    output format: org.apache.hadoop.hive.ql.io.IgnoreKeyTextOutputFormat
    + primaryRegionName:
    name: smb_mapjoin9_results
    isExternal: false


    Modified: hive/trunk/ql/src/test/results/clientpositive/symlink_text_input_format.q.out
    URL: http://svn.apache.org/viewvc/hive/trunk/ql/src/test/results/clientpositive/symlink_text_input_format.q.out?rev=1243013&r1=1243012&r2=1243013&view=diff
    ==============================================================================
    --- hive/trunk/ql/src/test/results/clientpositive/symlink_text_input_format.q.out (original)
    +++ hive/trunk/ql/src/test/results/clientpositive/symlink_text_input_format.q.out Sat Feb 11 07:49:28 2012
    @@ -19,6 +19,7 @@ STAGE PLANS:
    input format: org.apache.hadoop.hive.ql.io.SymlinkTextInputFormat
    # buckets: -1
    output format: org.apache.hadoop.hive.ql.io.IgnoreKeyTextOutputFormat
    + primaryRegionName:
    name: symlink_text_input_format
    isExternal: false


    Modified: hive/trunk/ql/src/test/results/clientpositive/union25.q.out
    URL: http://svn.apache.org/viewvc/hive/trunk/ql/src/test/results/clientpositive/union25.q.out?rev=1243013&r1=1243012&r2=1243013&view=diff
    ==============================================================================
    --- hive/trunk/ql/src/test/results/clientpositive/union25.q.out (original)
    +++ hive/trunk/ql/src/test/results/clientpositive/union25.q.out Sat Feb 11 07:49:28 2012
    @@ -286,6 +286,7 @@ STAGE PLANS:
    input format: org.apache.hadoop.mapred.TextInputFormat
    # buckets: -1
    output format: org.apache.hadoop.hive.ql.io.IgnoreKeyTextOutputFormat
    + primaryRegionName:
    name: tmp_unionall
    isExternal: false
  • Namit at Feb 11, 2012 at 7:50 am
    Modified: hive/trunk/metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py
    URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py?rev=1243013&r1=1243012&r2=1243013&view=diff
    ==============================================================================
    --- hive/trunk/metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py (original)
    +++ hive/trunk/metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py Sat Feb 11 07:49:28 2012
    @@ -4553,10 +4553,10 @@ class get_databases_result:
    if fid == 0:
    if ftype == TType.LIST:
    self.success = []
    - (_etype177, _size174) = iprot.readListBegin()
    - for _i178 in xrange(_size174):
    - _elem179 = iprot.readString();
    - self.success.append(_elem179)
    + (_etype184, _size181) = iprot.readListBegin()
    + for _i185 in xrange(_size181):
    + _elem186 = iprot.readString();
    + self.success.append(_elem186)
    iprot.readListEnd()
    else:
    iprot.skip(ftype)
    @@ -4579,8 +4579,8 @@ class get_databases_result:
    if self.success is not None:
    oprot.writeFieldBegin('success', TType.LIST, 0)
    oprot.writeListBegin(TType.STRING, len(self.success))
    - for iter180 in self.success:
    - oprot.writeString(iter180)
    + for iter187 in self.success:
    + oprot.writeString(iter187)
    oprot.writeListEnd()
    oprot.writeFieldEnd()
    if self.o1 is not None:
    @@ -4675,10 +4675,10 @@ class get_all_databases_result:
    if fid == 0:
    if ftype == TType.LIST:
    self.success = []
    - (_etype184, _size181) = iprot.readListBegin()
    - for _i185 in xrange(_size181):
    - _elem186 = iprot.readString();
    - self.success.append(_elem186)
    + (_etype191, _size188) = iprot.readListBegin()
    + for _i192 in xrange(_size188):
    + _elem193 = iprot.readString();
    + self.success.append(_elem193)
    iprot.readListEnd()
    else:
    iprot.skip(ftype)
    @@ -4701,8 +4701,8 @@ class get_all_databases_result:
    if self.success is not None:
    oprot.writeFieldBegin('success', TType.LIST, 0)
    oprot.writeListBegin(TType.STRING, len(self.success))
    - for iter187 in self.success:
    - oprot.writeString(iter187)
    + for iter194 in self.success:
    + oprot.writeString(iter194)
    oprot.writeListEnd()
    oprot.writeFieldEnd()
    if self.o1 is not None:
    @@ -5412,12 +5412,12 @@ class get_type_all_result:
    if fid == 0:
    if ftype == TType.MAP:
    self.success = {}
    - (_ktype189, _vtype190, _size188 ) = iprot.readMapBegin()
    - for _i192 in xrange(_size188):
    - _key193 = iprot.readString();
    - _val194 = Type()
    - _val194.read(iprot)
    - self.success[_key193] = _val194
    + (_ktype196, _vtype197, _size195 ) = iprot.readMapBegin()
    + for _i199 in xrange(_size195):
    + _key200 = iprot.readString();
    + _val201 = Type()
    + _val201.read(iprot)
    + self.success[_key200] = _val201
    iprot.readMapEnd()
    else:
    iprot.skip(ftype)
    @@ -5440,9 +5440,9 @@ class get_type_all_result:
    if self.success is not None:
    oprot.writeFieldBegin('success', TType.MAP, 0)
    oprot.writeMapBegin(TType.STRING, TType.STRUCT, len(self.success))
    - for kiter195,viter196 in self.success.items():
    - oprot.writeString(kiter195)
    - viter196.write(oprot)
    + for kiter202,viter203 in self.success.items():
    + oprot.writeString(kiter202)
    + viter203.write(oprot)
    oprot.writeMapEnd()
    oprot.writeFieldEnd()
    if self.o2 is not None:
    @@ -5573,11 +5573,11 @@ class get_fields_result:
    if fid == 0:
    if ftype == TType.LIST:
    self.success = []
    - (_etype200, _size197) = iprot.readListBegin()
    - for _i201 in xrange(_size197):
    - _elem202 = FieldSchema()
    - _elem202.read(iprot)
    - self.success.append(_elem202)
    + (_etype207, _size204) = iprot.readListBegin()
    + for _i208 in xrange(_size204):
    + _elem209 = FieldSchema()
    + _elem209.read(iprot)
    + self.success.append(_elem209)
    iprot.readListEnd()
    else:
    iprot.skip(ftype)
    @@ -5612,8 +5612,8 @@ class get_fields_result:
    if self.success is not None:
    oprot.writeFieldBegin('success', TType.LIST, 0)
    oprot.writeListBegin(TType.STRUCT, len(self.success))
    - for iter203 in self.success:
    - iter203.write(oprot)
    + for iter210 in self.success:
    + iter210.write(oprot)
    oprot.writeListEnd()
    oprot.writeFieldEnd()
    if self.o1 is not None:
    @@ -5752,11 +5752,11 @@ class get_schema_result:
    if fid == 0:
    if ftype == TType.LIST:
    self.success = []
    - (_etype207, _size204) = iprot.readListBegin()
    - for _i208 in xrange(_size204):
    - _elem209 = FieldSchema()
    - _elem209.read(iprot)
    - self.success.append(_elem209)
    + (_etype214, _size211) = iprot.readListBegin()
    + for _i215 in xrange(_size211):
    + _elem216 = FieldSchema()
    + _elem216.read(iprot)
    + self.success.append(_elem216)
    iprot.readListEnd()
    else:
    iprot.skip(ftype)
    @@ -5791,8 +5791,8 @@ class get_schema_result:
    if self.success is not None:
    oprot.writeFieldBegin('success', TType.LIST, 0)
    oprot.writeListBegin(TType.STRUCT, len(self.success))
    - for iter210 in self.success:
    - iter210.write(oprot)
    + for iter217 in self.success:
    + iter217.write(oprot)
    oprot.writeListEnd()
    oprot.writeFieldEnd()
    if self.o1 is not None:
    @@ -6244,10 +6244,10 @@ class get_tables_result:
    if fid == 0:
    if ftype == TType.LIST:
    self.success = []
    - (_etype214, _size211) = iprot.readListBegin()
    - for _i215 in xrange(_size211):
    - _elem216 = iprot.readString();
    - self.success.append(_elem216)
    + (_etype221, _size218) = iprot.readListBegin()
    + for _i222 in xrange(_size218):
    + _elem223 = iprot.readString();
    + self.success.append(_elem223)
    iprot.readListEnd()
    else:
    iprot.skip(ftype)
    @@ -6270,8 +6270,8 @@ class get_tables_result:
    if self.success is not None:
    oprot.writeFieldBegin('success', TType.LIST, 0)
    oprot.writeListBegin(TType.STRING, len(self.success))
    - for iter217 in self.success:
    - oprot.writeString(iter217)
    + for iter224 in self.success:
    + oprot.writeString(iter224)
    oprot.writeListEnd()
    oprot.writeFieldEnd()
    if self.o1 is not None:
    @@ -6384,10 +6384,10 @@ class get_all_tables_result:
    if fid == 0:
    if ftype == TType.LIST:
    self.success = []
    - (_etype221, _size218) = iprot.readListBegin()
    - for _i222 in xrange(_size218):
    - _elem223 = iprot.readString();
    - self.success.append(_elem223)
    + (_etype228, _size225) = iprot.readListBegin()
    + for _i229 in xrange(_size225):
    + _elem230 = iprot.readString();
    + self.success.append(_elem230)
    iprot.readListEnd()
    else:
    iprot.skip(ftype)
    @@ -6410,8 +6410,8 @@ class get_all_tables_result:
    if self.success is not None:
    oprot.writeFieldBegin('success', TType.LIST, 0)
    oprot.writeListBegin(TType.STRING, len(self.success))
    - for iter224 in self.success:
    - oprot.writeString(iter224)
    + for iter231 in self.success:
    + oprot.writeString(iter231)
    oprot.writeListEnd()
    oprot.writeFieldEnd()
    if self.o1 is not None:
    @@ -6628,10 +6628,10 @@ class get_table_objects_by_name_args:
    elif fid == 2:
    if ftype == TType.LIST:
    self.tbl_names = []
    - (_etype228, _size225) = iprot.readListBegin()
    - for _i229 in xrange(_size225):
    - _elem230 = iprot.readString();
    - self.tbl_names.append(_elem230)
    + (_etype235, _size232) = iprot.readListBegin()
    + for _i236 in xrange(_size232):
    + _elem237 = iprot.readString();
    + self.tbl_names.append(_elem237)
    iprot.readListEnd()
    else:
    iprot.skip(ftype)
    @@ -6652,8 +6652,8 @@ class get_table_objects_by_name_args:
    if self.tbl_names is not None:
    oprot.writeFieldBegin('tbl_names', TType.LIST, 2)
    oprot.writeListBegin(TType.STRING, len(self.tbl_names))
    - for iter231 in self.tbl_names:
    - oprot.writeString(iter231)
    + for iter238 in self.tbl_names:
    + oprot.writeString(iter238)
    oprot.writeListEnd()
    oprot.writeFieldEnd()
    oprot.writeFieldStop()
    @@ -6708,11 +6708,11 @@ class get_table_objects_by_name_result:
    if fid == 0:
    if ftype == TType.LIST:
    self.success = []
    - (_etype235, _size232) = iprot.readListBegin()
    - for _i236 in xrange(_size232):
    - _elem237 = Table()
    - _elem237.read(iprot)
    - self.success.append(_elem237)
    + (_etype242, _size239) = iprot.readListBegin()
    + for _i243 in xrange(_size239):
    + _elem244 = Table()
    + _elem244.read(iprot)
    + self.success.append(_elem244)
    iprot.readListEnd()
    else:
    iprot.skip(ftype)
    @@ -6747,8 +6747,8 @@ class get_table_objects_by_name_result:
    if self.success is not None:
    oprot.writeFieldBegin('success', TType.LIST, 0)
    oprot.writeListBegin(TType.STRUCT, len(self.success))
    - for iter238 in self.success:
    - iter238.write(oprot)
    + for iter245 in self.success:
    + iter245.write(oprot)
    oprot.writeListEnd()
    oprot.writeFieldEnd()
    if self.o1 is not None:
    @@ -6899,10 +6899,10 @@ class get_table_names_by_filter_result:
    if fid == 0:
    if ftype == TType.LIST:
    self.success = []
    - (_etype242, _size239) = iprot.readListBegin()
    - for _i243 in xrange(_size239):
    - _elem244 = iprot.readString();
    - self.success.append(_elem244)
    + (_etype249, _size246) = iprot.readListBegin()
    + for _i250 in xrange(_size246):
    + _elem251 = iprot.readString();
    + self.success.append(_elem251)
    iprot.readListEnd()
    else:
    iprot.skip(ftype)
    @@ -6937,8 +6937,8 @@ class get_table_names_by_filter_result:
    if self.success is not None:
    oprot.writeFieldBegin('success', TType.LIST, 0)
    oprot.writeListBegin(TType.STRING, len(self.success))
    - for iter245 in self.success:
    - oprot.writeString(iter245)
    + for iter252 in self.success:
    + oprot.writeString(iter252)
    oprot.writeListEnd()
    oprot.writeFieldEnd()
    if self.o1 is not None:
    @@ -7316,11 +7316,11 @@ class add_partitions_args:
    if fid == 1:
    if ftype == TType.LIST:
    self.new_parts = []
    - (_etype249, _size246) = iprot.readListBegin()
    - for _i250 in xrange(_size246):
    - _elem251 = Partition()
    - _elem251.read(iprot)
    - self.new_parts.append(_elem251)
    + (_etype256, _size253) = iprot.readListBegin()
    + for _i257 in xrange(_size253):
    + _elem258 = Partition()
    + _elem258.read(iprot)
    + self.new_parts.append(_elem258)
    iprot.readListEnd()
    else:
    iprot.skip(ftype)
    @@ -7337,8 +7337,8 @@ class add_partitions_args:
    if self.new_parts is not None:
    oprot.writeFieldBegin('new_parts', TType.LIST, 1)
    oprot.writeListBegin(TType.STRUCT, len(self.new_parts))
    - for iter252 in self.new_parts:
    - iter252.write(oprot)
    + for iter259 in self.new_parts:
    + iter259.write(oprot)
    oprot.writeListEnd()
    oprot.writeFieldEnd()
    oprot.writeFieldStop()
    @@ -7499,10 +7499,10 @@ class append_partition_args:
    elif fid == 3:
    if ftype == TType.LIST:
    self.part_vals = []
    - (_etype256, _size253) = iprot.readListBegin()
    - for _i257 in xrange(_size253):
    - _elem258 = iprot.readString();
    - self.part_vals.append(_elem258)
    + (_etype263, _size260) = iprot.readListBegin()
    + for _i264 in xrange(_size260):
    + _elem265 = iprot.readString();
    + self.part_vals.append(_elem265)
    iprot.readListEnd()
    else:
    iprot.skip(ftype)
    @@ -7527,8 +7527,8 @@ class append_partition_args:
    if self.part_vals is not None:
    oprot.writeFieldBegin('part_vals', TType.LIST, 3)
    oprot.writeListBegin(TType.STRING, len(self.part_vals))
    - for iter259 in self.part_vals:
    - oprot.writeString(iter259)
    + for iter266 in self.part_vals:
    + oprot.writeString(iter266)
    oprot.writeListEnd()
    oprot.writeFieldEnd()
    oprot.writeFieldStop()
    @@ -7876,10 +7876,10 @@ class drop_partition_args:
    elif fid == 3:
    if ftype == TType.LIST:
    self.part_vals = []
    - (_etype263, _size260) = iprot.readListBegin()
    - for _i264 in xrange(_size260):
    - _elem265 = iprot.readString();
    - self.part_vals.append(_elem265)
    + (_etype270, _size267) = iprot.readListBegin()
    + for _i271 in xrange(_size267):
    + _elem272 = iprot.readString();
    + self.part_vals.append(_elem272)
    iprot.readListEnd()
    else:
    iprot.skip(ftype)
    @@ -7909,8 +7909,8 @@ class drop_partition_args:
    if self.part_vals is not None:
    oprot.writeFieldBegin('part_vals', TType.LIST, 3)
    oprot.writeListBegin(TType.STRING, len(self.part_vals))
    - for iter266 in self.part_vals:
    - oprot.writeString(iter266)
    + for iter273 in self.part_vals:
    + oprot.writeString(iter273)
    oprot.writeListEnd()
    oprot.writeFieldEnd()
    if self.deleteData is not None:
    @@ -8243,10 +8243,10 @@ class get_partition_args:
    elif fid == 3:
    if ftype == TType.LIST:
    self.part_vals = []
    - (_etype270, _size267) = iprot.readListBegin()
    - for _i271 in xrange(_size267):
    - _elem272 = iprot.readString();
    - self.part_vals.append(_elem272)
    + (_etype277, _size274) = iprot.readListBegin()
    + for _i278 in xrange(_size274):
    + _elem279 = iprot.readString();
    + self.part_vals.append(_elem279)
    iprot.readListEnd()
    else:
    iprot.skip(ftype)
    @@ -8271,8 +8271,8 @@ class get_partition_args:
    if self.part_vals is not None:
    oprot.writeFieldBegin('part_vals', TType.LIST, 3)
    oprot.writeListBegin(TType.STRING, len(self.part_vals))
    - for iter273 in self.part_vals:
    - oprot.writeString(iter273)
    + for iter280 in self.part_vals:
    + oprot.writeString(iter280)
    oprot.writeListEnd()
    oprot.writeFieldEnd()
    oprot.writeFieldStop()
    @@ -8427,10 +8427,10 @@ class get_partition_with_auth_args:
    elif fid == 3:
    if ftype == TType.LIST:
    self.part_vals = []
    - (_etype277, _size274) = iprot.readListBegin()
    - for _i278 in xrange(_size274):
    - _elem279 = iprot.readString();
    - self.part_vals.append(_elem279)
    + (_etype284, _size281) = iprot.readListBegin()
    + for _i285 in xrange(_size281):
    + _elem286 = iprot.readString();
    + self.part_vals.append(_elem286)
    iprot.readListEnd()
    else:
    iprot.skip(ftype)
    @@ -8442,10 +8442,10 @@ class get_partition_with_auth_args:
    elif fid == 5:
    if ftype == TType.LIST:
    self.group_names = []
    - (_etype283, _size280) = iprot.readListBegin()
    - for _i284 in xrange(_size280):
    - _elem285 = iprot.readString();
    - self.group_names.append(_elem285)
    + (_etype290, _size287) = iprot.readListBegin()
    + for _i291 in xrange(_size287):
    + _elem292 = iprot.readString();
    + self.group_names.append(_elem292)
    iprot.readListEnd()
    else:
    iprot.skip(ftype)
    @@ -8470,8 +8470,8 @@ class get_partition_with_auth_args:
    if self.part_vals is not None:
    oprot.writeFieldBegin('part_vals', TType.LIST, 3)
    oprot.writeListBegin(TType.STRING, len(self.part_vals))
    - for iter286 in self.part_vals:
    - oprot.writeString(iter286)
    + for iter293 in self.part_vals:
    + oprot.writeString(iter293)
    oprot.writeListEnd()
    oprot.writeFieldEnd()
    if self.user_name is not None:
    @@ -8481,8 +8481,8 @@ class get_partition_with_auth_args:
    if self.group_names is not None:
    oprot.writeFieldBegin('group_names', TType.LIST, 5)
    oprot.writeListBegin(TType.STRING, len(self.group_names))
    - for iter287 in self.group_names:
    - oprot.writeString(iter287)
    + for iter294 in self.group_names:
    + oprot.writeString(iter294)
    oprot.writeListEnd()
    oprot.writeFieldEnd()
    oprot.writeFieldStop()
    @@ -8874,11 +8874,11 @@ class get_partitions_result:
    if fid == 0:
    if ftype == TType.LIST:
    self.success = []
    - (_etype291, _size288) = iprot.readListBegin()
    - for _i292 in xrange(_size288):
    - _elem293 = Partition()
    - _elem293.read(iprot)
    - self.success.append(_elem293)
    + (_etype298, _size295) = iprot.readListBegin()
    + for _i299 in xrange(_size295):
    + _elem300 = Partition()
    + _elem300.read(iprot)
    + self.success.append(_elem300)
    iprot.readListEnd()
    else:
    iprot.skip(ftype)
    @@ -8907,8 +8907,8 @@ class get_partitions_result:
    if self.success is not None:
    oprot.writeFieldBegin('success', TType.LIST, 0)
    oprot.writeListBegin(TType.STRUCT, len(self.success))
    - for iter294 in self.success:
    - iter294.write(oprot)
    + for iter301 in self.success:
    + iter301.write(oprot)
    oprot.writeListEnd()
    oprot.writeFieldEnd()
    if self.o1 is not None:
    @@ -8995,10 +8995,10 @@ class get_partitions_with_auth_args:
    elif fid == 5:
    if ftype == TType.LIST:
    self.group_names = []
    - (_etype298, _size295) = iprot.readListBegin()
    - for _i299 in xrange(_size295):
    - _elem300 = iprot.readString();
    - self.group_names.append(_elem300)
    + (_etype305, _size302) = iprot.readListBegin()
    + for _i306 in xrange(_size302):
    + _elem307 = iprot.readString();
    + self.group_names.append(_elem307)
    iprot.readListEnd()
    else:
    iprot.skip(ftype)
    @@ -9031,8 +9031,8 @@ class get_partitions_with_auth_args:
    if self.group_names is not None:
    oprot.writeFieldBegin('group_names', TType.LIST, 5)
    oprot.writeListBegin(TType.STRING, len(self.group_names))
    - for iter301 in self.group_names:
    - oprot.writeString(iter301)
    + for iter308 in self.group_names:
    + oprot.writeString(iter308)
    oprot.writeListEnd()
    oprot.writeFieldEnd()
    oprot.writeFieldStop()
    @@ -9084,11 +9084,11 @@ class get_partitions_with_auth_result:
    if fid == 0:
    if ftype == TType.LIST:
    self.success = []
    - (_etype305, _size302) = iprot.readListBegin()
    - for _i306 in xrange(_size302):
    - _elem307 = Partition()
    - _elem307.read(iprot)
    - self.success.append(_elem307)
    + (_etype312, _size309) = iprot.readListBegin()
    + for _i313 in xrange(_size309):
    + _elem314 = Partition()
    + _elem314.read(iprot)
    + self.success.append(_elem314)
    iprot.readListEnd()
    else:
    iprot.skip(ftype)
    @@ -9117,8 +9117,8 @@ class get_partitions_with_auth_result:
    if self.success is not None:
    oprot.writeFieldBegin('success', TType.LIST, 0)
    oprot.writeListBegin(TType.STRUCT, len(self.success))
    - for iter308 in self.success:
    - iter308.write(oprot)
    + for iter315 in self.success:
    + iter315.write(oprot)
    oprot.writeListEnd()
    oprot.writeFieldEnd()
    if self.o1 is not None:
    @@ -9259,10 +9259,10 @@ class get_partition_names_result:
    if fid == 0:
    if ftype == TType.LIST:
    self.success = []
    - (_etype312, _size309) = iprot.readListBegin()
    - for _i313 in xrange(_size309):
    - _elem314 = iprot.readString();
    - self.success.append(_elem314)
    + (_etype319, _size316) = iprot.readListBegin()
    + for _i320 in xrange(_size316):
    + _elem321 = iprot.readString();
    + self.success.append(_elem321)
    iprot.readListEnd()
    else:
    iprot.skip(ftype)
    @@ -9285,8 +9285,8 @@ class get_partition_names_result:
    if self.success is not None:
    oprot.writeFieldBegin('success', TType.LIST, 0)
    oprot.writeListBegin(TType.STRING, len(self.success))
    - for iter315 in self.success:
    - oprot.writeString(iter315)
    + for iter322 in self.success:
    + oprot.writeString(iter322)
    oprot.writeListEnd()
    oprot.writeFieldEnd()
    if self.o2 is not None:
    @@ -9356,10 +9356,10 @@ class get_partitions_ps_args:
    elif fid == 3:
    if ftype == TType.LIST:
    self.part_vals = []
    - (_etype319, _size316) = iprot.readListBegin()
    - for _i320 in xrange(_size316):
    - _elem321 = iprot.readString();
    - self.part_vals.append(_elem321)
    + (_etype326, _size323) = iprot.readListBegin()
    + for _i327 in xrange(_size323):
    + _elem328 = iprot.readString();
    + self.part_vals.append(_elem328)
    iprot.readListEnd()
    else:
    iprot.skip(ftype)
    @@ -9389,8 +9389,8 @@ class get_partitions_ps_args:
    if self.part_vals is not None:
    oprot.writeFieldBegin('part_vals', TType.LIST, 3)
    oprot.writeListBegin(TType.STRING, len(self.part_vals))
    - for iter322 in self.part_vals:
    - oprot.writeString(iter322)
    + for iter329 in self.part_vals:
    + oprot.writeString(iter329)
    oprot.writeListEnd()
    oprot.writeFieldEnd()
    if self.max_parts is not None:
    @@ -9446,11 +9446,11 @@ class get_partitions_ps_result:
    if fid == 0:
    if ftype == TType.LIST:
    self.success = []
    - (_etype326, _size323) = iprot.readListBegin()
    - for _i327 in xrange(_size323):
    - _elem328 = Partition()
    - _elem328.read(iprot)
    - self.success.append(_elem328)
    + (_etype333, _size330) = iprot.readListBegin()
    + for _i334 in xrange(_size330):
    + _elem335 = Partition()
    + _elem335.read(iprot)
    + self.success.append(_elem335)
    iprot.readListEnd()
    else:
    iprot.skip(ftype)
    @@ -9479,8 +9479,8 @@ class get_partitions_ps_result:
    if self.success is not None:
    oprot.writeFieldBegin('success', TType.LIST, 0)
    oprot.writeListBegin(TType.STRUCT, len(self.success))
    - for iter329 in self.success:
    - iter329.write(oprot)
    + for iter336 in self.success:
    + iter336.write(oprot)
    oprot.writeListEnd()
    oprot.writeFieldEnd()
    if self.o1 is not None:
    @@ -9560,10 +9560,10 @@ class get_partitions_ps_with_auth_args:
    elif fid == 3:
    if ftype == TType.LIST:
    self.part_vals = []
    - (_etype333, _size330) = iprot.readListBegin()
    - for _i334 in xrange(_size330):
    - _elem335 = iprot.readString();
    - self.part_vals.append(_elem335)
    + (_etype340, _size337) = iprot.readListBegin()
    + for _i341 in xrange(_size337):
    + _elem342 = iprot.readString();
    + self.part_vals.append(_elem342)
    iprot.readListEnd()
    else:
    iprot.skip(ftype)
    @@ -9580,10 +9580,10 @@ class get_partitions_ps_with_auth_args:
    elif fid == 6:
    if ftype == TType.LIST:
    self.group_names = []
    - (_etype339, _size336) = iprot.readListBegin()
    - for _i340 in xrange(_size336):
    - _elem341 = iprot.readString();
    - self.group_names.append(_elem341)
    + (_etype346, _size343) = iprot.readListBegin()
    + for _i347 in xrange(_size343):
    + _elem348 = iprot.readString();
    + self.group_names.append(_elem348)
    iprot.readListEnd()
    else:
    iprot.skip(ftype)
    @@ -9608,8 +9608,8 @@ class get_partitions_ps_with_auth_args:
    if self.part_vals is not None:
    oprot.writeFieldBegin('part_vals', TType.LIST, 3)
    oprot.writeListBegin(TType.STRING, len(self.part_vals))
    - for iter342 in self.part_vals:
    - oprot.writeString(iter342)
    + for iter349 in self.part_vals:
    + oprot.writeString(iter349)
    oprot.writeListEnd()
    oprot.writeFieldEnd()
    if self.max_parts is not None:
    @@ -9623,8 +9623,8 @@ class get_partitions_ps_with_auth_args:
    if self.group_names is not None:
    oprot.writeFieldBegin('group_names', TType.LIST, 6)
    oprot.writeListBegin(TType.STRING, len(self.group_names))
    - for iter343 in self.group_names:
    - oprot.writeString(iter343)
    + for iter350 in self.group_names:
    + oprot.writeString(iter350)
    oprot.writeListEnd()
    oprot.writeFieldEnd()
    oprot.writeFieldStop()
    @@ -9676,11 +9676,11 @@ class get_partitions_ps_with_auth_result
    if fid == 0:
    if ftype == TType.LIST:
    self.success = []
    - (_etype347, _size344) = iprot.readListBegin()
    - for _i348 in xrange(_size344):
    - _elem349 = Partition()
    - _elem349.read(iprot)
    - self.success.append(_elem349)
    + (_etype354, _size351) = iprot.readListBegin()
    + for _i355 in xrange(_size351):
    + _elem356 = Partition()
    + _elem356.read(iprot)
    + self.success.append(_elem356)
    iprot.readListEnd()
    else:
    iprot.skip(ftype)
    @@ -9709,8 +9709,8 @@ class get_partitions_ps_with_auth_result
    if self.success is not None:
    oprot.writeFieldBegin('success', TType.LIST, 0)
    oprot.writeListBegin(TType.STRUCT, len(self.success))
    - for iter350 in self.success:
    - iter350.write(oprot)
    + for iter357 in self.success:
    + iter357.write(oprot)
    oprot.writeListEnd()
    oprot.writeFieldEnd()
    if self.o1 is not None:
    @@ -9784,10 +9784,10 @@ class get_partition_names_ps_args:
    elif fid == 3:
    if ftype == TType.LIST:
    self.part_vals = []
    - (_etype354, _size351) = iprot.readListBegin()
    - for _i355 in xrange(_size351):
    - _elem356 = iprot.readString();
    - self.part_vals.append(_elem356)
    + (_etype361, _size358) = iprot.readListBegin()
    + for _i362 in xrange(_size358):
    + _elem363 = iprot.readString();
    + self.part_vals.append(_elem363)
    iprot.readListEnd()
    else:
    iprot.skip(ftype)
    @@ -9817,8 +9817,8 @@ class get_partition_names_ps_args:
    if self.part_vals is not None:
    oprot.writeFieldBegin('part_vals', TType.LIST, 3)
    oprot.writeListBegin(TType.STRING, len(self.part_vals))
    - for iter357 in self.part_vals:
    - oprot.writeString(iter357)
    + for iter364 in self.part_vals:
    + oprot.writeString(iter364)
    oprot.writeListEnd()
    oprot.writeFieldEnd()
    if self.max_parts is not None:
    @@ -9874,10 +9874,10 @@ class get_partition_names_ps_result:
    if fid == 0:
    if ftype == TType.LIST:
    self.success = []
    - (_etype361, _size358) = iprot.readListBegin()
    - for _i362 in xrange(_size358):
    - _elem363 = iprot.readString();
    - self.success.append(_elem363)
    + (_etype368, _size365) = iprot.readListBegin()
    + for _i369 in xrange(_size365):
    + _elem370 = iprot.readString();
    + self.success.append(_elem370)
    iprot.readListEnd()
    else:
    iprot.skip(ftype)
    @@ -9906,8 +9906,8 @@ class get_partition_names_ps_result:
    if self.success is not None:
    oprot.writeFieldBegin('success', TType.LIST, 0)
    oprot.writeListBegin(TType.STRING, len(self.success))
    - for iter364 in self.success:
    - oprot.writeString(iter364)
    + for iter371 in self.success:
    + oprot.writeString(iter371)
    oprot.writeListEnd()
    oprot.writeFieldEnd()
    if self.o1 is not None:
    @@ -10063,11 +10063,11 @@ class get_partitions_by_filter_result:
    if fid == 0:
    if ftype == TType.LIST:
    self.success = []
    - (_etype368, _size365) = iprot.readListBegin()
    - for _i369 in xrange(_size365):
    - _elem370 = Partition()
    - _elem370.read(iprot)
    - self.success.append(_elem370)
    + (_etype375, _size372) = iprot.readListBegin()
    + for _i376 in xrange(_size372):
    + _elem377 = Partition()
    + _elem377.read(iprot)
    + self.success.append(_elem377)
    iprot.readListEnd()
    else:
    iprot.skip(ftype)
    @@ -10096,8 +10096,8 @@ class get_partitions_by_filter_result:
    if self.success is not None:
    oprot.writeFieldBegin('success', TType.LIST, 0)
    oprot.writeListBegin(TType.STRUCT, len(self.success))
    - for iter371 in self.success:
    - iter371.write(oprot)
    + for iter378 in self.success:
    + iter378.write(oprot)
    oprot.writeListEnd()
    oprot.writeFieldEnd()
    if self.o1 is not None:
    @@ -10168,10 +10168,10 @@ class get_partitions_by_names_args:
    elif fid == 3:
    if ftype == TType.LIST:
    self.names = []
    - (_etype375, _size372) = iprot.readListBegin()
    - for _i376 in xrange(_size372):
    - _elem377 = iprot.readString();
    - self.names.append(_elem377)
    + (_etype382, _size379) = iprot.readListBegin()
    + for _i383 in xrange(_size379):
    + _elem384 = iprot.readString();
    + self.names.append(_elem384)
    iprot.readListEnd()
    else:
    iprot.skip(ftype)
    @@ -10196,8 +10196,8 @@ class get_partitions_by_names_args:
    if self.names is not None:
    oprot.writeFieldBegin('names', TType.LIST, 3)
    oprot.writeListBegin(TType.STRING, len(self.names))
    - for iter378 in self.names:
    - oprot.writeString(iter378)
    + for iter385 in self.names:
    + oprot.writeString(iter385)
    oprot.writeListEnd()
    oprot.writeFieldEnd()
    oprot.writeFieldStop()
    @@ -10249,11 +10249,11 @@ class get_partitions_by_names_result:
    if fid == 0:
    if ftype == TType.LIST:
    self.success = []
    - (_etype382, _size379) = iprot.readListBegin()
    - for _i383 in xrange(_size379):
    - _elem384 = Partition()
    - _elem384.read(iprot)
    - self.success.append(_elem384)
    + (_etype389, _size386) = iprot.readListBegin()
    + for _i390 in xrange(_size386):
    + _elem391 = Partition()
    + _elem391.read(iprot)
    + self.success.append(_elem391)
    iprot.readListEnd()
    else:
    iprot.skip(ftype)
    @@ -10282,8 +10282,8 @@ class get_partitions_by_names_result:
    if self.success is not None:
    oprot.writeFieldBegin('success', TType.LIST, 0)
    oprot.writeListBegin(TType.STRUCT, len(self.success))
    - for iter385 in self.success:
    - iter385.write(oprot)
    + for iter392 in self.success:
    + iter392.write(oprot)
    oprot.writeListEnd()
    oprot.writeFieldEnd()
    if self.o1 is not None:
    @@ -10516,10 +10516,10 @@ class rename_partition_args:
    elif fid == 3:
    if ftype == TType.LIST:
    self.part_vals = []
    - (_etype389, _size386) = iprot.readListBegin()
    - for _i390 in xrange(_size386):
    - _elem391 = iprot.readString();
    - self.part_vals.append(_elem391)
    + (_etype396, _size393) = iprot.readListBegin()
    + for _i397 in xrange(_size393):
    + _elem398 = iprot.readString();
    + self.part_vals.append(_elem398)
    iprot.readListEnd()
    else:
    iprot.skip(ftype)
    @@ -10550,8 +10550,8 @@ class rename_partition_args:
    if self.part_vals is not None:
    oprot.writeFieldBegin('part_vals', TType.LIST, 3)
    oprot.writeListBegin(TType.STRING, len(self.part_vals))
    - for iter392 in self.part_vals:
    - oprot.writeString(iter392)
    + for iter399 in self.part_vals:
    + oprot.writeString(iter399)
    oprot.writeListEnd()
    oprot.writeFieldEnd()
    if self.new_part is not None:
    @@ -10882,10 +10882,10 @@ class partition_name_to_vals_result:
    if fid == 0:
    if ftype == TType.LIST:
    self.success = []
    - (_etype396, _size393) = iprot.readListBegin()
    - for _i397 in xrange(_size393):
    - _elem398 = iprot.readString();
    - self.success.append(_elem398)
    + (_etype403, _size400) = iprot.readListBegin()
    + for _i404 in xrange(_size400):
    + _elem405 = iprot.readString();
    + self.success.append(_elem405)
    iprot.readListEnd()
    else:
    iprot.skip(ftype)
    @@ -10908,8 +10908,8 @@ class partition_name_to_vals_result:
    if self.success is not None:
    oprot.writeFieldBegin('success', TType.LIST, 0)
    oprot.writeListBegin(TType.STRING, len(self.success))
    - for iter399 in self.success:
    - oprot.writeString(iter399)
    + for iter406 in self.success:
    + oprot.writeString(iter406)
    oprot.writeListEnd()
    oprot.writeFieldEnd()
    if self.o1 is not None:
    @@ -11022,11 +11022,11 @@ class partition_name_to_spec_result:
    if fid == 0:
    if ftype == TType.MAP:
    self.success = {}
    - (_ktype401, _vtype402, _size400 ) = iprot.readMapBegin()
    - for _i404 in xrange(_size400):
    - _key405 = iprot.readString();
    - _val406 = iprot.readString();
    - self.success[_key405] = _val406
    + (_ktype408, _vtype409, _size407 ) = iprot.readMapBegin()
    + for _i411 in xrange(_size407):
    + _key412 = iprot.readString();
    + _val413 = iprot.readString();
    + self.success[_key412] = _val413
    iprot.readMapEnd()
    else:
    iprot.skip(ftype)
    @@ -11049,9 +11049,9 @@ class partition_name_to_spec_result:
    if self.success is not None:
    oprot.writeFieldBegin('success', TType.MAP, 0)
    oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.success))
    - for kiter407,viter408 in self.success.items():
    - oprot.writeString(kiter407)
    - oprot.writeString(viter408)
    + for kiter414,viter415 in self.success.items():
    + oprot.writeString(kiter414)
    + oprot.writeString(viter415)
    oprot.writeMapEnd()
    oprot.writeFieldEnd()
    if self.o1 is not None:
    @@ -11121,11 +11121,11 @@ class markPartitionForEvent_args:
    elif fid == 3:
    if ftype == TType.MAP:
    self.part_vals = {}
    - (_ktype410, _vtype411, _size409 ) = iprot.readMapBegin()
    - for _i413 in xrange(_size409):
    - _key414 = iprot.readString();
    - _val415 = iprot.readString();
    - self.part_vals[_key414] = _val415
    + (_ktype417, _vtype418, _size416 ) = iprot.readMapBegin()
    + for _i420 in xrange(_size416):
    + _key421 = iprot.readString();
    + _val422 = iprot.readString();
    + self.part_vals[_key421] = _val422
    iprot.readMapEnd()
    else:
    iprot.skip(ftype)
    @@ -11155,9 +11155,9 @@ class markPartitionForEvent_args:
    if self.part_vals is not None:
    oprot.writeFieldBegin('part_vals', TType.MAP, 3)
    oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.part_vals))
    - for kiter416,viter417 in self.part_vals.items():
    - oprot.writeString(kiter416)
    - oprot.writeString(viter417)
    + for kiter423,viter424 in self.part_vals.items():
    + oprot.writeString(kiter423)
    + oprot.writeString(viter424)
    oprot.writeMapEnd()
    oprot.writeFieldEnd()
    if self.eventType is not None:
    @@ -11353,11 +11353,11 @@ class isPartitionMarkedForEvent_args:
    elif fid == 3:
    if ftype == TType.MAP:
    self.part_vals = {}
    - (_ktype419, _vtype420, _size418 ) = iprot.readMapBegin()
    - for _i422 in xrange(_size418):
    - _key423 = iprot.readString();
    - _val424 = iprot.readString();
    - self.part_vals[_key423] = _val424
    + (_ktype426, _vtype427, _size425 ) = iprot.readMapBegin()
    + for _i429 in xrange(_size425):
    + _key430 = iprot.readString();
    + _val431 = iprot.readString();
    + self.part_vals[_key430] = _val431
    iprot.readMapEnd()
    else:
    iprot.skip(ftype)
    @@ -11387,9 +11387,9 @@ class isPartitionMarkedForEvent_args:
    if self.part_vals is not None:
    oprot.writeFieldBegin('part_vals', TType.MAP, 3)
    oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.part_vals))
    - for kiter425,viter426 in self.part_vals.items():
    - oprot.writeString(kiter425)
    - oprot.writeString(viter426)
    + for kiter432,viter433 in self.part_vals.items():
    + oprot.writeString(kiter432)
    + oprot.writeString(viter433)
    oprot.writeMapEnd()
    oprot.writeFieldEnd()
    if self.eventType is not None:
    @@ -12361,11 +12361,11 @@ class get_indexes_result:
    if fid == 0:
    if ftype == TType.LIST:
    self.success = []
    - (_etype430, _size427) = iprot.readListBegin()
    - for _i431 in xrange(_size427):
    - _elem432 = Index()
    - _elem432.read(iprot)
    - self.success.append(_elem432)
    + (_etype437, _size434) = iprot.readListBegin()
    + for _i438 in xrange(_size434):
    + _elem439 = Index()
    + _elem439.read(iprot)
    + self.success.append(_elem439)
    iprot.readListEnd()
    else:
    iprot.skip(ftype)
    @@ -12394,8 +12394,8 @@ class get_indexes_result:
    if self.success is not None:
    oprot.writeFieldBegin('success', TType.LIST, 0)
    oprot.writeListBegin(TType.STRUCT, len(self.success))
    - for iter433 in self.success:
    - iter433.write(oprot)
    + for iter440 in self.success:
    + iter440.write(oprot)
    oprot.writeListEnd()
    oprot.writeFieldEnd()
    if self.o1 is not None:
    @@ -12536,10 +12536,10 @@ class get_index_names_result:
    if fid == 0:
    if ftype == TType.LIST:
    self.success = []
    - (_etype437, _size434) = iprot.readListBegin()
    - for _i438 in xrange(_size434):
    - _elem439 = iprot.readString();
    - self.success.append(_elem439)
    + (_etype444, _size441) = iprot.readListBegin()
    + for _i445 in xrange(_size441):
    + _elem446 = iprot.readString();
    + self.success.append(_elem446)
    iprot.readListEnd()
    else:
    iprot.skip(ftype)
    @@ -12562,8 +12562,8 @@ class get_index_names_result:
    if self.success is not None:
    oprot.writeFieldBegin('success', TType.LIST, 0)
    oprot.writeListBegin(TType.STRING, len(self.success))
    - for iter440 in self.success:
    - oprot.writeString(iter440)
    + for iter447 in self.success:
    + oprot.writeString(iter447)
    oprot.writeListEnd()
    oprot.writeFieldEnd()
    if self.o2 is not None:
    @@ -12923,10 +12923,10 @@ class get_role_names_result:
    if fid == 0:
    if ftype == TType.LIST:
    self.success = []
    - (_etype444, _size441) = iprot.readListBegin()
    - for _i445 in xrange(_size441):
    - _elem446 = iprot.readString();
    - self.success.append(_elem446)
    + (_etype451, _size448) = iprot.readListBegin()
    + for _i452 in xrange(_size448):
    + _elem453 = iprot.readString();
    + self.success.append(_elem453)
    iprot.readListEnd()
    else:
    iprot.skip(ftype)
    @@ -12949,8 +12949,8 @@ class get_role_names_result:
    if self.success is not None:
    oprot.writeFieldBegin('success', TType.LIST, 0)
    oprot.writeListBegin(TType.STRING, len(self.success))
    - for iter447 in self.success:
    - oprot.writeString(iter447)
    + for iter454 in self.success:
    + oprot.writeString(iter454)
    oprot.writeListEnd()
    oprot.writeFieldEnd()
    if self.o1 is not None:
    @@ -13423,11 +13423,11 @@ class list_roles_result:
    if fid == 0:
    if ftype == TType.LIST:
    self.success = []
    - (_etype451, _size448) = iprot.readListBegin()
    - for _i452 in xrange(_size448):
    - _elem453 = Role()
    - _elem453.read(iprot)
    - self.success.append(_elem453)
    + (_etype458, _size455) = iprot.readListBegin()
    + for _i459 in xrange(_size455):
    + _elem460 = Role()
    + _elem460.read(iprot)
    + self.success.append(_elem460)
    iprot.readListEnd()
    else:
    iprot.skip(ftype)
    @@ -13450,8 +13450,8 @@ class list_roles_result:
    if self.success is not None:
    oprot.writeFieldBegin('success', TType.LIST, 0)
    oprot.writeListBegin(TType.STRUCT, len(self.success))
    - for iter454 in self.success:
    - iter454.write(oprot)
    + for iter461 in self.success:
    + iter461.write(oprot)
    oprot.writeListEnd()
    oprot.writeFieldEnd()
    if self.o1 is not None:
    @@ -13519,10 +13519,10 @@ class get_privilege_set_args:
    elif fid == 3:
    if ftype == TType.LIST:
    self.group_names = []
    - (_etype458, _size455) = iprot.readListBegin()
    - for _i459 in xrange(_size455):
    - _elem460 = iprot.readString();
    - self.group_names.append(_elem460)
    + (_etype465, _size462) = iprot.readListBegin()
    + for _i466 in xrange(_size462):
    + _elem467 = iprot.readString();
    + self.group_names.append(_elem467)
    iprot.readListEnd()
    else:
    iprot.skip(ftype)
    @@ -13547,8 +13547,8 @@ class get_privilege_set_args:
    if self.group_names is not None:
    oprot.writeFieldBegin('group_names', TType.LIST, 3)
    oprot.writeListBegin(TType.STRING, len(self.group_names))
    - for iter461 in self.group_names:
    - oprot.writeString(iter461)
    + for iter468 in self.group_names:
    + oprot.writeString(iter468)
    oprot.writeListEnd()
    oprot.writeFieldEnd()
    oprot.writeFieldStop()
    @@ -13755,11 +13755,11 @@ class list_privileges_result:
    if fid == 0:
    if ftype == TType.LIST:
    self.success = []
    - (_etype465, _size462) = iprot.readListBegin()
    - for _i466 in xrange(_size462):
    - _elem467 = HiveObjectPrivilege()
    - _elem467.read(iprot)
    - self.success.append(_elem467)
    + (_etype472, _size469) = iprot.readListBegin()
    + for _i473 in xrange(_size469):
    + _elem474 = HiveObjectPrivilege()
    + _elem474.read(iprot)
    + self.success.append(_elem474)
    iprot.readListEnd()
    else:
    iprot.skip(ftype)
    @@ -13782,8 +13782,8 @@ class list_privileges_result:
    if self.success is not None:
    oprot.writeFieldBegin('success', TType.LIST, 0)
    oprot.writeListBegin(TType.STRUCT, len(self.success))
    - for iter468 in self.success:
    - iter468.write(oprot)
    + for iter475 in self.success:
    + iter475.write(oprot)
    oprot.writeListEnd()
    oprot.writeFieldEnd()
    if self.o1 is not None:
    @@ -14108,10 +14108,10 @@ class set_ugi_args:
    elif fid == 2:
    if ftype == TType.LIST:
    self.group_names = []
    - (_etype472, _size469) = iprot.readListBegin()
    - for _i473 in xrange(_size469):
    - _elem474 = iprot.readString();
    - self.group_names.append(_elem474)
    + (_etype479, _size476) = iprot.readListBegin()
    + for _i480 in xrange(_size476):
    + _elem481 = iprot.readString();
    + self.group_names.append(_elem481)
    iprot.readListEnd()
    else:
    iprot.skip(ftype)
    @@ -14132,8 +14132,8 @@ class set_ugi_args:
    if self.group_names is not None:
    oprot.writeFieldBegin('group_names', TType.LIST, 2)
    oprot.writeListBegin(TType.STRING, len(self.group_names))
    - for iter475 in self.group_names:
    - oprot.writeString(iter475)
    + for iter482 in self.group_names:
    + oprot.writeString(iter482)
    oprot.writeListEnd()
    oprot.writeFieldEnd()
    oprot.writeFieldStop()
    @@ -14182,10 +14182,10 @@ class set_ugi_result:
    if fid == 0:
    if ftype == TType.LIST:
    self.success = []
    - (_etype479, _size476) = iprot.readListBegin()
    - for _i480 in xrange(_size476):
    - _elem481 = iprot.readString();
    - self.success.append(_elem481)
    + (_etype486, _size483) = iprot.readListBegin()
    + for _i487 in xrange(_size483):
    + _elem488 = iprot.readString();
    + self.success.append(_elem488)
    iprot.readListEnd()
    else:
    iprot.skip(ftype)
    @@ -14208,8 +14208,8 @@ class set_ugi_result:
    if self.success is not None:
    oprot.writeFieldBegin('success', TType.LIST, 0)
    oprot.writeListBegin(TType.STRING, len(self.success))
    - for iter482 in self.success:
    - oprot.writeString(iter482)
    + for iter489 in self.success:
    + oprot.writeString(iter489)
    oprot.writeListEnd()
    oprot.writeFieldEnd()
    if self.o1 is not None:

    Modified: hive/trunk/metastore/src/gen/thrift/gen-py/hive_metastore/ttypes.py
    URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/gen/thrift/gen-py/hive_metastore/ttypes.py?rev=1243013&r1=1243012&r2=1243013&view=diff
    ==============================================================================
    --- hive/trunk/metastore/src/gen/thrift/gen-py/hive_metastore/ttypes.py (original)
    +++ hive/trunk/metastore/src/gen/thrift/gen-py/hive_metastore/ttypes.py Sat Feb 11 07:49:28 2012
    @@ -1230,6 +1230,78 @@ class Order:
    def __ne__(self, other):
    return not (self == other)

    +class RegionStorageDescriptor:
    + """
    + Attributes:
    + - regionName
    + - location
    + """
    +
    + thrift_spec = (
    + None, # 0
    + (1, TType.STRING, 'regionName', None, None, ), # 1
    + (2, TType.STRING, 'location', None, None, ), # 2
    + )
    +
    + def __init__(self, regionName=None, location=None,):
    + self.regionName = regionName
    + self.location = location
    +
    + def read(self, iprot):
    + if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
    + fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
    + return
    + iprot.readStructBegin()
    + while True:
    + (fname, ftype, fid) = iprot.readFieldBegin()
    + if ftype == TType.STOP:
    + break
    + if fid == 1:
    + if ftype == TType.STRING:
    + self.regionName = iprot.readString();
    + else:
    + iprot.skip(ftype)
    + elif fid == 2:
    + if ftype == TType.STRING:
    + self.location = iprot.readString();
    + else:
    + iprot.skip(ftype)
    + else:
    + iprot.skip(ftype)
    + iprot.readFieldEnd()
    + iprot.readStructEnd()
    +
    + def write(self, oprot):
    + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
    + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
    + return
    + oprot.writeStructBegin('RegionStorageDescriptor')
    + if self.regionName is not None:
    + oprot.writeFieldBegin('regionName', TType.STRING, 1)
    + oprot.writeString(self.regionName)
    + oprot.writeFieldEnd()
    + if self.location is not None:
    + oprot.writeFieldBegin('location', TType.STRING, 2)
    + oprot.writeString(self.location)
    + oprot.writeFieldEnd()
    + oprot.writeFieldStop()
    + oprot.writeStructEnd()
    +
    + def validate(self):
    + return
    +
    +
    + def __repr__(self):
    + L = ['%s=%r' % (key, value)
    + for key, value in self.__dict__.iteritems()]
    + return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
    +
    + def __eq__(self, other):
    + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
    +
    + def __ne__(self, other):
    + return not (self == other)
    +
    class StorageDescriptor:
    """
    Attributes:
    @@ -1243,6 +1315,8 @@ class StorageDescriptor:
    - bucketCols
    - sortCols
    - parameters
    + - primaryRegionName
    + - secondaryRegions
    """

    thrift_spec = (
    @@ -1257,9 +1331,11 @@ class StorageDescriptor:
    (8, TType.LIST, 'bucketCols', (TType.STRING,None), None, ), # 8
    (9, TType.LIST, 'sortCols', (TType.STRUCT,(Order, Order.thrift_spec)), None, ), # 9
    (10, TType.MAP, 'parameters', (TType.STRING,None,TType.STRING,None), None, ), # 10
    + (11, TType.STRING, 'primaryRegionName', None, None, ), # 11
    + (12, TType.LIST, 'secondaryRegions', (TType.STRUCT,(RegionStorageDescriptor, RegionStorageDescriptor.thrift_spec)), None, ), # 12
    )

    - def __init__(self, cols=None, location=None, inputFormat=None, outputFormat=None, compressed=None, numBuckets=None, serdeInfo=None, bucketCols=None, sortCols=None, parameters=None,):
    + def __init__(self, cols=None, location=None, inputFormat=None, outputFormat=None, compressed=None, numBuckets=None, serdeInfo=None, bucketCols=None, sortCols=None, parameters=None, primaryRegionName=None, secondaryRegions=None,):
    self.cols = cols
    self.location = location
    self.inputFormat = inputFormat
    @@ -1270,6 +1346,8 @@ class StorageDescriptor:
    self.bucketCols = bucketCols
    self.sortCols = sortCols
    self.parameters = parameters
    + self.primaryRegionName = primaryRegionName
    + self.secondaryRegions = secondaryRegions

    def read(self, iprot):
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
    @@ -1354,6 +1432,22 @@ class StorageDescriptor:
    iprot.readMapEnd()
    else:
    iprot.skip(ftype)
    + elif fid == 11:
    + if ftype == TType.STRING:
    + self.primaryRegionName = iprot.readString();
    + else:
    + iprot.skip(ftype)
    + elif fid == 12:
    + if ftype == TType.LIST:
    + self.secondaryRegions = []
    + (_etype115, _size112) = iprot.readListBegin()
    + for _i116 in xrange(_size112):
    + _elem117 = RegionStorageDescriptor()
    + _elem117.read(iprot)
    + self.secondaryRegions.append(_elem117)
    + iprot.readListEnd()
    + else:
    + iprot.skip(ftype)
    else:
    iprot.skip(ftype)
    iprot.readFieldEnd()
    @@ -1367,8 +1461,8 @@ class StorageDescriptor:
    if self.cols is not None:
    oprot.writeFieldBegin('cols', TType.LIST, 1)
    oprot.writeListBegin(TType.STRUCT, len(self.cols))
    - for iter112 in self.cols:
    - iter112.write(oprot)
    + for iter118 in self.cols:
    + iter118.write(oprot)
    oprot.writeListEnd()
    oprot.writeFieldEnd()
    if self.location is not None:
    @@ -1398,25 +1492,36 @@ class StorageDescriptor:
    if self.bucketCols is not None:
    oprot.writeFieldBegin('bucketCols', TType.LIST, 8)
    oprot.writeListBegin(TType.STRING, len(self.bucketCols))
    - for iter113 in self.bucketCols:
    - oprot.writeString(iter113)
    + for iter119 in self.bucketCols:
    + oprot.writeString(iter119)
    oprot.writeListEnd()
    oprot.writeFieldEnd()
    if self.sortCols is not None:
    oprot.writeFieldBegin('sortCols', TType.LIST, 9)
    oprot.writeListBegin(TType.STRUCT, len(self.sortCols))
    - for iter114 in self.sortCols:
    - iter114.write(oprot)
    + for iter120 in self.sortCols:
    + iter120.write(oprot)
    oprot.writeListEnd()
    oprot.writeFieldEnd()
    if self.parameters is not None:
    oprot.writeFieldBegin('parameters', TType.MAP, 10)
    oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.parameters))
    - for kiter115,viter116 in self.parameters.items():
    - oprot.writeString(kiter115)
    - oprot.writeString(viter116)
    + for kiter121,viter122 in self.parameters.items():
    + oprot.writeString(kiter121)
    + oprot.writeString(viter122)
    oprot.writeMapEnd()
    oprot.writeFieldEnd()
    + if self.primaryRegionName is not None:
    + oprot.writeFieldBegin('primaryRegionName', TType.STRING, 11)
    + oprot.writeString(self.primaryRegionName)
    + oprot.writeFieldEnd()
    + if self.secondaryRegions is not None:
    + oprot.writeFieldBegin('secondaryRegions', TType.LIST, 12)
    + oprot.writeListBegin(TType.STRUCT, len(self.secondaryRegions))
    + for iter123 in self.secondaryRegions:
    + iter123.write(oprot)
    + oprot.writeListEnd()
    + oprot.writeFieldEnd()
    oprot.writeFieldStop()
    oprot.writeStructEnd()

    @@ -1533,22 +1638,22 @@ class Table:
    elif fid == 8:
    if ftype == TType.LIST:
    self.partitionKeys = []
    - (_etype120, _size117) = iprot.readListBegin()
    - for _i121 in xrange(_size117):
    - _elem122 = FieldSchema()
    - _elem122.read(iprot)
    - self.partitionKeys.append(_elem122)
    + (_etype127, _size124) = iprot.readListBegin()
    + for _i128 in xrange(_size124):
    + _elem129 = FieldSchema()
    + _elem129.read(iprot)
    + self.partitionKeys.append(_elem129)
    iprot.readListEnd()
    else:
    iprot.skip(ftype)
    elif fid == 9:
    if ftype == TType.MAP:
    self.parameters = {}
    - (_ktype124, _vtype125, _size123 ) = iprot.readMapBegin()
    - for _i127 in xrange(_size123):
    - _key128 = iprot.readString();
    - _val129 = iprot.readString();
    - self.parameters[_key128] = _val129
    + (_ktype131, _vtype132, _size130 ) = iprot.readMapBegin()
    + for _i134 in xrange(_size130):
    + _key135 = iprot.readString();
    + _val136 = iprot.readString();
    + self.parameters[_key135] = _val136
    iprot.readMapEnd()
    else:
    iprot.skip(ftype)
    @@ -1614,16 +1719,16 @@ class Table:
    if self.partitionKeys is not None:
    oprot.writeFieldBegin('partitionKeys', TType.LIST, 8)
    oprot.writeListBegin(TType.STRUCT, len(self.partitionKeys))
    - for iter130 in self.partitionKeys:
    - iter130.write(oprot)
    + for iter137 in self.partitionKeys:
    + iter137.write(oprot)
    oprot.writeListEnd()
    oprot.writeFieldEnd()
    if self.parameters is not None:
    oprot.writeFieldBegin('parameters', TType.MAP, 9)
    oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.parameters))
    - for kiter131,viter132 in self.parameters.items():
    - oprot.writeString(kiter131)
    - oprot.writeString(viter132)
    + for kiter138,viter139 in self.parameters.items():
    + oprot.writeString(kiter138)
    + oprot.writeString(viter139)
    oprot.writeMapEnd()
    oprot.writeFieldEnd()
    if self.viewOriginalText is not None:
    @@ -1707,10 +1812,10 @@ class Partition:
    if fid == 1:
    if ftype == TType.LIST:
    self.values = []
    - (_etype136, _size133) = iprot.readListBegin()
    - for _i137 in xrange(_size133):
    - _elem138 = iprot.readString();
    - self.values.append(_elem138)
    + (_etype143, _size140) = iprot.readListBegin()
    + for _i144 in xrange(_size140):
    + _elem145 = iprot.readString();
    + self.values.append(_elem145)
    iprot.readListEnd()
    else:
    iprot.skip(ftype)
    @@ -1743,11 +1848,11 @@ class Partition:
    elif fid == 7:
    if ftype == TType.MAP:
    self.parameters = {}
    - (_ktype140, _vtype141, _size139 ) = iprot.readMapBegin()
    - for _i143 in xrange(_size139):
    - _key144 = iprot.readString();
    - _val145 = iprot.readString();
    - self.parameters[_key144] = _val145
    + (_ktype147, _vtype148, _size146 ) = iprot.readMapBegin()
    + for _i150 in xrange(_size146):
    + _key151 = iprot.readString();
    + _val152 = iprot.readString();
    + self.parameters[_key151] = _val152
    iprot.readMapEnd()
    else:
    iprot.skip(ftype)
    @@ -1770,8 +1875,8 @@ class Partition:
    if self.values is not None:
    oprot.writeFieldBegin('values', TType.LIST, 1)
    oprot.writeListBegin(TType.STRING, len(self.values))
    - for iter146 in self.values:
    - oprot.writeString(iter146)
    + for iter153 in self.values:
    + oprot.writeString(iter153)
    oprot.writeListEnd()
    oprot.writeFieldEnd()
    if self.dbName is not None:
    @@ -1797,9 +1902,9 @@ class Partition:
    if self.parameters is not None:
    oprot.writeFieldBegin('parameters', TType.MAP, 7)
    oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.parameters))
    - for kiter147,viter148 in self.parameters.items():
    - oprot.writeString(kiter147)
    - oprot.writeString(viter148)
    + for kiter154,viter155 in self.parameters.items():
    + oprot.writeString(kiter154)
    + oprot.writeString(viter155)
    oprot.writeMapEnd()
    oprot.writeFieldEnd()
    if self.privileges is not None:
    @@ -1918,11 +2023,11 @@ class Index:
    elif fid == 9:
    if ftype == TType.MAP:
    self.parameters = {}
    - (_ktype150, _vtype151, _size149 ) = iprot.readMapBegin()
    - for _i153 in xrange(_size149):
    - _key154 = iprot.readString();
    - _val155 = iprot.readString();
    - self.parameters[_key154] = _val155
    + (_ktype157, _vtype158, _size156 ) = iprot.readMapBegin()
    + for _i160 in xrange(_size156):
    + _key161 = iprot.readString();
    + _val162 = iprot.readString();
    + self.parameters[_key161] = _val162
    iprot.readMapEnd()
    else:
    iprot.skip(ftype)
    @@ -1976,9 +2081,9 @@ class Index:
    if self.parameters is not None:
    oprot.writeFieldBegin('parameters', TType.MAP, 9)
    oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.parameters))
    - for kiter156,viter157 in self.parameters.items():
    - oprot.writeString(kiter156)
    - oprot.writeString(viter157)
    + for kiter163,viter164 in self.parameters.items():
    + oprot.writeString(kiter163)
    + oprot.writeString(viter164)
    oprot.writeMapEnd()
    oprot.writeFieldEnd()
    if self.deferredRebuild is not None:
    @@ -2032,22 +2137,22 @@ class Schema:
    if fid == 1:
    if ftype == TType.LIST:
    self.fieldSchemas = []
    - (_etype161, _size158) = iprot.readListBegin()
    - for _i162 in xrange(_size158):
    - _elem163 = FieldSchema()
    - _elem163.read(iprot)
    - self.fieldSchemas.append(_elem163)
    + (_etype168, _size165) = iprot.readListBegin()
    + for _i169 in xrange(_size165):
    + _elem170 = FieldSchema()
    + _elem170.read(iprot)
    + self.fieldSchemas.append(_elem170)
    iprot.readListEnd()
    else:
    iprot.skip(ftype)
    elif fid == 2:
    if ftype == TType.MAP:
    self.properties = {}
    - (_ktype165, _vtype166, _size164 ) = iprot.readMapBegin()
    - for _i168 in xrange(_size164):
    - _key169 = iprot.readString();
    - _val170 = iprot.readString();
    - self.properties[_key169] = _val170
    + (_ktype172, _vtype173, _size171 ) = iprot.readMapBegin()
    + for _i175 in xrange(_size171):
    + _key176 = iprot.readString();
    + _val177 = iprot.readString();
    + self.properties[_key176] = _val177
    iprot.readMapEnd()
    else:
    iprot.skip(ftype)
    @@ -2064,16 +2169,16 @@ class Schema:
    if self.fieldSchemas is not None:
    oprot.writeFieldBegin('fieldSchemas', TType.LIST, 1)
    oprot.writeListBegin(TType.STRUCT, len(self.fieldSchemas))
    - for iter171 in self.fieldSchemas:
    - iter171.write(oprot)
    + for iter178 in self.fieldSchemas:
    + iter178.write(oprot)
    oprot.writeListEnd()
    oprot.writeFieldEnd()
    if self.properties is not None:
    oprot.writeFieldBegin('properties', TType.MAP, 2)
    oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.properties))
    - for kiter172,viter173 in self.properties.items():
    - oprot.writeString(kiter172)
    - oprot.writeString(viter173)
    + for kiter179,viter180 in self.properties.items():
    + oprot.writeString(kiter179)
    + oprot.writeString(viter180)
    oprot.writeMapEnd()
    oprot.writeFieldEnd()
    oprot.writeFieldStop()

    Modified: hive/trunk/metastore/src/gen/thrift/gen-rb/hive_metastore_types.rb
    URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/gen/thrift/gen-rb/hive_metastore_types.rb?rev=1243013&r1=1243012&r2=1243013&view=diff
    ==============================================================================
    --- hive/trunk/metastore/src/gen/thrift/gen-rb/hive_metastore_types.rb (original)
    +++ hive/trunk/metastore/src/gen/thrift/gen-rb/hive_metastore_types.rb Sat Feb 11 07:49:28 2012
    @@ -288,6 +288,24 @@ class Order
    ::Thrift::Struct.generate_accessors self
    end

    +class RegionStorageDescriptor
    + include ::Thrift::Struct, ::Thrift::Struct_Union
    + REGIONNAME = 1
    + LOCATION = 2
    +
    + FIELDS = {
    + REGIONNAME => {:type => ::Thrift::Types::STRING, :name => 'regionName'},
    + LOCATION => {:type => ::Thrift::Types::STRING, :name => 'location'}
    + }
    +
    + def struct_fields; FIELDS; end
    +
    + def validate
    + end
    +
    + ::Thrift::Struct.generate_accessors self
    +end
    +
    class StorageDescriptor
    include ::Thrift::Struct, ::Thrift::Struct_Union
    COLS = 1
    @@ -300,6 +318,8 @@ class StorageDescriptor
    BUCKETCOLS = 8
    SORTCOLS = 9
    PARAMETERS = 10
    + PRIMARYREGIONNAME = 11
    + SECONDARYREGIONS = 12

    FIELDS = {
    COLS => {:type => ::Thrift::Types::LIST, :name => 'cols', :element => {:type => ::Thrift::Types::STRUCT, :class => FieldSchema}},
    @@ -311,7 +331,9 @@ class StorageDescriptor
    SERDEINFO => {:type => ::Thrift::Types::STRUCT, :name => 'serdeInfo', :class => SerDeInfo},
    BUCKETCOLS => {:type => ::Thrift::Types::LIST, :name => 'bucketCols', :element => {:type => ::Thrift::Types::STRING}},
    SORTCOLS => {:type => ::Thrift::Types::LIST, :name => 'sortCols', :element => {:type => ::Thrift::Types::STRUCT, :class => Order}},
    - PARAMETERS => {:type => ::Thrift::Types::MAP, :name => 'parameters', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRING}}
    + PARAMETERS => {:type => ::Thrift::Types::MAP, :name => 'parameters', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRING}},
    + PRIMARYREGIONNAME => {:type => ::Thrift::Types::STRING, :name => 'primaryRegionName'},
    + SECONDARYREGIONS => {:type => ::Thrift::Types::LIST, :name => 'secondaryRegions', :element => {:type => ::Thrift::Types::STRUCT, :class => RegionStorageDescriptor}}
    }

    def struct_fields; FIELDS; end

    Modified: hive/trunk/metastore/src/java/org/apache/hadoop/hive/metastore/HiveAlterHandler.java
    URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/java/org/apache/hadoop/hive/metastore/HiveAlterHandler.java?rev=1243013&r1=1243012&r2=1243013&view=diff
    ==============================================================================
    --- hive/trunk/metastore/src/java/org/apache/hadoop/hive/metastore/HiveAlterHandler.java (original)
    +++ hive/trunk/metastore/src/java/org/apache/hadoop/hive/metastore/HiveAlterHandler.java Sat Feb 11 07:49:28 2012
    @@ -114,6 +114,8 @@ public class HiveAlterHandler implements
    }
    }

    + MetaStoreUtils.checkOrSetPrimaryRegionName(newt.getSd(), hiveConf);
    +
    // if this alter is a rename, the table is not a virtual view, the user
    // didn't change the default location (or new location is empty), and
    // table is not an external table, that means useris asking metastore to
    @@ -157,6 +159,7 @@ public class HiveAlterHandler implements
    + destPath + " for table " + newt.getDbName() + "."
    + newt.getTableName());
    }
    +
    // also the location field in partition
    List<Partition> parts = msdb.getPartitions(dbname, name, 0);
    for (Partition part : parts) {
    @@ -247,6 +250,9 @@ public class HiveAlterHandler implements
    new_part.putToParameters(Constants.DDL_TIME, Long.toString(System
    .currentTimeMillis() / 1000));
    }
    +
    + MetaStoreUtils.checkOrSetPrimaryRegionName(new_part.getSd(), hiveConf);
    +
    //alter partition
    if (part_vals == null || part_vals.size() == 0) {
    try {
    @@ -286,6 +292,7 @@ public class HiveAlterHandler implements
    throw new InvalidObjectException(
    "Unable to rename partition because table or database do not exist");
    }
    +
    try {
    destPath = new Path(wh.getTablePath(msdb.getDatabase(dbname), name),
    Warehouse.makePartName(tbl.getPartitionKeys(), new_part.getValues()));
    @@ -391,4 +398,4 @@ public class HiveAlterHandler implements

    return true;
    }
    -}
    \ No newline at end of file
    +}

    Modified: hive/trunk/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java
    URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java?rev=1243013&r1=1243012&r2=1243013&view=diff
    ==============================================================================
    --- hive/trunk/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java (original)
    +++ hive/trunk/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java Sat Feb 11 07:49:28 2012
    @@ -1033,6 +1033,8 @@ public class HiveMetaStore extends Thrif
    tbl.getSd().setLocation(tblPath.toString());
    }

    + MetaStoreUtils.checkOrSetPrimaryRegionName(tbl.getSd(), hiveConf);
    +
    if (tblPath != null) {
    if (!wh.isDir(tblPath)) {
    if (!wh.mkdirs(tblPath)) {
    @@ -1354,6 +1356,8 @@ public class HiveMetaStore extends Thrif
    .makePartName(tbl.getPartitionKeys(), part_vals));
    part.getSd().setLocation(partLocation.toString());

    + MetaStoreUtils.checkOrSetPrimaryRegionName(part.getSd(), hiveConf);
    +
    Partition old_part = null;
    try {
    old_part = ms.getPartition(part.getDbName(), part
    @@ -1560,6 +1564,8 @@ public class HiveMetaStore extends Thrif
    }
    }

    + MetaStoreUtils.checkOrSetPrimaryRegionName(part.getSd(), hiveConf);
    +
    // set create time
    long time = System.currentTimeMillis() / 1000;
    part.setCreateTime((int) time);

    Modified: hive/trunk/metastore/src/java/org/apache/hadoop/hive/metastore/MetaStoreUtils.java
    URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/java/org/apache/hadoop/hive/metastore/MetaStoreUtils.java?rev=1243013&r1=1243012&r2=1243013&view=diff
    ==============================================================================
    --- hive/trunk/metastore/src/java/org/apache/hadoop/hive/metastore/MetaStoreUtils.java (original)
    +++ hive/trunk/metastore/src/java/org/apache/hadoop/hive/metastore/MetaStoreUtils.java Sat Feb 11 07:49:28 2012
    @@ -991,4 +991,28 @@ public class MetaStoreUtils {

    return listeners;
    }
    +
    + /**
    + * Temporary check that if the primary region name was set in the storage descriptor, it is
    + * equal to the default region name. If the primary region name was not set it sets it to the
    + * default region name.
    + * @param sd
    + * @param conf
    + * @throws MetaException
    + */
    + public static void checkOrSetPrimaryRegionName(StorageDescriptor sd, Configuration conf)
    + throws MetaException {
    +
    + String defaultRegionName =
    + HiveConf.getVar(conf, HiveConf.ConfVars.HIVE_DEFAULT_REGION_NAME);
    +
    + if (sd.getPrimaryRegionName() != null &&
    + !sd.getPrimaryRegionName().equals(defaultRegionName)) {
    +
    + throw new MetaException("Only default region can be used");
    + } else {
    + // either the primary region name was null or already equal to defaultRegionName
    + sd.setPrimaryRegionName(defaultRegionName);
    + }
    + }
    }

    Modified: hive/trunk/metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java
    URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java?rev=1243013&r1=1243012&r2=1243013&view=diff
    ==============================================================================
    --- hive/trunk/metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java (original)
    +++ hive/trunk/metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java Sat Feb 11 07:49:28 2012
    @@ -54,6 +54,7 @@ import org.apache.hadoop.hive.common.cla
    import org.apache.hadoop.hive.common.classification.InterfaceStability;
    import org.apache.hadoop.hive.conf.HiveConf;
    import org.apache.hadoop.hive.conf.HiveConf.ConfVars;
    +import org.apache.hadoop.hive.metastore.api.RegionStorageDescriptor;
    import org.apache.hadoop.hive.metastore.api.Database;
    import org.apache.hadoop.hive.metastore.api.FieldSchema;
    import org.apache.hadoop.hive.metastore.api.HiveObjectPrivilege;
    @@ -79,6 +80,7 @@ import org.apache.hadoop.hive.metastore.
    import org.apache.hadoop.hive.metastore.api.UnknownDBException;
    import org.apache.hadoop.hive.metastore.api.UnknownPartitionException;
    import org.apache.hadoop.hive.metastore.api.UnknownTableException;
    +import org.apache.hadoop.hive.metastore.model.MRegionStorageDescriptor;
    import org.apache.hadoop.hive.metastore.model.MColumnDescriptor;
    import org.apache.hadoop.hive.metastore.model.MDBPrivilege;
    import org.apache.hadoop.hive.metastore.model.MDatabase;
    @@ -940,6 +942,32 @@ public class ObjectStore implements RawS
    return mkeys;
    }

    + private List<RegionStorageDescriptor> convertToRegionStorageDescriptors(
    + Set<MRegionStorageDescriptor> mDescs) {
    + List<RegionStorageDescriptor> descs = null;
    + if (mDescs != null) {
    + descs = new ArrayList<RegionStorageDescriptor>(mDescs.size());
    + for (MRegionStorageDescriptor mDesc : mDescs) {
    + descs.add(new RegionStorageDescriptor(mDesc.getRegionName(),
    + mDesc.getLocation()));
    + }
    + }
    + return descs;
    + }
    +
    + private Set<MRegionStorageDescriptor> convertToMRegionStorageDescriptors(
    + List<RegionStorageDescriptor> descs) {
    + Set<MRegionStorageDescriptor> mDescs = null;
    + if (descs != null) {
    + mDescs = new HashSet<MRegionStorageDescriptor>(descs.size());
    + for (RegionStorageDescriptor desc : descs) {
    + mDescs.add(new MRegionStorageDescriptor(desc.getRegionName(),
    + desc.getLocation()));
    + }
    + }
    + return mDescs;
    + }
    +
    private List<Order> convertToOrders(List<MOrder> mkeys) {
    List<Order> keys = null;
    if (mkeys != null) {
    @@ -992,7 +1020,8 @@ public class ObjectStore implements RawS
    msd.getLocation(), msd.getInputFormat(), msd.getOutputFormat(), msd
    .isCompressed(), msd.getNumBuckets(), converToSerDeInfo(msd
    .getSerDeInfo()), msd.getBucketCols(), convertToOrders(msd
    - .getSortCols()), msd.getParameters());
    + .getSortCols()), msd.getParameters(), msd.getPrimaryRegionName(),
    + convertToRegionStorageDescriptors(msd.getSecondaryRegions()));
    }

    private StorageDescriptor convertToStorageDescriptor(MStorageDescriptor msd)
    @@ -1034,7 +1063,9 @@ public class ObjectStore implements RawS
    .getLocation(), sd.getInputFormat(), sd.getOutputFormat(), sd
    .isCompressed(), sd.getNumBuckets(), converToMSerDeInfo(sd
    .getSerdeInfo()), sd.getBucketCols(),
    - convertToMOrders(sd.getSortCols()), sd.getParameters());
    + convertToMOrders(sd.getSortCols()), sd.getParameters(),
    + sd.getPrimaryRegionName(),
    + convertToMRegionStorageDescriptors(sd.getSecondaryRegions()));
    }

    public boolean addPartition(Partition part) throws InvalidObjectException,
    @@ -1960,6 +1991,7 @@ public class ObjectStore implements RawS
    oldSd.getSerDeInfo().setSerializationLib(
    newSd.getSerDeInfo().getSerializationLib());
    oldSd.getSerDeInfo().setParameters(newSd.getSerDeInfo().getParameters());
    + oldSd.setPrimaryRegionName(newSd.getPrimaryRegionName());
    }

    /**

    Added: hive/trunk/metastore/src/model/org/apache/hadoop/hive/metastore/model/MRegionStorageDescriptor.java
    URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/model/org/apache/hadoop/hive/metastore/model/MRegionStorageDescriptor.java?rev=1243013&view=auto
    ==============================================================================
    --- hive/trunk/metastore/src/model/org/apache/hadoop/hive/metastore/model/MRegionStorageDescriptor.java (added)
    +++ hive/trunk/metastore/src/model/org/apache/hadoop/hive/metastore/model/MRegionStorageDescriptor.java Sat Feb 11 07:49:28 2012
    @@ -0,0 +1,70 @@
    +/**
    + * Licensed to the Apache Software Foundation (ASF) under one
    + * or more contributor license agreements. See the NOTICE file
    + * distributed with this work for additional information
    + * regarding copyright ownership. The ASF licenses this file
    + * to you under the Apache License, Version 2.0 (the
    + * "License"); you may not use this file except in compliance
    + * with the License. You may obtain a copy of the License at
    + *
    + * http://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing, software
    + * distributed under the License is distributed on an "AS IS" BASIS,
    + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    + * See the License for the specific language governing permissions and
    + * limitations under the License.
    + */
    +
    +package org.apache.hadoop.hive.metastore.model;
    +
    +import java.io.Serializable;
    +import java.util.Map;
    +
    +public class MRegionStorageDescriptor implements Serializable {
    +
    + private String regionName;
    + private String location;
    +
    + public MRegionStorageDescriptor() {}
    +
    + /**
    + * @param regionName
    + * @param location
    + */
    + public MRegionStorageDescriptor(
    + String regionName,
    + String location) {
    + this.regionName = regionName;
    + this.location = location;
    + }
    +
    +
    + /**
    + * @return region name
    + */
    + public String getRegionName() {
    + return regionName;
    + }
    +
    + /**
    + * @param region
    + */
    + public void setRegionName(String regionName) {
    + this.regionName = regionName;
    + }
    +
    + /**
    + * @return data location stored in this region descriptor
    + */
    + public String getLocation() {
    + return location;
    + }
    +
    + /**
    + * @param location in this region descriptor
    + */
    + public void setLocation(String location) {
    + this.location = location;
    + }
    +}

    Modified: hive/trunk/metastore/src/model/org/apache/hadoop/hive/metastore/model/MStorageDescriptor.java
    URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/model/org/apache/hadoop/hive/metastore/model/MStorageDescriptor.java?rev=1243013&r1=1243012&r2=1243013&view=diff
    ==============================================================================
    --- hive/trunk/metastore/src/model/org/apache/hadoop/hive/metastore/model/MStorageDescriptor.java (original)
    +++ hive/trunk/metastore/src/model/org/apache/hadoop/hive/metastore/model/MStorageDescriptor.java Sat Feb 11 07:49:28 2012
    @@ -20,6 +20,7 @@ package org.apache.hadoop.hive.metastore

    import java.util.List;
    import java.util.Map;
    +import java.util.Set;

    public class MStorageDescriptor {
    private MColumnDescriptor cd;
    @@ -32,6 +33,8 @@ public class MStorageDescriptor {
    private List<String> bucketCols;
    private List<MOrder> sortCols;
    private Map<String, String> parameters;
    + private String primaryRegionName;
    + private Set<MRegionStorageDescriptor> secondaryRegions;

    public MStorageDescriptor() {}

    @@ -47,10 +50,14 @@ public class MStorageDescriptor {
    * @param bucketCols
    * @param sortOrder
    * @param parameters
    + * @param primaryRegionName
    + * @param secondaryRegions
    */
    public MStorageDescriptor(MColumnDescriptor cd, String location, String inputFormat,
    String outputFormat, boolean isCompressed, int numBuckets, MSerDeInfo serDeInfo,
    - List<String> bucketCols, List<MOrder> sortOrder, Map<String, String> parameters) {
    + List<String> bucketCols, List<MOrder> sortOrder, Map<String, String> parameters,
    + String primaryRegionName,
    + Set<MRegionStorageDescriptor> secondaryRegions) {
    this.cd = cd;
    this.location = location;
    this.inputFormat = inputFormat;
    @@ -61,6 +68,8 @@ public class MStorageDescriptor {
    this.bucketCols = bucketCols;
    this.sortCols = sortOrder;
    this.parameters = parameters;
    + this.primaryRegionName = primaryRegionName;
    + this.secondaryRegions = secondaryRegions;
    }


    @@ -205,4 +214,22 @@ public class MStorageDescriptor {
    public List<MOrder> getSortCols() {
    return sortCols;
    }
    +
    + public String getPrimaryRegionName() {
    + return primaryRegionName;
    + }
    +
    + public void setPrimaryRegionName(String primaryRegionName) {
    + this.primaryRegionName = primaryRegionName;
    + }
    +
    + public Set<MRegionStorageDescriptor> getSecondaryRegions() {
    + return secondaryRegions;
    + }
    +
    + public void setSecondaryRegions(
    + Set<MRegionStorageDescriptor> secondaryRegions) {
    + this.secondaryRegions = secondaryRegions;
    + }
    +
    }

    Modified: hive/trunk/metastore/src/model/package.jdo
    URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/model/package.jdo?rev=1243013&r1=1243012&r2=1243013&view=diff
    ==============================================================================
    --- hive/trunk/metastore/src/model/package.jdo (original)
    +++ hive/trunk/metastore/src/model/package.jdo Sat Feb 11 07:49:28 2012
    @@ -1,5 +1,5 @@
    -<?xml version="1.0"?>
    -<!DOCTYPE jdo PUBLIC "-//Sun Microsystems, Inc.//DTD Java Data Objects Metadata 2.0//EN"
    +<?xml version="1.0"?>
    +<!DOCTYPE jdo PUBLIC "-//Sun Microsystems, Inc.//DTD Java Data Objects Metadata 2.0//EN"
    "http://java.sun.com/dtd/jdo_2_0.dtd">
    <!--
    Size Limitations:
    @@ -8,13 +8,13 @@
    Non-indexed VARCHAR: 4000 bytes (max length on Oracle 9i/10g/11g)

    -->
    -<jdo>
    - <package name="org.apache.hadoop.hive.metastore.model">
    - <class name="MDatabase" identity-type="datastore" table="DBS" detachable="true">
    +<jdo>
    + <package name="org.apache.hadoop.hive.metastore.model">
    + <class name="MDatabase" identity-type="datastore" table="DBS" detachable="true">
    <datastore-identity>
    <column name="DB_ID"/>
    </datastore-identity>
    - <field name="name">
    + <field name="name">
    <column name="NAME" length="128" jdbc-type="VARCHAR"/>
    <index name="UniqueDatabase" unique="true"/>
    </field>
    @@ -50,15 +50,15 @@
    </field>
    </class>

    - <class name="MType" table="TYPES" detachable="true">
    - <field name="name" >
    - <column name="TYPE_NAME" length="128" jdbc-type="VARCHAR"/>
    + <class name="MType" table="TYPES" detachable="true">
    + <field name="name" >
    + <column name="TYPE_NAME" length="128" jdbc-type="VARCHAR"/>
    <index name="UniqueType" unique="true"/>
    </field>
    - <field name="type1">
    + <field name="type1">
    <column name="TYPE1" length="767" jdbc-type="VARCHAR"/>
    </field>
    - <field name="type2">
    + <field name="type2">
    <column name="TYPE2" length="767" jdbc-type="VARCHAR"/>
    </field>
    <field name="fields" table="TYPE_FIELDS" >
    @@ -216,6 +216,16 @@
    </field>
    </class>

    + <class name="MRegionStorageDescriptor" embedded-only="true" table="REGION_SDS" detachable="true">
    + <field name="regionName">
    + <column name="REGION_NAME" length="512" jdbc-type="VARCHAR"/>
    + </field>
    +
    + <field name="location">
    + <column name="LOCATION" length="4000" jdbc-type="VARCHAR"/>
    + </field>
    + </class>
    +
    <class name="MStorageDescriptor" identity-type="datastore" table="SDS" detachable="true">
    <datastore-identity>
    <column name="SD_ID"/>
    @@ -274,6 +284,29 @@
    <column name="PARAM_VALUE" length="4000" jdbc-type="VARCHAR"/>
    </value>
    </field>
    + <field name="primaryRegionName">
    + <column name="PRIMARY_REGION_NAME" length="512" jdbc-type="VARCHAR"/>
    + </field>
    + <field name="secondaryRegions" table="REGION_SDS">
    + <collection element-type="org.apache.hadoop.hive.metastore.model.MRegionStorageDescriptor"/>
    + <join>
    + <primary-key name="REGION_SDS_PK">
    + <column name="SD_ID"/>
    + <column name="REGION_NAME"/>
    + </primary-key>
    + <column name="SD_ID"/>
    + </join>
    + <element>
    + <embedded>
    + <field name="regionName">
    + <column name="REGION_NAME" length="512" jdbc-type="VARCHAR"/>
    + </field>
    + <field name="location">
    + <column name="LOCATION" length="4000" jdbc-type="VARCHAR"/>
    + </field>
    + </embedded>
    + </element>
    + </field>
    </class>

    <class name="MPartition" table="PARTITIONS" identity-type="datastore" detachable="true">
    @@ -319,13 +352,13 @@
    </value>
    </field>
    </class>
    -
    +
    <class name="MIndex" table="IDXS" identity-type="datastore" detachable="true">
    <index name="UniqueINDEX" unique="true">
    <column name="INDEX_NAME"/>
    <column name="ORIG_TBL_ID"/>
    </index>
    -
    +
    <datastore-identity>
    <column name="INDEX_ID"/>
    </datastore-identity>
    @@ -386,7 +419,7 @@
    <field name="ownerName">
    <column name="OWNER_NAME" length="128" jdbc-type="VARCHAR"/>
    </field>
    -
    +
    </class>

    <class name="MRoleMap" table="ROLE_MAP" identity-type="datastore" detachable="true">
    @@ -425,7 +458,7 @@
    </class>

    <class name="MGlobalPrivilege" table="GLOBAL_PRIVS" identity-type="datastore" detachable="true">
    -
    +
    <index name="GlobalPrivilegeIndex" unique="true">
    <column name="PRINCIPAL_NAME"/>
    <column name="PRINCIPAL_TYPE"/>
    @@ -433,7 +466,7 @@
    <column name="GRANTOR"/>
    <column name="GRANTOR_TYPE"/>
    </index>
    -
    +
    <datastore-identity>
    <column name="USER_GRANT_ID"/>
    </datastore-identity>
    @@ -462,7 +495,7 @@
    </class>

    <class name="MDBPrivilege" table="DB_PRIVS" identity-type="datastore" detachable="true">
    -
    +
    <index name="DBPrivilegeIndex" unique="true">
    <column name="DB_ID"/>
    <column name="PRINCIPAL_NAME"/>
    @@ -503,7 +536,7 @@
    </class>

    <class name="MTablePrivilege" table="TBL_PRIVS" identity-type="datastore" detachable="true">
    -
    +
    <index name="TablePrivilegeIndex" unique="false">
    <column name="TBL_ID"/>
    <column name="PRINCIPAL_NAME"/>
    @@ -544,7 +577,7 @@
    </class>

    <class name="MPartitionPrivilege" table="PART_PRIVS" identity-type="datastore" detachable="true">
    -
    +
    <index name="PartPrivilegeIndex" unique="false">
    <column name="PART_ID"/>
    <column name="PRINCIPAL_NAME"/>
    @@ -585,7 +618,7 @@
    </class>

    <class name="MTableColumnPrivilege" table="TBL_COL_PRIVS" identity-type="datastore" detachable="true">
    -
    +
    <index name="TableColumnPrivilegeIndex" unique="false">
    <column name="TBL_ID"/>
    <column name="COLUMN_NAME"/>
    @@ -630,7 +663,7 @@
    </class>

    <class name="MPartitionColumnPrivilege" table="PART_COL_PRIVS" identity-type="datastore" detachable="true">
    -
    +
    <index name="PartitionColumnPrivilegeIndex" unique="false">
    <column name="PART_ID"/>
    <column name="COLUMN_NAME"/>
    @@ -674,17 +707,17 @@
    </field>
    </class>

    - <class name="MPartitionEvent" table="PARTITION_EVENTS" identity-type="datastore" detachable="true">
    -
    + <class name="MPartitionEvent" table="PARTITION_EVENTS" identity-type="datastore" detachable="true">
    +
    <index name="PartitionEventIndex" unique="false">
    <column name="PARTITION_NAME"/>
    </index>
    -
    +
    <datastore-identity>
    <column name="PART_NAME_ID"/>
    </datastore-identity>
    -
    - <field name="dbName">
    +
    + <field name="dbName">
    <column name="DB_NAME" length="128" jdbc-type="VARCHAR"/>
    </field>
    <field name="tblName">

    Modified: hive/trunk/metastore/src/test/org/apache/hadoop/hive/metastore/TestHiveMetaStore.java
    URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/test/org/apache/hadoop/hive/metastore/TestHiveMetaStore.java?rev=1243013&r1=1243012&r2=1243013&view=diff
    ==============================================================================
    --- hive/trunk/metastore/src/test/org/apache/hadoop/hive/metastore/TestHiveMetaStore.java (original)
    +++ hive/trunk/metastore/src/test/org/apache/hadoop/hive/metastore/TestHiveMetaStore.java Sat Feb 11 07:49:28 2012
    @@ -46,6 +46,7 @@ import org.apache.hadoop.hive.metastore.
    import org.apache.hadoop.hive.metastore.api.NoSuchObjectException;
    import org.apache.hadoop.hive.metastore.api.Order;
    import org.apache.hadoop.hive.metastore.api.Partition;
    +import org.apache.hadoop.hive.metastore.api.RegionStorageDescriptor;
    import org.apache.hadoop.hive.metastore.api.SerDeInfo;
    import org.apache.hadoop.hive.metastore.api.StorageDescriptor;
    import org.apache.hadoop.hive.metastore.api.Table;
    @@ -431,6 +432,8 @@ public abstract class TestHiveMetaStore
    part4.setSd(tbl.getSd().deepCopy());
    part4.getSd().setSerdeInfo(tbl.getSd().getSerdeInfo().deepCopy());
    part4.getSd().setLocation(tbl.getSd().getLocation() + ptnLocationSuffix);
    + part4.getSd().setPrimaryRegionName(HiveConf.ConfVars.HIVE_DEFAULT_REGION_NAME.defaultVal);
    + part4.getSd().setSecondaryRegions(new ArrayList<RegionStorageDescriptor>());
    return part4;
    }


    Modified: hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/exec/DDLTask.java
    URL: http://svn.apache.org/viewvc/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/exec/DDLTask.java?rev=1243013&r1=1243012&r2=1243013&view=diff
    ==============================================================================
    --- hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/exec/DDLTask.java (original)
    +++ hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/exec/DDLTask.java Sat Feb 11 07:49:28 2012
    @@ -3489,6 +3489,8 @@ public class DDLTask extends Task<DDLWor
    return rc;
    }

    + tbl.setPrimaryRegionName(crtTbl.getPrimaryRegionName());
    +
    // create the table
    db.createTable(tbl, crtTbl.getIfNotExists());
    work.getOutputs().add(new WriteEntity(tbl));

    Modified: hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/metadata/Table.java
    URL: http://svn.apache.org/viewvc/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/metadata/Table.java?rev=1243013&r1=1243012&r2=1243013&view=diff
    ==============================================================================
    --- hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/metadata/Table.java (original)
    +++ hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/metadata/Table.java Sat Feb 11 07:49:28 2012
    @@ -827,4 +827,9 @@ public class Table implements Serializab
    Hive hive = Hive.get();
    return hive.getIndexes(getTTable().getDbName(), getTTable().getTableName(), max);
    }
    +
    + public void setPrimaryRegionName(String primaryRegionName) {
    + tTable.getSd().setPrimaryRegionName(primaryRegionName);
    + }
    +
    };

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupcommits @
categorieshive, hadoop
postedFeb 11, '12 at 7:50a
activeFeb 11, '12 at 7:50a
posts9
users1
websitehive.apache.org

1 user in discussion

Namit: 9 posts

People

Translate

site design / logo © 2021 Grokbase