diff --git hbase-handler/src/java/org/apache/hadoop/hive/hbase/HBaseSerDe.java hbase-handler/src/java/org/apache/hadoop/hive/hbase/HBaseSerDe.java index 47e20d5..d53428e 100644 --- hbase-handler/src/java/org/apache/hadoop/hive/hbase/HBaseSerDe.java +++ hbase-handler/src/java/org/apache/hadoop/hive/hbase/HBaseSerDe.java @@ -29,6 +29,7 @@ import org.apache.hadoop.hive.hbase.ColumnMappings.ColumnMapping; import org.apache.hadoop.hive.ql.plan.TableDesc; import org.apache.hadoop.hive.serde.serdeConstants; +import org.apache.hadoop.hive.ql.exec.Utilities; import org.apache.hadoop.hive.serde2.AbstractSerDe; import org.apache.hadoop.hive.serde2.SerDe; import org.apache.hadoop.hive.serde2.SerDeException; @@ -301,4 +302,12 @@ public static void configureJobConf(TableDesc tableDesc, JobConf jobConf) throws new HBaseSerDeParameters(jobConf, tableDesc.getProperties(), HBaseSerDe.class.getName()); serdeParams.getKeyFactory().configureJobConf(tableDesc, jobConf); } + + public static String toPartSuffix(String partName) { + StringBuilder builder = new StringBuilder(); + for (String value : Utilities.makeSpecFromName(partName).values()) { + builder.append('_').append(value); + } + return builder.toString(); + } } diff --git hbase-handler/src/java/org/apache/hadoop/hive/hbase/HBaseStorageHandler.java hbase-handler/src/java/org/apache/hadoop/hive/hbase/HBaseStorageHandler.java index 3218639..ed6cdfa 100644 --- hbase-handler/src/java/org/apache/hadoop/hive/hbase/HBaseStorageHandler.java +++ hbase-handler/src/java/org/apache/hadoop/hive/hbase/HBaseStorageHandler.java @@ -51,13 +51,16 @@ import org.apache.hadoop.hbase.zookeeper.ZooKeeperWatcher; import org.apache.hadoop.hive.metastore.HiveMetaHook; import org.apache.hadoop.hive.metastore.MetaStoreUtils; +import org.apache.hadoop.hive.metastore.TableType; +import org.apache.hadoop.hive.metastore.api.Partition; +import org.apache.hadoop.hive.metastore.api.hive_metastoreConstants; import org.apache.hadoop.hive.metastore.api.MetaException; import org.apache.hadoop.hive.metastore.api.Table; -import org.apache.hadoop.hive.metastore.api.hive_metastoreConstants; import org.apache.hadoop.hive.ql.index.IndexPredicateAnalyzer; import org.apache.hadoop.hive.ql.index.IndexSearchCondition; import org.apache.hadoop.hive.ql.metadata.DefaultStorageHandler; import org.apache.hadoop.hive.ql.metadata.HiveStoragePredicateHandler; +import org.apache.hadoop.hive.ql.plan.AlterTableDesc; import org.apache.hadoop.hive.ql.plan.ExprNodeDesc; import org.apache.hadoop.hive.ql.plan.ExprNodeGenericFuncDesc; import org.apache.hadoop.hive.ql.plan.TableDesc; @@ -114,7 +117,7 @@ private HBaseAdmin getHBaseAdmin() throws MetaException { } } - private String getHBaseTableName(Table tbl) { + private String getHBaseTableName(Table tbl, Partition part) throws MetaException { // Give preference to TBLPROPERTIES over SERDEPROPERTIES // (really we should only use TBLPROPERTIES, so this is just // for backwards compatibility with the original specs). @@ -129,15 +132,33 @@ private String getHBaseTableName(Table tbl) { } } if (tableName == null) { - tableName = (tbl.getDbName() + "." + tbl.getTableName()).toLowerCase(); - if (tableName.startsWith(DEFAULT_PREFIX)) { - tableName = tableName.substring(DEFAULT_PREFIX.length()); + if (tbl.getDbName().equals(MetaStoreUtils.DEFAULT_DATABASE_NAME)) { + tableName = tbl.getTableName(); + } else { + tableName = tbl.getDbName() + "." + tbl.getTableName(); } } + if (part != null) { + for (String value : part.getValues()) { + tableName += "_"; + tableName += value; + } + } + return tableName; } @Override + public boolean supports(org.apache.hadoop.hive.ql.metadata.Table tbl, + AlterTableDesc.AlterTableTypes alter) { + if (alter == AlterTableDesc.AlterTableTypes.ADDPARTITION || + alter == AlterTableDesc.AlterTableTypes.DROPPARTITION) { + return tbl.getTableType() == TableType.MANAGED_TABLE; + } + return false; + } + + @Override public void preDropTable(Table table) throws MetaException { // nothing to do } @@ -148,37 +169,24 @@ public void rollbackDropTable(Table table) throws MetaException { } @Override - public void commitDropTable( - Table tbl, boolean deleteData) throws MetaException { - - try { - String tableName = getHBaseTableName(tbl); - boolean isExternal = MetaStoreUtils.isExternalTable(tbl); - if (deleteData && !isExternal) { - if (getHBaseAdmin().isTableEnabled(tableName)) { - getHBaseAdmin().disableTable(tableName); - } - getHBaseAdmin().deleteTable(tableName); - } - } catch (IOException ie) { - throw new MetaException(StringUtils.stringifyException(ie)); + public void commitDropTable(Table tbl, boolean deleteData) throws MetaException { + if (deleteData && !MetaStoreUtils.isExternalTable(tbl)) { + dropHBaseTable(getHBaseTableName(tbl, null)); } } @Override public void preCreateTable(Table tbl) throws MetaException { - boolean isExternal = MetaStoreUtils.isExternalTable(tbl); + createTable(tbl, null); + } - // We'd like to move this to HiveMetaStore for any non-native table, but - // first we need to support storing NULL for location on a table - if (tbl.getSd().getLocation() != null) { - throw new MetaException("LOCATION may not be specified for HBase."); - } + private void createTable(Table tbl, Partition part) throws MetaException { + boolean isExternal = MetaStoreUtils.isExternalTable(tbl); HTable htable = null; try { - String tableName = getHBaseTableName(tbl); + String tableName = getHBaseTableName(tbl, part); Map serdeParam = tbl.getSd().getSerdeInfo().getParameters(); String hbaseColumnsMapping = serdeParam.get(HBaseSerDe.HBASE_COLUMNS_MAPPING); @@ -245,10 +253,14 @@ public void preCreateTable(Table tbl) throws MetaException { @Override public void rollbackCreateTable(Table table) throws MetaException { - boolean isExternal = MetaStoreUtils.isExternalTable(table); - String tableName = getHBaseTableName(table); + if (MetaStoreUtils.isExternalTable(table)) { + dropHBaseTable(getHBaseTableName(table, null)); + } + } + + private void dropHBaseTable(String tableName) throws MetaException { try { - if (!isExternal && getHBaseAdmin().tableExists(tableName)) { + if (getHBaseAdmin().tableExists(tableName)) { // we have created an HBase table, so we delete it to roll back; if (getHBaseAdmin().isTableEnabled(tableName)) { getHBaseAdmin().disableTable(tableName); @@ -266,6 +278,26 @@ public void commitCreateTable(Table table) throws MetaException { } @Override + public void preCreatePartition(Table table, Partition partition) throws MetaException { + createTable(table, partition); + } + + @Override + public void rollbackCreatePartition(Table table, Partition partition) throws MetaException { + if (MetaStoreUtils.isExternalTable(table)) { + dropHBaseTable(getHBaseTableName(table, partition)); + } + } + + @Override + public void commitDropPartition(Table table, Partition partition, boolean deleteData) + throws MetaException { + if (deleteData && !MetaStoreUtils.isExternalTable(table)) { + dropHBaseTable(getHBaseTableName(table, partition)); + } + } + + @Override public Configuration getConf() { return hbaseConf; } diff --git hbase-handler/src/java/org/apache/hadoop/hive/hbase/HiveHBaseTableInputFormat.java hbase-handler/src/java/org/apache/hadoop/hive/hbase/HiveHBaseTableInputFormat.java index 8e72759..f939b69 100644 --- hbase-handler/src/java/org/apache/hadoop/hive/hbase/HiveHBaseTableInputFormat.java +++ hbase-handler/src/java/org/apache/hadoop/hive/hbase/HiveHBaseTableInputFormat.java @@ -95,7 +95,13 @@ HBaseSplit hbaseSplit = (HBaseSplit) split; TableSplit tableSplit = hbaseSplit.getTableSplit(); - setHTable(HiveHBaseInputFormatUtil.getTable(jobConf)); + String hbaseTableName = jobConf.get(HBaseSerDe.HBASE_TABLE_NAME); + String partName = jobConf.get("partName"); + if (partName != null && !partName.isEmpty()) { + hbaseTableName += HBaseSerDe.toPartSuffix(partName); + } + + setHTable(new HTable(HBaseConfiguration.create(jobConf), Bytes.toBytes(hbaseTableName))); setScan(HiveHBaseInputFormatUtil.getScan(jobConf)); Job job = new Job(jobConf); @@ -440,8 +446,7 @@ static IndexPredicateAnalyzer newIndexPredicateAnalyzer( TableMapReduceUtil.initCredentials(jobConf); } - String hbaseTableName = jobConf.get(HBaseSerDe.HBASE_TABLE_NAME); - setHTable(new HTable(HBaseConfiguration.create(jobConf), Bytes.toBytes(hbaseTableName))); + setHTable(HiveHBaseInputFormatUtil.getTable(jobConf)); String hbaseColumnsMapping = jobConf.get(HBaseSerDe.HBASE_COLUMNS_MAPPING); boolean doColumnRegexMatching = jobConf.getBoolean(HBaseSerDe.HBASE_COLUMNS_REGEX_MATCHING, true); diff --git hbase-handler/src/java/org/apache/hadoop/hive/hbase/HiveHBaseTableOutputFormat.java hbase-handler/src/java/org/apache/hadoop/hive/hbase/HiveHBaseTableOutputFormat.java index 3100885..97f0a8a 100644 --- hbase-handler/src/java/org/apache/hadoop/hive/hbase/HiveHBaseTableOutputFormat.java +++ hbase-handler/src/java/org/apache/hadoop/hive/hbase/HiveHBaseTableOutputFormat.java @@ -32,7 +32,6 @@ import org.apache.hadoop.hbase.mapreduce.TableOutputCommitter; import org.apache.hadoop.hbase.mapreduce.TableOutputFormat; import org.apache.hadoop.hive.conf.HiveConf; -import org.apache.hadoop.hive.hbase.PutWritable; import org.apache.hadoop.hive.shims.ShimLoader; import org.apache.hadoop.mapred.JobConf; import org.apache.hadoop.mapred.OutputFormat; @@ -56,19 +55,6 @@ static final Log LOG = LogFactory.getLog(HiveHBaseTableOutputFormat.class); public static final String HBASE_WAL_ENABLED = "hive.hbase.wal.enabled"; - /** - * Update the out table, and output an empty key as the key. - * - * @param jc the job configuration file - * @param finalOutPath the final output table name - * @param valueClass the value class - * @param isCompressed whether the content is compressed or not - * @param tableProperties the table info of the corresponding table - * @param progress progress used for status report - * @return the RecordWriter for the output file - */ - - @Override public void checkOutputSpecs(FileSystem fs, JobConf jc) throws IOException { @@ -99,7 +85,12 @@ public void checkOutputSpecs(FileSystem fs, JobConf jc) throws IOException { Progressable progressable) throws IOException { String hbaseTableName = jobConf.get(HBaseSerDe.HBASE_TABLE_NAME); + String partName = jobConf.get("partName"); + if (partName != null && !partName.isEmpty()) { + hbaseTableName += HBaseSerDe.toPartSuffix(partName); + } jobConf.set(TableOutputFormat.OUTPUT_TABLE, hbaseTableName); + final boolean walEnabled = HiveConf.getBoolVar( jobConf, HiveConf.ConfVars.HIVE_HBASE_WAL_ENABLED); final HTable table = new HTable(HBaseConfiguration.create(jobConf), hbaseTableName); diff --git hbase-handler/src/test/queries/positive/hbase_partitioned.q hbase-handler/src/test/queries/positive/hbase_partitioned.q new file mode 100644 index 0000000..2cfc01b --- /dev/null +++ hbase-handler/src/test/queries/positive/hbase_partitioned.q @@ -0,0 +1,26 @@ +CREATE TABLE hbase_partition(key int, value string) partitioned by (pid string) +STORED BY 'org.apache.hadoop.hive.hbase.HBaseStorageHandler' +WITH SERDEPROPERTIES ("hbase.columns.mapping" = ":key,cf:string"); + +alter table hbase_partition add partition (pid='100'); +alter table hbase_partition add partition (pid='200'); + +select * from hbase_partition; + +from src +insert overwrite table hbase_partition partition (pid='100') select * where key < 100 +insert overwrite table hbase_partition partition (pid='200') select * where key >= 100 AND key < 200; + +explain extended +select * from hbase_partition limit 10; +select * from hbase_partition limit 10; + +explain extended +select * from hbase_partition where pid='100' limit 10; +select * from hbase_partition where pid='100' limit 10; + +explain extended +select * from hbase_partition where pid='200' limit 10; +select * from hbase_partition where pid='200' limit 10; + +drop table hbase_partition; diff --git hbase-handler/src/test/results/positive/hbase_partitioned.q.out hbase-handler/src/test/results/positive/hbase_partitioned.q.out new file mode 100644 index 0000000..a5630f9 --- /dev/null +++ hbase-handler/src/test/results/positive/hbase_partitioned.q.out @@ -0,0 +1,481 @@ +PREHOOK: query: CREATE TABLE hbase_partition(key int, value string) partitioned by (pid string) +STORED BY 'org.apache.hadoop.hive.hbase.HBaseStorageHandler' +WITH SERDEPROPERTIES ("hbase.columns.mapping" = ":key,cf:string") +PREHOOK: type: CREATETABLE +PREHOOK: Output: database:default +PREHOOK: Output: default@hbase_partition +POSTHOOK: query: CREATE TABLE hbase_partition(key int, value string) partitioned by (pid string) +STORED BY 'org.apache.hadoop.hive.hbase.HBaseStorageHandler' +WITH SERDEPROPERTIES ("hbase.columns.mapping" = ":key,cf:string") +POSTHOOK: type: CREATETABLE +POSTHOOK: Output: database:default +POSTHOOK: Output: default@hbase_partition +PREHOOK: query: alter table hbase_partition add partition (pid='100') +PREHOOK: type: ALTERTABLE_ADDPARTS +PREHOOK: Output: default@hbase_partition +POSTHOOK: query: alter table hbase_partition add partition (pid='100') +POSTHOOK: type: ALTERTABLE_ADDPARTS +POSTHOOK: Output: default@hbase_partition +POSTHOOK: Output: default@hbase_partition@pid=100 +PREHOOK: query: alter table hbase_partition add partition (pid='200') +PREHOOK: type: ALTERTABLE_ADDPARTS +PREHOOK: Output: default@hbase_partition +POSTHOOK: query: alter table hbase_partition add partition (pid='200') +POSTHOOK: type: ALTERTABLE_ADDPARTS +POSTHOOK: Output: default@hbase_partition +POSTHOOK: Output: default@hbase_partition@pid=200 +PREHOOK: query: select * from hbase_partition +PREHOOK: type: QUERY +PREHOOK: Input: default@hbase_partition +PREHOOK: Input: default@hbase_partition@pid=100 +PREHOOK: Input: default@hbase_partition@pid=200 +#### A masked pattern was here #### +POSTHOOK: query: select * from hbase_partition +POSTHOOK: type: QUERY +POSTHOOK: Input: default@hbase_partition +POSTHOOK: Input: default@hbase_partition@pid=100 +POSTHOOK: Input: default@hbase_partition@pid=200 +#### A masked pattern was here #### +PREHOOK: query: from src +insert overwrite table hbase_partition partition (pid='100') select * where key < 100 +insert overwrite table hbase_partition partition (pid='200') select * where key >= 100 AND key < 200 +PREHOOK: type: QUERY +PREHOOK: Input: default@src +PREHOOK: Output: default@hbase_partition@pid=100 +PREHOOK: Output: default@hbase_partition@pid=200 +POSTHOOK: query: from src +insert overwrite table hbase_partition partition (pid='100') select * where key < 100 +insert overwrite table hbase_partition partition (pid='200') select * where key >= 100 AND key < 200 +POSTHOOK: type: QUERY +POSTHOOK: Input: default@src +POSTHOOK: Output: default@hbase_partition@pid=100 +POSTHOOK: Output: default@hbase_partition@pid=200 +POSTHOOK: Lineage: hbase_partition PARTITION(pid=100).key EXPRESSION [(src)src.FieldSchema(name:key, type:string, comment:default), ] +POSTHOOK: Lineage: hbase_partition PARTITION(pid=100).value SIMPLE [(src)src.FieldSchema(name:value, type:string, comment:default), ] +POSTHOOK: Lineage: hbase_partition PARTITION(pid=200).key EXPRESSION [(src)src.FieldSchema(name:key, type:string, comment:default), ] +POSTHOOK: Lineage: hbase_partition PARTITION(pid=200).value SIMPLE [(src)src.FieldSchema(name:value, type:string, comment:default), ] +PREHOOK: query: explain extended +select * from hbase_partition limit 10 +PREHOOK: type: QUERY +POSTHOOK: query: explain extended +select * from hbase_partition limit 10 +POSTHOOK: type: QUERY +ABSTRACT SYNTAX TREE: + +TOK_QUERY + TOK_FROM + TOK_TABREF + TOK_TABNAME + hbase_partition + TOK_INSERT + TOK_DESTINATION + TOK_DIR + TOK_TMP_FILE + TOK_SELECT + TOK_SELEXPR + TOK_ALLCOLREF + TOK_LIMIT + 10 + + +STAGE DEPENDENCIES: + Stage-0 is a root stage + +STAGE PLANS: + Stage: Stage-0 + Fetch Operator + limit: 10 + Partition Description: + Partition + input format: org.apache.hadoop.hive.hbase.HiveHBaseTableInputFormat + output format: org.apache.hadoop.hive.hbase.HiveHBaseTableOutputFormat + partition values: + pid 100 + properties: + COLUMN_STATS_ACCURATE true + bucket_count -1 + columns key,value + columns.comments + columns.types int:string +#### A masked pattern was here #### + hbase.columns.mapping :key,cf:string +#### A masked pattern was here #### + name default.hbase_partition + numFiles 0 + numRows 0 + partition_columns pid + partition_columns.types string + rawDataSize 0 + serialization.ddl struct hbase_partition { i32 key, string value} + serialization.format 1 + serialization.lib org.apache.hadoop.hive.hbase.HBaseSerDe + totalSize 0 +#### A masked pattern was here #### + serde: org.apache.hadoop.hive.hbase.HBaseSerDe + + input format: org.apache.hadoop.hive.hbase.HiveHBaseTableInputFormat + jobProperties: + hbase.columns.mapping :key,cf:string + hbase.columns.mapping.regex.matching true + hbase.table.default.storage.type string + hbase.table.name hbase_partition + output format: org.apache.hadoop.hive.hbase.HiveHBaseTableOutputFormat + properties: + bucket_count -1 + columns key,value + columns.comments + columns.types int:string +#### A masked pattern was here #### + hbase.columns.mapping :key,cf:string +#### A masked pattern was here #### + name default.hbase_partition + partition_columns pid + partition_columns.types string + serialization.ddl struct hbase_partition { i32 key, string value} + serialization.format 1 + serialization.lib org.apache.hadoop.hive.hbase.HBaseSerDe + storage_handler org.apache.hadoop.hive.hbase.HBaseStorageHandler +#### A masked pattern was here #### + serde: org.apache.hadoop.hive.hbase.HBaseSerDe + name: default.hbase_partition + name: default.hbase_partition + Partition + input format: org.apache.hadoop.hive.hbase.HiveHBaseTableInputFormat + output format: org.apache.hadoop.hive.hbase.HiveHBaseTableOutputFormat + partition values: + pid 200 + properties: + COLUMN_STATS_ACCURATE true + bucket_count -1 + columns key,value + columns.comments + columns.types int:string +#### A masked pattern was here #### + hbase.columns.mapping :key,cf:string +#### A masked pattern was here #### + name default.hbase_partition + numFiles 0 + numRows 0 + partition_columns pid + partition_columns.types string + rawDataSize 0 + serialization.ddl struct hbase_partition { i32 key, string value} + serialization.format 1 + serialization.lib org.apache.hadoop.hive.hbase.HBaseSerDe + totalSize 0 +#### A masked pattern was here #### + serde: org.apache.hadoop.hive.hbase.HBaseSerDe + + input format: org.apache.hadoop.hive.hbase.HiveHBaseTableInputFormat + output format: org.apache.hadoop.hive.hbase.HiveHBaseTableOutputFormat + properties: + bucket_count -1 + columns key,value + columns.comments + columns.types int:string +#### A masked pattern was here #### + hbase.columns.mapping :key,cf:string +#### A masked pattern was here #### + name default.hbase_partition + partition_columns pid + partition_columns.types string + serialization.ddl struct hbase_partition { i32 key, string value} + serialization.format 1 + serialization.lib org.apache.hadoop.hive.hbase.HBaseSerDe + storage_handler org.apache.hadoop.hive.hbase.HBaseStorageHandler +#### A masked pattern was here #### + serde: org.apache.hadoop.hive.hbase.HBaseSerDe + name: default.hbase_partition + name: default.hbase_partition + Processor Tree: + TableScan + alias: hbase_partition + Statistics: Num rows: 0 Data size: 0 Basic stats: NONE Column stats: NONE + GatherStats: false + Select Operator + expressions: key (type: int), value (type: string), pid (type: string) + outputColumnNames: _col0, _col1, _col2 + Statistics: Num rows: 0 Data size: 0 Basic stats: NONE Column stats: NONE + Limit + Number of rows: 10 + Statistics: Num rows: 0 Data size: 0 Basic stats: NONE Column stats: NONE + ListSink + +PREHOOK: query: select * from hbase_partition limit 10 +PREHOOK: type: QUERY +PREHOOK: Input: default@hbase_partition +PREHOOK: Input: default@hbase_partition@pid=100 +PREHOOK: Input: default@hbase_partition@pid=200 +#### A masked pattern was here #### +POSTHOOK: query: select * from hbase_partition limit 10 +POSTHOOK: type: QUERY +POSTHOOK: Input: default@hbase_partition +POSTHOOK: Input: default@hbase_partition@pid=100 +POSTHOOK: Input: default@hbase_partition@pid=200 +#### A masked pattern was here #### +0 val_0 100 +10 val_10 100 +11 val_11 100 +12 val_12 100 +15 val_15 100 +17 val_17 100 +18 val_18 100 +19 val_19 100 +2 val_2 100 +20 val_20 100 +PREHOOK: query: explain extended +select * from hbase_partition where pid='100' limit 10 +PREHOOK: type: QUERY +POSTHOOK: query: explain extended +select * from hbase_partition where pid='100' limit 10 +POSTHOOK: type: QUERY +ABSTRACT SYNTAX TREE: + +TOK_QUERY + TOK_FROM + TOK_TABREF + TOK_TABNAME + hbase_partition + TOK_INSERT + TOK_DESTINATION + TOK_DIR + TOK_TMP_FILE + TOK_SELECT + TOK_SELEXPR + TOK_ALLCOLREF + TOK_WHERE + = + TOK_TABLE_OR_COL + pid + '100' + TOK_LIMIT + 10 + + +STAGE DEPENDENCIES: + Stage-0 is a root stage + +STAGE PLANS: + Stage: Stage-0 + Fetch Operator + limit: 10 + Partition Description: + Partition + input format: org.apache.hadoop.hive.hbase.HiveHBaseTableInputFormat + output format: org.apache.hadoop.hive.hbase.HiveHBaseTableOutputFormat + partition values: + pid 100 + properties: + COLUMN_STATS_ACCURATE true + bucket_count -1 + columns key,value + columns.comments + columns.types int:string +#### A masked pattern was here #### + hbase.columns.mapping :key,cf:string +#### A masked pattern was here #### + name default.hbase_partition + numFiles 0 + numRows 0 + partition_columns pid + partition_columns.types string + rawDataSize 0 + serialization.ddl struct hbase_partition { i32 key, string value} + serialization.format 1 + serialization.lib org.apache.hadoop.hive.hbase.HBaseSerDe + totalSize 0 +#### A masked pattern was here #### + serde: org.apache.hadoop.hive.hbase.HBaseSerDe + + input format: org.apache.hadoop.hive.hbase.HiveHBaseTableInputFormat + jobProperties: + hbase.columns.mapping :key,cf:string + hbase.columns.mapping.regex.matching true + hbase.table.default.storage.type string + hbase.table.name hbase_partition + output format: org.apache.hadoop.hive.hbase.HiveHBaseTableOutputFormat + properties: + bucket_count -1 + columns key,value + columns.comments + columns.types int:string +#### A masked pattern was here #### + hbase.columns.mapping :key,cf:string +#### A masked pattern was here #### + name default.hbase_partition + partition_columns pid + partition_columns.types string + serialization.ddl struct hbase_partition { i32 key, string value} + serialization.format 1 + serialization.lib org.apache.hadoop.hive.hbase.HBaseSerDe + storage_handler org.apache.hadoop.hive.hbase.HBaseStorageHandler +#### A masked pattern was here #### + serde: org.apache.hadoop.hive.hbase.HBaseSerDe + name: default.hbase_partition + name: default.hbase_partition + Processor Tree: + TableScan + alias: hbase_partition + Statistics: Num rows: 0 Data size: 0 Basic stats: NONE Column stats: NONE + GatherStats: false + Select Operator + expressions: key (type: int), value (type: string), '100' (type: string) + outputColumnNames: _col0, _col1, _col2 + Statistics: Num rows: 0 Data size: 0 Basic stats: NONE Column stats: NONE + Limit + Number of rows: 10 + Statistics: Num rows: 0 Data size: 0 Basic stats: NONE Column stats: NONE + ListSink + +PREHOOK: query: select * from hbase_partition where pid='100' limit 10 +PREHOOK: type: QUERY +PREHOOK: Input: default@hbase_partition +PREHOOK: Input: default@hbase_partition@pid=100 +#### A masked pattern was here #### +POSTHOOK: query: select * from hbase_partition where pid='100' limit 10 +POSTHOOK: type: QUERY +POSTHOOK: Input: default@hbase_partition +POSTHOOK: Input: default@hbase_partition@pid=100 +#### A masked pattern was here #### +0 val_0 100 +10 val_10 100 +11 val_11 100 +12 val_12 100 +15 val_15 100 +17 val_17 100 +18 val_18 100 +19 val_19 100 +2 val_2 100 +20 val_20 100 +PREHOOK: query: explain extended +select * from hbase_partition where pid='200' limit 10 +PREHOOK: type: QUERY +POSTHOOK: query: explain extended +select * from hbase_partition where pid='200' limit 10 +POSTHOOK: type: QUERY +ABSTRACT SYNTAX TREE: + +TOK_QUERY + TOK_FROM + TOK_TABREF + TOK_TABNAME + hbase_partition + TOK_INSERT + TOK_DESTINATION + TOK_DIR + TOK_TMP_FILE + TOK_SELECT + TOK_SELEXPR + TOK_ALLCOLREF + TOK_WHERE + = + TOK_TABLE_OR_COL + pid + '200' + TOK_LIMIT + 10 + + +STAGE DEPENDENCIES: + Stage-0 is a root stage + +STAGE PLANS: + Stage: Stage-0 + Fetch Operator + limit: 10 + Partition Description: + Partition + input format: org.apache.hadoop.hive.hbase.HiveHBaseTableInputFormat + output format: org.apache.hadoop.hive.hbase.HiveHBaseTableOutputFormat + partition values: + pid 200 + properties: + COLUMN_STATS_ACCURATE true + bucket_count -1 + columns key,value + columns.comments + columns.types int:string +#### A masked pattern was here #### + hbase.columns.mapping :key,cf:string +#### A masked pattern was here #### + name default.hbase_partition + numFiles 0 + numRows 0 + partition_columns pid + partition_columns.types string + rawDataSize 0 + serialization.ddl struct hbase_partition { i32 key, string value} + serialization.format 1 + serialization.lib org.apache.hadoop.hive.hbase.HBaseSerDe + totalSize 0 +#### A masked pattern was here #### + serde: org.apache.hadoop.hive.hbase.HBaseSerDe + + input format: org.apache.hadoop.hive.hbase.HiveHBaseTableInputFormat + jobProperties: + hbase.columns.mapping :key,cf:string + hbase.columns.mapping.regex.matching true + hbase.table.default.storage.type string + hbase.table.name hbase_partition + output format: org.apache.hadoop.hive.hbase.HiveHBaseTableOutputFormat + properties: + bucket_count -1 + columns key,value + columns.comments + columns.types int:string +#### A masked pattern was here #### + hbase.columns.mapping :key,cf:string +#### A masked pattern was here #### + name default.hbase_partition + partition_columns pid + partition_columns.types string + serialization.ddl struct hbase_partition { i32 key, string value} + serialization.format 1 + serialization.lib org.apache.hadoop.hive.hbase.HBaseSerDe + storage_handler org.apache.hadoop.hive.hbase.HBaseStorageHandler +#### A masked pattern was here #### + serde: org.apache.hadoop.hive.hbase.HBaseSerDe + name: default.hbase_partition + name: default.hbase_partition + Processor Tree: + TableScan + alias: hbase_partition + Statistics: Num rows: 0 Data size: 0 Basic stats: NONE Column stats: NONE + GatherStats: false + Select Operator + expressions: key (type: int), value (type: string), '200' (type: string) + outputColumnNames: _col0, _col1, _col2 + Statistics: Num rows: 0 Data size: 0 Basic stats: NONE Column stats: NONE + Limit + Number of rows: 10 + Statistics: Num rows: 0 Data size: 0 Basic stats: NONE Column stats: NONE + ListSink + +PREHOOK: query: select * from hbase_partition where pid='200' limit 10 +PREHOOK: type: QUERY +PREHOOK: Input: default@hbase_partition +PREHOOK: Input: default@hbase_partition@pid=200 +#### A masked pattern was here #### +POSTHOOK: query: select * from hbase_partition where pid='200' limit 10 +POSTHOOK: type: QUERY +POSTHOOK: Input: default@hbase_partition +POSTHOOK: Input: default@hbase_partition@pid=200 +#### A masked pattern was here #### +100 val_100 200 +103 val_103 200 +104 val_104 200 +105 val_105 200 +111 val_111 200 +113 val_113 200 +114 val_114 200 +116 val_116 200 +118 val_118 200 +119 val_119 200 +PREHOOK: query: drop table hbase_partition +PREHOOK: type: DROPTABLE +PREHOOK: Input: default@hbase_partition +PREHOOK: Output: default@hbase_partition +POSTHOOK: query: drop table hbase_partition +POSTHOOK: type: DROPTABLE +POSTHOOK: Input: default@hbase_partition +POSTHOOK: Output: default@hbase_partition diff --git metastore/if/hive_metastore.thrift metastore/if/hive_metastore.thrift index f5a0e64..13628be 100755 --- metastore/if/hive_metastore.thrift +++ metastore/if/hive_metastore.thrift @@ -752,9 +752,9 @@ service ThriftHiveMetastore extends fb303.FacebookService 4:NoSuchObjectException o4) // drops the table and all the partitions associated with it if the table has partitions // delete data (including partitions) if deleteData is set to true - void drop_table(1:string dbname, 2:string name, 3:bool deleteData) + list drop_table(1:string dbname, 2:string name, 3:bool deleteData) throws(1:NoSuchObjectException o1, 2:MetaException o3) - void drop_table_with_environment_context(1:string dbname, 2:string name, 3:bool deleteData, + list drop_table_with_environment_context(1:string dbname, 2:string name, 3:bool deleteData, 4:EnvironmentContext environment_context) throws(1:NoSuchObjectException o1, 2:MetaException o3) list get_tables(1: string db_name, 2: string pattern) throws (1: MetaException o1) diff --git metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp index 68cc668..62699c7 100644 --- metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp +++ metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp @@ -3576,6 +3576,26 @@ uint32_t ThriftHiveMetastore_drop_table_result::read(::apache::thrift::protocol: } switch (fid) { + case 0: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->success.clear(); + uint32_t _size460; + ::apache::thrift::protocol::TType _etype463; + xfer += iprot->readListBegin(_etype463, _size460); + this->success.resize(_size460); + uint32_t _i464; + for (_i464 = 0; _i464 < _size460; ++_i464) + { + xfer += this->success[_i464].read(iprot); + } + xfer += iprot->readListEnd(); + } + this->__isset.success = true; + } else { + xfer += iprot->skip(ftype); + } + break; case 1: if (ftype == ::apache::thrift::protocol::T_STRUCT) { xfer += this->o1.read(iprot); @@ -3610,7 +3630,19 @@ uint32_t ThriftHiveMetastore_drop_table_result::write(::apache::thrift::protocol xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_table_result"); - if (this->__isset.o1) { + if (this->__isset.success) { + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); + std::vector ::const_iterator _iter465; + for (_iter465 = this->success.begin(); _iter465 != this->success.end(); ++_iter465) + { + xfer += (*_iter465).write(oprot); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + } else if (this->__isset.o1) { xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1); xfer += this->o1.write(oprot); xfer += oprot->writeFieldEnd(); @@ -3644,6 +3676,26 @@ uint32_t ThriftHiveMetastore_drop_table_presult::read(::apache::thrift::protocol } switch (fid) { + case 0: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + (*(this->success)).clear(); + uint32_t _size466; + ::apache::thrift::protocol::TType _etype469; + xfer += iprot->readListBegin(_etype469, _size466); + (*(this->success)).resize(_size466); + uint32_t _i470; + for (_i470 = 0; _i470 < _size466; ++_i470) + { + xfer += (*(this->success))[_i470].read(iprot); + } + xfer += iprot->readListEnd(); + } + this->__isset.success = true; + } else { + xfer += iprot->skip(ftype); + } + break; case 1: if (ftype == ::apache::thrift::protocol::T_STRUCT) { xfer += this->o1.read(iprot); @@ -3806,6 +3858,26 @@ uint32_t ThriftHiveMetastore_drop_table_with_environment_context_result::read(:: } switch (fid) { + case 0: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->success.clear(); + uint32_t _size471; + ::apache::thrift::protocol::TType _etype474; + xfer += iprot->readListBegin(_etype474, _size471); + this->success.resize(_size471); + uint32_t _i475; + for (_i475 = 0; _i475 < _size471; ++_i475) + { + xfer += this->success[_i475].read(iprot); + } + xfer += iprot->readListEnd(); + } + this->__isset.success = true; + } else { + xfer += iprot->skip(ftype); + } + break; case 1: if (ftype == ::apache::thrift::protocol::T_STRUCT) { xfer += this->o1.read(iprot); @@ -3840,7 +3912,19 @@ uint32_t ThriftHiveMetastore_drop_table_with_environment_context_result::write(: xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_table_with_environment_context_result"); - if (this->__isset.o1) { + if (this->__isset.success) { + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); + std::vector ::const_iterator _iter476; + for (_iter476 = this->success.begin(); _iter476 != this->success.end(); ++_iter476) + { + xfer += (*_iter476).write(oprot); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + } else if (this->__isset.o1) { xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1); xfer += this->o1.write(oprot); xfer += oprot->writeFieldEnd(); @@ -3874,6 +3958,26 @@ uint32_t ThriftHiveMetastore_drop_table_with_environment_context_presult::read(: } switch (fid) { + case 0: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + (*(this->success)).clear(); + uint32_t _size477; + ::apache::thrift::protocol::TType _etype480; + xfer += iprot->readListBegin(_etype480, _size477); + (*(this->success)).resize(_size477); + uint32_t _i481; + for (_i481 = 0; _i481 < _size477; ++_i481) + { + xfer += (*(this->success))[_i481].read(iprot); + } + xfer += iprot->readListEnd(); + } + this->__isset.success = true; + } else { + xfer += iprot->skip(ftype); + } + break; case 1: if (ftype == ::apache::thrift::protocol::T_STRUCT) { xfer += this->o1.read(iprot); @@ -4008,14 +4112,14 @@ uint32_t ThriftHiveMetastore_get_tables_result::read(::apache::thrift::protocol: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size460; - ::apache::thrift::protocol::TType _etype463; - xfer += iprot->readListBegin(_etype463, _size460); - this->success.resize(_size460); - uint32_t _i464; - for (_i464 = 0; _i464 < _size460; ++_i464) + uint32_t _size482; + ::apache::thrift::protocol::TType _etype485; + xfer += iprot->readListBegin(_etype485, _size482); + this->success.resize(_size482); + uint32_t _i486; + for (_i486 = 0; _i486 < _size482; ++_i486) { - xfer += iprot->readString(this->success[_i464]); + xfer += iprot->readString(this->success[_i486]); } xfer += iprot->readListEnd(); } @@ -4054,10 +4158,10 @@ uint32_t ThriftHiveMetastore_get_tables_result::write(::apache::thrift::protocol xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::vector ::const_iterator _iter465; - for (_iter465 = this->success.begin(); _iter465 != this->success.end(); ++_iter465) + std::vector ::const_iterator _iter487; + for (_iter487 = this->success.begin(); _iter487 != this->success.end(); ++_iter487) { - xfer += oprot->writeString((*_iter465)); + xfer += oprot->writeString((*_iter487)); } xfer += oprot->writeListEnd(); } @@ -4096,14 +4200,14 @@ uint32_t ThriftHiveMetastore_get_tables_presult::read(::apache::thrift::protocol if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size466; - ::apache::thrift::protocol::TType _etype469; - xfer += iprot->readListBegin(_etype469, _size466); - (*(this->success)).resize(_size466); - uint32_t _i470; - for (_i470 = 0; _i470 < _size466; ++_i470) + uint32_t _size488; + ::apache::thrift::protocol::TType _etype491; + xfer += iprot->readListBegin(_etype491, _size488); + (*(this->success)).resize(_size488); + uint32_t _i492; + for (_i492 = 0; _i492 < _size488; ++_i492) { - xfer += iprot->readString((*(this->success))[_i470]); + xfer += iprot->readString((*(this->success))[_i492]); } xfer += iprot->readListEnd(); } @@ -4222,14 +4326,14 @@ uint32_t ThriftHiveMetastore_get_all_tables_result::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size471; - ::apache::thrift::protocol::TType _etype474; - xfer += iprot->readListBegin(_etype474, _size471); - this->success.resize(_size471); - uint32_t _i475; - for (_i475 = 0; _i475 < _size471; ++_i475) + uint32_t _size493; + ::apache::thrift::protocol::TType _etype496; + xfer += iprot->readListBegin(_etype496, _size493); + this->success.resize(_size493); + uint32_t _i497; + for (_i497 = 0; _i497 < _size493; ++_i497) { - xfer += iprot->readString(this->success[_i475]); + xfer += iprot->readString(this->success[_i497]); } xfer += iprot->readListEnd(); } @@ -4268,10 +4372,10 @@ uint32_t ThriftHiveMetastore_get_all_tables_result::write(::apache::thrift::prot xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::vector ::const_iterator _iter476; - for (_iter476 = this->success.begin(); _iter476 != this->success.end(); ++_iter476) + std::vector ::const_iterator _iter498; + for (_iter498 = this->success.begin(); _iter498 != this->success.end(); ++_iter498) { - xfer += oprot->writeString((*_iter476)); + xfer += oprot->writeString((*_iter498)); } xfer += oprot->writeListEnd(); } @@ -4310,14 +4414,14 @@ uint32_t ThriftHiveMetastore_get_all_tables_presult::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size477; - ::apache::thrift::protocol::TType _etype480; - xfer += iprot->readListBegin(_etype480, _size477); - (*(this->success)).resize(_size477); - uint32_t _i481; - for (_i481 = 0; _i481 < _size477; ++_i481) + uint32_t _size499; + ::apache::thrift::protocol::TType _etype502; + xfer += iprot->readListBegin(_etype502, _size499); + (*(this->success)).resize(_size499); + uint32_t _i503; + for (_i503 = 0; _i503 < _size499; ++_i503) { - xfer += iprot->readString((*(this->success))[_i481]); + xfer += iprot->readString((*(this->success))[_i503]); } xfer += iprot->readListEnd(); } @@ -4596,14 +4700,14 @@ uint32_t ThriftHiveMetastore_get_table_objects_by_name_args::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_LIST) { { this->tbl_names.clear(); - uint32_t _size482; - ::apache::thrift::protocol::TType _etype485; - xfer += iprot->readListBegin(_etype485, _size482); - this->tbl_names.resize(_size482); - uint32_t _i486; - for (_i486 = 0; _i486 < _size482; ++_i486) + uint32_t _size504; + ::apache::thrift::protocol::TType _etype507; + xfer += iprot->readListBegin(_etype507, _size504); + this->tbl_names.resize(_size504); + uint32_t _i508; + for (_i508 = 0; _i508 < _size504; ++_i508) { - xfer += iprot->readString(this->tbl_names[_i486]); + xfer += iprot->readString(this->tbl_names[_i508]); } xfer += iprot->readListEnd(); } @@ -4635,10 +4739,10 @@ uint32_t ThriftHiveMetastore_get_table_objects_by_name_args::write(::apache::thr xfer += oprot->writeFieldBegin("tbl_names", ::apache::thrift::protocol::T_LIST, 2); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->tbl_names.size())); - std::vector ::const_iterator _iter487; - for (_iter487 = this->tbl_names.begin(); _iter487 != this->tbl_names.end(); ++_iter487) + std::vector ::const_iterator _iter509; + for (_iter509 = this->tbl_names.begin(); _iter509 != this->tbl_names.end(); ++_iter509) { - xfer += oprot->writeString((*_iter487)); + xfer += oprot->writeString((*_iter509)); } xfer += oprot->writeListEnd(); } @@ -4660,10 +4764,10 @@ uint32_t ThriftHiveMetastore_get_table_objects_by_name_pargs::write(::apache::th xfer += oprot->writeFieldBegin("tbl_names", ::apache::thrift::protocol::T_LIST, 2); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->tbl_names)).size())); - std::vector ::const_iterator _iter488; - for (_iter488 = (*(this->tbl_names)).begin(); _iter488 != (*(this->tbl_names)).end(); ++_iter488) + std::vector ::const_iterator _iter510; + for (_iter510 = (*(this->tbl_names)).begin(); _iter510 != (*(this->tbl_names)).end(); ++_iter510) { - xfer += oprot->writeString((*_iter488)); + xfer += oprot->writeString((*_iter510)); } xfer += oprot->writeListEnd(); } @@ -4698,14 +4802,14 @@ uint32_t ThriftHiveMetastore_get_table_objects_by_name_result::read(::apache::th if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size489; - ::apache::thrift::protocol::TType _etype492; - xfer += iprot->readListBegin(_etype492, _size489); - this->success.resize(_size489); - uint32_t _i493; - for (_i493 = 0; _i493 < _size489; ++_i493) + uint32_t _size511; + ::apache::thrift::protocol::TType _etype514; + xfer += iprot->readListBegin(_etype514, _size511); + this->success.resize(_size511); + uint32_t _i515; + for (_i515 = 0; _i515 < _size511; ++_i515) { - xfer += this->success[_i493].read(iprot); + xfer += this->success[_i515].read(iprot); } xfer += iprot->readListEnd(); } @@ -4760,10 +4864,10 @@ uint32_t ThriftHiveMetastore_get_table_objects_by_name_result::write(::apache::t xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter494; - for (_iter494 = this->success.begin(); _iter494 != this->success.end(); ++_iter494) + std::vector
::const_iterator _iter516; + for (_iter516 = this->success.begin(); _iter516 != this->success.end(); ++_iter516) { - xfer += (*_iter494).write(oprot); + xfer += (*_iter516).write(oprot); } xfer += oprot->writeListEnd(); } @@ -4810,14 +4914,14 @@ uint32_t ThriftHiveMetastore_get_table_objects_by_name_presult::read(::apache::t if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size495; - ::apache::thrift::protocol::TType _etype498; - xfer += iprot->readListBegin(_etype498, _size495); - (*(this->success)).resize(_size495); - uint32_t _i499; - for (_i499 = 0; _i499 < _size495; ++_i499) + uint32_t _size517; + ::apache::thrift::protocol::TType _etype520; + xfer += iprot->readListBegin(_etype520, _size517); + (*(this->success)).resize(_size517); + uint32_t _i521; + for (_i521 = 0; _i521 < _size517; ++_i521) { - xfer += (*(this->success))[_i499].read(iprot); + xfer += (*(this->success))[_i521].read(iprot); } xfer += iprot->readListEnd(); } @@ -4984,14 +5088,14 @@ uint32_t ThriftHiveMetastore_get_table_names_by_filter_result::read(::apache::th if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size500; - ::apache::thrift::protocol::TType _etype503; - xfer += iprot->readListBegin(_etype503, _size500); - this->success.resize(_size500); - uint32_t _i504; - for (_i504 = 0; _i504 < _size500; ++_i504) + uint32_t _size522; + ::apache::thrift::protocol::TType _etype525; + xfer += iprot->readListBegin(_etype525, _size522); + this->success.resize(_size522); + uint32_t _i526; + for (_i526 = 0; _i526 < _size522; ++_i526) { - xfer += iprot->readString(this->success[_i504]); + xfer += iprot->readString(this->success[_i526]); } xfer += iprot->readListEnd(); } @@ -5046,10 +5150,10 @@ uint32_t ThriftHiveMetastore_get_table_names_by_filter_result::write(::apache::t xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::vector ::const_iterator _iter505; - for (_iter505 = this->success.begin(); _iter505 != this->success.end(); ++_iter505) + std::vector ::const_iterator _iter527; + for (_iter527 = this->success.begin(); _iter527 != this->success.end(); ++_iter527) { - xfer += oprot->writeString((*_iter505)); + xfer += oprot->writeString((*_iter527)); } xfer += oprot->writeListEnd(); } @@ -5096,14 +5200,14 @@ uint32_t ThriftHiveMetastore_get_table_names_by_filter_presult::read(::apache::t if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size506; - ::apache::thrift::protocol::TType _etype509; - xfer += iprot->readListBegin(_etype509, _size506); - (*(this->success)).resize(_size506); - uint32_t _i510; - for (_i510 = 0; _i510 < _size506; ++_i510) + uint32_t _size528; + ::apache::thrift::protocol::TType _etype531; + xfer += iprot->readListBegin(_etype531, _size528); + (*(this->success)).resize(_size528); + uint32_t _i532; + for (_i532 = 0; _i532 < _size528; ++_i532) { - xfer += iprot->readString((*(this->success))[_i510]); + xfer += iprot->readString((*(this->success))[_i532]); } xfer += iprot->readListEnd(); } @@ -6306,14 +6410,14 @@ uint32_t ThriftHiveMetastore_add_partitions_args::read(::apache::thrift::protoco if (ftype == ::apache::thrift::protocol::T_LIST) { { this->new_parts.clear(); - uint32_t _size511; - ::apache::thrift::protocol::TType _etype514; - xfer += iprot->readListBegin(_etype514, _size511); - this->new_parts.resize(_size511); - uint32_t _i515; - for (_i515 = 0; _i515 < _size511; ++_i515) + uint32_t _size533; + ::apache::thrift::protocol::TType _etype536; + xfer += iprot->readListBegin(_etype536, _size533); + this->new_parts.resize(_size533); + uint32_t _i537; + for (_i537 = 0; _i537 < _size533; ++_i537) { - xfer += this->new_parts[_i515].read(iprot); + xfer += this->new_parts[_i537].read(iprot); } xfer += iprot->readListEnd(); } @@ -6341,10 +6445,10 @@ uint32_t ThriftHiveMetastore_add_partitions_args::write(::apache::thrift::protoc xfer += oprot->writeFieldBegin("new_parts", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->new_parts.size())); - std::vector ::const_iterator _iter516; - for (_iter516 = this->new_parts.begin(); _iter516 != this->new_parts.end(); ++_iter516) + std::vector ::const_iterator _iter538; + for (_iter538 = this->new_parts.begin(); _iter538 != this->new_parts.end(); ++_iter538) { - xfer += (*_iter516).write(oprot); + xfer += (*_iter538).write(oprot); } xfer += oprot->writeListEnd(); } @@ -6362,10 +6466,10 @@ uint32_t ThriftHiveMetastore_add_partitions_pargs::write(::apache::thrift::proto xfer += oprot->writeFieldBegin("new_parts", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast((*(this->new_parts)).size())); - std::vector ::const_iterator _iter517; - for (_iter517 = (*(this->new_parts)).begin(); _iter517 != (*(this->new_parts)).end(); ++_iter517) + std::vector ::const_iterator _iter539; + for (_iter539 = (*(this->new_parts)).begin(); _iter539 != (*(this->new_parts)).end(); ++_iter539) { - xfer += (*_iter517).write(oprot); + xfer += (*_iter539).write(oprot); } xfer += oprot->writeListEnd(); } @@ -6556,14 +6660,14 @@ uint32_t ThriftHiveMetastore_add_partitions_pspec_args::read(::apache::thrift::p if (ftype == ::apache::thrift::protocol::T_LIST) { { this->new_parts.clear(); - uint32_t _size518; - ::apache::thrift::protocol::TType _etype521; - xfer += iprot->readListBegin(_etype521, _size518); - this->new_parts.resize(_size518); - uint32_t _i522; - for (_i522 = 0; _i522 < _size518; ++_i522) + uint32_t _size540; + ::apache::thrift::protocol::TType _etype543; + xfer += iprot->readListBegin(_etype543, _size540); + this->new_parts.resize(_size540); + uint32_t _i544; + for (_i544 = 0; _i544 < _size540; ++_i544) { - xfer += this->new_parts[_i522].read(iprot); + xfer += this->new_parts[_i544].read(iprot); } xfer += iprot->readListEnd(); } @@ -6591,10 +6695,10 @@ uint32_t ThriftHiveMetastore_add_partitions_pspec_args::write(::apache::thrift:: xfer += oprot->writeFieldBegin("new_parts", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->new_parts.size())); - std::vector ::const_iterator _iter523; - for (_iter523 = this->new_parts.begin(); _iter523 != this->new_parts.end(); ++_iter523) + std::vector ::const_iterator _iter545; + for (_iter545 = this->new_parts.begin(); _iter545 != this->new_parts.end(); ++_iter545) { - xfer += (*_iter523).write(oprot); + xfer += (*_iter545).write(oprot); } xfer += oprot->writeListEnd(); } @@ -6612,10 +6716,10 @@ uint32_t ThriftHiveMetastore_add_partitions_pspec_pargs::write(::apache::thrift: xfer += oprot->writeFieldBegin("new_parts", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast((*(this->new_parts)).size())); - std::vector ::const_iterator _iter524; - for (_iter524 = (*(this->new_parts)).begin(); _iter524 != (*(this->new_parts)).end(); ++_iter524) + std::vector ::const_iterator _iter546; + for (_iter546 = (*(this->new_parts)).begin(); _iter546 != (*(this->new_parts)).end(); ++_iter546) { - xfer += (*_iter524).write(oprot); + xfer += (*_iter546).write(oprot); } xfer += oprot->writeListEnd(); } @@ -6822,14 +6926,14 @@ uint32_t ThriftHiveMetastore_append_partition_args::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size525; - ::apache::thrift::protocol::TType _etype528; - xfer += iprot->readListBegin(_etype528, _size525); - this->part_vals.resize(_size525); - uint32_t _i529; - for (_i529 = 0; _i529 < _size525; ++_i529) + uint32_t _size547; + ::apache::thrift::protocol::TType _etype550; + xfer += iprot->readListBegin(_etype550, _size547); + this->part_vals.resize(_size547); + uint32_t _i551; + for (_i551 = 0; _i551 < _size547; ++_i551) { - xfer += iprot->readString(this->part_vals[_i529]); + xfer += iprot->readString(this->part_vals[_i551]); } xfer += iprot->readListEnd(); } @@ -6865,10 +6969,10 @@ uint32_t ThriftHiveMetastore_append_partition_args::write(::apache::thrift::prot xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size())); - std::vector ::const_iterator _iter530; - for (_iter530 = this->part_vals.begin(); _iter530 != this->part_vals.end(); ++_iter530) + std::vector ::const_iterator _iter552; + for (_iter552 = this->part_vals.begin(); _iter552 != this->part_vals.end(); ++_iter552) { - xfer += oprot->writeString((*_iter530)); + xfer += oprot->writeString((*_iter552)); } xfer += oprot->writeListEnd(); } @@ -6894,10 +6998,10 @@ uint32_t ThriftHiveMetastore_append_partition_pargs::write(::apache::thrift::pro xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size())); - std::vector ::const_iterator _iter531; - for (_iter531 = (*(this->part_vals)).begin(); _iter531 != (*(this->part_vals)).end(); ++_iter531) + std::vector ::const_iterator _iter553; + for (_iter553 = (*(this->part_vals)).begin(); _iter553 != (*(this->part_vals)).end(); ++_iter553) { - xfer += oprot->writeString((*_iter531)); + xfer += oprot->writeString((*_iter553)); } xfer += oprot->writeListEnd(); } @@ -7326,14 +7430,14 @@ uint32_t ThriftHiveMetastore_append_partition_with_environment_context_args::rea if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size532; - ::apache::thrift::protocol::TType _etype535; - xfer += iprot->readListBegin(_etype535, _size532); - this->part_vals.resize(_size532); - uint32_t _i536; - for (_i536 = 0; _i536 < _size532; ++_i536) + uint32_t _size554; + ::apache::thrift::protocol::TType _etype557; + xfer += iprot->readListBegin(_etype557, _size554); + this->part_vals.resize(_size554); + uint32_t _i558; + for (_i558 = 0; _i558 < _size554; ++_i558) { - xfer += iprot->readString(this->part_vals[_i536]); + xfer += iprot->readString(this->part_vals[_i558]); } xfer += iprot->readListEnd(); } @@ -7377,10 +7481,10 @@ uint32_t ThriftHiveMetastore_append_partition_with_environment_context_args::wri xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size())); - std::vector ::const_iterator _iter537; - for (_iter537 = this->part_vals.begin(); _iter537 != this->part_vals.end(); ++_iter537) + std::vector ::const_iterator _iter559; + for (_iter559 = this->part_vals.begin(); _iter559 != this->part_vals.end(); ++_iter559) { - xfer += oprot->writeString((*_iter537)); + xfer += oprot->writeString((*_iter559)); } xfer += oprot->writeListEnd(); } @@ -7410,10 +7514,10 @@ uint32_t ThriftHiveMetastore_append_partition_with_environment_context_pargs::wr xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size())); - std::vector ::const_iterator _iter538; - for (_iter538 = (*(this->part_vals)).begin(); _iter538 != (*(this->part_vals)).end(); ++_iter538) + std::vector ::const_iterator _iter560; + for (_iter560 = (*(this->part_vals)).begin(); _iter560 != (*(this->part_vals)).end(); ++_iter560) { - xfer += oprot->writeString((*_iter538)); + xfer += oprot->writeString((*_iter560)); } xfer += oprot->writeListEnd(); } @@ -8148,14 +8252,14 @@ uint32_t ThriftHiveMetastore_drop_partition_args::read(::apache::thrift::protoco if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size539; - ::apache::thrift::protocol::TType _etype542; - xfer += iprot->readListBegin(_etype542, _size539); - this->part_vals.resize(_size539); - uint32_t _i543; - for (_i543 = 0; _i543 < _size539; ++_i543) + uint32_t _size561; + ::apache::thrift::protocol::TType _etype564; + xfer += iprot->readListBegin(_etype564, _size561); + this->part_vals.resize(_size561); + uint32_t _i565; + for (_i565 = 0; _i565 < _size561; ++_i565) { - xfer += iprot->readString(this->part_vals[_i543]); + xfer += iprot->readString(this->part_vals[_i565]); } xfer += iprot->readListEnd(); } @@ -8199,10 +8303,10 @@ uint32_t ThriftHiveMetastore_drop_partition_args::write(::apache::thrift::protoc xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size())); - std::vector ::const_iterator _iter544; - for (_iter544 = this->part_vals.begin(); _iter544 != this->part_vals.end(); ++_iter544) + std::vector ::const_iterator _iter566; + for (_iter566 = this->part_vals.begin(); _iter566 != this->part_vals.end(); ++_iter566) { - xfer += oprot->writeString((*_iter544)); + xfer += oprot->writeString((*_iter566)); } xfer += oprot->writeListEnd(); } @@ -8232,10 +8336,10 @@ uint32_t ThriftHiveMetastore_drop_partition_pargs::write(::apache::thrift::proto xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size())); - std::vector ::const_iterator _iter545; - for (_iter545 = (*(this->part_vals)).begin(); _iter545 != (*(this->part_vals)).end(); ++_iter545) + std::vector ::const_iterator _iter567; + for (_iter567 = (*(this->part_vals)).begin(); _iter567 != (*(this->part_vals)).end(); ++_iter567) { - xfer += oprot->writeString((*_iter545)); + xfer += oprot->writeString((*_iter567)); } xfer += oprot->writeListEnd(); } @@ -8426,14 +8530,14 @@ uint32_t ThriftHiveMetastore_drop_partition_with_environment_context_args::read( if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size546; - ::apache::thrift::protocol::TType _etype549; - xfer += iprot->readListBegin(_etype549, _size546); - this->part_vals.resize(_size546); - uint32_t _i550; - for (_i550 = 0; _i550 < _size546; ++_i550) + uint32_t _size568; + ::apache::thrift::protocol::TType _etype571; + xfer += iprot->readListBegin(_etype571, _size568); + this->part_vals.resize(_size568); + uint32_t _i572; + for (_i572 = 0; _i572 < _size568; ++_i572) { - xfer += iprot->readString(this->part_vals[_i550]); + xfer += iprot->readString(this->part_vals[_i572]); } xfer += iprot->readListEnd(); } @@ -8485,10 +8589,10 @@ uint32_t ThriftHiveMetastore_drop_partition_with_environment_context_args::write xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size())); - std::vector ::const_iterator _iter551; - for (_iter551 = this->part_vals.begin(); _iter551 != this->part_vals.end(); ++_iter551) + std::vector ::const_iterator _iter573; + for (_iter573 = this->part_vals.begin(); _iter573 != this->part_vals.end(); ++_iter573) { - xfer += oprot->writeString((*_iter551)); + xfer += oprot->writeString((*_iter573)); } xfer += oprot->writeListEnd(); } @@ -8522,10 +8626,10 @@ uint32_t ThriftHiveMetastore_drop_partition_with_environment_context_pargs::writ xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size())); - std::vector ::const_iterator _iter552; - for (_iter552 = (*(this->part_vals)).begin(); _iter552 != (*(this->part_vals)).end(); ++_iter552) + std::vector ::const_iterator _iter574; + for (_iter574 = (*(this->part_vals)).begin(); _iter574 != (*(this->part_vals)).end(); ++_iter574) { - xfer += oprot->writeString((*_iter552)); + xfer += oprot->writeString((*_iter574)); } xfer += oprot->writeListEnd(); } @@ -9438,14 +9542,14 @@ uint32_t ThriftHiveMetastore_get_partition_args::read(::apache::thrift::protocol if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size553; - ::apache::thrift::protocol::TType _etype556; - xfer += iprot->readListBegin(_etype556, _size553); - this->part_vals.resize(_size553); - uint32_t _i557; - for (_i557 = 0; _i557 < _size553; ++_i557) + uint32_t _size575; + ::apache::thrift::protocol::TType _etype578; + xfer += iprot->readListBegin(_etype578, _size575); + this->part_vals.resize(_size575); + uint32_t _i579; + for (_i579 = 0; _i579 < _size575; ++_i579) { - xfer += iprot->readString(this->part_vals[_i557]); + xfer += iprot->readString(this->part_vals[_i579]); } xfer += iprot->readListEnd(); } @@ -9481,10 +9585,10 @@ uint32_t ThriftHiveMetastore_get_partition_args::write(::apache::thrift::protoco xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size())); - std::vector ::const_iterator _iter558; - for (_iter558 = this->part_vals.begin(); _iter558 != this->part_vals.end(); ++_iter558) + std::vector ::const_iterator _iter580; + for (_iter580 = this->part_vals.begin(); _iter580 != this->part_vals.end(); ++_iter580) { - xfer += oprot->writeString((*_iter558)); + xfer += oprot->writeString((*_iter580)); } xfer += oprot->writeListEnd(); } @@ -9510,10 +9614,10 @@ uint32_t ThriftHiveMetastore_get_partition_pargs::write(::apache::thrift::protoc xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size())); - std::vector ::const_iterator _iter559; - for (_iter559 = (*(this->part_vals)).begin(); _iter559 != (*(this->part_vals)).end(); ++_iter559) + std::vector ::const_iterator _iter581; + for (_iter581 = (*(this->part_vals)).begin(); _iter581 != (*(this->part_vals)).end(); ++_iter581) { - xfer += oprot->writeString((*_iter559)); + xfer += oprot->writeString((*_iter581)); } xfer += oprot->writeListEnd(); } @@ -9684,17 +9788,17 @@ uint32_t ThriftHiveMetastore_exchange_partition_args::read(::apache::thrift::pro if (ftype == ::apache::thrift::protocol::T_MAP) { { this->partitionSpecs.clear(); - uint32_t _size560; - ::apache::thrift::protocol::TType _ktype561; - ::apache::thrift::protocol::TType _vtype562; - xfer += iprot->readMapBegin(_ktype561, _vtype562, _size560); - uint32_t _i564; - for (_i564 = 0; _i564 < _size560; ++_i564) + uint32_t _size582; + ::apache::thrift::protocol::TType _ktype583; + ::apache::thrift::protocol::TType _vtype584; + xfer += iprot->readMapBegin(_ktype583, _vtype584, _size582); + uint32_t _i586; + for (_i586 = 0; _i586 < _size582; ++_i586) { - std::string _key565; - xfer += iprot->readString(_key565); - std::string& _val566 = this->partitionSpecs[_key565]; - xfer += iprot->readString(_val566); + std::string _key587; + xfer += iprot->readString(_key587); + std::string& _val588 = this->partitionSpecs[_key587]; + xfer += iprot->readString(_val588); } xfer += iprot->readMapEnd(); } @@ -9754,11 +9858,11 @@ uint32_t ThriftHiveMetastore_exchange_partition_args::write(::apache::thrift::pr xfer += oprot->writeFieldBegin("partitionSpecs", ::apache::thrift::protocol::T_MAP, 1); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->partitionSpecs.size())); - std::map ::const_iterator _iter567; - for (_iter567 = this->partitionSpecs.begin(); _iter567 != this->partitionSpecs.end(); ++_iter567) + std::map ::const_iterator _iter589; + for (_iter589 = this->partitionSpecs.begin(); _iter589 != this->partitionSpecs.end(); ++_iter589) { - xfer += oprot->writeString(_iter567->first); - xfer += oprot->writeString(_iter567->second); + xfer += oprot->writeString(_iter589->first); + xfer += oprot->writeString(_iter589->second); } xfer += oprot->writeMapEnd(); } @@ -9792,11 +9896,11 @@ uint32_t ThriftHiveMetastore_exchange_partition_pargs::write(::apache::thrift::p xfer += oprot->writeFieldBegin("partitionSpecs", ::apache::thrift::protocol::T_MAP, 1); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast((*(this->partitionSpecs)).size())); - std::map ::const_iterator _iter568; - for (_iter568 = (*(this->partitionSpecs)).begin(); _iter568 != (*(this->partitionSpecs)).end(); ++_iter568) + std::map ::const_iterator _iter590; + for (_iter590 = (*(this->partitionSpecs)).begin(); _iter590 != (*(this->partitionSpecs)).end(); ++_iter590) { - xfer += oprot->writeString(_iter568->first); - xfer += oprot->writeString(_iter568->second); + xfer += oprot->writeString(_iter590->first); + xfer += oprot->writeString(_iter590->second); } xfer += oprot->writeMapEnd(); } @@ -10039,14 +10143,14 @@ uint32_t ThriftHiveMetastore_get_partition_with_auth_args::read(::apache::thrift if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size569; - ::apache::thrift::protocol::TType _etype572; - xfer += iprot->readListBegin(_etype572, _size569); - this->part_vals.resize(_size569); - uint32_t _i573; - for (_i573 = 0; _i573 < _size569; ++_i573) + uint32_t _size591; + ::apache::thrift::protocol::TType _etype594; + xfer += iprot->readListBegin(_etype594, _size591); + this->part_vals.resize(_size591); + uint32_t _i595; + for (_i595 = 0; _i595 < _size591; ++_i595) { - xfer += iprot->readString(this->part_vals[_i573]); + xfer += iprot->readString(this->part_vals[_i595]); } xfer += iprot->readListEnd(); } @@ -10067,14 +10171,14 @@ uint32_t ThriftHiveMetastore_get_partition_with_auth_args::read(::apache::thrift if (ftype == ::apache::thrift::protocol::T_LIST) { { this->group_names.clear(); - uint32_t _size574; - ::apache::thrift::protocol::TType _etype577; - xfer += iprot->readListBegin(_etype577, _size574); - this->group_names.resize(_size574); - uint32_t _i578; - for (_i578 = 0; _i578 < _size574; ++_i578) + uint32_t _size596; + ::apache::thrift::protocol::TType _etype599; + xfer += iprot->readListBegin(_etype599, _size596); + this->group_names.resize(_size596); + uint32_t _i600; + for (_i600 = 0; _i600 < _size596; ++_i600) { - xfer += iprot->readString(this->group_names[_i578]); + xfer += iprot->readString(this->group_names[_i600]); } xfer += iprot->readListEnd(); } @@ -10110,10 +10214,10 @@ uint32_t ThriftHiveMetastore_get_partition_with_auth_args::write(::apache::thrif xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size())); - std::vector ::const_iterator _iter579; - for (_iter579 = this->part_vals.begin(); _iter579 != this->part_vals.end(); ++_iter579) + std::vector ::const_iterator _iter601; + for (_iter601 = this->part_vals.begin(); _iter601 != this->part_vals.end(); ++_iter601) { - xfer += oprot->writeString((*_iter579)); + xfer += oprot->writeString((*_iter601)); } xfer += oprot->writeListEnd(); } @@ -10126,10 +10230,10 @@ uint32_t ThriftHiveMetastore_get_partition_with_auth_args::write(::apache::thrif xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 5); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->group_names.size())); - std::vector ::const_iterator _iter580; - for (_iter580 = this->group_names.begin(); _iter580 != this->group_names.end(); ++_iter580) + std::vector ::const_iterator _iter602; + for (_iter602 = this->group_names.begin(); _iter602 != this->group_names.end(); ++_iter602) { - xfer += oprot->writeString((*_iter580)); + xfer += oprot->writeString((*_iter602)); } xfer += oprot->writeListEnd(); } @@ -10155,10 +10259,10 @@ uint32_t ThriftHiveMetastore_get_partition_with_auth_pargs::write(::apache::thri xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size())); - std::vector ::const_iterator _iter581; - for (_iter581 = (*(this->part_vals)).begin(); _iter581 != (*(this->part_vals)).end(); ++_iter581) + std::vector ::const_iterator _iter603; + for (_iter603 = (*(this->part_vals)).begin(); _iter603 != (*(this->part_vals)).end(); ++_iter603) { - xfer += oprot->writeString((*_iter581)); + xfer += oprot->writeString((*_iter603)); } xfer += oprot->writeListEnd(); } @@ -10171,10 +10275,10 @@ uint32_t ThriftHiveMetastore_get_partition_with_auth_pargs::write(::apache::thri xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 5); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->group_names)).size())); - std::vector ::const_iterator _iter582; - for (_iter582 = (*(this->group_names)).begin(); _iter582 != (*(this->group_names)).end(); ++_iter582) + std::vector ::const_iterator _iter604; + for (_iter604 = (*(this->group_names)).begin(); _iter604 != (*(this->group_names)).end(); ++_iter604) { - xfer += oprot->writeString((*_iter582)); + xfer += oprot->writeString((*_iter604)); } xfer += oprot->writeListEnd(); } @@ -10677,14 +10781,14 @@ uint32_t ThriftHiveMetastore_get_partitions_result::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size583; - ::apache::thrift::protocol::TType _etype586; - xfer += iprot->readListBegin(_etype586, _size583); - this->success.resize(_size583); - uint32_t _i587; - for (_i587 = 0; _i587 < _size583; ++_i587) + uint32_t _size605; + ::apache::thrift::protocol::TType _etype608; + xfer += iprot->readListBegin(_etype608, _size605); + this->success.resize(_size605); + uint32_t _i609; + for (_i609 = 0; _i609 < _size605; ++_i609) { - xfer += this->success[_i587].read(iprot); + xfer += this->success[_i609].read(iprot); } xfer += iprot->readListEnd(); } @@ -10731,10 +10835,10 @@ uint32_t ThriftHiveMetastore_get_partitions_result::write(::apache::thrift::prot xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter588; - for (_iter588 = this->success.begin(); _iter588 != this->success.end(); ++_iter588) + std::vector ::const_iterator _iter610; + for (_iter610 = this->success.begin(); _iter610 != this->success.end(); ++_iter610) { - xfer += (*_iter588).write(oprot); + xfer += (*_iter610).write(oprot); } xfer += oprot->writeListEnd(); } @@ -10777,14 +10881,14 @@ uint32_t ThriftHiveMetastore_get_partitions_presult::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size589; - ::apache::thrift::protocol::TType _etype592; - xfer += iprot->readListBegin(_etype592, _size589); - (*(this->success)).resize(_size589); - uint32_t _i593; - for (_i593 = 0; _i593 < _size589; ++_i593) + uint32_t _size611; + ::apache::thrift::protocol::TType _etype614; + xfer += iprot->readListBegin(_etype614, _size611); + (*(this->success)).resize(_size611); + uint32_t _i615; + for (_i615 = 0; _i615 < _size611; ++_i615) { - xfer += (*(this->success))[_i593].read(iprot); + xfer += (*(this->success))[_i615].read(iprot); } xfer += iprot->readListEnd(); } @@ -10877,14 +10981,14 @@ uint32_t ThriftHiveMetastore_get_partitions_with_auth_args::read(::apache::thrif if (ftype == ::apache::thrift::protocol::T_LIST) { { this->group_names.clear(); - uint32_t _size594; - ::apache::thrift::protocol::TType _etype597; - xfer += iprot->readListBegin(_etype597, _size594); - this->group_names.resize(_size594); - uint32_t _i598; - for (_i598 = 0; _i598 < _size594; ++_i598) + uint32_t _size616; + ::apache::thrift::protocol::TType _etype619; + xfer += iprot->readListBegin(_etype619, _size616); + this->group_names.resize(_size616); + uint32_t _i620; + for (_i620 = 0; _i620 < _size616; ++_i620) { - xfer += iprot->readString(this->group_names[_i598]); + xfer += iprot->readString(this->group_names[_i620]); } xfer += iprot->readListEnd(); } @@ -10928,10 +11032,10 @@ uint32_t ThriftHiveMetastore_get_partitions_with_auth_args::write(::apache::thri xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 5); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->group_names.size())); - std::vector ::const_iterator _iter599; - for (_iter599 = this->group_names.begin(); _iter599 != this->group_names.end(); ++_iter599) + std::vector ::const_iterator _iter621; + for (_iter621 = this->group_names.begin(); _iter621 != this->group_names.end(); ++_iter621) { - xfer += oprot->writeString((*_iter599)); + xfer += oprot->writeString((*_iter621)); } xfer += oprot->writeListEnd(); } @@ -10965,10 +11069,10 @@ uint32_t ThriftHiveMetastore_get_partitions_with_auth_pargs::write(::apache::thr xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 5); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->group_names)).size())); - std::vector ::const_iterator _iter600; - for (_iter600 = (*(this->group_names)).begin(); _iter600 != (*(this->group_names)).end(); ++_iter600) + std::vector ::const_iterator _iter622; + for (_iter622 = (*(this->group_names)).begin(); _iter622 != (*(this->group_names)).end(); ++_iter622) { - xfer += oprot->writeString((*_iter600)); + xfer += oprot->writeString((*_iter622)); } xfer += oprot->writeListEnd(); } @@ -11003,14 +11107,14 @@ uint32_t ThriftHiveMetastore_get_partitions_with_auth_result::read(::apache::thr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size601; - ::apache::thrift::protocol::TType _etype604; - xfer += iprot->readListBegin(_etype604, _size601); - this->success.resize(_size601); - uint32_t _i605; - for (_i605 = 0; _i605 < _size601; ++_i605) + uint32_t _size623; + ::apache::thrift::protocol::TType _etype626; + xfer += iprot->readListBegin(_etype626, _size623); + this->success.resize(_size623); + uint32_t _i627; + for (_i627 = 0; _i627 < _size623; ++_i627) { - xfer += this->success[_i605].read(iprot); + xfer += this->success[_i627].read(iprot); } xfer += iprot->readListEnd(); } @@ -11057,10 +11161,10 @@ uint32_t ThriftHiveMetastore_get_partitions_with_auth_result::write(::apache::th xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter606; - for (_iter606 = this->success.begin(); _iter606 != this->success.end(); ++_iter606) + std::vector ::const_iterator _iter628; + for (_iter628 = this->success.begin(); _iter628 != this->success.end(); ++_iter628) { - xfer += (*_iter606).write(oprot); + xfer += (*_iter628).write(oprot); } xfer += oprot->writeListEnd(); } @@ -11103,14 +11207,14 @@ uint32_t ThriftHiveMetastore_get_partitions_with_auth_presult::read(::apache::th if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size607; - ::apache::thrift::protocol::TType _etype610; - xfer += iprot->readListBegin(_etype610, _size607); - (*(this->success)).resize(_size607); - uint32_t _i611; - for (_i611 = 0; _i611 < _size607; ++_i611) + uint32_t _size629; + ::apache::thrift::protocol::TType _etype632; + xfer += iprot->readListBegin(_etype632, _size629); + (*(this->success)).resize(_size629); + uint32_t _i633; + for (_i633 = 0; _i633 < _size629; ++_i633) { - xfer += (*(this->success))[_i611].read(iprot); + xfer += (*(this->success))[_i633].read(iprot); } xfer += iprot->readListEnd(); } @@ -11269,14 +11373,14 @@ uint32_t ThriftHiveMetastore_get_partitions_pspec_result::read(::apache::thrift: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size612; - ::apache::thrift::protocol::TType _etype615; - xfer += iprot->readListBegin(_etype615, _size612); - this->success.resize(_size612); - uint32_t _i616; - for (_i616 = 0; _i616 < _size612; ++_i616) + uint32_t _size634; + ::apache::thrift::protocol::TType _etype637; + xfer += iprot->readListBegin(_etype637, _size634); + this->success.resize(_size634); + uint32_t _i638; + for (_i638 = 0; _i638 < _size634; ++_i638) { - xfer += this->success[_i616].read(iprot); + xfer += this->success[_i638].read(iprot); } xfer += iprot->readListEnd(); } @@ -11323,10 +11427,10 @@ uint32_t ThriftHiveMetastore_get_partitions_pspec_result::write(::apache::thrift xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter617; - for (_iter617 = this->success.begin(); _iter617 != this->success.end(); ++_iter617) + std::vector ::const_iterator _iter639; + for (_iter639 = this->success.begin(); _iter639 != this->success.end(); ++_iter639) { - xfer += (*_iter617).write(oprot); + xfer += (*_iter639).write(oprot); } xfer += oprot->writeListEnd(); } @@ -11369,14 +11473,14 @@ uint32_t ThriftHiveMetastore_get_partitions_pspec_presult::read(::apache::thrift if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size618; - ::apache::thrift::protocol::TType _etype621; - xfer += iprot->readListBegin(_etype621, _size618); - (*(this->success)).resize(_size618); - uint32_t _i622; - for (_i622 = 0; _i622 < _size618; ++_i622) + uint32_t _size640; + ::apache::thrift::protocol::TType _etype643; + xfer += iprot->readListBegin(_etype643, _size640); + (*(this->success)).resize(_size640); + uint32_t _i644; + for (_i644 = 0; _i644 < _size640; ++_i644) { - xfer += (*(this->success))[_i622].read(iprot); + xfer += (*(this->success))[_i644].read(iprot); } xfer += iprot->readListEnd(); } @@ -11535,14 +11639,14 @@ uint32_t ThriftHiveMetastore_get_partition_names_result::read(::apache::thrift:: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size623; - ::apache::thrift::protocol::TType _etype626; - xfer += iprot->readListBegin(_etype626, _size623); - this->success.resize(_size623); - uint32_t _i627; - for (_i627 = 0; _i627 < _size623; ++_i627) + uint32_t _size645; + ::apache::thrift::protocol::TType _etype648; + xfer += iprot->readListBegin(_etype648, _size645); + this->success.resize(_size645); + uint32_t _i649; + for (_i649 = 0; _i649 < _size645; ++_i649) { - xfer += iprot->readString(this->success[_i627]); + xfer += iprot->readString(this->success[_i649]); } xfer += iprot->readListEnd(); } @@ -11581,10 +11685,10 @@ uint32_t ThriftHiveMetastore_get_partition_names_result::write(::apache::thrift: xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::vector ::const_iterator _iter628; - for (_iter628 = this->success.begin(); _iter628 != this->success.end(); ++_iter628) + std::vector ::const_iterator _iter650; + for (_iter650 = this->success.begin(); _iter650 != this->success.end(); ++_iter650) { - xfer += oprot->writeString((*_iter628)); + xfer += oprot->writeString((*_iter650)); } xfer += oprot->writeListEnd(); } @@ -11623,14 +11727,14 @@ uint32_t ThriftHiveMetastore_get_partition_names_presult::read(::apache::thrift: if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size629; - ::apache::thrift::protocol::TType _etype632; - xfer += iprot->readListBegin(_etype632, _size629); - (*(this->success)).resize(_size629); - uint32_t _i633; - for (_i633 = 0; _i633 < _size629; ++_i633) + uint32_t _size651; + ::apache::thrift::protocol::TType _etype654; + xfer += iprot->readListBegin(_etype654, _size651); + (*(this->success)).resize(_size651); + uint32_t _i655; + for (_i655 = 0; _i655 < _size651; ++_i655) { - xfer += iprot->readString((*(this->success))[_i633]); + xfer += iprot->readString((*(this->success))[_i655]); } xfer += iprot->readListEnd(); } @@ -11699,14 +11803,14 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_args::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size634; - ::apache::thrift::protocol::TType _etype637; - xfer += iprot->readListBegin(_etype637, _size634); - this->part_vals.resize(_size634); - uint32_t _i638; - for (_i638 = 0; _i638 < _size634; ++_i638) + uint32_t _size656; + ::apache::thrift::protocol::TType _etype659; + xfer += iprot->readListBegin(_etype659, _size656); + this->part_vals.resize(_size656); + uint32_t _i660; + for (_i660 = 0; _i660 < _size656; ++_i660) { - xfer += iprot->readString(this->part_vals[_i638]); + xfer += iprot->readString(this->part_vals[_i660]); } xfer += iprot->readListEnd(); } @@ -11750,10 +11854,10 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_args::write(::apache::thrift::pro xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size())); - std::vector ::const_iterator _iter639; - for (_iter639 = this->part_vals.begin(); _iter639 != this->part_vals.end(); ++_iter639) + std::vector ::const_iterator _iter661; + for (_iter661 = this->part_vals.begin(); _iter661 != this->part_vals.end(); ++_iter661) { - xfer += oprot->writeString((*_iter639)); + xfer += oprot->writeString((*_iter661)); } xfer += oprot->writeListEnd(); } @@ -11783,10 +11887,10 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_pargs::write(::apache::thrift::pr xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size())); - std::vector ::const_iterator _iter640; - for (_iter640 = (*(this->part_vals)).begin(); _iter640 != (*(this->part_vals)).end(); ++_iter640) + std::vector ::const_iterator _iter662; + for (_iter662 = (*(this->part_vals)).begin(); _iter662 != (*(this->part_vals)).end(); ++_iter662) { - xfer += oprot->writeString((*_iter640)); + xfer += oprot->writeString((*_iter662)); } xfer += oprot->writeListEnd(); } @@ -11825,14 +11929,14 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_result::read(::apache::thrift::pr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size641; - ::apache::thrift::protocol::TType _etype644; - xfer += iprot->readListBegin(_etype644, _size641); - this->success.resize(_size641); - uint32_t _i645; - for (_i645 = 0; _i645 < _size641; ++_i645) + uint32_t _size663; + ::apache::thrift::protocol::TType _etype666; + xfer += iprot->readListBegin(_etype666, _size663); + this->success.resize(_size663); + uint32_t _i667; + for (_i667 = 0; _i667 < _size663; ++_i667) { - xfer += this->success[_i645].read(iprot); + xfer += this->success[_i667].read(iprot); } xfer += iprot->readListEnd(); } @@ -11879,10 +11983,10 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_result::write(::apache::thrift::p xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter646; - for (_iter646 = this->success.begin(); _iter646 != this->success.end(); ++_iter646) + std::vector ::const_iterator _iter668; + for (_iter668 = this->success.begin(); _iter668 != this->success.end(); ++_iter668) { - xfer += (*_iter646).write(oprot); + xfer += (*_iter668).write(oprot); } xfer += oprot->writeListEnd(); } @@ -11925,14 +12029,14 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_presult::read(::apache::thrift::p if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size647; - ::apache::thrift::protocol::TType _etype650; - xfer += iprot->readListBegin(_etype650, _size647); - (*(this->success)).resize(_size647); - uint32_t _i651; - for (_i651 = 0; _i651 < _size647; ++_i651) + uint32_t _size669; + ::apache::thrift::protocol::TType _etype672; + xfer += iprot->readListBegin(_etype672, _size669); + (*(this->success)).resize(_size669); + uint32_t _i673; + for (_i673 = 0; _i673 < _size669; ++_i673) { - xfer += (*(this->success))[_i651].read(iprot); + xfer += (*(this->success))[_i673].read(iprot); } xfer += iprot->readListEnd(); } @@ -12009,14 +12113,14 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_args::read(::apache::th if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size652; - ::apache::thrift::protocol::TType _etype655; - xfer += iprot->readListBegin(_etype655, _size652); - this->part_vals.resize(_size652); - uint32_t _i656; - for (_i656 = 0; _i656 < _size652; ++_i656) + uint32_t _size674; + ::apache::thrift::protocol::TType _etype677; + xfer += iprot->readListBegin(_etype677, _size674); + this->part_vals.resize(_size674); + uint32_t _i678; + for (_i678 = 0; _i678 < _size674; ++_i678) { - xfer += iprot->readString(this->part_vals[_i656]); + xfer += iprot->readString(this->part_vals[_i678]); } xfer += iprot->readListEnd(); } @@ -12045,14 +12149,14 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_args::read(::apache::th if (ftype == ::apache::thrift::protocol::T_LIST) { { this->group_names.clear(); - uint32_t _size657; - ::apache::thrift::protocol::TType _etype660; - xfer += iprot->readListBegin(_etype660, _size657); - this->group_names.resize(_size657); - uint32_t _i661; - for (_i661 = 0; _i661 < _size657; ++_i661) + uint32_t _size679; + ::apache::thrift::protocol::TType _etype682; + xfer += iprot->readListBegin(_etype682, _size679); + this->group_names.resize(_size679); + uint32_t _i683; + for (_i683 = 0; _i683 < _size679; ++_i683) { - xfer += iprot->readString(this->group_names[_i661]); + xfer += iprot->readString(this->group_names[_i683]); } xfer += iprot->readListEnd(); } @@ -12088,10 +12192,10 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_args::write(::apache::t xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size())); - std::vector ::const_iterator _iter662; - for (_iter662 = this->part_vals.begin(); _iter662 != this->part_vals.end(); ++_iter662) + std::vector ::const_iterator _iter684; + for (_iter684 = this->part_vals.begin(); _iter684 != this->part_vals.end(); ++_iter684) { - xfer += oprot->writeString((*_iter662)); + xfer += oprot->writeString((*_iter684)); } xfer += oprot->writeListEnd(); } @@ -12108,10 +12212,10 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_args::write(::apache::t xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 6); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->group_names.size())); - std::vector ::const_iterator _iter663; - for (_iter663 = this->group_names.begin(); _iter663 != this->group_names.end(); ++_iter663) + std::vector ::const_iterator _iter685; + for (_iter685 = this->group_names.begin(); _iter685 != this->group_names.end(); ++_iter685) { - xfer += oprot->writeString((*_iter663)); + xfer += oprot->writeString((*_iter685)); } xfer += oprot->writeListEnd(); } @@ -12137,10 +12241,10 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_pargs::write(::apache:: xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size())); - std::vector ::const_iterator _iter664; - for (_iter664 = (*(this->part_vals)).begin(); _iter664 != (*(this->part_vals)).end(); ++_iter664) + std::vector ::const_iterator _iter686; + for (_iter686 = (*(this->part_vals)).begin(); _iter686 != (*(this->part_vals)).end(); ++_iter686) { - xfer += oprot->writeString((*_iter664)); + xfer += oprot->writeString((*_iter686)); } xfer += oprot->writeListEnd(); } @@ -12157,10 +12261,10 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_pargs::write(::apache:: xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 6); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->group_names)).size())); - std::vector ::const_iterator _iter665; - for (_iter665 = (*(this->group_names)).begin(); _iter665 != (*(this->group_names)).end(); ++_iter665) + std::vector ::const_iterator _iter687; + for (_iter687 = (*(this->group_names)).begin(); _iter687 != (*(this->group_names)).end(); ++_iter687) { - xfer += oprot->writeString((*_iter665)); + xfer += oprot->writeString((*_iter687)); } xfer += oprot->writeListEnd(); } @@ -12195,14 +12299,14 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_result::read(::apache:: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size666; - ::apache::thrift::protocol::TType _etype669; - xfer += iprot->readListBegin(_etype669, _size666); - this->success.resize(_size666); - uint32_t _i670; - for (_i670 = 0; _i670 < _size666; ++_i670) + uint32_t _size688; + ::apache::thrift::protocol::TType _etype691; + xfer += iprot->readListBegin(_etype691, _size688); + this->success.resize(_size688); + uint32_t _i692; + for (_i692 = 0; _i692 < _size688; ++_i692) { - xfer += this->success[_i670].read(iprot); + xfer += this->success[_i692].read(iprot); } xfer += iprot->readListEnd(); } @@ -12249,10 +12353,10 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_result::write(::apache: xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter671; - for (_iter671 = this->success.begin(); _iter671 != this->success.end(); ++_iter671) + std::vector ::const_iterator _iter693; + for (_iter693 = this->success.begin(); _iter693 != this->success.end(); ++_iter693) { - xfer += (*_iter671).write(oprot); + xfer += (*_iter693).write(oprot); } xfer += oprot->writeListEnd(); } @@ -12295,14 +12399,14 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_presult::read(::apache: if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size672; - ::apache::thrift::protocol::TType _etype675; - xfer += iprot->readListBegin(_etype675, _size672); - (*(this->success)).resize(_size672); - uint32_t _i676; - for (_i676 = 0; _i676 < _size672; ++_i676) + uint32_t _size694; + ::apache::thrift::protocol::TType _etype697; + xfer += iprot->readListBegin(_etype697, _size694); + (*(this->success)).resize(_size694); + uint32_t _i698; + for (_i698 = 0; _i698 < _size694; ++_i698) { - xfer += (*(this->success))[_i676].read(iprot); + xfer += (*(this->success))[_i698].read(iprot); } xfer += iprot->readListEnd(); } @@ -12379,14 +12483,14 @@ uint32_t ThriftHiveMetastore_get_partition_names_ps_args::read(::apache::thrift: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size677; - ::apache::thrift::protocol::TType _etype680; - xfer += iprot->readListBegin(_etype680, _size677); - this->part_vals.resize(_size677); - uint32_t _i681; - for (_i681 = 0; _i681 < _size677; ++_i681) + uint32_t _size699; + ::apache::thrift::protocol::TType _etype702; + xfer += iprot->readListBegin(_etype702, _size699); + this->part_vals.resize(_size699); + uint32_t _i703; + for (_i703 = 0; _i703 < _size699; ++_i703) { - xfer += iprot->readString(this->part_vals[_i681]); + xfer += iprot->readString(this->part_vals[_i703]); } xfer += iprot->readListEnd(); } @@ -12430,10 +12534,10 @@ uint32_t ThriftHiveMetastore_get_partition_names_ps_args::write(::apache::thrift xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size())); - std::vector ::const_iterator _iter682; - for (_iter682 = this->part_vals.begin(); _iter682 != this->part_vals.end(); ++_iter682) + std::vector ::const_iterator _iter704; + for (_iter704 = this->part_vals.begin(); _iter704 != this->part_vals.end(); ++_iter704) { - xfer += oprot->writeString((*_iter682)); + xfer += oprot->writeString((*_iter704)); } xfer += oprot->writeListEnd(); } @@ -12463,10 +12567,10 @@ uint32_t ThriftHiveMetastore_get_partition_names_ps_pargs::write(::apache::thrif xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size())); - std::vector ::const_iterator _iter683; - for (_iter683 = (*(this->part_vals)).begin(); _iter683 != (*(this->part_vals)).end(); ++_iter683) + std::vector ::const_iterator _iter705; + for (_iter705 = (*(this->part_vals)).begin(); _iter705 != (*(this->part_vals)).end(); ++_iter705) { - xfer += oprot->writeString((*_iter683)); + xfer += oprot->writeString((*_iter705)); } xfer += oprot->writeListEnd(); } @@ -12505,14 +12609,14 @@ uint32_t ThriftHiveMetastore_get_partition_names_ps_result::read(::apache::thrif if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size684; - ::apache::thrift::protocol::TType _etype687; - xfer += iprot->readListBegin(_etype687, _size684); - this->success.resize(_size684); - uint32_t _i688; - for (_i688 = 0; _i688 < _size684; ++_i688) + uint32_t _size706; + ::apache::thrift::protocol::TType _etype709; + xfer += iprot->readListBegin(_etype709, _size706); + this->success.resize(_size706); + uint32_t _i710; + for (_i710 = 0; _i710 < _size706; ++_i710) { - xfer += iprot->readString(this->success[_i688]); + xfer += iprot->readString(this->success[_i710]); } xfer += iprot->readListEnd(); } @@ -12559,10 +12663,10 @@ uint32_t ThriftHiveMetastore_get_partition_names_ps_result::write(::apache::thri xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::vector ::const_iterator _iter689; - for (_iter689 = this->success.begin(); _iter689 != this->success.end(); ++_iter689) + std::vector ::const_iterator _iter711; + for (_iter711 = this->success.begin(); _iter711 != this->success.end(); ++_iter711) { - xfer += oprot->writeString((*_iter689)); + xfer += oprot->writeString((*_iter711)); } xfer += oprot->writeListEnd(); } @@ -12605,14 +12709,14 @@ uint32_t ThriftHiveMetastore_get_partition_names_ps_presult::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size690; - ::apache::thrift::protocol::TType _etype693; - xfer += iprot->readListBegin(_etype693, _size690); - (*(this->success)).resize(_size690); - uint32_t _i694; - for (_i694 = 0; _i694 < _size690; ++_i694) + uint32_t _size712; + ::apache::thrift::protocol::TType _etype715; + xfer += iprot->readListBegin(_etype715, _size712); + (*(this->success)).resize(_size712); + uint32_t _i716; + for (_i716 = 0; _i716 < _size712; ++_i716) { - xfer += iprot->readString((*(this->success))[_i694]); + xfer += iprot->readString((*(this->success))[_i716]); } xfer += iprot->readListEnd(); } @@ -12787,14 +12891,14 @@ uint32_t ThriftHiveMetastore_get_partitions_by_filter_result::read(::apache::thr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size695; - ::apache::thrift::protocol::TType _etype698; - xfer += iprot->readListBegin(_etype698, _size695); - this->success.resize(_size695); - uint32_t _i699; - for (_i699 = 0; _i699 < _size695; ++_i699) + uint32_t _size717; + ::apache::thrift::protocol::TType _etype720; + xfer += iprot->readListBegin(_etype720, _size717); + this->success.resize(_size717); + uint32_t _i721; + for (_i721 = 0; _i721 < _size717; ++_i721) { - xfer += this->success[_i699].read(iprot); + xfer += this->success[_i721].read(iprot); } xfer += iprot->readListEnd(); } @@ -12841,10 +12945,10 @@ uint32_t ThriftHiveMetastore_get_partitions_by_filter_result::write(::apache::th xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter700; - for (_iter700 = this->success.begin(); _iter700 != this->success.end(); ++_iter700) + std::vector ::const_iterator _iter722; + for (_iter722 = this->success.begin(); _iter722 != this->success.end(); ++_iter722) { - xfer += (*_iter700).write(oprot); + xfer += (*_iter722).write(oprot); } xfer += oprot->writeListEnd(); } @@ -12887,14 +12991,14 @@ uint32_t ThriftHiveMetastore_get_partitions_by_filter_presult::read(::apache::th if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size701; - ::apache::thrift::protocol::TType _etype704; - xfer += iprot->readListBegin(_etype704, _size701); - (*(this->success)).resize(_size701); - uint32_t _i705; - for (_i705 = 0; _i705 < _size701; ++_i705) + uint32_t _size723; + ::apache::thrift::protocol::TType _etype726; + xfer += iprot->readListBegin(_etype726, _size723); + (*(this->success)).resize(_size723); + uint32_t _i727; + for (_i727 = 0; _i727 < _size723; ++_i727) { - xfer += (*(this->success))[_i705].read(iprot); + xfer += (*(this->success))[_i727].read(iprot); } xfer += iprot->readListEnd(); } @@ -13069,14 +13173,14 @@ uint32_t ThriftHiveMetastore_get_part_specs_by_filter_result::read(::apache::thr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size706; - ::apache::thrift::protocol::TType _etype709; - xfer += iprot->readListBegin(_etype709, _size706); - this->success.resize(_size706); - uint32_t _i710; - for (_i710 = 0; _i710 < _size706; ++_i710) + uint32_t _size728; + ::apache::thrift::protocol::TType _etype731; + xfer += iprot->readListBegin(_etype731, _size728); + this->success.resize(_size728); + uint32_t _i732; + for (_i732 = 0; _i732 < _size728; ++_i732) { - xfer += this->success[_i710].read(iprot); + xfer += this->success[_i732].read(iprot); } xfer += iprot->readListEnd(); } @@ -13123,10 +13227,10 @@ uint32_t ThriftHiveMetastore_get_part_specs_by_filter_result::write(::apache::th xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter711; - for (_iter711 = this->success.begin(); _iter711 != this->success.end(); ++_iter711) + std::vector ::const_iterator _iter733; + for (_iter733 = this->success.begin(); _iter733 != this->success.end(); ++_iter733) { - xfer += (*_iter711).write(oprot); + xfer += (*_iter733).write(oprot); } xfer += oprot->writeListEnd(); } @@ -13169,14 +13273,14 @@ uint32_t ThriftHiveMetastore_get_part_specs_by_filter_presult::read(::apache::th if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size712; - ::apache::thrift::protocol::TType _etype715; - xfer += iprot->readListBegin(_etype715, _size712); - (*(this->success)).resize(_size712); - uint32_t _i716; - for (_i716 = 0; _i716 < _size712; ++_i716) + uint32_t _size734; + ::apache::thrift::protocol::TType _etype737; + xfer += iprot->readListBegin(_etype737, _size734); + (*(this->success)).resize(_size734); + uint32_t _i738; + for (_i738 = 0; _i738 < _size734; ++_i738) { - xfer += (*(this->success))[_i716].read(iprot); + xfer += (*(this->success))[_i738].read(iprot); } xfer += iprot->readListEnd(); } @@ -13455,14 +13559,14 @@ uint32_t ThriftHiveMetastore_get_partitions_by_names_args::read(::apache::thrift if (ftype == ::apache::thrift::protocol::T_LIST) { { this->names.clear(); - uint32_t _size717; - ::apache::thrift::protocol::TType _etype720; - xfer += iprot->readListBegin(_etype720, _size717); - this->names.resize(_size717); - uint32_t _i721; - for (_i721 = 0; _i721 < _size717; ++_i721) + uint32_t _size739; + ::apache::thrift::protocol::TType _etype742; + xfer += iprot->readListBegin(_etype742, _size739); + this->names.resize(_size739); + uint32_t _i743; + for (_i743 = 0; _i743 < _size739; ++_i743) { - xfer += iprot->readString(this->names[_i721]); + xfer += iprot->readString(this->names[_i743]); } xfer += iprot->readListEnd(); } @@ -13498,10 +13602,10 @@ uint32_t ThriftHiveMetastore_get_partitions_by_names_args::write(::apache::thrif xfer += oprot->writeFieldBegin("names", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->names.size())); - std::vector ::const_iterator _iter722; - for (_iter722 = this->names.begin(); _iter722 != this->names.end(); ++_iter722) + std::vector ::const_iterator _iter744; + for (_iter744 = this->names.begin(); _iter744 != this->names.end(); ++_iter744) { - xfer += oprot->writeString((*_iter722)); + xfer += oprot->writeString((*_iter744)); } xfer += oprot->writeListEnd(); } @@ -13527,10 +13631,10 @@ uint32_t ThriftHiveMetastore_get_partitions_by_names_pargs::write(::apache::thri xfer += oprot->writeFieldBegin("names", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->names)).size())); - std::vector ::const_iterator _iter723; - for (_iter723 = (*(this->names)).begin(); _iter723 != (*(this->names)).end(); ++_iter723) + std::vector ::const_iterator _iter745; + for (_iter745 = (*(this->names)).begin(); _iter745 != (*(this->names)).end(); ++_iter745) { - xfer += oprot->writeString((*_iter723)); + xfer += oprot->writeString((*_iter745)); } xfer += oprot->writeListEnd(); } @@ -13565,14 +13669,14 @@ uint32_t ThriftHiveMetastore_get_partitions_by_names_result::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size724; - ::apache::thrift::protocol::TType _etype727; - xfer += iprot->readListBegin(_etype727, _size724); - this->success.resize(_size724); - uint32_t _i728; - for (_i728 = 0; _i728 < _size724; ++_i728) + uint32_t _size746; + ::apache::thrift::protocol::TType _etype749; + xfer += iprot->readListBegin(_etype749, _size746); + this->success.resize(_size746); + uint32_t _i750; + for (_i750 = 0; _i750 < _size746; ++_i750) { - xfer += this->success[_i728].read(iprot); + xfer += this->success[_i750].read(iprot); } xfer += iprot->readListEnd(); } @@ -13619,10 +13723,10 @@ uint32_t ThriftHiveMetastore_get_partitions_by_names_result::write(::apache::thr xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter729; - for (_iter729 = this->success.begin(); _iter729 != this->success.end(); ++_iter729) + std::vector ::const_iterator _iter751; + for (_iter751 = this->success.begin(); _iter751 != this->success.end(); ++_iter751) { - xfer += (*_iter729).write(oprot); + xfer += (*_iter751).write(oprot); } xfer += oprot->writeListEnd(); } @@ -13665,14 +13769,14 @@ uint32_t ThriftHiveMetastore_get_partitions_by_names_presult::read(::apache::thr if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size730; - ::apache::thrift::protocol::TType _etype733; - xfer += iprot->readListBegin(_etype733, _size730); - (*(this->success)).resize(_size730); - uint32_t _i734; - for (_i734 = 0; _i734 < _size730; ++_i734) + uint32_t _size752; + ::apache::thrift::protocol::TType _etype755; + xfer += iprot->readListBegin(_etype755, _size752); + (*(this->success)).resize(_size752); + uint32_t _i756; + for (_i756 = 0; _i756 < _size752; ++_i756) { - xfer += (*(this->success))[_i734].read(iprot); + xfer += (*(this->success))[_i756].read(iprot); } xfer += iprot->readListEnd(); } @@ -13963,14 +14067,14 @@ uint32_t ThriftHiveMetastore_alter_partitions_args::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->new_parts.clear(); - uint32_t _size735; - ::apache::thrift::protocol::TType _etype738; - xfer += iprot->readListBegin(_etype738, _size735); - this->new_parts.resize(_size735); - uint32_t _i739; - for (_i739 = 0; _i739 < _size735; ++_i739) + uint32_t _size757; + ::apache::thrift::protocol::TType _etype760; + xfer += iprot->readListBegin(_etype760, _size757); + this->new_parts.resize(_size757); + uint32_t _i761; + for (_i761 = 0; _i761 < _size757; ++_i761) { - xfer += this->new_parts[_i739].read(iprot); + xfer += this->new_parts[_i761].read(iprot); } xfer += iprot->readListEnd(); } @@ -14006,10 +14110,10 @@ uint32_t ThriftHiveMetastore_alter_partitions_args::write(::apache::thrift::prot xfer += oprot->writeFieldBegin("new_parts", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->new_parts.size())); - std::vector ::const_iterator _iter740; - for (_iter740 = this->new_parts.begin(); _iter740 != this->new_parts.end(); ++_iter740) + std::vector ::const_iterator _iter762; + for (_iter762 = this->new_parts.begin(); _iter762 != this->new_parts.end(); ++_iter762) { - xfer += (*_iter740).write(oprot); + xfer += (*_iter762).write(oprot); } xfer += oprot->writeListEnd(); } @@ -14035,10 +14139,10 @@ uint32_t ThriftHiveMetastore_alter_partitions_pargs::write(::apache::thrift::pro xfer += oprot->writeFieldBegin("new_parts", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast((*(this->new_parts)).size())); - std::vector ::const_iterator _iter741; - for (_iter741 = (*(this->new_parts)).begin(); _iter741 != (*(this->new_parts)).end(); ++_iter741) + std::vector ::const_iterator _iter763; + for (_iter763 = (*(this->new_parts)).begin(); _iter763 != (*(this->new_parts)).end(); ++_iter763) { - xfer += (*_iter741).write(oprot); + xfer += (*_iter763).write(oprot); } xfer += oprot->writeListEnd(); } @@ -14435,14 +14539,14 @@ uint32_t ThriftHiveMetastore_rename_partition_args::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size742; - ::apache::thrift::protocol::TType _etype745; - xfer += iprot->readListBegin(_etype745, _size742); - this->part_vals.resize(_size742); - uint32_t _i746; - for (_i746 = 0; _i746 < _size742; ++_i746) + uint32_t _size764; + ::apache::thrift::protocol::TType _etype767; + xfer += iprot->readListBegin(_etype767, _size764); + this->part_vals.resize(_size764); + uint32_t _i768; + for (_i768 = 0; _i768 < _size764; ++_i768) { - xfer += iprot->readString(this->part_vals[_i746]); + xfer += iprot->readString(this->part_vals[_i768]); } xfer += iprot->readListEnd(); } @@ -14486,10 +14590,10 @@ uint32_t ThriftHiveMetastore_rename_partition_args::write(::apache::thrift::prot xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size())); - std::vector ::const_iterator _iter747; - for (_iter747 = this->part_vals.begin(); _iter747 != this->part_vals.end(); ++_iter747) + std::vector ::const_iterator _iter769; + for (_iter769 = this->part_vals.begin(); _iter769 != this->part_vals.end(); ++_iter769) { - xfer += oprot->writeString((*_iter747)); + xfer += oprot->writeString((*_iter769)); } xfer += oprot->writeListEnd(); } @@ -14519,10 +14623,10 @@ uint32_t ThriftHiveMetastore_rename_partition_pargs::write(::apache::thrift::pro xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size())); - std::vector ::const_iterator _iter748; - for (_iter748 = (*(this->part_vals)).begin(); _iter748 != (*(this->part_vals)).end(); ++_iter748) + std::vector ::const_iterator _iter770; + for (_iter770 = (*(this->part_vals)).begin(); _iter770 != (*(this->part_vals)).end(); ++_iter770) { - xfer += oprot->writeString((*_iter748)); + xfer += oprot->writeString((*_iter770)); } xfer += oprot->writeListEnd(); } @@ -14677,14 +14781,14 @@ uint32_t ThriftHiveMetastore_partition_name_has_valid_characters_args::read(::ap if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size749; - ::apache::thrift::protocol::TType _etype752; - xfer += iprot->readListBegin(_etype752, _size749); - this->part_vals.resize(_size749); - uint32_t _i753; - for (_i753 = 0; _i753 < _size749; ++_i753) + uint32_t _size771; + ::apache::thrift::protocol::TType _etype774; + xfer += iprot->readListBegin(_etype774, _size771); + this->part_vals.resize(_size771); + uint32_t _i775; + for (_i775 = 0; _i775 < _size771; ++_i775) { - xfer += iprot->readString(this->part_vals[_i753]); + xfer += iprot->readString(this->part_vals[_i775]); } xfer += iprot->readListEnd(); } @@ -14720,10 +14824,10 @@ uint32_t ThriftHiveMetastore_partition_name_has_valid_characters_args::write(::a xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size())); - std::vector ::const_iterator _iter754; - for (_iter754 = this->part_vals.begin(); _iter754 != this->part_vals.end(); ++_iter754) + std::vector ::const_iterator _iter776; + for (_iter776 = this->part_vals.begin(); _iter776 != this->part_vals.end(); ++_iter776) { - xfer += oprot->writeString((*_iter754)); + xfer += oprot->writeString((*_iter776)); } xfer += oprot->writeListEnd(); } @@ -14745,10 +14849,10 @@ uint32_t ThriftHiveMetastore_partition_name_has_valid_characters_pargs::write(:: xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size())); - std::vector ::const_iterator _iter755; - for (_iter755 = (*(this->part_vals)).begin(); _iter755 != (*(this->part_vals)).end(); ++_iter755) + std::vector ::const_iterator _iter777; + for (_iter777 = (*(this->part_vals)).begin(); _iter777 != (*(this->part_vals)).end(); ++_iter777) { - xfer += oprot->writeString((*_iter755)); + xfer += oprot->writeString((*_iter777)); } xfer += oprot->writeListEnd(); } @@ -15167,14 +15271,14 @@ uint32_t ThriftHiveMetastore_partition_name_to_vals_result::read(::apache::thrif if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size756; - ::apache::thrift::protocol::TType _etype759; - xfer += iprot->readListBegin(_etype759, _size756); - this->success.resize(_size756); - uint32_t _i760; - for (_i760 = 0; _i760 < _size756; ++_i760) + uint32_t _size778; + ::apache::thrift::protocol::TType _etype781; + xfer += iprot->readListBegin(_etype781, _size778); + this->success.resize(_size778); + uint32_t _i782; + for (_i782 = 0; _i782 < _size778; ++_i782) { - xfer += iprot->readString(this->success[_i760]); + xfer += iprot->readString(this->success[_i782]); } xfer += iprot->readListEnd(); } @@ -15213,10 +15317,10 @@ uint32_t ThriftHiveMetastore_partition_name_to_vals_result::write(::apache::thri xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::vector ::const_iterator _iter761; - for (_iter761 = this->success.begin(); _iter761 != this->success.end(); ++_iter761) + std::vector ::const_iterator _iter783; + for (_iter783 = this->success.begin(); _iter783 != this->success.end(); ++_iter783) { - xfer += oprot->writeString((*_iter761)); + xfer += oprot->writeString((*_iter783)); } xfer += oprot->writeListEnd(); } @@ -15255,14 +15359,14 @@ uint32_t ThriftHiveMetastore_partition_name_to_vals_presult::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size762; - ::apache::thrift::protocol::TType _etype765; - xfer += iprot->readListBegin(_etype765, _size762); - (*(this->success)).resize(_size762); - uint32_t _i766; - for (_i766 = 0; _i766 < _size762; ++_i766) + uint32_t _size784; + ::apache::thrift::protocol::TType _etype787; + xfer += iprot->readListBegin(_etype787, _size784); + (*(this->success)).resize(_size784); + uint32_t _i788; + for (_i788 = 0; _i788 < _size784; ++_i788) { - xfer += iprot->readString((*(this->success))[_i766]); + xfer += iprot->readString((*(this->success))[_i788]); } xfer += iprot->readListEnd(); } @@ -15381,17 +15485,17 @@ uint32_t ThriftHiveMetastore_partition_name_to_spec_result::read(::apache::thrif if (ftype == ::apache::thrift::protocol::T_MAP) { { this->success.clear(); - uint32_t _size767; - ::apache::thrift::protocol::TType _ktype768; - ::apache::thrift::protocol::TType _vtype769; - xfer += iprot->readMapBegin(_ktype768, _vtype769, _size767); - uint32_t _i771; - for (_i771 = 0; _i771 < _size767; ++_i771) + uint32_t _size789; + ::apache::thrift::protocol::TType _ktype790; + ::apache::thrift::protocol::TType _vtype791; + xfer += iprot->readMapBegin(_ktype790, _vtype791, _size789); + uint32_t _i793; + for (_i793 = 0; _i793 < _size789; ++_i793) { - std::string _key772; - xfer += iprot->readString(_key772); - std::string& _val773 = this->success[_key772]; - xfer += iprot->readString(_val773); + std::string _key794; + xfer += iprot->readString(_key794); + std::string& _val795 = this->success[_key794]; + xfer += iprot->readString(_val795); } xfer += iprot->readMapEnd(); } @@ -15430,11 +15534,11 @@ uint32_t ThriftHiveMetastore_partition_name_to_spec_result::write(::apache::thri 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(this->success.size())); - std::map ::const_iterator _iter774; - for (_iter774 = this->success.begin(); _iter774 != this->success.end(); ++_iter774) + std::map ::const_iterator _iter796; + for (_iter796 = this->success.begin(); _iter796 != this->success.end(); ++_iter796) { - xfer += oprot->writeString(_iter774->first); - xfer += oprot->writeString(_iter774->second); + xfer += oprot->writeString(_iter796->first); + xfer += oprot->writeString(_iter796->second); } xfer += oprot->writeMapEnd(); } @@ -15473,17 +15577,17 @@ uint32_t ThriftHiveMetastore_partition_name_to_spec_presult::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_MAP) { { (*(this->success)).clear(); - uint32_t _size775; - ::apache::thrift::protocol::TType _ktype776; - ::apache::thrift::protocol::TType _vtype777; - xfer += iprot->readMapBegin(_ktype776, _vtype777, _size775); - uint32_t _i779; - for (_i779 = 0; _i779 < _size775; ++_i779) + uint32_t _size797; + ::apache::thrift::protocol::TType _ktype798; + ::apache::thrift::protocol::TType _vtype799; + xfer += iprot->readMapBegin(_ktype798, _vtype799, _size797); + uint32_t _i801; + for (_i801 = 0; _i801 < _size797; ++_i801) { - std::string _key780; - xfer += iprot->readString(_key780); - std::string& _val781 = (*(this->success))[_key780]; - xfer += iprot->readString(_val781); + std::string _key802; + xfer += iprot->readString(_key802); + std::string& _val803 = (*(this->success))[_key802]; + xfer += iprot->readString(_val803); } xfer += iprot->readMapEnd(); } @@ -15552,17 +15656,17 @@ uint32_t ThriftHiveMetastore_markPartitionForEvent_args::read(::apache::thrift:: if (ftype == ::apache::thrift::protocol::T_MAP) { { this->part_vals.clear(); - uint32_t _size782; - ::apache::thrift::protocol::TType _ktype783; - ::apache::thrift::protocol::TType _vtype784; - xfer += iprot->readMapBegin(_ktype783, _vtype784, _size782); - uint32_t _i786; - for (_i786 = 0; _i786 < _size782; ++_i786) + uint32_t _size804; + ::apache::thrift::protocol::TType _ktype805; + ::apache::thrift::protocol::TType _vtype806; + xfer += iprot->readMapBegin(_ktype805, _vtype806, _size804); + uint32_t _i808; + for (_i808 = 0; _i808 < _size804; ++_i808) { - std::string _key787; - xfer += iprot->readString(_key787); - std::string& _val788 = this->part_vals[_key787]; - xfer += iprot->readString(_val788); + std::string _key809; + xfer += iprot->readString(_key809); + std::string& _val810 = this->part_vals[_key809]; + xfer += iprot->readString(_val810); } xfer += iprot->readMapEnd(); } @@ -15573,9 +15677,9 @@ uint32_t ThriftHiveMetastore_markPartitionForEvent_args::read(::apache::thrift:: break; case 4: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast789; - xfer += iprot->readI32(ecast789); - this->eventType = (PartitionEventType::type)ecast789; + int32_t ecast811; + xfer += iprot->readI32(ecast811); + this->eventType = (PartitionEventType::type)ecast811; this->__isset.eventType = true; } else { xfer += iprot->skip(ftype); @@ -15608,11 +15712,11 @@ uint32_t ThriftHiveMetastore_markPartitionForEvent_args::write(::apache::thrift: 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(this->part_vals.size())); - std::map ::const_iterator _iter790; - for (_iter790 = this->part_vals.begin(); _iter790 != this->part_vals.end(); ++_iter790) + std::map ::const_iterator _iter812; + for (_iter812 = this->part_vals.begin(); _iter812 != this->part_vals.end(); ++_iter812) { - xfer += oprot->writeString(_iter790->first); - xfer += oprot->writeString(_iter790->second); + xfer += oprot->writeString(_iter812->first); + xfer += oprot->writeString(_iter812->second); } xfer += oprot->writeMapEnd(); } @@ -15642,11 +15746,11 @@ uint32_t ThriftHiveMetastore_markPartitionForEvent_pargs::write(::apache::thrift 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((*(this->part_vals)).size())); - std::map ::const_iterator _iter791; - for (_iter791 = (*(this->part_vals)).begin(); _iter791 != (*(this->part_vals)).end(); ++_iter791) + std::map ::const_iterator _iter813; + for (_iter813 = (*(this->part_vals)).begin(); _iter813 != (*(this->part_vals)).end(); ++_iter813) { - xfer += oprot->writeString(_iter791->first); - xfer += oprot->writeString(_iter791->second); + xfer += oprot->writeString(_iter813->first); + xfer += oprot->writeString(_iter813->second); } xfer += oprot->writeMapEnd(); } @@ -15897,17 +16001,17 @@ uint32_t ThriftHiveMetastore_isPartitionMarkedForEvent_args::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_MAP) { { this->part_vals.clear(); - uint32_t _size792; - ::apache::thrift::protocol::TType _ktype793; - ::apache::thrift::protocol::TType _vtype794; - xfer += iprot->readMapBegin(_ktype793, _vtype794, _size792); - uint32_t _i796; - for (_i796 = 0; _i796 < _size792; ++_i796) + uint32_t _size814; + ::apache::thrift::protocol::TType _ktype815; + ::apache::thrift::protocol::TType _vtype816; + xfer += iprot->readMapBegin(_ktype815, _vtype816, _size814); + uint32_t _i818; + for (_i818 = 0; _i818 < _size814; ++_i818) { - std::string _key797; - xfer += iprot->readString(_key797); - std::string& _val798 = this->part_vals[_key797]; - xfer += iprot->readString(_val798); + std::string _key819; + xfer += iprot->readString(_key819); + std::string& _val820 = this->part_vals[_key819]; + xfer += iprot->readString(_val820); } xfer += iprot->readMapEnd(); } @@ -15918,9 +16022,9 @@ uint32_t ThriftHiveMetastore_isPartitionMarkedForEvent_args::read(::apache::thri break; case 4: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast799; - xfer += iprot->readI32(ecast799); - this->eventType = (PartitionEventType::type)ecast799; + int32_t ecast821; + xfer += iprot->readI32(ecast821); + this->eventType = (PartitionEventType::type)ecast821; this->__isset.eventType = true; } else { xfer += iprot->skip(ftype); @@ -15953,11 +16057,11 @@ uint32_t ThriftHiveMetastore_isPartitionMarkedForEvent_args::write(::apache::thr 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(this->part_vals.size())); - std::map ::const_iterator _iter800; - for (_iter800 = this->part_vals.begin(); _iter800 != this->part_vals.end(); ++_iter800) + std::map ::const_iterator _iter822; + for (_iter822 = this->part_vals.begin(); _iter822 != this->part_vals.end(); ++_iter822) { - xfer += oprot->writeString(_iter800->first); - xfer += oprot->writeString(_iter800->second); + xfer += oprot->writeString(_iter822->first); + xfer += oprot->writeString(_iter822->second); } xfer += oprot->writeMapEnd(); } @@ -15987,11 +16091,11 @@ uint32_t ThriftHiveMetastore_isPartitionMarkedForEvent_pargs::write(::apache::th 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((*(this->part_vals)).size())); - std::map ::const_iterator _iter801; - for (_iter801 = (*(this->part_vals)).begin(); _iter801 != (*(this->part_vals)).end(); ++_iter801) + std::map ::const_iterator _iter823; + for (_iter823 = (*(this->part_vals)).begin(); _iter823 != (*(this->part_vals)).end(); ++_iter823) { - xfer += oprot->writeString(_iter801->first); - xfer += oprot->writeString(_iter801->second); + xfer += oprot->writeString(_iter823->first); + xfer += oprot->writeString(_iter823->second); } xfer += oprot->writeMapEnd(); } @@ -17296,14 +17400,14 @@ uint32_t ThriftHiveMetastore_get_indexes_result::read(::apache::thrift::protocol if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size802; - ::apache::thrift::protocol::TType _etype805; - xfer += iprot->readListBegin(_etype805, _size802); - this->success.resize(_size802); - uint32_t _i806; - for (_i806 = 0; _i806 < _size802; ++_i806) + uint32_t _size824; + ::apache::thrift::protocol::TType _etype827; + xfer += iprot->readListBegin(_etype827, _size824); + this->success.resize(_size824); + uint32_t _i828; + for (_i828 = 0; _i828 < _size824; ++_i828) { - xfer += this->success[_i806].read(iprot); + xfer += this->success[_i828].read(iprot); } xfer += iprot->readListEnd(); } @@ -17350,10 +17454,10 @@ uint32_t ThriftHiveMetastore_get_indexes_result::write(::apache::thrift::protoco xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter807; - for (_iter807 = this->success.begin(); _iter807 != this->success.end(); ++_iter807) + std::vector ::const_iterator _iter829; + for (_iter829 = this->success.begin(); _iter829 != this->success.end(); ++_iter829) { - xfer += (*_iter807).write(oprot); + xfer += (*_iter829).write(oprot); } xfer += oprot->writeListEnd(); } @@ -17396,14 +17500,14 @@ uint32_t ThriftHiveMetastore_get_indexes_presult::read(::apache::thrift::protoco if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size808; - ::apache::thrift::protocol::TType _etype811; - xfer += iprot->readListBegin(_etype811, _size808); - (*(this->success)).resize(_size808); - uint32_t _i812; - for (_i812 = 0; _i812 < _size808; ++_i812) + uint32_t _size830; + ::apache::thrift::protocol::TType _etype833; + xfer += iprot->readListBegin(_etype833, _size830); + (*(this->success)).resize(_size830); + uint32_t _i834; + for (_i834 = 0; _i834 < _size830; ++_i834) { - xfer += (*(this->success))[_i812].read(iprot); + xfer += (*(this->success))[_i834].read(iprot); } xfer += iprot->readListEnd(); } @@ -17562,14 +17666,14 @@ uint32_t ThriftHiveMetastore_get_index_names_result::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size813; - ::apache::thrift::protocol::TType _etype816; - xfer += iprot->readListBegin(_etype816, _size813); - this->success.resize(_size813); - uint32_t _i817; - for (_i817 = 0; _i817 < _size813; ++_i817) + uint32_t _size835; + ::apache::thrift::protocol::TType _etype838; + xfer += iprot->readListBegin(_etype838, _size835); + this->success.resize(_size835); + uint32_t _i839; + for (_i839 = 0; _i839 < _size835; ++_i839) { - xfer += iprot->readString(this->success[_i817]); + xfer += iprot->readString(this->success[_i839]); } xfer += iprot->readListEnd(); } @@ -17608,10 +17712,10 @@ uint32_t ThriftHiveMetastore_get_index_names_result::write(::apache::thrift::pro xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::vector ::const_iterator _iter818; - for (_iter818 = this->success.begin(); _iter818 != this->success.end(); ++_iter818) + std::vector ::const_iterator _iter840; + for (_iter840 = this->success.begin(); _iter840 != this->success.end(); ++_iter840) { - xfer += oprot->writeString((*_iter818)); + xfer += oprot->writeString((*_iter840)); } xfer += oprot->writeListEnd(); } @@ -17650,14 +17754,14 @@ uint32_t ThriftHiveMetastore_get_index_names_presult::read(::apache::thrift::pro if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size819; - ::apache::thrift::protocol::TType _etype822; - xfer += iprot->readListBegin(_etype822, _size819); - (*(this->success)).resize(_size819); - uint32_t _i823; - for (_i823 = 0; _i823 < _size819; ++_i823) + uint32_t _size841; + ::apache::thrift::protocol::TType _etype844; + xfer += iprot->readListBegin(_etype844, _size841); + (*(this->success)).resize(_size841); + uint32_t _i845; + for (_i845 = 0; _i845 < _size841; ++_i845) { - xfer += iprot->readString((*(this->success))[_i823]); + xfer += iprot->readString((*(this->success))[_i845]); } xfer += iprot->readListEnd(); } @@ -20886,14 +20990,14 @@ uint32_t ThriftHiveMetastore_get_functions_result::read(::apache::thrift::protoc if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size824; - ::apache::thrift::protocol::TType _etype827; - xfer += iprot->readListBegin(_etype827, _size824); - this->success.resize(_size824); - uint32_t _i828; - for (_i828 = 0; _i828 < _size824; ++_i828) + uint32_t _size846; + ::apache::thrift::protocol::TType _etype849; + xfer += iprot->readListBegin(_etype849, _size846); + this->success.resize(_size846); + uint32_t _i850; + for (_i850 = 0; _i850 < _size846; ++_i850) { - xfer += iprot->readString(this->success[_i828]); + xfer += iprot->readString(this->success[_i850]); } xfer += iprot->readListEnd(); } @@ -20932,10 +21036,10 @@ uint32_t ThriftHiveMetastore_get_functions_result::write(::apache::thrift::proto xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::vector ::const_iterator _iter829; - for (_iter829 = this->success.begin(); _iter829 != this->success.end(); ++_iter829) + std::vector ::const_iterator _iter851; + for (_iter851 = this->success.begin(); _iter851 != this->success.end(); ++_iter851) { - xfer += oprot->writeString((*_iter829)); + xfer += oprot->writeString((*_iter851)); } xfer += oprot->writeListEnd(); } @@ -20974,14 +21078,14 @@ uint32_t ThriftHiveMetastore_get_functions_presult::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size830; - ::apache::thrift::protocol::TType _etype833; - xfer += iprot->readListBegin(_etype833, _size830); - (*(this->success)).resize(_size830); - uint32_t _i834; - for (_i834 = 0; _i834 < _size830; ++_i834) + uint32_t _size852; + ::apache::thrift::protocol::TType _etype855; + xfer += iprot->readListBegin(_etype855, _size852); + (*(this->success)).resize(_size852); + uint32_t _i856; + for (_i856 = 0; _i856 < _size852; ++_i856) { - xfer += iprot->readString((*(this->success))[_i834]); + xfer += iprot->readString((*(this->success))[_i856]); } xfer += iprot->readListEnd(); } @@ -21661,14 +21765,14 @@ uint32_t ThriftHiveMetastore_get_role_names_result::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size835; - ::apache::thrift::protocol::TType _etype838; - xfer += iprot->readListBegin(_etype838, _size835); - this->success.resize(_size835); - uint32_t _i839; - for (_i839 = 0; _i839 < _size835; ++_i839) + uint32_t _size857; + ::apache::thrift::protocol::TType _etype860; + xfer += iprot->readListBegin(_etype860, _size857); + this->success.resize(_size857); + uint32_t _i861; + for (_i861 = 0; _i861 < _size857; ++_i861) { - xfer += iprot->readString(this->success[_i839]); + xfer += iprot->readString(this->success[_i861]); } xfer += iprot->readListEnd(); } @@ -21707,10 +21811,10 @@ uint32_t ThriftHiveMetastore_get_role_names_result::write(::apache::thrift::prot xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::vector ::const_iterator _iter840; - for (_iter840 = this->success.begin(); _iter840 != this->success.end(); ++_iter840) + std::vector ::const_iterator _iter862; + for (_iter862 = this->success.begin(); _iter862 != this->success.end(); ++_iter862) { - xfer += oprot->writeString((*_iter840)); + xfer += oprot->writeString((*_iter862)); } xfer += oprot->writeListEnd(); } @@ -21749,14 +21853,14 @@ uint32_t ThriftHiveMetastore_get_role_names_presult::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size841; - ::apache::thrift::protocol::TType _etype844; - xfer += iprot->readListBegin(_etype844, _size841); - (*(this->success)).resize(_size841); - uint32_t _i845; - for (_i845 = 0; _i845 < _size841; ++_i845) + uint32_t _size863; + ::apache::thrift::protocol::TType _etype866; + xfer += iprot->readListBegin(_etype866, _size863); + (*(this->success)).resize(_size863); + uint32_t _i867; + for (_i867 = 0; _i867 < _size863; ++_i867) { - xfer += iprot->readString((*(this->success))[_i845]); + xfer += iprot->readString((*(this->success))[_i867]); } xfer += iprot->readListEnd(); } @@ -21823,9 +21927,9 @@ uint32_t ThriftHiveMetastore_grant_role_args::read(::apache::thrift::protocol::T break; case 3: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast846; - xfer += iprot->readI32(ecast846); - this->principal_type = (PrincipalType::type)ecast846; + int32_t ecast868; + xfer += iprot->readI32(ecast868); + this->principal_type = (PrincipalType::type)ecast868; this->__isset.principal_type = true; } else { xfer += iprot->skip(ftype); @@ -21841,9 +21945,9 @@ uint32_t ThriftHiveMetastore_grant_role_args::read(::apache::thrift::protocol::T break; case 5: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast847; - xfer += iprot->readI32(ecast847); - this->grantorType = (PrincipalType::type)ecast847; + int32_t ecast869; + xfer += iprot->readI32(ecast869); + this->grantorType = (PrincipalType::type)ecast869; this->__isset.grantorType = true; } else { xfer += iprot->skip(ftype); @@ -22089,9 +22193,9 @@ uint32_t ThriftHiveMetastore_revoke_role_args::read(::apache::thrift::protocol:: break; case 3: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast848; - xfer += iprot->readI32(ecast848); - this->principal_type = (PrincipalType::type)ecast848; + int32_t ecast870; + xfer += iprot->readI32(ecast870); + this->principal_type = (PrincipalType::type)ecast870; this->__isset.principal_type = true; } else { xfer += iprot->skip(ftype); @@ -22297,9 +22401,9 @@ uint32_t ThriftHiveMetastore_list_roles_args::read(::apache::thrift::protocol::T break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast849; - xfer += iprot->readI32(ecast849); - this->principal_type = (PrincipalType::type)ecast849; + int32_t ecast871; + xfer += iprot->readI32(ecast871); + this->principal_type = (PrincipalType::type)ecast871; this->__isset.principal_type = true; } else { xfer += iprot->skip(ftype); @@ -22375,14 +22479,14 @@ uint32_t ThriftHiveMetastore_list_roles_result::read(::apache::thrift::protocol: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size850; - ::apache::thrift::protocol::TType _etype853; - xfer += iprot->readListBegin(_etype853, _size850); - this->success.resize(_size850); - uint32_t _i854; - for (_i854 = 0; _i854 < _size850; ++_i854) + uint32_t _size872; + ::apache::thrift::protocol::TType _etype875; + xfer += iprot->readListBegin(_etype875, _size872); + this->success.resize(_size872); + uint32_t _i876; + for (_i876 = 0; _i876 < _size872; ++_i876) { - xfer += this->success[_i854].read(iprot); + xfer += this->success[_i876].read(iprot); } xfer += iprot->readListEnd(); } @@ -22421,10 +22525,10 @@ uint32_t ThriftHiveMetastore_list_roles_result::write(::apache::thrift::protocol xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter855; - for (_iter855 = this->success.begin(); _iter855 != this->success.end(); ++_iter855) + std::vector ::const_iterator _iter877; + for (_iter877 = this->success.begin(); _iter877 != this->success.end(); ++_iter877) { - xfer += (*_iter855).write(oprot); + xfer += (*_iter877).write(oprot); } xfer += oprot->writeListEnd(); } @@ -22463,14 +22567,14 @@ uint32_t ThriftHiveMetastore_list_roles_presult::read(::apache::thrift::protocol if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size856; - ::apache::thrift::protocol::TType _etype859; - xfer += iprot->readListBegin(_etype859, _size856); - (*(this->success)).resize(_size856); - uint32_t _i860; - for (_i860 = 0; _i860 < _size856; ++_i860) + uint32_t _size878; + ::apache::thrift::protocol::TType _etype881; + xfer += iprot->readListBegin(_etype881, _size878); + (*(this->success)).resize(_size878); + uint32_t _i882; + for (_i882 = 0; _i882 < _size878; ++_i882) { - xfer += (*(this->success))[_i860].read(iprot); + xfer += (*(this->success))[_i882].read(iprot); } xfer += iprot->readListEnd(); } @@ -23085,14 +23189,14 @@ uint32_t ThriftHiveMetastore_get_privilege_set_args::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { this->group_names.clear(); - uint32_t _size861; - ::apache::thrift::protocol::TType _etype864; - xfer += iprot->readListBegin(_etype864, _size861); - this->group_names.resize(_size861); - uint32_t _i865; - for (_i865 = 0; _i865 < _size861; ++_i865) + uint32_t _size883; + ::apache::thrift::protocol::TType _etype886; + xfer += iprot->readListBegin(_etype886, _size883); + this->group_names.resize(_size883); + uint32_t _i887; + for (_i887 = 0; _i887 < _size883; ++_i887) { - xfer += iprot->readString(this->group_names[_i865]); + xfer += iprot->readString(this->group_names[_i887]); } xfer += iprot->readListEnd(); } @@ -23128,10 +23232,10 @@ uint32_t ThriftHiveMetastore_get_privilege_set_args::write(::apache::thrift::pro xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->group_names.size())); - std::vector ::const_iterator _iter866; - for (_iter866 = this->group_names.begin(); _iter866 != this->group_names.end(); ++_iter866) + std::vector ::const_iterator _iter888; + for (_iter888 = this->group_names.begin(); _iter888 != this->group_names.end(); ++_iter888) { - xfer += oprot->writeString((*_iter866)); + xfer += oprot->writeString((*_iter888)); } xfer += oprot->writeListEnd(); } @@ -23157,10 +23261,10 @@ uint32_t ThriftHiveMetastore_get_privilege_set_pargs::write(::apache::thrift::pr xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->group_names)).size())); - std::vector ::const_iterator _iter867; - for (_iter867 = (*(this->group_names)).begin(); _iter867 != (*(this->group_names)).end(); ++_iter867) + std::vector ::const_iterator _iter889; + for (_iter889 = (*(this->group_names)).begin(); _iter889 != (*(this->group_names)).end(); ++_iter889) { - xfer += oprot->writeString((*_iter867)); + xfer += oprot->writeString((*_iter889)); } xfer += oprot->writeListEnd(); } @@ -23317,9 +23421,9 @@ uint32_t ThriftHiveMetastore_list_privileges_args::read(::apache::thrift::protoc break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast868; - xfer += iprot->readI32(ecast868); - this->principal_type = (PrincipalType::type)ecast868; + int32_t ecast890; + xfer += iprot->readI32(ecast890); + this->principal_type = (PrincipalType::type)ecast890; this->__isset.principal_type = true; } else { xfer += iprot->skip(ftype); @@ -23411,14 +23515,14 @@ uint32_t ThriftHiveMetastore_list_privileges_result::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size869; - ::apache::thrift::protocol::TType _etype872; - xfer += iprot->readListBegin(_etype872, _size869); - this->success.resize(_size869); - uint32_t _i873; - for (_i873 = 0; _i873 < _size869; ++_i873) + uint32_t _size891; + ::apache::thrift::protocol::TType _etype894; + xfer += iprot->readListBegin(_etype894, _size891); + this->success.resize(_size891); + uint32_t _i895; + for (_i895 = 0; _i895 < _size891; ++_i895) { - xfer += this->success[_i873].read(iprot); + xfer += this->success[_i895].read(iprot); } xfer += iprot->readListEnd(); } @@ -23457,10 +23561,10 @@ uint32_t ThriftHiveMetastore_list_privileges_result::write(::apache::thrift::pro xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter874; - for (_iter874 = this->success.begin(); _iter874 != this->success.end(); ++_iter874) + std::vector ::const_iterator _iter896; + for (_iter896 = this->success.begin(); _iter896 != this->success.end(); ++_iter896) { - xfer += (*_iter874).write(oprot); + xfer += (*_iter896).write(oprot); } xfer += oprot->writeListEnd(); } @@ -23499,14 +23603,14 @@ uint32_t ThriftHiveMetastore_list_privileges_presult::read(::apache::thrift::pro if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size875; - ::apache::thrift::protocol::TType _etype878; - xfer += iprot->readListBegin(_etype878, _size875); - (*(this->success)).resize(_size875); - uint32_t _i879; - for (_i879 = 0; _i879 < _size875; ++_i879) + uint32_t _size897; + ::apache::thrift::protocol::TType _etype900; + xfer += iprot->readListBegin(_etype900, _size897); + (*(this->success)).resize(_size897); + uint32_t _i901; + for (_i901 = 0; _i901 < _size897; ++_i901) { - xfer += (*(this->success))[_i879].read(iprot); + xfer += (*(this->success))[_i901].read(iprot); } xfer += iprot->readListEnd(); } @@ -24113,14 +24217,14 @@ uint32_t ThriftHiveMetastore_set_ugi_args::read(::apache::thrift::protocol::TPro if (ftype == ::apache::thrift::protocol::T_LIST) { { this->group_names.clear(); - uint32_t _size880; - ::apache::thrift::protocol::TType _etype883; - xfer += iprot->readListBegin(_etype883, _size880); - this->group_names.resize(_size880); - uint32_t _i884; - for (_i884 = 0; _i884 < _size880; ++_i884) + uint32_t _size902; + ::apache::thrift::protocol::TType _etype905; + xfer += iprot->readListBegin(_etype905, _size902); + this->group_names.resize(_size902); + uint32_t _i906; + for (_i906 = 0; _i906 < _size902; ++_i906) { - xfer += iprot->readString(this->group_names[_i884]); + xfer += iprot->readString(this->group_names[_i906]); } xfer += iprot->readListEnd(); } @@ -24152,10 +24256,10 @@ uint32_t ThriftHiveMetastore_set_ugi_args::write(::apache::thrift::protocol::TPr xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 2); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->group_names.size())); - std::vector ::const_iterator _iter885; - for (_iter885 = this->group_names.begin(); _iter885 != this->group_names.end(); ++_iter885) + std::vector ::const_iterator _iter907; + for (_iter907 = this->group_names.begin(); _iter907 != this->group_names.end(); ++_iter907) { - xfer += oprot->writeString((*_iter885)); + xfer += oprot->writeString((*_iter907)); } xfer += oprot->writeListEnd(); } @@ -24177,10 +24281,10 @@ uint32_t ThriftHiveMetastore_set_ugi_pargs::write(::apache::thrift::protocol::TP xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 2); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->group_names)).size())); - std::vector ::const_iterator _iter886; - for (_iter886 = (*(this->group_names)).begin(); _iter886 != (*(this->group_names)).end(); ++_iter886) + std::vector ::const_iterator _iter908; + for (_iter908 = (*(this->group_names)).begin(); _iter908 != (*(this->group_names)).end(); ++_iter908) { - xfer += oprot->writeString((*_iter886)); + xfer += oprot->writeString((*_iter908)); } xfer += oprot->writeListEnd(); } @@ -24215,14 +24319,14 @@ uint32_t ThriftHiveMetastore_set_ugi_result::read(::apache::thrift::protocol::TP if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size887; - ::apache::thrift::protocol::TType _etype890; - xfer += iprot->readListBegin(_etype890, _size887); - this->success.resize(_size887); - uint32_t _i891; - for (_i891 = 0; _i891 < _size887; ++_i891) + uint32_t _size909; + ::apache::thrift::protocol::TType _etype912; + xfer += iprot->readListBegin(_etype912, _size909); + this->success.resize(_size909); + uint32_t _i913; + for (_i913 = 0; _i913 < _size909; ++_i913) { - xfer += iprot->readString(this->success[_i891]); + xfer += iprot->readString(this->success[_i913]); } xfer += iprot->readListEnd(); } @@ -24261,10 +24365,10 @@ uint32_t ThriftHiveMetastore_set_ugi_result::write(::apache::thrift::protocol::T xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::vector ::const_iterator _iter892; - for (_iter892 = this->success.begin(); _iter892 != this->success.end(); ++_iter892) + std::vector ::const_iterator _iter914; + for (_iter914 = this->success.begin(); _iter914 != this->success.end(); ++_iter914) { - xfer += oprot->writeString((*_iter892)); + xfer += oprot->writeString((*_iter914)); } xfer += oprot->writeListEnd(); } @@ -24303,14 +24407,14 @@ uint32_t ThriftHiveMetastore_set_ugi_presult::read(::apache::thrift::protocol::T if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size893; - ::apache::thrift::protocol::TType _etype896; - xfer += iprot->readListBegin(_etype896, _size893); - (*(this->success)).resize(_size893); - uint32_t _i897; - for (_i897 = 0; _i897 < _size893; ++_i897) + uint32_t _size915; + ::apache::thrift::protocol::TType _etype918; + xfer += iprot->readListBegin(_etype918, _size915); + (*(this->success)).resize(_size915); + uint32_t _i919; + for (_i919 = 0; _i919 < _size915; ++_i919) { - xfer += iprot->readString((*(this->success))[_i897]); + xfer += iprot->readString((*(this->success))[_i919]); } xfer += iprot->readListEnd(); } @@ -28106,10 +28210,10 @@ void ThriftHiveMetastoreClient::recv_create_table_with_environment_context() return; } -void ThriftHiveMetastoreClient::drop_table(const std::string& dbname, const std::string& name, const bool deleteData) +void ThriftHiveMetastoreClient::drop_table(std::vector & _return, const std::string& dbname, const std::string& name, const bool deleteData) { send_drop_table(dbname, name, deleteData); - recv_drop_table(); + recv_drop_table(_return); } void ThriftHiveMetastoreClient::send_drop_table(const std::string& dbname, const std::string& name, const bool deleteData) @@ -28128,7 +28232,7 @@ void ThriftHiveMetastoreClient::send_drop_table(const std::string& dbname, const oprot_->getTransport()->flush(); } -void ThriftHiveMetastoreClient::recv_drop_table() +void ThriftHiveMetastoreClient::recv_drop_table(std::vector & _return) { int32_t rseqid = 0; @@ -28154,23 +28258,28 @@ void ThriftHiveMetastoreClient::recv_drop_table() iprot_->getTransport()->readEnd(); } ThriftHiveMetastore_drop_table_presult result; + result.success = &_return; result.read(iprot_); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); + if (result.__isset.success) { + // _return pointer has now been filled + return; + } if (result.__isset.o1) { throw result.o1; } if (result.__isset.o3) { throw result.o3; } - return; + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "drop_table failed: unknown result"); } -void ThriftHiveMetastoreClient::drop_table_with_environment_context(const std::string& dbname, const std::string& name, const bool deleteData, const EnvironmentContext& environment_context) +void ThriftHiveMetastoreClient::drop_table_with_environment_context(std::vector & _return, const std::string& dbname, const std::string& name, const bool deleteData, const EnvironmentContext& environment_context) { send_drop_table_with_environment_context(dbname, name, deleteData, environment_context); - recv_drop_table_with_environment_context(); + recv_drop_table_with_environment_context(_return); } void ThriftHiveMetastoreClient::send_drop_table_with_environment_context(const std::string& dbname, const std::string& name, const bool deleteData, const EnvironmentContext& environment_context) @@ -28190,7 +28299,7 @@ void ThriftHiveMetastoreClient::send_drop_table_with_environment_context(const s oprot_->getTransport()->flush(); } -void ThriftHiveMetastoreClient::recv_drop_table_with_environment_context() +void ThriftHiveMetastoreClient::recv_drop_table_with_environment_context(std::vector & _return) { int32_t rseqid = 0; @@ -28216,17 +28325,22 @@ void ThriftHiveMetastoreClient::recv_drop_table_with_environment_context() iprot_->getTransport()->readEnd(); } ThriftHiveMetastore_drop_table_with_environment_context_presult result; + result.success = &_return; result.read(iprot_); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); + if (result.__isset.success) { + // _return pointer has now been filled + return; + } if (result.__isset.o1) { throw result.o1; } if (result.__isset.o3) { throw result.o3; } - return; + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "drop_table_with_environment_context failed: unknown result"); } void ThriftHiveMetastoreClient::get_tables(std::vector & _return, const std::string& db_name, const std::string& pattern) @@ -35604,7 +35718,8 @@ void ThriftHiveMetastoreProcessor::process_drop_table(int32_t seqid, ::apache::t ThriftHiveMetastore_drop_table_result result; try { - iface_->drop_table(args.dbname, args.name, args.deleteData); + iface_->drop_table(result.success, args.dbname, args.name, args.deleteData); + result.__isset.success = true; } catch (NoSuchObjectException &o1) { result.o1 = o1; result.__isset.o1 = true; @@ -35663,7 +35778,8 @@ void ThriftHiveMetastoreProcessor::process_drop_table_with_environment_context(i ThriftHiveMetastore_drop_table_with_environment_context_result result; try { - iface_->drop_table_with_environment_context(args.dbname, args.name, args.deleteData, args.environment_context); + iface_->drop_table_with_environment_context(result.success, args.dbname, args.name, args.deleteData, args.environment_context); + result.__isset.success = true; } catch (NoSuchObjectException &o1) { result.o1 = o1; result.__isset.o1 = true; diff --git metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h index 7ebb423..1a888cd 100644 --- metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h +++ metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h @@ -32,8 +32,8 @@ class ThriftHiveMetastoreIf : virtual public ::facebook::fb303::FacebookService virtual void get_schema(std::vector & _return, const std::string& db_name, const std::string& table_name) = 0; virtual void create_table(const Table& tbl) = 0; virtual void create_table_with_environment_context(const Table& tbl, const EnvironmentContext& environment_context) = 0; - virtual void drop_table(const std::string& dbname, const std::string& name, const bool deleteData) = 0; - virtual void drop_table_with_environment_context(const std::string& dbname, const std::string& name, const bool deleteData, const EnvironmentContext& environment_context) = 0; + virtual void drop_table(std::vector & _return, const std::string& dbname, const std::string& name, const bool deleteData) = 0; + virtual void drop_table_with_environment_context(std::vector & _return, const std::string& dbname, const std::string& name, const bool deleteData, const EnvironmentContext& environment_context) = 0; virtual void get_tables(std::vector & _return, const std::string& db_name, const std::string& pattern) = 0; virtual void get_all_tables(std::vector & _return, const std::string& db_name) = 0; virtual void get_table(Table& _return, const std::string& dbname, const std::string& tbl_name) = 0; @@ -212,10 +212,10 @@ class ThriftHiveMetastoreNull : virtual public ThriftHiveMetastoreIf , virtual p void create_table_with_environment_context(const Table& /* tbl */, const EnvironmentContext& /* environment_context */) { return; } - void drop_table(const std::string& /* dbname */, const std::string& /* name */, const bool /* deleteData */) { + void drop_table(std::vector & /* _return */, const std::string& /* dbname */, const std::string& /* name */, const bool /* deleteData */) { return; } - void drop_table_with_environment_context(const std::string& /* dbname */, const std::string& /* name */, const bool /* deleteData */, const EnvironmentContext& /* environment_context */) { + void drop_table_with_environment_context(std::vector & /* _return */, const std::string& /* dbname */, const std::string& /* name */, const bool /* deleteData */, const EnvironmentContext& /* environment_context */) { return; } void get_tables(std::vector & /* _return */, const std::string& /* db_name */, const std::string& /* pattern */) { @@ -2685,7 +2685,8 @@ class ThriftHiveMetastore_drop_table_pargs { }; typedef struct _ThriftHiveMetastore_drop_table_result__isset { - _ThriftHiveMetastore_drop_table_result__isset() : o1(false), o3(false) {} + _ThriftHiveMetastore_drop_table_result__isset() : success(false), o1(false), o3(false) {} + bool success; bool o1; bool o3; } _ThriftHiveMetastore_drop_table_result__isset; @@ -2698,11 +2699,16 @@ class ThriftHiveMetastore_drop_table_result { virtual ~ThriftHiveMetastore_drop_table_result() throw() {} + std::vector success; NoSuchObjectException o1; MetaException o3; _ThriftHiveMetastore_drop_table_result__isset __isset; + void __set_success(const std::vector & val) { + success = val; + } + void __set_o1(const NoSuchObjectException& val) { o1 = val; } @@ -2713,6 +2719,8 @@ class ThriftHiveMetastore_drop_table_result { bool operator == (const ThriftHiveMetastore_drop_table_result & rhs) const { + if (!(success == rhs.success)) + return false; if (!(o1 == rhs.o1)) return false; if (!(o3 == rhs.o3)) @@ -2731,7 +2739,8 @@ class ThriftHiveMetastore_drop_table_result { }; typedef struct _ThriftHiveMetastore_drop_table_presult__isset { - _ThriftHiveMetastore_drop_table_presult__isset() : o1(false), o3(false) {} + _ThriftHiveMetastore_drop_table_presult__isset() : success(false), o1(false), o3(false) {} + bool success; bool o1; bool o3; } _ThriftHiveMetastore_drop_table_presult__isset; @@ -2742,6 +2751,7 @@ class ThriftHiveMetastore_drop_table_presult { virtual ~ThriftHiveMetastore_drop_table_presult() throw() {} + std::vector * success; NoSuchObjectException o1; MetaException o3; @@ -2830,7 +2840,8 @@ class ThriftHiveMetastore_drop_table_with_environment_context_pargs { }; typedef struct _ThriftHiveMetastore_drop_table_with_environment_context_result__isset { - _ThriftHiveMetastore_drop_table_with_environment_context_result__isset() : o1(false), o3(false) {} + _ThriftHiveMetastore_drop_table_with_environment_context_result__isset() : success(false), o1(false), o3(false) {} + bool success; bool o1; bool o3; } _ThriftHiveMetastore_drop_table_with_environment_context_result__isset; @@ -2843,11 +2854,16 @@ class ThriftHiveMetastore_drop_table_with_environment_context_result { virtual ~ThriftHiveMetastore_drop_table_with_environment_context_result() throw() {} + std::vector success; NoSuchObjectException o1; MetaException o3; _ThriftHiveMetastore_drop_table_with_environment_context_result__isset __isset; + void __set_success(const std::vector & val) { + success = val; + } + void __set_o1(const NoSuchObjectException& val) { o1 = val; } @@ -2858,6 +2874,8 @@ class ThriftHiveMetastore_drop_table_with_environment_context_result { bool operator == (const ThriftHiveMetastore_drop_table_with_environment_context_result & rhs) const { + if (!(success == rhs.success)) + return false; if (!(o1 == rhs.o1)) return false; if (!(o3 == rhs.o3)) @@ -2876,7 +2894,8 @@ class ThriftHiveMetastore_drop_table_with_environment_context_result { }; typedef struct _ThriftHiveMetastore_drop_table_with_environment_context_presult__isset { - _ThriftHiveMetastore_drop_table_with_environment_context_presult__isset() : o1(false), o3(false) {} + _ThriftHiveMetastore_drop_table_with_environment_context_presult__isset() : success(false), o1(false), o3(false) {} + bool success; bool o1; bool o3; } _ThriftHiveMetastore_drop_table_with_environment_context_presult__isset; @@ -2887,6 +2906,7 @@ class ThriftHiveMetastore_drop_table_with_environment_context_presult { virtual ~ThriftHiveMetastore_drop_table_with_environment_context_presult() throw() {} + std::vector * success; NoSuchObjectException o1; MetaException o3; @@ -16627,12 +16647,12 @@ class ThriftHiveMetastoreClient : virtual public ThriftHiveMetastoreIf, public void create_table_with_environment_context(const Table& tbl, const EnvironmentContext& environment_context); void send_create_table_with_environment_context(const Table& tbl, const EnvironmentContext& environment_context); void recv_create_table_with_environment_context(); - void drop_table(const std::string& dbname, const std::string& name, const bool deleteData); + void drop_table(std::vector & _return, const std::string& dbname, const std::string& name, const bool deleteData); void send_drop_table(const std::string& dbname, const std::string& name, const bool deleteData); - void recv_drop_table(); - void drop_table_with_environment_context(const std::string& dbname, const std::string& name, const bool deleteData, const EnvironmentContext& environment_context); + void recv_drop_table(std::vector & _return); + void drop_table_with_environment_context(std::vector & _return, const std::string& dbname, const std::string& name, const bool deleteData, const EnvironmentContext& environment_context); void send_drop_table_with_environment_context(const std::string& dbname, const std::string& name, const bool deleteData, const EnvironmentContext& environment_context); - void recv_drop_table_with_environment_context(); + void recv_drop_table_with_environment_context(std::vector & _return); void get_tables(std::vector & _return, const std::string& db_name, const std::string& pattern); void send_get_tables(const std::string& db_name, const std::string& pattern); void recv_get_tables(std::vector & _return); @@ -17363,22 +17383,24 @@ class ThriftHiveMetastoreMultiface : virtual public ThriftHiveMetastoreIf, publi ifaces_[i]->create_table_with_environment_context(tbl, environment_context); } - void drop_table(const std::string& dbname, const std::string& name, const bool deleteData) { + void drop_table(std::vector & _return, const std::string& dbname, const std::string& name, const bool deleteData) { size_t sz = ifaces_.size(); size_t i = 0; for (; i < (sz - 1); ++i) { - ifaces_[i]->drop_table(dbname, name, deleteData); + ifaces_[i]->drop_table(_return, dbname, name, deleteData); } - ifaces_[i]->drop_table(dbname, name, deleteData); + ifaces_[i]->drop_table(_return, dbname, name, deleteData); + return; } - void drop_table_with_environment_context(const std::string& dbname, const std::string& name, const bool deleteData, const EnvironmentContext& environment_context) { + void drop_table_with_environment_context(std::vector & _return, const std::string& dbname, const std::string& name, const bool deleteData, const EnvironmentContext& environment_context) { size_t sz = ifaces_.size(); size_t i = 0; for (; i < (sz - 1); ++i) { - ifaces_[i]->drop_table_with_environment_context(dbname, name, deleteData, environment_context); + ifaces_[i]->drop_table_with_environment_context(_return, dbname, name, deleteData, environment_context); } - ifaces_[i]->drop_table_with_environment_context(dbname, name, deleteData, environment_context); + ifaces_[i]->drop_table_with_environment_context(_return, dbname, name, deleteData, environment_context); + return; } void get_tables(std::vector & _return, const std::string& db_name, const std::string& pattern) { diff --git metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore_server.skeleton.cpp metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore_server.skeleton.cpp index e5c1fcb..2f7c35d 100644 --- metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore_server.skeleton.cpp +++ metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore_server.skeleton.cpp @@ -102,12 +102,12 @@ class ThriftHiveMetastoreHandler : virtual public ThriftHiveMetastoreIf { printf("create_table_with_environment_context\n"); } - void drop_table(const std::string& dbname, const std::string& name, const bool deleteData) { + void drop_table(std::vector & _return, const std::string& dbname, const std::string& name, const bool deleteData) { // Your implementation goes here printf("drop_table\n"); } - void drop_table_with_environment_context(const std::string& dbname, const std::string& name, const bool deleteData, const EnvironmentContext& environment_context) { + void drop_table_with_environment_context(std::vector & _return, const std::string& dbname, const std::string& name, const bool deleteData, const EnvironmentContext& environment_context) { // Your implementation goes here printf("drop_table_with_environment_context\n"); } diff --git metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java index 09fd71b..136073e 100644 --- metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java +++ metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java @@ -70,9 +70,9 @@ public void create_table_with_environment_context(Table tbl, EnvironmentContext environment_context) throws AlreadyExistsException, InvalidObjectException, MetaException, NoSuchObjectException, org.apache.thrift.TException; - public void drop_table(String dbname, String name, boolean deleteData) throws NoSuchObjectException, MetaException, org.apache.thrift.TException; + public List drop_table(String dbname, String name, boolean deleteData) throws NoSuchObjectException, MetaException, org.apache.thrift.TException; - public void drop_table_with_environment_context(String dbname, String name, boolean deleteData, EnvironmentContext environment_context) throws NoSuchObjectException, MetaException, org.apache.thrift.TException; + public List drop_table_with_environment_context(String dbname, String name, boolean deleteData, EnvironmentContext environment_context) throws NoSuchObjectException, MetaException, org.apache.thrift.TException; public List get_tables(String db_name, String pattern) throws MetaException, org.apache.thrift.TException; @@ -996,10 +996,10 @@ public void recv_create_table_with_environment_context() throws AlreadyExistsExc return; } - public void drop_table(String dbname, String name, boolean deleteData) throws NoSuchObjectException, MetaException, org.apache.thrift.TException + public List drop_table(String dbname, String name, boolean deleteData) throws NoSuchObjectException, MetaException, org.apache.thrift.TException { send_drop_table(dbname, name, deleteData); - recv_drop_table(); + return recv_drop_table(); } public void send_drop_table(String dbname, String name, boolean deleteData) throws org.apache.thrift.TException @@ -1011,23 +1011,26 @@ public void send_drop_table(String dbname, String name, boolean deleteData) thro sendBase("drop_table", args); } - public void recv_drop_table() throws NoSuchObjectException, MetaException, org.apache.thrift.TException + public List recv_drop_table() throws NoSuchObjectException, MetaException, org.apache.thrift.TException { drop_table_result result = new drop_table_result(); receiveBase(result, "drop_table"); + if (result.isSetSuccess()) { + return result.success; + } if (result.o1 != null) { throw result.o1; } if (result.o3 != null) { throw result.o3; } - return; + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "drop_table failed: unknown result"); } - public void drop_table_with_environment_context(String dbname, String name, boolean deleteData, EnvironmentContext environment_context) throws NoSuchObjectException, MetaException, org.apache.thrift.TException + public List drop_table_with_environment_context(String dbname, String name, boolean deleteData, EnvironmentContext environment_context) throws NoSuchObjectException, MetaException, org.apache.thrift.TException { send_drop_table_with_environment_context(dbname, name, deleteData, environment_context); - recv_drop_table_with_environment_context(); + return recv_drop_table_with_environment_context(); } public void send_drop_table_with_environment_context(String dbname, String name, boolean deleteData, EnvironmentContext environment_context) throws org.apache.thrift.TException @@ -1040,17 +1043,20 @@ public void send_drop_table_with_environment_context(String dbname, String name, sendBase("drop_table_with_environment_context", args); } - public void recv_drop_table_with_environment_context() throws NoSuchObjectException, MetaException, org.apache.thrift.TException + public List recv_drop_table_with_environment_context() throws NoSuchObjectException, MetaException, org.apache.thrift.TException { drop_table_with_environment_context_result result = new drop_table_with_environment_context_result(); receiveBase(result, "drop_table_with_environment_context"); + if (result.isSetSuccess()) { + return result.success; + } if (result.o1 != null) { throw result.o1; } if (result.o3 != null) { throw result.o3; } - return; + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "drop_table_with_environment_context failed: unknown result"); } public List get_tables(String db_name, String pattern) throws MetaException, org.apache.thrift.TException @@ -4576,13 +4582,13 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa prot.writeMessageEnd(); } - public void getResult() throws NoSuchObjectException, MetaException, org.apache.thrift.TException { + public List getResult() throws NoSuchObjectException, MetaException, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); - (new Client(prot)).recv_drop_table(); + return (new Client(prot)).recv_drop_table(); } } @@ -4617,13 +4623,13 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa prot.writeMessageEnd(); } - public void getResult() throws NoSuchObjectException, MetaException, org.apache.thrift.TException { + public List getResult() throws NoSuchObjectException, MetaException, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); - (new Client(prot)).recv_drop_table_with_environment_context(); + return (new Client(prot)).recv_drop_table_with_environment_context(); } } @@ -8778,7 +8784,7 @@ protected boolean isOneway() { public drop_table_result getResult(I iface, drop_table_args args) throws org.apache.thrift.TException { drop_table_result result = new drop_table_result(); try { - iface.drop_table(args.dbname, args.name, args.deleteData); + result.success = iface.drop_table(args.dbname, args.name, args.deleteData); } catch (NoSuchObjectException o1) { result.o1 = o1; } catch (MetaException o3) { @@ -8804,7 +8810,7 @@ protected boolean isOneway() { public drop_table_with_environment_context_result getResult(I iface, drop_table_with_environment_context_args args) throws org.apache.thrift.TException { drop_table_with_environment_context_result result = new drop_table_with_environment_context_result(); try { - iface.drop_table_with_environment_context(args.dbname, args.name, args.deleteData, args.environment_context); + result.success = iface.drop_table_with_environment_context(args.dbname, args.name, args.deleteData, args.environment_context); } catch (NoSuchObjectException o1) { result.o1 = o1; } catch (MetaException o3) { @@ -27533,6 +27539,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_table_args stru public static class drop_table_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_table_result"); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField O3_FIELD_DESC = new org.apache.thrift.protocol.TField("o3", org.apache.thrift.protocol.TType.STRUCT, (short)2); @@ -27542,11 +27549,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_table_args stru schemes.put(TupleScheme.class, new drop_table_resultTupleSchemeFactory()); } + private List success; // required private NoSuchObjectException o1; // required private MetaException o3; // 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 { + SUCCESS((short)0, "success"), O1((short)1, "o1"), O3((short)2, "o3"); @@ -27563,6 +27572,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_table_args stru */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { + case 0: // SUCCESS + return SUCCESS; case 1: // O1 return O1; case 2: // O3 @@ -27610,6 +27621,9 @@ public String getFieldName() { 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, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Partition.class)))); 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, @@ -27622,10 +27636,12 @@ public drop_table_result() { } public drop_table_result( + List success, NoSuchObjectException o1, MetaException o3) { this(); + this.success = success; this.o1 = o1; this.o3 = o3; } @@ -27634,6 +27650,13 @@ public drop_table_result( * Performs a deep copy on other. */ public drop_table_result(drop_table_result other) { + if (other.isSetSuccess()) { + List __this__success = new ArrayList(); + for (Partition other_element : other.success) { + __this__success.add(new Partition(other_element)); + } + this.success = __this__success; + } if (other.isSetO1()) { this.o1 = new NoSuchObjectException(other.o1); } @@ -27648,10 +27671,49 @@ public drop_table_result deepCopy() { @Override public void clear() { + this.success = null; this.o1 = null; this.o3 = null; } + public int getSuccessSize() { + return (this.success == null) ? 0 : this.success.size(); + } + + public java.util.Iterator getSuccessIterator() { + return (this.success == null) ? null : this.success.iterator(); + } + + public void addToSuccess(Partition elem) { + if (this.success == null) { + this.success = new ArrayList(); + } + this.success.add(elem); + } + + public List getSuccess() { + return this.success; + } + + public void setSuccess(List success) { + this.success = success; + } + + public void unsetSuccess() { + this.success = null; + } + + /** Returns true if field success is set (has been assigned a value) and false otherwise */ + public boolean isSetSuccess() { + return this.success != null; + } + + public void setSuccessIsSet(boolean value) { + if (!value) { + this.success = null; + } + } + public NoSuchObjectException getO1() { return this.o1; } @@ -27700,6 +27762,14 @@ public void setO3IsSet(boolean value) { public void setFieldValue(_Fields field, Object value) { switch (field) { + case SUCCESS: + if (value == null) { + unsetSuccess(); + } else { + setSuccess((List)value); + } + break; + case O1: if (value == null) { unsetO1(); @@ -27721,6 +27791,9 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { + case SUCCESS: + return getSuccess(); + case O1: return getO1(); @@ -27738,6 +27811,8 @@ public boolean isSet(_Fields field) { } switch (field) { + case SUCCESS: + return isSetSuccess(); case O1: return isSetO1(); case O3: @@ -27759,6 +27834,15 @@ public boolean equals(drop_table_result that) { if (that == null) return false; + boolean this_present_success = true && this.isSetSuccess(); + boolean that_present_success = true && that.isSetSuccess(); + if (this_present_success || that_present_success) { + if (!(this_present_success && that_present_success)) + return false; + if (!this.success.equals(that.success)) + return false; + } + boolean this_present_o1 = true && this.isSetO1(); boolean that_present_o1 = true && that.isSetO1(); if (this_present_o1 || that_present_o1) { @@ -27784,6 +27868,11 @@ public boolean equals(drop_table_result that) { public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); + boolean present_success = true && (isSetSuccess()); + builder.append(present_success); + if (present_success) + builder.append(success); + boolean present_o1 = true && (isSetO1()); builder.append(present_o1); if (present_o1) @@ -27805,6 +27894,16 @@ public int compareTo(drop_table_result other) { int lastComparison = 0; drop_table_result typedOther = (drop_table_result)other; + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetSuccess()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); + if (lastComparison != 0) { + return lastComparison; + } + } lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; @@ -27845,6 +27944,14 @@ public String toString() { StringBuilder sb = new StringBuilder("drop_table_result("); boolean first = true; + sb.append("success:"); + if (this.success == null) { + sb.append("null"); + } else { + sb.append(this.success); + } + first = false; + if (!first) sb.append(", "); sb.append("o1:"); if (this.o1 == null) { sb.append("null"); @@ -27903,6 +28010,25 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_table_result s break; } switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list534 = iprot.readListBegin(); + struct.success = new ArrayList(_list534.size); + for (int _i535 = 0; _i535 < _list534.size; ++_i535) + { + Partition _elem536; // required + _elem536 = new Partition(); + _elem536.read(iprot); + struct.success.add(_elem536); + } + iprot.readListEnd(); + } + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; case 1: // O1 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.o1 = new NoSuchObjectException(); @@ -27934,6 +28060,18 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, drop_table_result struct.validate(); oprot.writeStructBegin(STRUCT_DESC); + if (struct.success != null) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); + for (Partition _iter537 : struct.success) + { + _iter537.write(oprot); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } if (struct.o1 != null) { oprot.writeFieldBegin(O1_FIELD_DESC); struct.o1.write(oprot); @@ -27962,13 +28100,25 @@ public drop_table_resultTupleScheme getScheme() { public void write(org.apache.thrift.protocol.TProtocol prot, drop_table_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetO1()) { + if (struct.isSetSuccess()) { optionals.set(0); } - if (struct.isSetO3()) { + if (struct.isSetO1()) { optionals.set(1); } - oprot.writeBitSet(optionals, 2); + if (struct.isSetO3()) { + optionals.set(2); + } + oprot.writeBitSet(optionals, 3); + if (struct.isSetSuccess()) { + { + oprot.writeI32(struct.success.size()); + for (Partition _iter538 : struct.success) + { + _iter538.write(oprot); + } + } + } if (struct.isSetO1()) { struct.o1.write(oprot); } @@ -27980,13 +28130,27 @@ public void write(org.apache.thrift.protocol.TProtocol prot, drop_table_result s @Override public void read(org.apache.thrift.protocol.TProtocol prot, drop_table_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { + { + org.apache.thrift.protocol.TList _list539 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list539.size); + for (int _i540 = 0; _i540 < _list539.size; ++_i540) + { + Partition _elem541; // required + _elem541 = new Partition(); + _elem541.read(iprot); + struct.success.add(_elem541); + } + } + struct.setSuccessIsSet(true); + } + if (incoming.get(1)) { struct.o1 = new NoSuchObjectException(); struct.o1.read(iprot); struct.setO1IsSet(true); } - if (incoming.get(1)) { + if (incoming.get(2)) { struct.o3 = new MetaException(); struct.o3.read(iprot); struct.setO3IsSet(true); @@ -28672,6 +28836,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_table_with_envi public static class drop_table_with_environment_context_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_table_with_environment_context_result"); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField O3_FIELD_DESC = new org.apache.thrift.protocol.TField("o3", org.apache.thrift.protocol.TType.STRUCT, (short)2); @@ -28681,11 +28846,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_table_with_envi schemes.put(TupleScheme.class, new drop_table_with_environment_context_resultTupleSchemeFactory()); } + private List success; // required private NoSuchObjectException o1; // required private MetaException o3; // 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 { + SUCCESS((short)0, "success"), O1((short)1, "o1"), O3((short)2, "o3"); @@ -28702,6 +28869,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_table_with_envi */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { + case 0: // SUCCESS + return SUCCESS; case 1: // O1 return O1; case 2: // O3 @@ -28749,6 +28918,9 @@ public String getFieldName() { 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, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Partition.class)))); 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, @@ -28761,10 +28933,12 @@ public drop_table_with_environment_context_result() { } public drop_table_with_environment_context_result( + List success, NoSuchObjectException o1, MetaException o3) { this(); + this.success = success; this.o1 = o1; this.o3 = o3; } @@ -28773,6 +28947,13 @@ public drop_table_with_environment_context_result( * Performs a deep copy on other. */ public drop_table_with_environment_context_result(drop_table_with_environment_context_result other) { + if (other.isSetSuccess()) { + List __this__success = new ArrayList(); + for (Partition other_element : other.success) { + __this__success.add(new Partition(other_element)); + } + this.success = __this__success; + } if (other.isSetO1()) { this.o1 = new NoSuchObjectException(other.o1); } @@ -28787,10 +28968,49 @@ public drop_table_with_environment_context_result deepCopy() { @Override public void clear() { + this.success = null; this.o1 = null; this.o3 = null; } + public int getSuccessSize() { + return (this.success == null) ? 0 : this.success.size(); + } + + public java.util.Iterator getSuccessIterator() { + return (this.success == null) ? null : this.success.iterator(); + } + + public void addToSuccess(Partition elem) { + if (this.success == null) { + this.success = new ArrayList(); + } + this.success.add(elem); + } + + public List getSuccess() { + return this.success; + } + + public void setSuccess(List success) { + this.success = success; + } + + public void unsetSuccess() { + this.success = null; + } + + /** Returns true if field success is set (has been assigned a value) and false otherwise */ + public boolean isSetSuccess() { + return this.success != null; + } + + public void setSuccessIsSet(boolean value) { + if (!value) { + this.success = null; + } + } + public NoSuchObjectException getO1() { return this.o1; } @@ -28839,6 +29059,14 @@ public void setO3IsSet(boolean value) { public void setFieldValue(_Fields field, Object value) { switch (field) { + case SUCCESS: + if (value == null) { + unsetSuccess(); + } else { + setSuccess((List)value); + } + break; + case O1: if (value == null) { unsetO1(); @@ -28860,6 +29088,9 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { + case SUCCESS: + return getSuccess(); + case O1: return getO1(); @@ -28877,6 +29108,8 @@ public boolean isSet(_Fields field) { } switch (field) { + case SUCCESS: + return isSetSuccess(); case O1: return isSetO1(); case O3: @@ -28898,6 +29131,15 @@ public boolean equals(drop_table_with_environment_context_result that) { if (that == null) return false; + boolean this_present_success = true && this.isSetSuccess(); + boolean that_present_success = true && that.isSetSuccess(); + if (this_present_success || that_present_success) { + if (!(this_present_success && that_present_success)) + return false; + if (!this.success.equals(that.success)) + return false; + } + boolean this_present_o1 = true && this.isSetO1(); boolean that_present_o1 = true && that.isSetO1(); if (this_present_o1 || that_present_o1) { @@ -28923,6 +29165,11 @@ public boolean equals(drop_table_with_environment_context_result that) { public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); + boolean present_success = true && (isSetSuccess()); + builder.append(present_success); + if (present_success) + builder.append(success); + boolean present_o1 = true && (isSetO1()); builder.append(present_o1); if (present_o1) @@ -28944,6 +29191,16 @@ public int compareTo(drop_table_with_environment_context_result other) { int lastComparison = 0; drop_table_with_environment_context_result typedOther = (drop_table_with_environment_context_result)other; + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetSuccess()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); + if (lastComparison != 0) { + return lastComparison; + } + } lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; @@ -28984,6 +29241,14 @@ public String toString() { StringBuilder sb = new StringBuilder("drop_table_with_environment_context_result("); boolean first = true; + sb.append("success:"); + if (this.success == null) { + sb.append("null"); + } else { + sb.append(this.success); + } + first = false; + if (!first) sb.append(", "); sb.append("o1:"); if (this.o1 == null) { sb.append("null"); @@ -29042,6 +29307,25 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_table_with_env break; } switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list542 = iprot.readListBegin(); + struct.success = new ArrayList(_list542.size); + for (int _i543 = 0; _i543 < _list542.size; ++_i543) + { + Partition _elem544; // required + _elem544 = new Partition(); + _elem544.read(iprot); + struct.success.add(_elem544); + } + iprot.readListEnd(); + } + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; case 1: // O1 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.o1 = new NoSuchObjectException(); @@ -29073,6 +29357,18 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, drop_table_with_en struct.validate(); oprot.writeStructBegin(STRUCT_DESC); + if (struct.success != null) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); + for (Partition _iter545 : struct.success) + { + _iter545.write(oprot); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } if (struct.o1 != null) { oprot.writeFieldBegin(O1_FIELD_DESC); struct.o1.write(oprot); @@ -29101,13 +29397,25 @@ public drop_table_with_environment_context_resultTupleScheme getScheme() { public void write(org.apache.thrift.protocol.TProtocol prot, drop_table_with_environment_context_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetO1()) { + if (struct.isSetSuccess()) { optionals.set(0); } - if (struct.isSetO3()) { + if (struct.isSetO1()) { optionals.set(1); } - oprot.writeBitSet(optionals, 2); + if (struct.isSetO3()) { + optionals.set(2); + } + oprot.writeBitSet(optionals, 3); + if (struct.isSetSuccess()) { + { + oprot.writeI32(struct.success.size()); + for (Partition _iter546 : struct.success) + { + _iter546.write(oprot); + } + } + } if (struct.isSetO1()) { struct.o1.write(oprot); } @@ -29119,13 +29427,27 @@ public void write(org.apache.thrift.protocol.TProtocol prot, drop_table_with_env @Override public void read(org.apache.thrift.protocol.TProtocol prot, drop_table_with_environment_context_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { + { + org.apache.thrift.protocol.TList _list547 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list547.size); + for (int _i548 = 0; _i548 < _list547.size; ++_i548) + { + Partition _elem549; // required + _elem549 = new Partition(); + _elem549.read(iprot); + struct.success.add(_elem549); + } + } + struct.setSuccessIsSet(true); + } + if (incoming.get(1)) { struct.o1 = new NoSuchObjectException(); struct.o1.read(iprot); struct.setO1IsSet(true); } - if (incoming.get(1)) { + if (incoming.get(2)) { struct.o3 = new MetaException(); struct.o3.read(iprot); struct.setO3IsSet(true); @@ -29993,13 +30315,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_tables_result s case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list534 = iprot.readListBegin(); - struct.success = new ArrayList(_list534.size); - for (int _i535 = 0; _i535 < _list534.size; ++_i535) + org.apache.thrift.protocol.TList _list550 = iprot.readListBegin(); + struct.success = new ArrayList(_list550.size); + for (int _i551 = 0; _i551 < _list550.size; ++_i551) { - String _elem536; // required - _elem536 = iprot.readString(); - struct.success.add(_elem536); + String _elem552; // required + _elem552 = iprot.readString(); + struct.success.add(_elem552); } iprot.readListEnd(); } @@ -30034,9 +30356,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_tables_result oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter537 : struct.success) + for (String _iter553 : struct.success) { - oprot.writeString(_iter537); + oprot.writeString(_iter553); } oprot.writeListEnd(); } @@ -30075,9 +30397,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_tables_result s if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter538 : struct.success) + for (String _iter554 : struct.success) { - oprot.writeString(_iter538); + oprot.writeString(_iter554); } } } @@ -30092,13 +30414,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_tables_result st BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list539 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list539.size); - for (int _i540 = 0; _i540 < _list539.size; ++_i540) + org.apache.thrift.protocol.TList _list555 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list555.size); + for (int _i556 = 0; _i556 < _list555.size; ++_i556) { - String _elem541; // required - _elem541 = iprot.readString(); - struct.success.add(_elem541); + String _elem557; // required + _elem557 = iprot.readString(); + struct.success.add(_elem557); } } struct.setSuccessIsSet(true); @@ -30867,13 +31189,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_all_tables_resu case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list542 = iprot.readListBegin(); - struct.success = new ArrayList(_list542.size); - for (int _i543 = 0; _i543 < _list542.size; ++_i543) + org.apache.thrift.protocol.TList _list558 = iprot.readListBegin(); + struct.success = new ArrayList(_list558.size); + for (int _i559 = 0; _i559 < _list558.size; ++_i559) { - String _elem544; // required - _elem544 = iprot.readString(); - struct.success.add(_elem544); + String _elem560; // required + _elem560 = iprot.readString(); + struct.success.add(_elem560); } iprot.readListEnd(); } @@ -30908,9 +31230,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_all_tables_res oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter545 : struct.success) + for (String _iter561 : struct.success) { - oprot.writeString(_iter545); + oprot.writeString(_iter561); } oprot.writeListEnd(); } @@ -30949,9 +31271,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_all_tables_resu if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter546 : struct.success) + for (String _iter562 : struct.success) { - oprot.writeString(_iter546); + oprot.writeString(_iter562); } } } @@ -30966,13 +31288,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_all_tables_resul BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list547 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list547.size); - for (int _i548 = 0; _i548 < _list547.size; ++_i548) + org.apache.thrift.protocol.TList _list563 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list563.size); + for (int _i564 = 0; _i564 < _list563.size; ++_i564) { - String _elem549; // required - _elem549 = iprot.readString(); - struct.success.add(_elem549); + String _elem565; // required + _elem565 = iprot.readString(); + struct.success.add(_elem565); } } struct.setSuccessIsSet(true); @@ -32428,13 +32750,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_objects_b case 2: // TBL_NAMES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list550 = iprot.readListBegin(); - struct.tbl_names = new ArrayList(_list550.size); - for (int _i551 = 0; _i551 < _list550.size; ++_i551) + org.apache.thrift.protocol.TList _list566 = iprot.readListBegin(); + struct.tbl_names = new ArrayList(_list566.size); + for (int _i567 = 0; _i567 < _list566.size; ++_i567) { - String _elem552; // required - _elem552 = iprot.readString(); - struct.tbl_names.add(_elem552); + String _elem568; // required + _elem568 = iprot.readString(); + struct.tbl_names.add(_elem568); } iprot.readListEnd(); } @@ -32465,9 +32787,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_objects_ oprot.writeFieldBegin(TBL_NAMES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.tbl_names.size())); - for (String _iter553 : struct.tbl_names) + for (String _iter569 : struct.tbl_names) { - oprot.writeString(_iter553); + oprot.writeString(_iter569); } oprot.writeListEnd(); } @@ -32504,9 +32826,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_table_objects_b if (struct.isSetTbl_names()) { { oprot.writeI32(struct.tbl_names.size()); - for (String _iter554 : struct.tbl_names) + for (String _iter570 : struct.tbl_names) { - oprot.writeString(_iter554); + oprot.writeString(_iter570); } } } @@ -32522,13 +32844,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_objects_by } if (incoming.get(1)) { { - org.apache.thrift.protocol.TList _list555 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.tbl_names = new ArrayList(_list555.size); - for (int _i556 = 0; _i556 < _list555.size; ++_i556) + org.apache.thrift.protocol.TList _list571 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.tbl_names = new ArrayList(_list571.size); + for (int _i572 = 0; _i572 < _list571.size; ++_i572) { - String _elem557; // required - _elem557 = iprot.readString(); - struct.tbl_names.add(_elem557); + String _elem573; // required + _elem573 = iprot.readString(); + struct.tbl_names.add(_elem573); } } struct.setTbl_namesIsSet(true); @@ -33096,14 +33418,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_objects_b case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list558 = iprot.readListBegin(); - struct.success = new ArrayList
(_list558.size); - for (int _i559 = 0; _i559 < _list558.size; ++_i559) + org.apache.thrift.protocol.TList _list574 = iprot.readListBegin(); + struct.success = new ArrayList
(_list574.size); + for (int _i575 = 0; _i575 < _list574.size; ++_i575) { - Table _elem560; // required - _elem560 = new Table(); - _elem560.read(iprot); - struct.success.add(_elem560); + Table _elem576; // required + _elem576 = new Table(); + _elem576.read(iprot); + struct.success.add(_elem576); } iprot.readListEnd(); } @@ -33156,9 +33478,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_objects_ oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Table _iter561 : struct.success) + for (Table _iter577 : struct.success) { - _iter561.write(oprot); + _iter577.write(oprot); } oprot.writeListEnd(); } @@ -33213,9 +33535,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_table_objects_b if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Table _iter562 : struct.success) + for (Table _iter578 : struct.success) { - _iter562.write(oprot); + _iter578.write(oprot); } } } @@ -33236,14 +33558,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_objects_by BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list563 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList
(_list563.size); - for (int _i564 = 0; _i564 < _list563.size; ++_i564) + org.apache.thrift.protocol.TList _list579 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList
(_list579.size); + for (int _i580 = 0; _i580 < _list579.size; ++_i580) { - Table _elem565; // required - _elem565 = new Table(); - _elem565.read(iprot); - struct.success.add(_elem565); + Table _elem581; // required + _elem581 = new Table(); + _elem581.read(iprot); + struct.success.add(_elem581); } } struct.setSuccessIsSet(true); @@ -34392,13 +34714,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_names_by_ case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list566 = iprot.readListBegin(); - struct.success = new ArrayList(_list566.size); - for (int _i567 = 0; _i567 < _list566.size; ++_i567) + org.apache.thrift.protocol.TList _list582 = iprot.readListBegin(); + struct.success = new ArrayList(_list582.size); + for (int _i583 = 0; _i583 < _list582.size; ++_i583) { - String _elem568; // required - _elem568 = iprot.readString(); - struct.success.add(_elem568); + String _elem584; // required + _elem584 = iprot.readString(); + struct.success.add(_elem584); } iprot.readListEnd(); } @@ -34451,9 +34773,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_names_by oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter569 : struct.success) + for (String _iter585 : struct.success) { - oprot.writeString(_iter569); + oprot.writeString(_iter585); } oprot.writeListEnd(); } @@ -34508,9 +34830,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_table_names_by_ if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter570 : struct.success) + for (String _iter586 : struct.success) { - oprot.writeString(_iter570); + oprot.writeString(_iter586); } } } @@ -34531,13 +34853,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_names_by_f BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list571 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list571.size); - for (int _i572 = 0; _i572 < _list571.size; ++_i572) + org.apache.thrift.protocol.TList _list587 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list587.size); + for (int _i588 = 0; _i588 < _list587.size; ++_i588) { - String _elem573; // required - _elem573 = iprot.readString(); - struct.success.add(_elem573); + String _elem589; // required + _elem589 = iprot.readString(); + struct.success.add(_elem589); } } struct.setSuccessIsSet(true); @@ -40396,14 +40718,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_partitions_args case 1: // NEW_PARTS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list574 = iprot.readListBegin(); - struct.new_parts = new ArrayList(_list574.size); - for (int _i575 = 0; _i575 < _list574.size; ++_i575) + org.apache.thrift.protocol.TList _list590 = iprot.readListBegin(); + struct.new_parts = new ArrayList(_list590.size); + for (int _i591 = 0; _i591 < _list590.size; ++_i591) { - Partition _elem576; // required - _elem576 = new Partition(); - _elem576.read(iprot); - struct.new_parts.add(_elem576); + Partition _elem592; // required + _elem592 = new Partition(); + _elem592.read(iprot); + struct.new_parts.add(_elem592); } iprot.readListEnd(); } @@ -40429,9 +40751,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, add_partitions_arg oprot.writeFieldBegin(NEW_PARTS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.new_parts.size())); - for (Partition _iter577 : struct.new_parts) + for (Partition _iter593 : struct.new_parts) { - _iter577.write(oprot); + _iter593.write(oprot); } oprot.writeListEnd(); } @@ -40462,9 +40784,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, add_partitions_args if (struct.isSetNew_parts()) { { oprot.writeI32(struct.new_parts.size()); - for (Partition _iter578 : struct.new_parts) + for (Partition _iter594 : struct.new_parts) { - _iter578.write(oprot); + _iter594.write(oprot); } } } @@ -40476,14 +40798,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, add_partitions_args BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list579 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.new_parts = new ArrayList(_list579.size); - for (int _i580 = 0; _i580 < _list579.size; ++_i580) + org.apache.thrift.protocol.TList _list595 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.new_parts = new ArrayList(_list595.size); + for (int _i596 = 0; _i596 < _list595.size; ++_i596) { - Partition _elem581; // required - _elem581 = new Partition(); - _elem581.read(iprot); - struct.new_parts.add(_elem581); + Partition _elem597; // required + _elem597 = new Partition(); + _elem597.read(iprot); + struct.new_parts.add(_elem597); } } struct.setNew_partsIsSet(true); @@ -41484,14 +41806,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_partitions_pspe case 1: // NEW_PARTS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list582 = iprot.readListBegin(); - struct.new_parts = new ArrayList(_list582.size); - for (int _i583 = 0; _i583 < _list582.size; ++_i583) + org.apache.thrift.protocol.TList _list598 = iprot.readListBegin(); + struct.new_parts = new ArrayList(_list598.size); + for (int _i599 = 0; _i599 < _list598.size; ++_i599) { - PartitionSpec _elem584; // required - _elem584 = new PartitionSpec(); - _elem584.read(iprot); - struct.new_parts.add(_elem584); + PartitionSpec _elem600; // required + _elem600 = new PartitionSpec(); + _elem600.read(iprot); + struct.new_parts.add(_elem600); } iprot.readListEnd(); } @@ -41517,9 +41839,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, add_partitions_psp oprot.writeFieldBegin(NEW_PARTS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.new_parts.size())); - for (PartitionSpec _iter585 : struct.new_parts) + for (PartitionSpec _iter601 : struct.new_parts) { - _iter585.write(oprot); + _iter601.write(oprot); } oprot.writeListEnd(); } @@ -41550,9 +41872,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, add_partitions_pspe if (struct.isSetNew_parts()) { { oprot.writeI32(struct.new_parts.size()); - for (PartitionSpec _iter586 : struct.new_parts) + for (PartitionSpec _iter602 : struct.new_parts) { - _iter586.write(oprot); + _iter602.write(oprot); } } } @@ -41564,14 +41886,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, add_partitions_pspec BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list587 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.new_parts = new ArrayList(_list587.size); - for (int _i588 = 0; _i588 < _list587.size; ++_i588) + org.apache.thrift.protocol.TList _list603 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.new_parts = new ArrayList(_list603.size); + for (int _i604 = 0; _i604 < _list603.size; ++_i604) { - PartitionSpec _elem589; // required - _elem589 = new PartitionSpec(); - _elem589.read(iprot); - struct.new_parts.add(_elem589); + PartitionSpec _elem605; // required + _elem605 = new PartitionSpec(); + _elem605.read(iprot); + struct.new_parts.add(_elem605); } } struct.setNew_partsIsSet(true); @@ -42750,13 +43072,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_ar case 3: // PART_VALS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list590 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list590.size); - for (int _i591 = 0; _i591 < _list590.size; ++_i591) + org.apache.thrift.protocol.TList _list606 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list606.size); + for (int _i607 = 0; _i607 < _list606.size; ++_i607) { - String _elem592; // required - _elem592 = iprot.readString(); - struct.part_vals.add(_elem592); + String _elem608; // required + _elem608 = iprot.readString(); + struct.part_vals.add(_elem608); } iprot.readListEnd(); } @@ -42792,9 +43114,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, append_partition_a oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (String _iter593 : struct.part_vals) + for (String _iter609 : struct.part_vals) { - oprot.writeString(_iter593); + oprot.writeString(_iter609); } oprot.writeListEnd(); } @@ -42837,9 +43159,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, append_partition_ar if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (String _iter594 : struct.part_vals) + for (String _iter610 : struct.part_vals) { - oprot.writeString(_iter594); + oprot.writeString(_iter610); } } } @@ -42859,13 +43181,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_arg } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list595 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list595.size); - for (int _i596 = 0; _i596 < _list595.size; ++_i596) + org.apache.thrift.protocol.TList _list611 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list611.size); + for (int _i612 = 0; _i612 < _list611.size; ++_i612) { - String _elem597; // required - _elem597 = iprot.readString(); - struct.part_vals.add(_elem597); + String _elem613; // required + _elem613 = iprot.readString(); + struct.part_vals.add(_elem613); } } struct.setPart_valsIsSet(true); @@ -45177,13 +45499,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_wi case 3: // PART_VALS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list598 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list598.size); - for (int _i599 = 0; _i599 < _list598.size; ++_i599) + org.apache.thrift.protocol.TList _list614 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list614.size); + for (int _i615 = 0; _i615 < _list614.size; ++_i615) { - String _elem600; // required - _elem600 = iprot.readString(); - struct.part_vals.add(_elem600); + String _elem616; // required + _elem616 = iprot.readString(); + struct.part_vals.add(_elem616); } iprot.readListEnd(); } @@ -45228,9 +45550,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, append_partition_w oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (String _iter601 : struct.part_vals) + for (String _iter617 : struct.part_vals) { - oprot.writeString(_iter601); + oprot.writeString(_iter617); } oprot.writeListEnd(); } @@ -45281,9 +45603,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, append_partition_wi if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (String _iter602 : struct.part_vals) + for (String _iter618 : struct.part_vals) { - oprot.writeString(_iter602); + oprot.writeString(_iter618); } } } @@ -45306,13 +45628,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_wit } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list603 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list603.size); - for (int _i604 = 0; _i604 < _list603.size; ++_i604) + org.apache.thrift.protocol.TList _list619 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list619.size); + for (int _i620 = 0; _i620 < _list619.size; ++_i620) { - String _elem605; // required - _elem605 = iprot.readString(); - struct.part_vals.add(_elem605); + String _elem621; // required + _elem621 = iprot.readString(); + struct.part_vals.add(_elem621); } } struct.setPart_valsIsSet(true); @@ -49185,13 +49507,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_args case 3: // PART_VALS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list606 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list606.size); - for (int _i607 = 0; _i607 < _list606.size; ++_i607) + org.apache.thrift.protocol.TList _list622 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list622.size); + for (int _i623 = 0; _i623 < _list622.size; ++_i623) { - String _elem608; // required - _elem608 = iprot.readString(); - struct.part_vals.add(_elem608); + String _elem624; // required + _elem624 = iprot.readString(); + struct.part_vals.add(_elem624); } iprot.readListEnd(); } @@ -49235,9 +49557,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partition_arg oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (String _iter609 : struct.part_vals) + for (String _iter625 : struct.part_vals) { - oprot.writeString(_iter609); + oprot.writeString(_iter625); } oprot.writeListEnd(); } @@ -49286,9 +49608,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_args if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (String _iter610 : struct.part_vals) + for (String _iter626 : struct.part_vals) { - oprot.writeString(_iter610); + oprot.writeString(_iter626); } } } @@ -49311,13 +49633,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_args } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list611 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list611.size); - for (int _i612 = 0; _i612 < _list611.size; ++_i612) + org.apache.thrift.protocol.TList _list627 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list627.size); + for (int _i628 = 0; _i628 < _list627.size; ++_i628) { - String _elem613; // required - _elem613 = iprot.readString(); - struct.part_vals.add(_elem613); + String _elem629; // required + _elem629 = iprot.readString(); + struct.part_vals.add(_elem629); } } struct.setPart_valsIsSet(true); @@ -50559,13 +50881,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_with case 3: // PART_VALS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list614 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list614.size); - for (int _i615 = 0; _i615 < _list614.size; ++_i615) + org.apache.thrift.protocol.TList _list630 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list630.size); + for (int _i631 = 0; _i631 < _list630.size; ++_i631) { - String _elem616; // required - _elem616 = iprot.readString(); - struct.part_vals.add(_elem616); + String _elem632; // required + _elem632 = iprot.readString(); + struct.part_vals.add(_elem632); } iprot.readListEnd(); } @@ -50618,9 +50940,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partition_wit oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (String _iter617 : struct.part_vals) + for (String _iter633 : struct.part_vals) { - oprot.writeString(_iter617); + oprot.writeString(_iter633); } oprot.writeListEnd(); } @@ -50677,9 +50999,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_with if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (String _iter618 : struct.part_vals) + for (String _iter634 : struct.part_vals) { - oprot.writeString(_iter618); + oprot.writeString(_iter634); } } } @@ -50705,13 +51027,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_with_ } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list619 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list619.size); - for (int _i620 = 0; _i620 < _list619.size; ++_i620) + org.apache.thrift.protocol.TList _list635 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list635.size); + for (int _i636 = 0; _i636 < _list635.size; ++_i636) { - String _elem621; // required - _elem621 = iprot.readString(); - struct.part_vals.add(_elem621); + String _elem637; // required + _elem637 = iprot.readString(); + struct.part_vals.add(_elem637); } } struct.setPart_valsIsSet(true); @@ -55316,13 +55638,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_args case 3: // PART_VALS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list622 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list622.size); - for (int _i623 = 0; _i623 < _list622.size; ++_i623) + org.apache.thrift.protocol.TList _list638 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list638.size); + for (int _i639 = 0; _i639 < _list638.size; ++_i639) { - String _elem624; // required - _elem624 = iprot.readString(); - struct.part_vals.add(_elem624); + String _elem640; // required + _elem640 = iprot.readString(); + struct.part_vals.add(_elem640); } iprot.readListEnd(); } @@ -55358,9 +55680,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_args oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (String _iter625 : struct.part_vals) + for (String _iter641 : struct.part_vals) { - oprot.writeString(_iter625); + oprot.writeString(_iter641); } oprot.writeListEnd(); } @@ -55403,9 +55725,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_args if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (String _iter626 : struct.part_vals) + for (String _iter642 : struct.part_vals) { - oprot.writeString(_iter626); + oprot.writeString(_iter642); } } } @@ -55425,13 +55747,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_args s } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list627 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list627.size); - for (int _i628 = 0; _i628 < _list627.size; ++_i628) + org.apache.thrift.protocol.TList _list643 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list643.size); + for (int _i644 = 0; _i644 < _list643.size; ++_i644) { - String _elem629; // required - _elem629 = iprot.readString(); - struct.part_vals.add(_elem629); + String _elem645; // required + _elem645 = iprot.readString(); + struct.part_vals.add(_elem645); } } struct.setPart_valsIsSet(true); @@ -56660,15 +56982,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, exchange_partition_ case 1: // PARTITION_SPECS if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map630 = iprot.readMapBegin(); - struct.partitionSpecs = new HashMap(2*_map630.size); - for (int _i631 = 0; _i631 < _map630.size; ++_i631) + org.apache.thrift.protocol.TMap _map646 = iprot.readMapBegin(); + struct.partitionSpecs = new HashMap(2*_map646.size); + for (int _i647 = 0; _i647 < _map646.size; ++_i647) { - String _key632; // required - String _val633; // required - _key632 = iprot.readString(); - _val633 = iprot.readString(); - struct.partitionSpecs.put(_key632, _val633); + String _key648; // required + String _val649; // required + _key648 = iprot.readString(); + _val649 = iprot.readString(); + struct.partitionSpecs.put(_key648, _val649); } iprot.readMapEnd(); } @@ -56726,10 +57048,10 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, exchange_partition oprot.writeFieldBegin(PARTITION_SPECS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.partitionSpecs.size())); - for (Map.Entry _iter634 : struct.partitionSpecs.entrySet()) + for (Map.Entry _iter650 : struct.partitionSpecs.entrySet()) { - oprot.writeString(_iter634.getKey()); - oprot.writeString(_iter634.getValue()); + oprot.writeString(_iter650.getKey()); + oprot.writeString(_iter650.getValue()); } oprot.writeMapEnd(); } @@ -56792,10 +57114,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, exchange_partition_ if (struct.isSetPartitionSpecs()) { { oprot.writeI32(struct.partitionSpecs.size()); - for (Map.Entry _iter635 : struct.partitionSpecs.entrySet()) + for (Map.Entry _iter651 : struct.partitionSpecs.entrySet()) { - oprot.writeString(_iter635.getKey()); - oprot.writeString(_iter635.getValue()); + oprot.writeString(_iter651.getKey()); + oprot.writeString(_iter651.getValue()); } } } @@ -56819,15 +57141,15 @@ public void read(org.apache.thrift.protocol.TProtocol prot, exchange_partition_a BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { { - org.apache.thrift.protocol.TMap _map636 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.partitionSpecs = new HashMap(2*_map636.size); - for (int _i637 = 0; _i637 < _map636.size; ++_i637) + org.apache.thrift.protocol.TMap _map652 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.partitionSpecs = new HashMap(2*_map652.size); + for (int _i653 = 0; _i653 < _map652.size; ++_i653) { - String _key638; // required - String _val639; // required - _key638 = iprot.readString(); - _val639 = iprot.readString(); - struct.partitionSpecs.put(_key638, _val639); + String _key654; // required + String _val655; // required + _key654 = iprot.readString(); + _val655 = iprot.readString(); + struct.partitionSpecs.put(_key654, _val655); } } struct.setPartitionSpecsIsSet(true); @@ -58315,13 +58637,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_with_ case 3: // PART_VALS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list640 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list640.size); - for (int _i641 = 0; _i641 < _list640.size; ++_i641) + org.apache.thrift.protocol.TList _list656 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list656.size); + for (int _i657 = 0; _i657 < _list656.size; ++_i657) { - String _elem642; // required - _elem642 = iprot.readString(); - struct.part_vals.add(_elem642); + String _elem658; // required + _elem658 = iprot.readString(); + struct.part_vals.add(_elem658); } iprot.readListEnd(); } @@ -58341,13 +58663,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_with_ case 5: // GROUP_NAMES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list643 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list643.size); - for (int _i644 = 0; _i644 < _list643.size; ++_i644) + org.apache.thrift.protocol.TList _list659 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list659.size); + for (int _i660 = 0; _i660 < _list659.size; ++_i660) { - String _elem645; // required - _elem645 = iprot.readString(); - struct.group_names.add(_elem645); + String _elem661; // required + _elem661 = iprot.readString(); + struct.group_names.add(_elem661); } iprot.readListEnd(); } @@ -58383,9 +58705,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_with oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (String _iter646 : struct.part_vals) + for (String _iter662 : struct.part_vals) { - oprot.writeString(_iter646); + oprot.writeString(_iter662); } oprot.writeListEnd(); } @@ -58400,9 +58722,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_with oprot.writeFieldBegin(GROUP_NAMES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.group_names.size())); - for (String _iter647 : struct.group_names) + for (String _iter663 : struct.group_names) { - oprot.writeString(_iter647); + oprot.writeString(_iter663); } oprot.writeListEnd(); } @@ -58451,9 +58773,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_with_ if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (String _iter648 : struct.part_vals) + for (String _iter664 : struct.part_vals) { - oprot.writeString(_iter648); + oprot.writeString(_iter664); } } } @@ -58463,9 +58785,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_with_ if (struct.isSetGroup_names()) { { oprot.writeI32(struct.group_names.size()); - for (String _iter649 : struct.group_names) + for (String _iter665 : struct.group_names) { - oprot.writeString(_iter649); + oprot.writeString(_iter665); } } } @@ -58485,13 +58807,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_with_a } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list650 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list650.size); - for (int _i651 = 0; _i651 < _list650.size; ++_i651) + org.apache.thrift.protocol.TList _list666 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list666.size); + for (int _i667 = 0; _i667 < _list666.size; ++_i667) { - String _elem652; // required - _elem652 = iprot.readString(); - struct.part_vals.add(_elem652); + String _elem668; // required + _elem668 = iprot.readString(); + struct.part_vals.add(_elem668); } } struct.setPart_valsIsSet(true); @@ -58502,13 +58824,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_with_a } if (incoming.get(4)) { { - org.apache.thrift.protocol.TList _list653 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list653.size); - for (int _i654 = 0; _i654 < _list653.size; ++_i654) + org.apache.thrift.protocol.TList _list669 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list669.size); + for (int _i670 = 0; _i670 < _list669.size; ++_i670) { - String _elem655; // required - _elem655 = iprot.readString(); - struct.group_names.add(_elem655); + String _elem671; // required + _elem671 = iprot.readString(); + struct.group_names.add(_elem671); } } struct.setGroup_namesIsSet(true); @@ -61277,14 +61599,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_resu case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list656 = iprot.readListBegin(); - struct.success = new ArrayList(_list656.size); - for (int _i657 = 0; _i657 < _list656.size; ++_i657) + org.apache.thrift.protocol.TList _list672 = iprot.readListBegin(); + struct.success = new ArrayList(_list672.size); + for (int _i673 = 0; _i673 < _list672.size; ++_i673) { - Partition _elem658; // required - _elem658 = new Partition(); - _elem658.read(iprot); - struct.success.add(_elem658); + Partition _elem674; // required + _elem674 = new Partition(); + _elem674.read(iprot); + struct.success.add(_elem674); } iprot.readListEnd(); } @@ -61328,9 +61650,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_res oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Partition _iter659 : struct.success) + for (Partition _iter675 : struct.success) { - _iter659.write(oprot); + _iter675.write(oprot); } oprot.writeListEnd(); } @@ -61377,9 +61699,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_resu if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter660 : struct.success) + for (Partition _iter676 : struct.success) { - _iter660.write(oprot); + _iter676.write(oprot); } } } @@ -61397,14 +61719,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_resul BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list661 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list661.size); - for (int _i662 = 0; _i662 < _list661.size; ++_i662) + org.apache.thrift.protocol.TList _list677 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list677.size); + for (int _i678 = 0; _i678 < _list677.size; ++_i678) { - Partition _elem663; // required - _elem663 = new Partition(); - _elem663.read(iprot); - struct.success.add(_elem663); + Partition _elem679; // required + _elem679 = new Partition(); + _elem679.read(iprot); + struct.success.add(_elem679); } } struct.setSuccessIsSet(true); @@ -62097,13 +62419,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_with case 5: // GROUP_NAMES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list664 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list664.size); - for (int _i665 = 0; _i665 < _list664.size; ++_i665) + org.apache.thrift.protocol.TList _list680 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list680.size); + for (int _i681 = 0; _i681 < _list680.size; ++_i681) { - String _elem666; // required - _elem666 = iprot.readString(); - struct.group_names.add(_elem666); + String _elem682; // required + _elem682 = iprot.readString(); + struct.group_names.add(_elem682); } iprot.readListEnd(); } @@ -62147,9 +62469,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_wit oprot.writeFieldBegin(GROUP_NAMES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.group_names.size())); - for (String _iter667 : struct.group_names) + for (String _iter683 : struct.group_names) { - oprot.writeString(_iter667); + oprot.writeString(_iter683); } oprot.writeListEnd(); } @@ -62204,9 +62526,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_with if (struct.isSetGroup_names()) { { oprot.writeI32(struct.group_names.size()); - for (String _iter668 : struct.group_names) + for (String _iter684 : struct.group_names) { - oprot.writeString(_iter668); + oprot.writeString(_iter684); } } } @@ -62234,13 +62556,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_with_ } if (incoming.get(4)) { { - org.apache.thrift.protocol.TList _list669 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list669.size); - for (int _i670 = 0; _i670 < _list669.size; ++_i670) + org.apache.thrift.protocol.TList _list685 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list685.size); + for (int _i686 = 0; _i686 < _list685.size; ++_i686) { - String _elem671; // required - _elem671 = iprot.readString(); - struct.group_names.add(_elem671); + String _elem687; // required + _elem687 = iprot.readString(); + struct.group_names.add(_elem687); } } struct.setGroup_namesIsSet(true); @@ -62727,14 +63049,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_with case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list672 = iprot.readListBegin(); - struct.success = new ArrayList(_list672.size); - for (int _i673 = 0; _i673 < _list672.size; ++_i673) + org.apache.thrift.protocol.TList _list688 = iprot.readListBegin(); + struct.success = new ArrayList(_list688.size); + for (int _i689 = 0; _i689 < _list688.size; ++_i689) { - Partition _elem674; // required - _elem674 = new Partition(); - _elem674.read(iprot); - struct.success.add(_elem674); + Partition _elem690; // required + _elem690 = new Partition(); + _elem690.read(iprot); + struct.success.add(_elem690); } iprot.readListEnd(); } @@ -62778,9 +63100,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_wit oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Partition _iter675 : struct.success) + for (Partition _iter691 : struct.success) { - _iter675.write(oprot); + _iter691.write(oprot); } oprot.writeListEnd(); } @@ -62827,9 +63149,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_with if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter676 : struct.success) + for (Partition _iter692 : struct.success) { - _iter676.write(oprot); + _iter692.write(oprot); } } } @@ -62847,14 +63169,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_with_ BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list677 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list677.size); - for (int _i678 = 0; _i678 < _list677.size; ++_i678) + org.apache.thrift.protocol.TList _list693 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list693.size); + for (int _i694 = 0; _i694 < _list693.size; ++_i694) { - Partition _elem679; // required - _elem679 = new Partition(); - _elem679.read(iprot); - struct.success.add(_elem679); + Partition _elem695; // required + _elem695 = new Partition(); + _elem695.read(iprot); + struct.success.add(_elem695); } } struct.setSuccessIsSet(true); @@ -63917,14 +64239,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_pspe case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list680 = iprot.readListBegin(); - struct.success = new ArrayList(_list680.size); - for (int _i681 = 0; _i681 < _list680.size; ++_i681) + org.apache.thrift.protocol.TList _list696 = iprot.readListBegin(); + struct.success = new ArrayList(_list696.size); + for (int _i697 = 0; _i697 < _list696.size; ++_i697) { - PartitionSpec _elem682; // required - _elem682 = new PartitionSpec(); - _elem682.read(iprot); - struct.success.add(_elem682); + PartitionSpec _elem698; // required + _elem698 = new PartitionSpec(); + _elem698.read(iprot); + struct.success.add(_elem698); } iprot.readListEnd(); } @@ -63968,9 +64290,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_psp oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (PartitionSpec _iter683 : struct.success) + for (PartitionSpec _iter699 : struct.success) { - _iter683.write(oprot); + _iter699.write(oprot); } oprot.writeListEnd(); } @@ -64017,9 +64339,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_pspe if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (PartitionSpec _iter684 : struct.success) + for (PartitionSpec _iter700 : struct.success) { - _iter684.write(oprot); + _iter700.write(oprot); } } } @@ -64037,14 +64359,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_pspec BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list685 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list685.size); - for (int _i686 = 0; _i686 < _list685.size; ++_i686) + org.apache.thrift.protocol.TList _list701 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list701.size); + for (int _i702 = 0; _i702 < _list701.size; ++_i702) { - PartitionSpec _elem687; // required - _elem687 = new PartitionSpec(); - _elem687.read(iprot); - struct.success.add(_elem687); + PartitionSpec _elem703; // required + _elem703 = new PartitionSpec(); + _elem703.read(iprot); + struct.success.add(_elem703); } } struct.setSuccessIsSet(true); @@ -65026,13 +65348,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_names case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list688 = iprot.readListBegin(); - struct.success = new ArrayList(_list688.size); - for (int _i689 = 0; _i689 < _list688.size; ++_i689) + org.apache.thrift.protocol.TList _list704 = iprot.readListBegin(); + struct.success = new ArrayList(_list704.size); + for (int _i705 = 0; _i705 < _list704.size; ++_i705) { - String _elem690; // required - _elem690 = iprot.readString(); - struct.success.add(_elem690); + String _elem706; // required + _elem706 = iprot.readString(); + struct.success.add(_elem706); } iprot.readListEnd(); } @@ -65067,9 +65389,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_name oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter691 : struct.success) + for (String _iter707 : struct.success) { - oprot.writeString(_iter691); + oprot.writeString(_iter707); } oprot.writeListEnd(); } @@ -65108,9 +65430,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_names if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter692 : struct.success) + for (String _iter708 : struct.success) { - oprot.writeString(_iter692); + oprot.writeString(_iter708); } } } @@ -65125,13 +65447,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_names_ BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list693 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list693.size); - for (int _i694 = 0; _i694 < _list693.size; ++_i694) + org.apache.thrift.protocol.TList _list709 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list709.size); + for (int _i710 = 0; _i710 < _list709.size; ++_i710) { - String _elem695; // required - _elem695 = iprot.readString(); - struct.success.add(_elem695); + String _elem711; // required + _elem711 = iprot.readString(); + struct.success.add(_elem711); } } struct.setSuccessIsSet(true); @@ -65722,13 +66044,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_a case 3: // PART_VALS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list696 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list696.size); - for (int _i697 = 0; _i697 < _list696.size; ++_i697) + org.apache.thrift.protocol.TList _list712 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list712.size); + for (int _i713 = 0; _i713 < _list712.size; ++_i713) { - String _elem698; // required - _elem698 = iprot.readString(); - struct.part_vals.add(_elem698); + String _elem714; // required + _elem714 = iprot.readString(); + struct.part_vals.add(_elem714); } iprot.readListEnd(); } @@ -65772,9 +66094,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_ps_ oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (String _iter699 : struct.part_vals) + for (String _iter715 : struct.part_vals) { - oprot.writeString(_iter699); + oprot.writeString(_iter715); } oprot.writeListEnd(); } @@ -65823,9 +66145,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_a if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (String _iter700 : struct.part_vals) + for (String _iter716 : struct.part_vals) { - oprot.writeString(_iter700); + oprot.writeString(_iter716); } } } @@ -65848,13 +66170,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_ar } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list701 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list701.size); - for (int _i702 = 0; _i702 < _list701.size; ++_i702) + org.apache.thrift.protocol.TList _list717 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list717.size); + for (int _i718 = 0; _i718 < _list717.size; ++_i718) { - String _elem703; // required - _elem703 = iprot.readString(); - struct.part_vals.add(_elem703); + String _elem719; // required + _elem719 = iprot.readString(); + struct.part_vals.add(_elem719); } } struct.setPart_valsIsSet(true); @@ -66345,14 +66667,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_r case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list704 = iprot.readListBegin(); - struct.success = new ArrayList(_list704.size); - for (int _i705 = 0; _i705 < _list704.size; ++_i705) + org.apache.thrift.protocol.TList _list720 = iprot.readListBegin(); + struct.success = new ArrayList(_list720.size); + for (int _i721 = 0; _i721 < _list720.size; ++_i721) { - Partition _elem706; // required - _elem706 = new Partition(); - _elem706.read(iprot); - struct.success.add(_elem706); + Partition _elem722; // required + _elem722 = new Partition(); + _elem722.read(iprot); + struct.success.add(_elem722); } iprot.readListEnd(); } @@ -66396,9 +66718,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_ps_ oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Partition _iter707 : struct.success) + for (Partition _iter723 : struct.success) { - _iter707.write(oprot); + _iter723.write(oprot); } oprot.writeListEnd(); } @@ -66445,9 +66767,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_r if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter708 : struct.success) + for (Partition _iter724 : struct.success) { - _iter708.write(oprot); + _iter724.write(oprot); } } } @@ -66465,14 +66787,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_re BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list709 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list709.size); - for (int _i710 = 0; _i710 < _list709.size; ++_i710) + org.apache.thrift.protocol.TList _list725 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list725.size); + for (int _i726 = 0; _i726 < _list725.size; ++_i726) { - Partition _elem711; // required - _elem711 = new Partition(); - _elem711.read(iprot); - struct.success.add(_elem711); + Partition _elem727; // required + _elem727 = new Partition(); + _elem727.read(iprot); + struct.success.add(_elem727); } } struct.setSuccessIsSet(true); @@ -67250,13 +67572,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_w case 3: // PART_VALS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list712 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list712.size); - for (int _i713 = 0; _i713 < _list712.size; ++_i713) + org.apache.thrift.protocol.TList _list728 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list728.size); + for (int _i729 = 0; _i729 < _list728.size; ++_i729) { - String _elem714; // required - _elem714 = iprot.readString(); - struct.part_vals.add(_elem714); + String _elem730; // required + _elem730 = iprot.readString(); + struct.part_vals.add(_elem730); } iprot.readListEnd(); } @@ -67284,13 +67606,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_w case 6: // GROUP_NAMES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list715 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list715.size); - for (int _i716 = 0; _i716 < _list715.size; ++_i716) + org.apache.thrift.protocol.TList _list731 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list731.size); + for (int _i732 = 0; _i732 < _list731.size; ++_i732) { - String _elem717; // required - _elem717 = iprot.readString(); - struct.group_names.add(_elem717); + String _elem733; // required + _elem733 = iprot.readString(); + struct.group_names.add(_elem733); } iprot.readListEnd(); } @@ -67326,9 +67648,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_ps_ oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (String _iter718 : struct.part_vals) + for (String _iter734 : struct.part_vals) { - oprot.writeString(_iter718); + oprot.writeString(_iter734); } oprot.writeListEnd(); } @@ -67346,9 +67668,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_ps_ oprot.writeFieldBegin(GROUP_NAMES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.group_names.size())); - for (String _iter719 : struct.group_names) + for (String _iter735 : struct.group_names) { - oprot.writeString(_iter719); + oprot.writeString(_iter735); } oprot.writeListEnd(); } @@ -67400,9 +67722,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_w if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (String _iter720 : struct.part_vals) + for (String _iter736 : struct.part_vals) { - oprot.writeString(_iter720); + oprot.writeString(_iter736); } } } @@ -67415,9 +67737,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_w if (struct.isSetGroup_names()) { { oprot.writeI32(struct.group_names.size()); - for (String _iter721 : struct.group_names) + for (String _iter737 : struct.group_names) { - oprot.writeString(_iter721); + oprot.writeString(_iter737); } } } @@ -67437,13 +67759,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_wi } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list722 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list722.size); - for (int _i723 = 0; _i723 < _list722.size; ++_i723) + org.apache.thrift.protocol.TList _list738 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list738.size); + for (int _i739 = 0; _i739 < _list738.size; ++_i739) { - String _elem724; // required - _elem724 = iprot.readString(); - struct.part_vals.add(_elem724); + String _elem740; // required + _elem740 = iprot.readString(); + struct.part_vals.add(_elem740); } } struct.setPart_valsIsSet(true); @@ -67458,13 +67780,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_wi } if (incoming.get(5)) { { - org.apache.thrift.protocol.TList _list725 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list725.size); - for (int _i726 = 0; _i726 < _list725.size; ++_i726) + org.apache.thrift.protocol.TList _list741 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list741.size); + for (int _i742 = 0; _i742 < _list741.size; ++_i742) { - String _elem727; // required - _elem727 = iprot.readString(); - struct.group_names.add(_elem727); + String _elem743; // required + _elem743 = iprot.readString(); + struct.group_names.add(_elem743); } } struct.setGroup_namesIsSet(true); @@ -67951,14 +68273,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_w case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list728 = iprot.readListBegin(); - struct.success = new ArrayList(_list728.size); - for (int _i729 = 0; _i729 < _list728.size; ++_i729) + org.apache.thrift.protocol.TList _list744 = iprot.readListBegin(); + struct.success = new ArrayList(_list744.size); + for (int _i745 = 0; _i745 < _list744.size; ++_i745) { - Partition _elem730; // required - _elem730 = new Partition(); - _elem730.read(iprot); - struct.success.add(_elem730); + Partition _elem746; // required + _elem746 = new Partition(); + _elem746.read(iprot); + struct.success.add(_elem746); } iprot.readListEnd(); } @@ -68002,9 +68324,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_ps_ oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Partition _iter731 : struct.success) + for (Partition _iter747 : struct.success) { - _iter731.write(oprot); + _iter747.write(oprot); } oprot.writeListEnd(); } @@ -68051,9 +68373,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_w if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter732 : struct.success) + for (Partition _iter748 : struct.success) { - _iter732.write(oprot); + _iter748.write(oprot); } } } @@ -68071,14 +68393,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_wi BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list733 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list733.size); - for (int _i734 = 0; _i734 < _list733.size; ++_i734) + org.apache.thrift.protocol.TList _list749 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list749.size); + for (int _i750 = 0; _i750 < _list749.size; ++_i750) { - Partition _elem735; // required - _elem735 = new Partition(); - _elem735.read(iprot); - struct.success.add(_elem735); + Partition _elem751; // required + _elem751 = new Partition(); + _elem751.read(iprot); + struct.success.add(_elem751); } } struct.setSuccessIsSet(true); @@ -68674,13 +68996,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_names case 3: // PART_VALS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list736 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list736.size); - for (int _i737 = 0; _i737 < _list736.size; ++_i737) + org.apache.thrift.protocol.TList _list752 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list752.size); + for (int _i753 = 0; _i753 < _list752.size; ++_i753) { - String _elem738; // required - _elem738 = iprot.readString(); - struct.part_vals.add(_elem738); + String _elem754; // required + _elem754 = iprot.readString(); + struct.part_vals.add(_elem754); } iprot.readListEnd(); } @@ -68724,9 +69046,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_name oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (String _iter739 : struct.part_vals) + for (String _iter755 : struct.part_vals) { - oprot.writeString(_iter739); + oprot.writeString(_iter755); } oprot.writeListEnd(); } @@ -68775,9 +69097,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_names if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (String _iter740 : struct.part_vals) + for (String _iter756 : struct.part_vals) { - oprot.writeString(_iter740); + oprot.writeString(_iter756); } } } @@ -68800,13 +69122,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_names_ } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list741 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list741.size); - for (int _i742 = 0; _i742 < _list741.size; ++_i742) + org.apache.thrift.protocol.TList _list757 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list757.size); + for (int _i758 = 0; _i758 < _list757.size; ++_i758) { - String _elem743; // required - _elem743 = iprot.readString(); - struct.part_vals.add(_elem743); + String _elem759; // required + _elem759 = iprot.readString(); + struct.part_vals.add(_elem759); } } struct.setPart_valsIsSet(true); @@ -69297,13 +69619,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_names case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list744 = iprot.readListBegin(); - struct.success = new ArrayList(_list744.size); - for (int _i745 = 0; _i745 < _list744.size; ++_i745) + org.apache.thrift.protocol.TList _list760 = iprot.readListBegin(); + struct.success = new ArrayList(_list760.size); + for (int _i761 = 0; _i761 < _list760.size; ++_i761) { - String _elem746; // required - _elem746 = iprot.readString(); - struct.success.add(_elem746); + String _elem762; // required + _elem762 = iprot.readString(); + struct.success.add(_elem762); } iprot.readListEnd(); } @@ -69347,9 +69669,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_name oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter747 : struct.success) + for (String _iter763 : struct.success) { - oprot.writeString(_iter747); + oprot.writeString(_iter763); } oprot.writeListEnd(); } @@ -69396,9 +69718,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_names if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter748 : struct.success) + for (String _iter764 : struct.success) { - oprot.writeString(_iter748); + oprot.writeString(_iter764); } } } @@ -69416,13 +69738,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_names_ BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list749 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list749.size); - for (int _i750 = 0; _i750 < _list749.size; ++_i750) + org.apache.thrift.protocol.TList _list765 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list765.size); + for (int _i766 = 0; _i766 < _list765.size; ++_i766) { - String _elem751; // required - _elem751 = iprot.readString(); - struct.success.add(_elem751); + String _elem767; // required + _elem767 = iprot.readString(); + struct.success.add(_elem767); } } struct.setSuccessIsSet(true); @@ -70589,14 +70911,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_by_f case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list752 = iprot.readListBegin(); - struct.success = new ArrayList(_list752.size); - for (int _i753 = 0; _i753 < _list752.size; ++_i753) + org.apache.thrift.protocol.TList _list768 = iprot.readListBegin(); + struct.success = new ArrayList(_list768.size); + for (int _i769 = 0; _i769 < _list768.size; ++_i769) { - Partition _elem754; // required - _elem754 = new Partition(); - _elem754.read(iprot); - struct.success.add(_elem754); + Partition _elem770; // required + _elem770 = new Partition(); + _elem770.read(iprot); + struct.success.add(_elem770); } iprot.readListEnd(); } @@ -70640,9 +70962,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_by_ oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Partition _iter755 : struct.success) + for (Partition _iter771 : struct.success) { - _iter755.write(oprot); + _iter771.write(oprot); } oprot.writeListEnd(); } @@ -70689,9 +71011,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_f if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter756 : struct.success) + for (Partition _iter772 : struct.success) { - _iter756.write(oprot); + _iter772.write(oprot); } } } @@ -70709,14 +71031,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_fi BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list757 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list757.size); - for (int _i758 = 0; _i758 < _list757.size; ++_i758) + org.apache.thrift.protocol.TList _list773 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list773.size); + for (int _i774 = 0; _i774 < _list773.size; ++_i774) { - Partition _elem759; // required - _elem759 = new Partition(); - _elem759.read(iprot); - struct.success.add(_elem759); + Partition _elem775; // required + _elem775 = new Partition(); + _elem775.read(iprot); + struct.success.add(_elem775); } } struct.setSuccessIsSet(true); @@ -71883,14 +72205,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_part_specs_by_f case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list760 = iprot.readListBegin(); - struct.success = new ArrayList(_list760.size); - for (int _i761 = 0; _i761 < _list760.size; ++_i761) + org.apache.thrift.protocol.TList _list776 = iprot.readListBegin(); + struct.success = new ArrayList(_list776.size); + for (int _i777 = 0; _i777 < _list776.size; ++_i777) { - PartitionSpec _elem762; // required - _elem762 = new PartitionSpec(); - _elem762.read(iprot); - struct.success.add(_elem762); + PartitionSpec _elem778; // required + _elem778 = new PartitionSpec(); + _elem778.read(iprot); + struct.success.add(_elem778); } iprot.readListEnd(); } @@ -71934,9 +72256,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_part_specs_by_ oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (PartitionSpec _iter763 : struct.success) + for (PartitionSpec _iter779 : struct.success) { - _iter763.write(oprot); + _iter779.write(oprot); } oprot.writeListEnd(); } @@ -71983,9 +72305,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_part_specs_by_f if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (PartitionSpec _iter764 : struct.success) + for (PartitionSpec _iter780 : struct.success) { - _iter764.write(oprot); + _iter780.write(oprot); } } } @@ -72003,14 +72325,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_part_specs_by_fi BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list765 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list765.size); - for (int _i766 = 0; _i766 < _list765.size; ++_i766) + org.apache.thrift.protocol.TList _list781 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list781.size); + for (int _i782 = 0; _i782 < _list781.size; ++_i782) { - PartitionSpec _elem767; // required - _elem767 = new PartitionSpec(); - _elem767.read(iprot); - struct.success.add(_elem767); + PartitionSpec _elem783; // required + _elem783 = new PartitionSpec(); + _elem783.read(iprot); + struct.success.add(_elem783); } } struct.setSuccessIsSet(true); @@ -73461,13 +73783,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_by_n case 3: // NAMES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list768 = iprot.readListBegin(); - struct.names = new ArrayList(_list768.size); - for (int _i769 = 0; _i769 < _list768.size; ++_i769) + org.apache.thrift.protocol.TList _list784 = iprot.readListBegin(); + struct.names = new ArrayList(_list784.size); + for (int _i785 = 0; _i785 < _list784.size; ++_i785) { - String _elem770; // required - _elem770 = iprot.readString(); - struct.names.add(_elem770); + String _elem786; // required + _elem786 = iprot.readString(); + struct.names.add(_elem786); } iprot.readListEnd(); } @@ -73503,9 +73825,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_by_ oprot.writeFieldBegin(NAMES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.names.size())); - for (String _iter771 : struct.names) + for (String _iter787 : struct.names) { - oprot.writeString(_iter771); + oprot.writeString(_iter787); } oprot.writeListEnd(); } @@ -73548,9 +73870,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_n if (struct.isSetNames()) { { oprot.writeI32(struct.names.size()); - for (String _iter772 : struct.names) + for (String _iter788 : struct.names) { - oprot.writeString(_iter772); + oprot.writeString(_iter788); } } } @@ -73570,13 +73892,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_na } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list773 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.names = new ArrayList(_list773.size); - for (int _i774 = 0; _i774 < _list773.size; ++_i774) + org.apache.thrift.protocol.TList _list789 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.names = new ArrayList(_list789.size); + for (int _i790 = 0; _i790 < _list789.size; ++_i790) { - String _elem775; // required - _elem775 = iprot.readString(); - struct.names.add(_elem775); + String _elem791; // required + _elem791 = iprot.readString(); + struct.names.add(_elem791); } } struct.setNamesIsSet(true); @@ -74063,14 +74385,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_by_n case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list776 = iprot.readListBegin(); - struct.success = new ArrayList(_list776.size); - for (int _i777 = 0; _i777 < _list776.size; ++_i777) + org.apache.thrift.protocol.TList _list792 = iprot.readListBegin(); + struct.success = new ArrayList(_list792.size); + for (int _i793 = 0; _i793 < _list792.size; ++_i793) { - Partition _elem778; // required - _elem778 = new Partition(); - _elem778.read(iprot); - struct.success.add(_elem778); + Partition _elem794; // required + _elem794 = new Partition(); + _elem794.read(iprot); + struct.success.add(_elem794); } iprot.readListEnd(); } @@ -74114,9 +74436,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_by_ oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Partition _iter779 : struct.success) + for (Partition _iter795 : struct.success) { - _iter779.write(oprot); + _iter795.write(oprot); } oprot.writeListEnd(); } @@ -74163,9 +74485,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_n if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter780 : struct.success) + for (Partition _iter796 : struct.success) { - _iter780.write(oprot); + _iter796.write(oprot); } } } @@ -74183,14 +74505,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_na BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list781 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list781.size); - for (int _i782 = 0; _i782 < _list781.size; ++_i782) + org.apache.thrift.protocol.TList _list797 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list797.size); + for (int _i798 = 0; _i798 < _list797.size; ++_i798) { - Partition _elem783; // required - _elem783 = new Partition(); - _elem783.read(iprot); - struct.success.add(_elem783); + Partition _elem799; // required + _elem799 = new Partition(); + _elem799.read(iprot); + struct.success.add(_elem799); } } struct.setSuccessIsSet(true); @@ -75740,14 +76062,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, alter_partitions_ar case 3: // NEW_PARTS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list784 = iprot.readListBegin(); - struct.new_parts = new ArrayList(_list784.size); - for (int _i785 = 0; _i785 < _list784.size; ++_i785) + org.apache.thrift.protocol.TList _list800 = iprot.readListBegin(); + struct.new_parts = new ArrayList(_list800.size); + for (int _i801 = 0; _i801 < _list800.size; ++_i801) { - Partition _elem786; // required - _elem786 = new Partition(); - _elem786.read(iprot); - struct.new_parts.add(_elem786); + Partition _elem802; // required + _elem802 = new Partition(); + _elem802.read(iprot); + struct.new_parts.add(_elem802); } iprot.readListEnd(); } @@ -75783,9 +76105,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, alter_partitions_a oprot.writeFieldBegin(NEW_PARTS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.new_parts.size())); - for (Partition _iter787 : struct.new_parts) + for (Partition _iter803 : struct.new_parts) { - _iter787.write(oprot); + _iter803.write(oprot); } oprot.writeListEnd(); } @@ -75828,9 +76150,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, alter_partitions_ar if (struct.isSetNew_parts()) { { oprot.writeI32(struct.new_parts.size()); - for (Partition _iter788 : struct.new_parts) + for (Partition _iter804 : struct.new_parts) { - _iter788.write(oprot); + _iter804.write(oprot); } } } @@ -75850,14 +76172,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, alter_partitions_arg } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list789 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.new_parts = new ArrayList(_list789.size); - for (int _i790 = 0; _i790 < _list789.size; ++_i790) + org.apache.thrift.protocol.TList _list805 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.new_parts = new ArrayList(_list805.size); + for (int _i806 = 0; _i806 < _list805.size; ++_i806) { - Partition _elem791; // required - _elem791 = new Partition(); - _elem791.read(iprot); - struct.new_parts.add(_elem791); + Partition _elem807; // required + _elem807 = new Partition(); + _elem807.read(iprot); + struct.new_parts.add(_elem807); } } struct.setNew_partsIsSet(true); @@ -78056,13 +78378,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, rename_partition_ar case 3: // PART_VALS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list792 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list792.size); - for (int _i793 = 0; _i793 < _list792.size; ++_i793) + org.apache.thrift.protocol.TList _list808 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list808.size); + for (int _i809 = 0; _i809 < _list808.size; ++_i809) { - String _elem794; // required - _elem794 = iprot.readString(); - struct.part_vals.add(_elem794); + String _elem810; // required + _elem810 = iprot.readString(); + struct.part_vals.add(_elem810); } iprot.readListEnd(); } @@ -78107,9 +78429,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, rename_partition_a oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (String _iter795 : struct.part_vals) + for (String _iter811 : struct.part_vals) { - oprot.writeString(_iter795); + oprot.writeString(_iter811); } oprot.writeListEnd(); } @@ -78160,9 +78482,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, rename_partition_ar if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (String _iter796 : struct.part_vals) + for (String _iter812 : struct.part_vals) { - oprot.writeString(_iter796); + oprot.writeString(_iter812); } } } @@ -78185,13 +78507,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, rename_partition_arg } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list797 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list797.size); - for (int _i798 = 0; _i798 < _list797.size; ++_i798) + org.apache.thrift.protocol.TList _list813 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list813.size); + for (int _i814 = 0; _i814 < _list813.size; ++_i814) { - String _elem799; // required - _elem799 = iprot.readString(); - struct.part_vals.add(_elem799); + String _elem815; // required + _elem815 = iprot.readString(); + struct.part_vals.add(_elem815); } } struct.setPart_valsIsSet(true); @@ -79068,13 +79390,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, partition_name_has_ case 1: // PART_VALS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list800 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list800.size); - for (int _i801 = 0; _i801 < _list800.size; ++_i801) + org.apache.thrift.protocol.TList _list816 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list816.size); + for (int _i817 = 0; _i817 < _list816.size; ++_i817) { - String _elem802; // required - _elem802 = iprot.readString(); - struct.part_vals.add(_elem802); + String _elem818; // required + _elem818 = iprot.readString(); + struct.part_vals.add(_elem818); } iprot.readListEnd(); } @@ -79108,9 +79430,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, partition_name_has oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (String _iter803 : struct.part_vals) + for (String _iter819 : struct.part_vals) { - oprot.writeString(_iter803); + oprot.writeString(_iter819); } oprot.writeListEnd(); } @@ -79147,9 +79469,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, partition_name_has_ if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (String _iter804 : struct.part_vals) + for (String _iter820 : struct.part_vals) { - oprot.writeString(_iter804); + oprot.writeString(_iter820); } } } @@ -79164,13 +79486,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, partition_name_has_v BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list805 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list805.size); - for (int _i806 = 0; _i806 < _list805.size; ++_i806) + org.apache.thrift.protocol.TList _list821 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list821.size); + for (int _i822 = 0; _i822 < _list821.size; ++_i822) { - String _elem807; // required - _elem807 = iprot.readString(); - struct.part_vals.add(_elem807); + String _elem823; // required + _elem823 = iprot.readString(); + struct.part_vals.add(_elem823); } } struct.setPart_valsIsSet(true); @@ -81328,13 +81650,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, partition_name_to_v case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list808 = iprot.readListBegin(); - struct.success = new ArrayList(_list808.size); - for (int _i809 = 0; _i809 < _list808.size; ++_i809) + org.apache.thrift.protocol.TList _list824 = iprot.readListBegin(); + struct.success = new ArrayList(_list824.size); + for (int _i825 = 0; _i825 < _list824.size; ++_i825) { - String _elem810; // required - _elem810 = iprot.readString(); - struct.success.add(_elem810); + String _elem826; // required + _elem826 = iprot.readString(); + struct.success.add(_elem826); } iprot.readListEnd(); } @@ -81369,9 +81691,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, partition_name_to_ oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter811 : struct.success) + for (String _iter827 : struct.success) { - oprot.writeString(_iter811); + oprot.writeString(_iter827); } oprot.writeListEnd(); } @@ -81410,9 +81732,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, partition_name_to_v if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter812 : struct.success) + for (String _iter828 : struct.success) { - oprot.writeString(_iter812); + oprot.writeString(_iter828); } } } @@ -81427,13 +81749,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, partition_name_to_va BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list813 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list813.size); - for (int _i814 = 0; _i814 < _list813.size; ++_i814) + org.apache.thrift.protocol.TList _list829 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list829.size); + for (int _i830 = 0; _i830 < _list829.size; ++_i830) { - String _elem815; // required - _elem815 = iprot.readString(); - struct.success.add(_elem815); + String _elem831; // required + _elem831 = iprot.readString(); + struct.success.add(_elem831); } } struct.setSuccessIsSet(true); @@ -82207,15 +82529,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, partition_name_to_s case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map816 = iprot.readMapBegin(); - struct.success = new HashMap(2*_map816.size); - for (int _i817 = 0; _i817 < _map816.size; ++_i817) + org.apache.thrift.protocol.TMap _map832 = iprot.readMapBegin(); + struct.success = new HashMap(2*_map832.size); + for (int _i833 = 0; _i833 < _map832.size; ++_i833) { - String _key818; // required - String _val819; // required - _key818 = iprot.readString(); - _val819 = iprot.readString(); - struct.success.put(_key818, _val819); + String _key834; // required + String _val835; // required + _key834 = iprot.readString(); + _val835 = iprot.readString(); + struct.success.put(_key834, _val835); } iprot.readMapEnd(); } @@ -82250,10 +82572,10 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, partition_name_to_ oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (Map.Entry _iter820 : struct.success.entrySet()) + for (Map.Entry _iter836 : struct.success.entrySet()) { - oprot.writeString(_iter820.getKey()); - oprot.writeString(_iter820.getValue()); + oprot.writeString(_iter836.getKey()); + oprot.writeString(_iter836.getValue()); } oprot.writeMapEnd(); } @@ -82292,10 +82614,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, partition_name_to_s if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Map.Entry _iter821 : struct.success.entrySet()) + for (Map.Entry _iter837 : struct.success.entrySet()) { - oprot.writeString(_iter821.getKey()); - oprot.writeString(_iter821.getValue()); + oprot.writeString(_iter837.getKey()); + oprot.writeString(_iter837.getValue()); } } } @@ -82310,15 +82632,15 @@ public void read(org.apache.thrift.protocol.TProtocol prot, partition_name_to_sp BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TMap _map822 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new HashMap(2*_map822.size); - for (int _i823 = 0; _i823 < _map822.size; ++_i823) + org.apache.thrift.protocol.TMap _map838 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new HashMap(2*_map838.size); + for (int _i839 = 0; _i839 < _map838.size; ++_i839) { - String _key824; // required - String _val825; // required - _key824 = iprot.readString(); - _val825 = iprot.readString(); - struct.success.put(_key824, _val825); + String _key840; // required + String _val841; // required + _key840 = iprot.readString(); + _val841 = iprot.readString(); + struct.success.put(_key840, _val841); } } struct.setSuccessIsSet(true); @@ -82924,15 +83246,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, markPartitionForEve case 3: // PART_VALS if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map826 = iprot.readMapBegin(); - struct.part_vals = new HashMap(2*_map826.size); - for (int _i827 = 0; _i827 < _map826.size; ++_i827) + org.apache.thrift.protocol.TMap _map842 = iprot.readMapBegin(); + struct.part_vals = new HashMap(2*_map842.size); + for (int _i843 = 0; _i843 < _map842.size; ++_i843) { - String _key828; // required - String _val829; // required - _key828 = iprot.readString(); - _val829 = iprot.readString(); - struct.part_vals.put(_key828, _val829); + String _key844; // required + String _val845; // required + _key844 = iprot.readString(); + _val845 = iprot.readString(); + struct.part_vals.put(_key844, _val845); } iprot.readMapEnd(); } @@ -82976,10 +83298,10 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, markPartitionForEv oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (Map.Entry _iter830 : struct.part_vals.entrySet()) + for (Map.Entry _iter846 : struct.part_vals.entrySet()) { - oprot.writeString(_iter830.getKey()); - oprot.writeString(_iter830.getValue()); + oprot.writeString(_iter846.getKey()); + oprot.writeString(_iter846.getValue()); } oprot.writeMapEnd(); } @@ -83030,10 +83352,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, markPartitionForEve if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (Map.Entry _iter831 : struct.part_vals.entrySet()) + for (Map.Entry _iter847 : struct.part_vals.entrySet()) { - oprot.writeString(_iter831.getKey()); - oprot.writeString(_iter831.getValue()); + oprot.writeString(_iter847.getKey()); + oprot.writeString(_iter847.getValue()); } } } @@ -83056,15 +83378,15 @@ public void read(org.apache.thrift.protocol.TProtocol prot, markPartitionForEven } if (incoming.get(2)) { { - org.apache.thrift.protocol.TMap _map832 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new HashMap(2*_map832.size); - for (int _i833 = 0; _i833 < _map832.size; ++_i833) + org.apache.thrift.protocol.TMap _map848 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new HashMap(2*_map848.size); + for (int _i849 = 0; _i849 < _map848.size; ++_i849) { - String _key834; // required - String _val835; // required - _key834 = iprot.readString(); - _val835 = iprot.readString(); - struct.part_vals.put(_key834, _val835); + String _key850; // required + String _val851; // required + _key850 = iprot.readString(); + _val851 = iprot.readString(); + struct.part_vals.put(_key850, _val851); } } struct.setPart_valsIsSet(true); @@ -84559,15 +84881,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, isPartitionMarkedFo case 3: // PART_VALS if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map836 = iprot.readMapBegin(); - struct.part_vals = new HashMap(2*_map836.size); - for (int _i837 = 0; _i837 < _map836.size; ++_i837) + org.apache.thrift.protocol.TMap _map852 = iprot.readMapBegin(); + struct.part_vals = new HashMap(2*_map852.size); + for (int _i853 = 0; _i853 < _map852.size; ++_i853) { - String _key838; // required - String _val839; // required - _key838 = iprot.readString(); - _val839 = iprot.readString(); - struct.part_vals.put(_key838, _val839); + String _key854; // required + String _val855; // required + _key854 = iprot.readString(); + _val855 = iprot.readString(); + struct.part_vals.put(_key854, _val855); } iprot.readMapEnd(); } @@ -84611,10 +84933,10 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, isPartitionMarkedF oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (Map.Entry _iter840 : struct.part_vals.entrySet()) + for (Map.Entry _iter856 : struct.part_vals.entrySet()) { - oprot.writeString(_iter840.getKey()); - oprot.writeString(_iter840.getValue()); + oprot.writeString(_iter856.getKey()); + oprot.writeString(_iter856.getValue()); } oprot.writeMapEnd(); } @@ -84665,10 +84987,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, isPartitionMarkedFo if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (Map.Entry _iter841 : struct.part_vals.entrySet()) + for (Map.Entry _iter857 : struct.part_vals.entrySet()) { - oprot.writeString(_iter841.getKey()); - oprot.writeString(_iter841.getValue()); + oprot.writeString(_iter857.getKey()); + oprot.writeString(_iter857.getValue()); } } } @@ -84691,15 +85013,15 @@ public void read(org.apache.thrift.protocol.TProtocol prot, isPartitionMarkedFor } if (incoming.get(2)) { { - org.apache.thrift.protocol.TMap _map842 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new HashMap(2*_map842.size); - for (int _i843 = 0; _i843 < _map842.size; ++_i843) + org.apache.thrift.protocol.TMap _map858 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new HashMap(2*_map858.size); + for (int _i859 = 0; _i859 < _map858.size; ++_i859) { - String _key844; // required - String _val845; // required - _key844 = iprot.readString(); - _val845 = iprot.readString(); - struct.part_vals.put(_key844, _val845); + String _key860; // required + String _val861; // required + _key860 = iprot.readString(); + _val861 = iprot.readString(); + struct.part_vals.put(_key860, _val861); } } struct.setPart_valsIsSet(true); @@ -91423,14 +91745,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_indexes_result case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list846 = iprot.readListBegin(); - struct.success = new ArrayList(_list846.size); - for (int _i847 = 0; _i847 < _list846.size; ++_i847) + org.apache.thrift.protocol.TList _list862 = iprot.readListBegin(); + struct.success = new ArrayList(_list862.size); + for (int _i863 = 0; _i863 < _list862.size; ++_i863) { - Index _elem848; // required - _elem848 = new Index(); - _elem848.read(iprot); - struct.success.add(_elem848); + Index _elem864; // required + _elem864 = new Index(); + _elem864.read(iprot); + struct.success.add(_elem864); } iprot.readListEnd(); } @@ -91474,9 +91796,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_indexes_result oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Index _iter849 : struct.success) + for (Index _iter865 : struct.success) { - _iter849.write(oprot); + _iter865.write(oprot); } oprot.writeListEnd(); } @@ -91523,9 +91845,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_indexes_result if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Index _iter850 : struct.success) + for (Index _iter866 : struct.success) { - _iter850.write(oprot); + _iter866.write(oprot); } } } @@ -91543,14 +91865,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_indexes_result s BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list851 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list851.size); - for (int _i852 = 0; _i852 < _list851.size; ++_i852) + org.apache.thrift.protocol.TList _list867 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list867.size); + for (int _i868 = 0; _i868 < _list867.size; ++_i868) { - Index _elem853; // required - _elem853 = new Index(); - _elem853.read(iprot); - struct.success.add(_elem853); + Index _elem869; // required + _elem869 = new Index(); + _elem869.read(iprot); + struct.success.add(_elem869); } } struct.setSuccessIsSet(true); @@ -92532,13 +92854,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_index_names_res case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list854 = iprot.readListBegin(); - struct.success = new ArrayList(_list854.size); - for (int _i855 = 0; _i855 < _list854.size; ++_i855) + org.apache.thrift.protocol.TList _list870 = iprot.readListBegin(); + struct.success = new ArrayList(_list870.size); + for (int _i871 = 0; _i871 < _list870.size; ++_i871) { - String _elem856; // required - _elem856 = iprot.readString(); - struct.success.add(_elem856); + String _elem872; // required + _elem872 = iprot.readString(); + struct.success.add(_elem872); } iprot.readListEnd(); } @@ -92573,9 +92895,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_index_names_re oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter857 : struct.success) + for (String _iter873 : struct.success) { - oprot.writeString(_iter857); + oprot.writeString(_iter873); } oprot.writeListEnd(); } @@ -92614,9 +92936,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_index_names_res if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter858 : struct.success) + for (String _iter874 : struct.success) { - oprot.writeString(_iter858); + oprot.writeString(_iter874); } } } @@ -92631,13 +92953,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_index_names_resu BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list859 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list859.size); - for (int _i860 = 0; _i860 < _list859.size; ++_i860) + org.apache.thrift.protocol.TList _list875 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list875.size); + for (int _i876 = 0; _i876 < _list875.size; ++_i876) { - String _elem861; // required - _elem861 = iprot.readString(); - struct.success.add(_elem861); + String _elem877; // required + _elem877 = iprot.readString(); + struct.success.add(_elem877); } } struct.setSuccessIsSet(true); @@ -108375,13 +108697,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_functions_resul case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list862 = iprot.readListBegin(); - struct.success = new ArrayList(_list862.size); - for (int _i863 = 0; _i863 < _list862.size; ++_i863) + org.apache.thrift.protocol.TList _list878 = iprot.readListBegin(); + struct.success = new ArrayList(_list878.size); + for (int _i879 = 0; _i879 < _list878.size; ++_i879) { - String _elem864; // required - _elem864 = iprot.readString(); - struct.success.add(_elem864); + String _elem880; // required + _elem880 = iprot.readString(); + struct.success.add(_elem880); } iprot.readListEnd(); } @@ -108416,9 +108738,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_functions_resu oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter865 : struct.success) + for (String _iter881 : struct.success) { - oprot.writeString(_iter865); + oprot.writeString(_iter881); } oprot.writeListEnd(); } @@ -108457,9 +108779,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_functions_resul if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter866 : struct.success) + for (String _iter882 : struct.success) { - oprot.writeString(_iter866); + oprot.writeString(_iter882); } } } @@ -108474,13 +108796,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_functions_result BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list867 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list867.size); - for (int _i868 = 0; _i868 < _list867.size; ++_i868) + org.apache.thrift.protocol.TList _list883 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list883.size); + for (int _i884 = 0; _i884 < _list883.size; ++_i884) { - String _elem869; // required - _elem869 = iprot.readString(); - struct.success.add(_elem869); + String _elem885; // required + _elem885 = iprot.readString(); + struct.success.add(_elem885); } } struct.setSuccessIsSet(true); @@ -111823,13 +112145,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_role_names_resu case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list870 = iprot.readListBegin(); - struct.success = new ArrayList(_list870.size); - for (int _i871 = 0; _i871 < _list870.size; ++_i871) + org.apache.thrift.protocol.TList _list886 = iprot.readListBegin(); + struct.success = new ArrayList(_list886.size); + for (int _i887 = 0; _i887 < _list886.size; ++_i887) { - String _elem872; // required - _elem872 = iprot.readString(); - struct.success.add(_elem872); + String _elem888; // required + _elem888 = iprot.readString(); + struct.success.add(_elem888); } iprot.readListEnd(); } @@ -111864,9 +112186,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_role_names_res oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter873 : struct.success) + for (String _iter889 : struct.success) { - oprot.writeString(_iter873); + oprot.writeString(_iter889); } oprot.writeListEnd(); } @@ -111905,9 +112227,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_role_names_resu if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter874 : struct.success) + for (String _iter890 : struct.success) { - oprot.writeString(_iter874); + oprot.writeString(_iter890); } } } @@ -111922,13 +112244,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_role_names_resul BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list875 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list875.size); - for (int _i876 = 0; _i876 < _list875.size; ++_i876) + org.apache.thrift.protocol.TList _list891 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list891.size); + for (int _i892 = 0; _i892 < _list891.size; ++_i892) { - String _elem877; // required - _elem877 = iprot.readString(); - struct.success.add(_elem877); + String _elem893; // required + _elem893 = iprot.readString(); + struct.success.add(_elem893); } } struct.setSuccessIsSet(true); @@ -115219,14 +115541,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, list_roles_result s case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list878 = iprot.readListBegin(); - struct.success = new ArrayList(_list878.size); - for (int _i879 = 0; _i879 < _list878.size; ++_i879) + org.apache.thrift.protocol.TList _list894 = iprot.readListBegin(); + struct.success = new ArrayList(_list894.size); + for (int _i895 = 0; _i895 < _list894.size; ++_i895) { - Role _elem880; // required - _elem880 = new Role(); - _elem880.read(iprot); - struct.success.add(_elem880); + Role _elem896; // required + _elem896 = new Role(); + _elem896.read(iprot); + struct.success.add(_elem896); } iprot.readListEnd(); } @@ -115261,9 +115583,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, list_roles_result oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Role _iter881 : struct.success) + for (Role _iter897 : struct.success) { - _iter881.write(oprot); + _iter897.write(oprot); } oprot.writeListEnd(); } @@ -115302,9 +115624,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, list_roles_result s if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Role _iter882 : struct.success) + for (Role _iter898 : struct.success) { - _iter882.write(oprot); + _iter898.write(oprot); } } } @@ -115319,14 +115641,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, list_roles_result st BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list883 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list883.size); - for (int _i884 = 0; _i884 < _list883.size; ++_i884) + org.apache.thrift.protocol.TList _list899 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list899.size); + for (int _i900 = 0; _i900 < _list899.size; ++_i900) { - Role _elem885; // required - _elem885 = new Role(); - _elem885.read(iprot); - struct.success.add(_elem885); + Role _elem901; // required + _elem901 = new Role(); + _elem901.read(iprot); + struct.success.add(_elem901); } } struct.setSuccessIsSet(true); @@ -118334,13 +118656,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_privilege_set_a case 3: // GROUP_NAMES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list886 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list886.size); - for (int _i887 = 0; _i887 < _list886.size; ++_i887) + org.apache.thrift.protocol.TList _list902 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list902.size); + for (int _i903 = 0; _i903 < _list902.size; ++_i903) { - String _elem888; // required - _elem888 = iprot.readString(); - struct.group_names.add(_elem888); + String _elem904; // required + _elem904 = iprot.readString(); + struct.group_names.add(_elem904); } iprot.readListEnd(); } @@ -118376,9 +118698,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_privilege_set_ oprot.writeFieldBegin(GROUP_NAMES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.group_names.size())); - for (String _iter889 : struct.group_names) + for (String _iter905 : struct.group_names) { - oprot.writeString(_iter889); + oprot.writeString(_iter905); } oprot.writeListEnd(); } @@ -118421,9 +118743,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_privilege_set_a if (struct.isSetGroup_names()) { { oprot.writeI32(struct.group_names.size()); - for (String _iter890 : struct.group_names) + for (String _iter906 : struct.group_names) { - oprot.writeString(_iter890); + oprot.writeString(_iter906); } } } @@ -118444,13 +118766,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_privilege_set_ar } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list891 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list891.size); - for (int _i892 = 0; _i892 < _list891.size; ++_i892) + org.apache.thrift.protocol.TList _list907 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list907.size); + for (int _i908 = 0; _i908 < _list907.size; ++_i908) { - String _elem893; // required - _elem893 = iprot.readString(); - struct.group_names.add(_elem893); + String _elem909; // required + _elem909 = iprot.readString(); + struct.group_names.add(_elem909); } } struct.setGroup_namesIsSet(true); @@ -119908,14 +120230,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, list_privileges_res case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list894 = iprot.readListBegin(); - struct.success = new ArrayList(_list894.size); - for (int _i895 = 0; _i895 < _list894.size; ++_i895) + org.apache.thrift.protocol.TList _list910 = iprot.readListBegin(); + struct.success = new ArrayList(_list910.size); + for (int _i911 = 0; _i911 < _list910.size; ++_i911) { - HiveObjectPrivilege _elem896; // required - _elem896 = new HiveObjectPrivilege(); - _elem896.read(iprot); - struct.success.add(_elem896); + HiveObjectPrivilege _elem912; // required + _elem912 = new HiveObjectPrivilege(); + _elem912.read(iprot); + struct.success.add(_elem912); } iprot.readListEnd(); } @@ -119950,9 +120272,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, list_privileges_re oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (HiveObjectPrivilege _iter897 : struct.success) + for (HiveObjectPrivilege _iter913 : struct.success) { - _iter897.write(oprot); + _iter913.write(oprot); } oprot.writeListEnd(); } @@ -119991,9 +120313,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, list_privileges_res if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (HiveObjectPrivilege _iter898 : struct.success) + for (HiveObjectPrivilege _iter914 : struct.success) { - _iter898.write(oprot); + _iter914.write(oprot); } } } @@ -120008,14 +120330,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, list_privileges_resu BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list899 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list899.size); - for (int _i900 = 0; _i900 < _list899.size; ++_i900) + org.apache.thrift.protocol.TList _list915 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list915.size); + for (int _i916 = 0; _i916 < _list915.size; ++_i916) { - HiveObjectPrivilege _elem901; // required - _elem901 = new HiveObjectPrivilege(); - _elem901.read(iprot); - struct.success.add(_elem901); + HiveObjectPrivilege _elem917; // required + _elem917 = new HiveObjectPrivilege(); + _elem917.read(iprot); + struct.success.add(_elem917); } } struct.setSuccessIsSet(true); @@ -122920,13 +123242,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, set_ugi_args struct case 2: // GROUP_NAMES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list902 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list902.size); - for (int _i903 = 0; _i903 < _list902.size; ++_i903) + org.apache.thrift.protocol.TList _list918 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list918.size); + for (int _i919 = 0; _i919 < _list918.size; ++_i919) { - String _elem904; // required - _elem904 = iprot.readString(); - struct.group_names.add(_elem904); + String _elem920; // required + _elem920 = iprot.readString(); + struct.group_names.add(_elem920); } iprot.readListEnd(); } @@ -122957,9 +123279,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, set_ugi_args struc oprot.writeFieldBegin(GROUP_NAMES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.group_names.size())); - for (String _iter905 : struct.group_names) + for (String _iter921 : struct.group_names) { - oprot.writeString(_iter905); + oprot.writeString(_iter921); } oprot.writeListEnd(); } @@ -122996,9 +123318,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, set_ugi_args struct if (struct.isSetGroup_names()) { { oprot.writeI32(struct.group_names.size()); - for (String _iter906 : struct.group_names) + for (String _iter922 : struct.group_names) { - oprot.writeString(_iter906); + oprot.writeString(_iter922); } } } @@ -123014,13 +123336,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, set_ugi_args struct) } if (incoming.get(1)) { { - org.apache.thrift.protocol.TList _list907 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list907.size); - for (int _i908 = 0; _i908 < _list907.size; ++_i908) + org.apache.thrift.protocol.TList _list923 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list923.size); + for (int _i924 = 0; _i924 < _list923.size; ++_i924) { - String _elem909; // required - _elem909 = iprot.readString(); - struct.group_names.add(_elem909); + String _elem925; // required + _elem925 = iprot.readString(); + struct.group_names.add(_elem925); } } struct.setGroup_namesIsSet(true); @@ -123426,13 +123748,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, set_ugi_result stru case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list910 = iprot.readListBegin(); - struct.success = new ArrayList(_list910.size); - for (int _i911 = 0; _i911 < _list910.size; ++_i911) + org.apache.thrift.protocol.TList _list926 = iprot.readListBegin(); + struct.success = new ArrayList(_list926.size); + for (int _i927 = 0; _i927 < _list926.size; ++_i927) { - String _elem912; // required - _elem912 = iprot.readString(); - struct.success.add(_elem912); + String _elem928; // required + _elem928 = iprot.readString(); + struct.success.add(_elem928); } iprot.readListEnd(); } @@ -123467,9 +123789,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, set_ugi_result str oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter913 : struct.success) + for (String _iter929 : struct.success) { - oprot.writeString(_iter913); + oprot.writeString(_iter929); } oprot.writeListEnd(); } @@ -123508,9 +123830,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, set_ugi_result stru if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter914 : struct.success) + for (String _iter930 : struct.success) { - oprot.writeString(_iter914); + oprot.writeString(_iter930); } } } @@ -123525,13 +123847,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, set_ugi_result struc BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list915 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list915.size); - for (int _i916 = 0; _i916 < _list915.size; ++_i916) + org.apache.thrift.protocol.TList _list931 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list931.size); + for (int _i932 = 0; _i932 < _list931.size; ++_i932) { - String _elem917; // required - _elem917 = iprot.readString(); - struct.success.add(_elem917); + String _elem933; // required + _elem933 = iprot.readString(); + struct.success.add(_elem933); } } struct.setSuccessIsSet(true); diff --git metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php index 69978d3..b5717ca 100644 --- metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php +++ metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php @@ -1055,7 +1055,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function drop_table($dbname, $name, $deleteData) { $this->send_drop_table($dbname, $name, $deleteData); - $this->recv_drop_table(); + return $this->recv_drop_table(); } public function send_drop_table($dbname, $name, $deleteData) @@ -1099,19 +1099,22 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $result->read($this->input_); $this->input_->readMessageEnd(); } + if ($result->success !== null) { + return $result->success; + } if ($result->o1 !== null) { throw $result->o1; } if ($result->o3 !== null) { throw $result->o3; } - return; + throw new \Exception("drop_table failed: unknown result"); } public function drop_table_with_environment_context($dbname, $name, $deleteData, \metastore\EnvironmentContext $environment_context) { $this->send_drop_table_with_environment_context($dbname, $name, $deleteData, $environment_context); - $this->recv_drop_table_with_environment_context(); + return $this->recv_drop_table_with_environment_context(); } public function send_drop_table_with_environment_context($dbname, $name, $deleteData, \metastore\EnvironmentContext $environment_context) @@ -1156,13 +1159,16 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $result->read($this->input_); $this->input_->readMessageEnd(); } + if ($result->success !== null) { + return $result->success; + } if ($result->o1 !== null) { throw $result->o1; } if ($result->o3 !== null) { throw $result->o3; } - return; + throw new \Exception("drop_table_with_environment_context failed: unknown result"); } public function get_tables($db_name, $pattern) @@ -10281,12 +10287,22 @@ class ThriftHiveMetastore_drop_table_args { class ThriftHiveMetastore_drop_table_result { static $_TSPEC; + public $success = null; public $o1 = null; public $o3 = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( + 0 => array( + 'var' => 'success', + 'type' => TType::LST, + 'etype' => TType::STRUCT, + 'elem' => array( + 'type' => TType::STRUCT, + 'class' => '\metastore\Partition', + ), + ), 1 => array( 'var' => 'o1', 'type' => TType::STRUCT, @@ -10300,6 +10316,9 @@ class ThriftHiveMetastore_drop_table_result { ); } if (is_array($vals)) { + if (isset($vals['success'])) { + $this->success = $vals['success']; + } if (isset($vals['o1'])) { $this->o1 = $vals['o1']; } @@ -10328,6 +10347,24 @@ class ThriftHiveMetastore_drop_table_result { } switch ($fid) { + case 0: + if ($ftype == TType::LST) { + $this->success = array(); + $_size474 = 0; + $_etype477 = 0; + $xfer += $input->readListBegin($_etype477, $_size474); + for ($_i478 = 0; $_i478 < $_size474; ++$_i478) + { + $elem479 = null; + $elem479 = new \metastore\Partition(); + $xfer += $elem479->read($input); + $this->success []= $elem479; + } + $xfer += $input->readListEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; case 1: if ($ftype == TType::STRUCT) { $this->o1 = new \metastore\NoSuchObjectException(); @@ -10357,6 +10394,23 @@ class ThriftHiveMetastore_drop_table_result { public function write($output) { $xfer = 0; $xfer += $output->writeStructBegin('ThriftHiveMetastore_drop_table_result'); + if ($this->success !== null) { + if (!is_array($this->success)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('success', TType::LST, 0); + { + $output->writeListBegin(TType::STRUCT, count($this->success)); + { + foreach ($this->success as $iter480) + { + $xfer += $iter480->write($output); + } + } + $output->writeListEnd(); + } + $xfer += $output->writeFieldEnd(); + } if ($this->o1 !== null) { $xfer += $output->writeFieldBegin('o1', TType::STRUCT, 1); $xfer += $this->o1->write($output); @@ -10514,12 +10568,22 @@ class ThriftHiveMetastore_drop_table_with_environment_context_args { class ThriftHiveMetastore_drop_table_with_environment_context_result { static $_TSPEC; + public $success = null; public $o1 = null; public $o3 = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( + 0 => array( + 'var' => 'success', + 'type' => TType::LST, + 'etype' => TType::STRUCT, + 'elem' => array( + 'type' => TType::STRUCT, + 'class' => '\metastore\Partition', + ), + ), 1 => array( 'var' => 'o1', 'type' => TType::STRUCT, @@ -10533,6 +10597,9 @@ class ThriftHiveMetastore_drop_table_with_environment_context_result { ); } if (is_array($vals)) { + if (isset($vals['success'])) { + $this->success = $vals['success']; + } if (isset($vals['o1'])) { $this->o1 = $vals['o1']; } @@ -10561,6 +10628,24 @@ class ThriftHiveMetastore_drop_table_with_environment_context_result { } switch ($fid) { + case 0: + if ($ftype == TType::LST) { + $this->success = array(); + $_size481 = 0; + $_etype484 = 0; + $xfer += $input->readListBegin($_etype484, $_size481); + for ($_i485 = 0; $_i485 < $_size481; ++$_i485) + { + $elem486 = null; + $elem486 = new \metastore\Partition(); + $xfer += $elem486->read($input); + $this->success []= $elem486; + } + $xfer += $input->readListEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; case 1: if ($ftype == TType::STRUCT) { $this->o1 = new \metastore\NoSuchObjectException(); @@ -10590,6 +10675,23 @@ class ThriftHiveMetastore_drop_table_with_environment_context_result { public function write($output) { $xfer = 0; $xfer += $output->writeStructBegin('ThriftHiveMetastore_drop_table_with_environment_context_result'); + if ($this->success !== null) { + if (!is_array($this->success)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('success', TType::LST, 0); + { + $output->writeListBegin(TType::STRUCT, count($this->success)); + { + foreach ($this->success as $iter487) + { + $xfer += $iter487->write($output); + } + } + $output->writeListEnd(); + } + $xfer += $output->writeFieldEnd(); + } if ($this->o1 !== null) { $xfer += $output->writeFieldBegin('o1', TType::STRUCT, 1); $xfer += $this->o1->write($output); @@ -10755,14 +10857,14 @@ class ThriftHiveMetastore_get_tables_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size474 = 0; - $_etype477 = 0; - $xfer += $input->readListBegin($_etype477, $_size474); - for ($_i478 = 0; $_i478 < $_size474; ++$_i478) + $_size488 = 0; + $_etype491 = 0; + $xfer += $input->readListBegin($_etype491, $_size488); + for ($_i492 = 0; $_i492 < $_size488; ++$_i492) { - $elem479 = null; - $xfer += $input->readString($elem479); - $this->success []= $elem479; + $elem493 = null; + $xfer += $input->readString($elem493); + $this->success []= $elem493; } $xfer += $input->readListEnd(); } else { @@ -10798,9 +10900,9 @@ class ThriftHiveMetastore_get_tables_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter480) + foreach ($this->success as $iter494) { - $xfer += $output->writeString($iter480); + $xfer += $output->writeString($iter494); } } $output->writeListEnd(); @@ -10947,14 +11049,14 @@ class ThriftHiveMetastore_get_all_tables_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size481 = 0; - $_etype484 = 0; - $xfer += $input->readListBegin($_etype484, $_size481); - for ($_i485 = 0; $_i485 < $_size481; ++$_i485) + $_size495 = 0; + $_etype498 = 0; + $xfer += $input->readListBegin($_etype498, $_size495); + for ($_i499 = 0; $_i499 < $_size495; ++$_i499) { - $elem486 = null; - $xfer += $input->readString($elem486); - $this->success []= $elem486; + $elem500 = null; + $xfer += $input->readString($elem500); + $this->success []= $elem500; } $xfer += $input->readListEnd(); } else { @@ -10990,9 +11092,9 @@ class ThriftHiveMetastore_get_all_tables_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter487) + foreach ($this->success as $iter501) { - $xfer += $output->writeString($iter487); + $xfer += $output->writeString($iter501); } } $output->writeListEnd(); @@ -11286,14 +11388,14 @@ class ThriftHiveMetastore_get_table_objects_by_name_args { case 2: if ($ftype == TType::LST) { $this->tbl_names = array(); - $_size488 = 0; - $_etype491 = 0; - $xfer += $input->readListBegin($_etype491, $_size488); - for ($_i492 = 0; $_i492 < $_size488; ++$_i492) + $_size502 = 0; + $_etype505 = 0; + $xfer += $input->readListBegin($_etype505, $_size502); + for ($_i506 = 0; $_i506 < $_size502; ++$_i506) { - $elem493 = null; - $xfer += $input->readString($elem493); - $this->tbl_names []= $elem493; + $elem507 = null; + $xfer += $input->readString($elem507); + $this->tbl_names []= $elem507; } $xfer += $input->readListEnd(); } else { @@ -11326,9 +11428,9 @@ class ThriftHiveMetastore_get_table_objects_by_name_args { { $output->writeListBegin(TType::STRING, count($this->tbl_names)); { - foreach ($this->tbl_names as $iter494) + foreach ($this->tbl_names as $iter508) { - $xfer += $output->writeString($iter494); + $xfer += $output->writeString($iter508); } } $output->writeListEnd(); @@ -11417,15 +11519,15 @@ class ThriftHiveMetastore_get_table_objects_by_name_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size495 = 0; - $_etype498 = 0; - $xfer += $input->readListBegin($_etype498, $_size495); - for ($_i499 = 0; $_i499 < $_size495; ++$_i499) + $_size509 = 0; + $_etype512 = 0; + $xfer += $input->readListBegin($_etype512, $_size509); + for ($_i513 = 0; $_i513 < $_size509; ++$_i513) { - $elem500 = null; - $elem500 = new \metastore\Table(); - $xfer += $elem500->read($input); - $this->success []= $elem500; + $elem514 = null; + $elem514 = new \metastore\Table(); + $xfer += $elem514->read($input); + $this->success []= $elem514; } $xfer += $input->readListEnd(); } else { @@ -11477,9 +11579,9 @@ class ThriftHiveMetastore_get_table_objects_by_name_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter501) + foreach ($this->success as $iter515) { - $xfer += $iter501->write($output); + $xfer += $iter515->write($output); } } $output->writeListEnd(); @@ -11694,14 +11796,14 @@ class ThriftHiveMetastore_get_table_names_by_filter_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size502 = 0; - $_etype505 = 0; - $xfer += $input->readListBegin($_etype505, $_size502); - for ($_i506 = 0; $_i506 < $_size502; ++$_i506) + $_size516 = 0; + $_etype519 = 0; + $xfer += $input->readListBegin($_etype519, $_size516); + for ($_i520 = 0; $_i520 < $_size516; ++$_i520) { - $elem507 = null; - $xfer += $input->readString($elem507); - $this->success []= $elem507; + $elem521 = null; + $xfer += $input->readString($elem521); + $this->success []= $elem521; } $xfer += $input->readListEnd(); } else { @@ -11753,9 +11855,9 @@ class ThriftHiveMetastore_get_table_names_by_filter_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter508) + foreach ($this->success as $iter522) { - $xfer += $output->writeString($iter508); + $xfer += $output->writeString($iter522); } } $output->writeListEnd(); @@ -12981,15 +13083,15 @@ class ThriftHiveMetastore_add_partitions_args { case 1: if ($ftype == TType::LST) { $this->new_parts = array(); - $_size509 = 0; - $_etype512 = 0; - $xfer += $input->readListBegin($_etype512, $_size509); - for ($_i513 = 0; $_i513 < $_size509; ++$_i513) + $_size523 = 0; + $_etype526 = 0; + $xfer += $input->readListBegin($_etype526, $_size523); + for ($_i527 = 0; $_i527 < $_size523; ++$_i527) { - $elem514 = null; - $elem514 = new \metastore\Partition(); - $xfer += $elem514->read($input); - $this->new_parts []= $elem514; + $elem528 = null; + $elem528 = new \metastore\Partition(); + $xfer += $elem528->read($input); + $this->new_parts []= $elem528; } $xfer += $input->readListEnd(); } else { @@ -13017,9 +13119,9 @@ class ThriftHiveMetastore_add_partitions_args { { $output->writeListBegin(TType::STRUCT, count($this->new_parts)); { - foreach ($this->new_parts as $iter515) + foreach ($this->new_parts as $iter529) { - $xfer += $iter515->write($output); + $xfer += $iter529->write($output); } } $output->writeListEnd(); @@ -13219,15 +13321,15 @@ class ThriftHiveMetastore_add_partitions_pspec_args { case 1: if ($ftype == TType::LST) { $this->new_parts = array(); - $_size516 = 0; - $_etype519 = 0; - $xfer += $input->readListBegin($_etype519, $_size516); - for ($_i520 = 0; $_i520 < $_size516; ++$_i520) + $_size530 = 0; + $_etype533 = 0; + $xfer += $input->readListBegin($_etype533, $_size530); + for ($_i534 = 0; $_i534 < $_size530; ++$_i534) { - $elem521 = null; - $elem521 = new \metastore\PartitionSpec(); - $xfer += $elem521->read($input); - $this->new_parts []= $elem521; + $elem535 = null; + $elem535 = new \metastore\PartitionSpec(); + $xfer += $elem535->read($input); + $this->new_parts []= $elem535; } $xfer += $input->readListEnd(); } else { @@ -13255,9 +13357,9 @@ class ThriftHiveMetastore_add_partitions_pspec_args { { $output->writeListBegin(TType::STRUCT, count($this->new_parts)); { - foreach ($this->new_parts as $iter522) + foreach ($this->new_parts as $iter536) { - $xfer += $iter522->write($output); + $xfer += $iter536->write($output); } } $output->writeListEnd(); @@ -13486,14 +13588,14 @@ class ThriftHiveMetastore_append_partition_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size523 = 0; - $_etype526 = 0; - $xfer += $input->readListBegin($_etype526, $_size523); - for ($_i527 = 0; $_i527 < $_size523; ++$_i527) + $_size537 = 0; + $_etype540 = 0; + $xfer += $input->readListBegin($_etype540, $_size537); + for ($_i541 = 0; $_i541 < $_size537; ++$_i541) { - $elem528 = null; - $xfer += $input->readString($elem528); - $this->part_vals []= $elem528; + $elem542 = null; + $xfer += $input->readString($elem542); + $this->part_vals []= $elem542; } $xfer += $input->readListEnd(); } else { @@ -13531,9 +13633,9 @@ class ThriftHiveMetastore_append_partition_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter529) + foreach ($this->part_vals as $iter543) { - $xfer += $output->writeString($iter529); + $xfer += $output->writeString($iter543); } } $output->writeListEnd(); @@ -13996,14 +14098,14 @@ class ThriftHiveMetastore_append_partition_with_environment_context_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size530 = 0; - $_etype533 = 0; - $xfer += $input->readListBegin($_etype533, $_size530); - for ($_i534 = 0; $_i534 < $_size530; ++$_i534) + $_size544 = 0; + $_etype547 = 0; + $xfer += $input->readListBegin($_etype547, $_size544); + for ($_i548 = 0; $_i548 < $_size544; ++$_i548) { - $elem535 = null; - $xfer += $input->readString($elem535); - $this->part_vals []= $elem535; + $elem549 = null; + $xfer += $input->readString($elem549); + $this->part_vals []= $elem549; } $xfer += $input->readListEnd(); } else { @@ -14049,9 +14151,9 @@ class ThriftHiveMetastore_append_partition_with_environment_context_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter536) + foreach ($this->part_vals as $iter550) { - $xfer += $output->writeString($iter536); + $xfer += $output->writeString($iter550); } } $output->writeListEnd(); @@ -14836,14 +14938,14 @@ class ThriftHiveMetastore_drop_partition_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size537 = 0; - $_etype540 = 0; - $xfer += $input->readListBegin($_etype540, $_size537); - for ($_i541 = 0; $_i541 < $_size537; ++$_i541) + $_size551 = 0; + $_etype554 = 0; + $xfer += $input->readListBegin($_etype554, $_size551); + for ($_i555 = 0; $_i555 < $_size551; ++$_i555) { - $elem542 = null; - $xfer += $input->readString($elem542); - $this->part_vals []= $elem542; + $elem556 = null; + $xfer += $input->readString($elem556); + $this->part_vals []= $elem556; } $xfer += $input->readListEnd(); } else { @@ -14888,9 +14990,9 @@ class ThriftHiveMetastore_drop_partition_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter543) + foreach ($this->part_vals as $iter557) { - $xfer += $output->writeString($iter543); + $xfer += $output->writeString($iter557); } } $output->writeListEnd(); @@ -15119,14 +15221,14 @@ class ThriftHiveMetastore_drop_partition_with_environment_context_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size544 = 0; - $_etype547 = 0; - $xfer += $input->readListBegin($_etype547, $_size544); - for ($_i548 = 0; $_i548 < $_size544; ++$_i548) + $_size558 = 0; + $_etype561 = 0; + $xfer += $input->readListBegin($_etype561, $_size558); + for ($_i562 = 0; $_i562 < $_size558; ++$_i562) { - $elem549 = null; - $xfer += $input->readString($elem549); - $this->part_vals []= $elem549; + $elem563 = null; + $xfer += $input->readString($elem563); + $this->part_vals []= $elem563; } $xfer += $input->readListEnd(); } else { @@ -15179,9 +15281,9 @@ class ThriftHiveMetastore_drop_partition_with_environment_context_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter550) + foreach ($this->part_vals as $iter564) { - $xfer += $output->writeString($iter550); + $xfer += $output->writeString($iter564); } } $output->writeListEnd(); @@ -16120,14 +16222,14 @@ class ThriftHiveMetastore_get_partition_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size551 = 0; - $_etype554 = 0; - $xfer += $input->readListBegin($_etype554, $_size551); - for ($_i555 = 0; $_i555 < $_size551; ++$_i555) + $_size565 = 0; + $_etype568 = 0; + $xfer += $input->readListBegin($_etype568, $_size565); + for ($_i569 = 0; $_i569 < $_size565; ++$_i569) { - $elem556 = null; - $xfer += $input->readString($elem556); - $this->part_vals []= $elem556; + $elem570 = null; + $xfer += $input->readString($elem570); + $this->part_vals []= $elem570; } $xfer += $input->readListEnd(); } else { @@ -16165,9 +16267,9 @@ class ThriftHiveMetastore_get_partition_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter557) + foreach ($this->part_vals as $iter571) { - $xfer += $output->writeString($iter557); + $xfer += $output->writeString($iter571); } } $output->writeListEnd(); @@ -16385,17 +16487,17 @@ class ThriftHiveMetastore_exchange_partition_args { case 1: if ($ftype == TType::MAP) { $this->partitionSpecs = array(); - $_size558 = 0; - $_ktype559 = 0; - $_vtype560 = 0; - $xfer += $input->readMapBegin($_ktype559, $_vtype560, $_size558); - for ($_i562 = 0; $_i562 < $_size558; ++$_i562) + $_size572 = 0; + $_ktype573 = 0; + $_vtype574 = 0; + $xfer += $input->readMapBegin($_ktype573, $_vtype574, $_size572); + for ($_i576 = 0; $_i576 < $_size572; ++$_i576) { - $key563 = ''; - $val564 = ''; - $xfer += $input->readString($key563); - $xfer += $input->readString($val564); - $this->partitionSpecs[$key563] = $val564; + $key577 = ''; + $val578 = ''; + $xfer += $input->readString($key577); + $xfer += $input->readString($val578); + $this->partitionSpecs[$key577] = $val578; } $xfer += $input->readMapEnd(); } else { @@ -16451,10 +16553,10 @@ class ThriftHiveMetastore_exchange_partition_args { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->partitionSpecs)); { - foreach ($this->partitionSpecs as $kiter565 => $viter566) + foreach ($this->partitionSpecs as $kiter579 => $viter580) { - $xfer += $output->writeString($kiter565); - $xfer += $output->writeString($viter566); + $xfer += $output->writeString($kiter579); + $xfer += $output->writeString($viter580); } } $output->writeMapEnd(); @@ -16750,14 +16852,14 @@ class ThriftHiveMetastore_get_partition_with_auth_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size567 = 0; - $_etype570 = 0; - $xfer += $input->readListBegin($_etype570, $_size567); - for ($_i571 = 0; $_i571 < $_size567; ++$_i571) + $_size581 = 0; + $_etype584 = 0; + $xfer += $input->readListBegin($_etype584, $_size581); + for ($_i585 = 0; $_i585 < $_size581; ++$_i585) { - $elem572 = null; - $xfer += $input->readString($elem572); - $this->part_vals []= $elem572; + $elem586 = null; + $xfer += $input->readString($elem586); + $this->part_vals []= $elem586; } $xfer += $input->readListEnd(); } else { @@ -16774,14 +16876,14 @@ class ThriftHiveMetastore_get_partition_with_auth_args { case 5: if ($ftype == TType::LST) { $this->group_names = array(); - $_size573 = 0; - $_etype576 = 0; - $xfer += $input->readListBegin($_etype576, $_size573); - for ($_i577 = 0; $_i577 < $_size573; ++$_i577) + $_size587 = 0; + $_etype590 = 0; + $xfer += $input->readListBegin($_etype590, $_size587); + for ($_i591 = 0; $_i591 < $_size587; ++$_i591) { - $elem578 = null; - $xfer += $input->readString($elem578); - $this->group_names []= $elem578; + $elem592 = null; + $xfer += $input->readString($elem592); + $this->group_names []= $elem592; } $xfer += $input->readListEnd(); } else { @@ -16819,9 +16921,9 @@ class ThriftHiveMetastore_get_partition_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter579) + foreach ($this->part_vals as $iter593) { - $xfer += $output->writeString($iter579); + $xfer += $output->writeString($iter593); } } $output->writeListEnd(); @@ -16841,9 +16943,9 @@ class ThriftHiveMetastore_get_partition_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter580) + foreach ($this->group_names as $iter594) { - $xfer += $output->writeString($iter580); + $xfer += $output->writeString($iter594); } } $output->writeListEnd(); @@ -17389,15 +17491,15 @@ class ThriftHiveMetastore_get_partitions_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size581 = 0; - $_etype584 = 0; - $xfer += $input->readListBegin($_etype584, $_size581); - for ($_i585 = 0; $_i585 < $_size581; ++$_i585) + $_size595 = 0; + $_etype598 = 0; + $xfer += $input->readListBegin($_etype598, $_size595); + for ($_i599 = 0; $_i599 < $_size595; ++$_i599) { - $elem586 = null; - $elem586 = new \metastore\Partition(); - $xfer += $elem586->read($input); - $this->success []= $elem586; + $elem600 = null; + $elem600 = new \metastore\Partition(); + $xfer += $elem600->read($input); + $this->success []= $elem600; } $xfer += $input->readListEnd(); } else { @@ -17441,9 +17543,9 @@ class ThriftHiveMetastore_get_partitions_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter587) + foreach ($this->success as $iter601) { - $xfer += $iter587->write($output); + $xfer += $iter601->write($output); } } $output->writeListEnd(); @@ -17574,14 +17676,14 @@ class ThriftHiveMetastore_get_partitions_with_auth_args { case 5: if ($ftype == TType::LST) { $this->group_names = array(); - $_size588 = 0; - $_etype591 = 0; - $xfer += $input->readListBegin($_etype591, $_size588); - for ($_i592 = 0; $_i592 < $_size588; ++$_i592) + $_size602 = 0; + $_etype605 = 0; + $xfer += $input->readListBegin($_etype605, $_size602); + for ($_i606 = 0; $_i606 < $_size602; ++$_i606) { - $elem593 = null; - $xfer += $input->readString($elem593); - $this->group_names []= $elem593; + $elem607 = null; + $xfer += $input->readString($elem607); + $this->group_names []= $elem607; } $xfer += $input->readListEnd(); } else { @@ -17629,9 +17731,9 @@ class ThriftHiveMetastore_get_partitions_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter594) + foreach ($this->group_names as $iter608) { - $xfer += $output->writeString($iter594); + $xfer += $output->writeString($iter608); } } $output->writeListEnd(); @@ -17711,15 +17813,15 @@ class ThriftHiveMetastore_get_partitions_with_auth_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size595 = 0; - $_etype598 = 0; - $xfer += $input->readListBegin($_etype598, $_size595); - for ($_i599 = 0; $_i599 < $_size595; ++$_i599) + $_size609 = 0; + $_etype612 = 0; + $xfer += $input->readListBegin($_etype612, $_size609); + for ($_i613 = 0; $_i613 < $_size609; ++$_i613) { - $elem600 = null; - $elem600 = new \metastore\Partition(); - $xfer += $elem600->read($input); - $this->success []= $elem600; + $elem614 = null; + $elem614 = new \metastore\Partition(); + $xfer += $elem614->read($input); + $this->success []= $elem614; } $xfer += $input->readListEnd(); } else { @@ -17763,9 +17865,9 @@ class ThriftHiveMetastore_get_partitions_with_auth_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter601) + foreach ($this->success as $iter615) { - $xfer += $iter601->write($output); + $xfer += $iter615->write($output); } } $output->writeListEnd(); @@ -17967,15 +18069,15 @@ class ThriftHiveMetastore_get_partitions_pspec_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size602 = 0; - $_etype605 = 0; - $xfer += $input->readListBegin($_etype605, $_size602); - for ($_i606 = 0; $_i606 < $_size602; ++$_i606) + $_size616 = 0; + $_etype619 = 0; + $xfer += $input->readListBegin($_etype619, $_size616); + for ($_i620 = 0; $_i620 < $_size616; ++$_i620) { - $elem607 = null; - $elem607 = new \metastore\PartitionSpec(); - $xfer += $elem607->read($input); - $this->success []= $elem607; + $elem621 = null; + $elem621 = new \metastore\PartitionSpec(); + $xfer += $elem621->read($input); + $this->success []= $elem621; } $xfer += $input->readListEnd(); } else { @@ -18019,9 +18121,9 @@ class ThriftHiveMetastore_get_partitions_pspec_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter608) + foreach ($this->success as $iter622) { - $xfer += $iter608->write($output); + $xfer += $iter622->write($output); } } $output->writeListEnd(); @@ -18213,14 +18315,14 @@ class ThriftHiveMetastore_get_partition_names_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size609 = 0; - $_etype612 = 0; - $xfer += $input->readListBegin($_etype612, $_size609); - for ($_i613 = 0; $_i613 < $_size609; ++$_i613) + $_size623 = 0; + $_etype626 = 0; + $xfer += $input->readListBegin($_etype626, $_size623); + for ($_i627 = 0; $_i627 < $_size623; ++$_i627) { - $elem614 = null; - $xfer += $input->readString($elem614); - $this->success []= $elem614; + $elem628 = null; + $xfer += $input->readString($elem628); + $this->success []= $elem628; } $xfer += $input->readListEnd(); } else { @@ -18256,9 +18358,9 @@ class ThriftHiveMetastore_get_partition_names_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter615) + foreach ($this->success as $iter629) { - $xfer += $output->writeString($iter615); + $xfer += $output->writeString($iter629); } } $output->writeListEnd(); @@ -18362,14 +18464,14 @@ class ThriftHiveMetastore_get_partitions_ps_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size616 = 0; - $_etype619 = 0; - $xfer += $input->readListBegin($_etype619, $_size616); - for ($_i620 = 0; $_i620 < $_size616; ++$_i620) + $_size630 = 0; + $_etype633 = 0; + $xfer += $input->readListBegin($_etype633, $_size630); + for ($_i634 = 0; $_i634 < $_size630; ++$_i634) { - $elem621 = null; - $xfer += $input->readString($elem621); - $this->part_vals []= $elem621; + $elem635 = null; + $xfer += $input->readString($elem635); + $this->part_vals []= $elem635; } $xfer += $input->readListEnd(); } else { @@ -18414,9 +18516,9 @@ class ThriftHiveMetastore_get_partitions_ps_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter622) + foreach ($this->part_vals as $iter636) { - $xfer += $output->writeString($iter622); + $xfer += $output->writeString($iter636); } } $output->writeListEnd(); @@ -18501,15 +18603,15 @@ class ThriftHiveMetastore_get_partitions_ps_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size623 = 0; - $_etype626 = 0; - $xfer += $input->readListBegin($_etype626, $_size623); - for ($_i627 = 0; $_i627 < $_size623; ++$_i627) + $_size637 = 0; + $_etype640 = 0; + $xfer += $input->readListBegin($_etype640, $_size637); + for ($_i641 = 0; $_i641 < $_size637; ++$_i641) { - $elem628 = null; - $elem628 = new \metastore\Partition(); - $xfer += $elem628->read($input); - $this->success []= $elem628; + $elem642 = null; + $elem642 = new \metastore\Partition(); + $xfer += $elem642->read($input); + $this->success []= $elem642; } $xfer += $input->readListEnd(); } else { @@ -18553,9 +18655,9 @@ class ThriftHiveMetastore_get_partitions_ps_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter629) + foreach ($this->success as $iter643) { - $xfer += $iter629->write($output); + $xfer += $iter643->write($output); } } $output->writeListEnd(); @@ -18684,14 +18786,14 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size630 = 0; - $_etype633 = 0; - $xfer += $input->readListBegin($_etype633, $_size630); - for ($_i634 = 0; $_i634 < $_size630; ++$_i634) + $_size644 = 0; + $_etype647 = 0; + $xfer += $input->readListBegin($_etype647, $_size644); + for ($_i648 = 0; $_i648 < $_size644; ++$_i648) { - $elem635 = null; - $xfer += $input->readString($elem635); - $this->part_vals []= $elem635; + $elem649 = null; + $xfer += $input->readString($elem649); + $this->part_vals []= $elem649; } $xfer += $input->readListEnd(); } else { @@ -18715,14 +18817,14 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { case 6: if ($ftype == TType::LST) { $this->group_names = array(); - $_size636 = 0; - $_etype639 = 0; - $xfer += $input->readListBegin($_etype639, $_size636); - for ($_i640 = 0; $_i640 < $_size636; ++$_i640) + $_size650 = 0; + $_etype653 = 0; + $xfer += $input->readListBegin($_etype653, $_size650); + for ($_i654 = 0; $_i654 < $_size650; ++$_i654) { - $elem641 = null; - $xfer += $input->readString($elem641); - $this->group_names []= $elem641; + $elem655 = null; + $xfer += $input->readString($elem655); + $this->group_names []= $elem655; } $xfer += $input->readListEnd(); } else { @@ -18760,9 +18862,9 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter642) + foreach ($this->part_vals as $iter656) { - $xfer += $output->writeString($iter642); + $xfer += $output->writeString($iter656); } } $output->writeListEnd(); @@ -18787,9 +18889,9 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter643) + foreach ($this->group_names as $iter657) { - $xfer += $output->writeString($iter643); + $xfer += $output->writeString($iter657); } } $output->writeListEnd(); @@ -18869,15 +18971,15 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size644 = 0; - $_etype647 = 0; - $xfer += $input->readListBegin($_etype647, $_size644); - for ($_i648 = 0; $_i648 < $_size644; ++$_i648) + $_size658 = 0; + $_etype661 = 0; + $xfer += $input->readListBegin($_etype661, $_size658); + for ($_i662 = 0; $_i662 < $_size658; ++$_i662) { - $elem649 = null; - $elem649 = new \metastore\Partition(); - $xfer += $elem649->read($input); - $this->success []= $elem649; + $elem663 = null; + $elem663 = new \metastore\Partition(); + $xfer += $elem663->read($input); + $this->success []= $elem663; } $xfer += $input->readListEnd(); } else { @@ -18921,9 +19023,9 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter650) + foreach ($this->success as $iter664) { - $xfer += $iter650->write($output); + $xfer += $iter664->write($output); } } $output->writeListEnd(); @@ -19032,14 +19134,14 @@ class ThriftHiveMetastore_get_partition_names_ps_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size651 = 0; - $_etype654 = 0; - $xfer += $input->readListBegin($_etype654, $_size651); - for ($_i655 = 0; $_i655 < $_size651; ++$_i655) + $_size665 = 0; + $_etype668 = 0; + $xfer += $input->readListBegin($_etype668, $_size665); + for ($_i669 = 0; $_i669 < $_size665; ++$_i669) { - $elem656 = null; - $xfer += $input->readString($elem656); - $this->part_vals []= $elem656; + $elem670 = null; + $xfer += $input->readString($elem670); + $this->part_vals []= $elem670; } $xfer += $input->readListEnd(); } else { @@ -19084,9 +19186,9 @@ class ThriftHiveMetastore_get_partition_names_ps_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter657) + foreach ($this->part_vals as $iter671) { - $xfer += $output->writeString($iter657); + $xfer += $output->writeString($iter671); } } $output->writeListEnd(); @@ -19170,14 +19272,14 @@ class ThriftHiveMetastore_get_partition_names_ps_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size658 = 0; - $_etype661 = 0; - $xfer += $input->readListBegin($_etype661, $_size658); - for ($_i662 = 0; $_i662 < $_size658; ++$_i662) + $_size672 = 0; + $_etype675 = 0; + $xfer += $input->readListBegin($_etype675, $_size672); + for ($_i676 = 0; $_i676 < $_size672; ++$_i676) { - $elem663 = null; - $xfer += $input->readString($elem663); - $this->success []= $elem663; + $elem677 = null; + $xfer += $input->readString($elem677); + $this->success []= $elem677; } $xfer += $input->readListEnd(); } else { @@ -19221,9 +19323,9 @@ class ThriftHiveMetastore_get_partition_names_ps_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter664) + foreach ($this->success as $iter678) { - $xfer += $output->writeString($iter664); + $xfer += $output->writeString($iter678); } } $output->writeListEnd(); @@ -19445,15 +19547,15 @@ class ThriftHiveMetastore_get_partitions_by_filter_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size665 = 0; - $_etype668 = 0; - $xfer += $input->readListBegin($_etype668, $_size665); - for ($_i669 = 0; $_i669 < $_size665; ++$_i669) + $_size679 = 0; + $_etype682 = 0; + $xfer += $input->readListBegin($_etype682, $_size679); + for ($_i683 = 0; $_i683 < $_size679; ++$_i683) { - $elem670 = null; - $elem670 = new \metastore\Partition(); - $xfer += $elem670->read($input); - $this->success []= $elem670; + $elem684 = null; + $elem684 = new \metastore\Partition(); + $xfer += $elem684->read($input); + $this->success []= $elem684; } $xfer += $input->readListEnd(); } else { @@ -19497,9 +19599,9 @@ class ThriftHiveMetastore_get_partitions_by_filter_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter671) + foreach ($this->success as $iter685) { - $xfer += $iter671->write($output); + $xfer += $iter685->write($output); } } $output->writeListEnd(); @@ -19721,15 +19823,15 @@ class ThriftHiveMetastore_get_part_specs_by_filter_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size672 = 0; - $_etype675 = 0; - $xfer += $input->readListBegin($_etype675, $_size672); - for ($_i676 = 0; $_i676 < $_size672; ++$_i676) + $_size686 = 0; + $_etype689 = 0; + $xfer += $input->readListBegin($_etype689, $_size686); + for ($_i690 = 0; $_i690 < $_size686; ++$_i690) { - $elem677 = null; - $elem677 = new \metastore\PartitionSpec(); - $xfer += $elem677->read($input); - $this->success []= $elem677; + $elem691 = null; + $elem691 = new \metastore\PartitionSpec(); + $xfer += $elem691->read($input); + $this->success []= $elem691; } $xfer += $input->readListEnd(); } else { @@ -19773,9 +19875,9 @@ class ThriftHiveMetastore_get_part_specs_by_filter_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter678) + foreach ($this->success as $iter692) { - $xfer += $iter678->write($output); + $xfer += $iter692->write($output); } } $output->writeListEnd(); @@ -20074,14 +20176,14 @@ class ThriftHiveMetastore_get_partitions_by_names_args { case 3: if ($ftype == TType::LST) { $this->names = array(); - $_size679 = 0; - $_etype682 = 0; - $xfer += $input->readListBegin($_etype682, $_size679); - for ($_i683 = 0; $_i683 < $_size679; ++$_i683) + $_size693 = 0; + $_etype696 = 0; + $xfer += $input->readListBegin($_etype696, $_size693); + for ($_i697 = 0; $_i697 < $_size693; ++$_i697) { - $elem684 = null; - $xfer += $input->readString($elem684); - $this->names []= $elem684; + $elem698 = null; + $xfer += $input->readString($elem698); + $this->names []= $elem698; } $xfer += $input->readListEnd(); } else { @@ -20119,9 +20221,9 @@ class ThriftHiveMetastore_get_partitions_by_names_args { { $output->writeListBegin(TType::STRING, count($this->names)); { - foreach ($this->names as $iter685) + foreach ($this->names as $iter699) { - $xfer += $output->writeString($iter685); + $xfer += $output->writeString($iter699); } } $output->writeListEnd(); @@ -20201,15 +20303,15 @@ class ThriftHiveMetastore_get_partitions_by_names_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size686 = 0; - $_etype689 = 0; - $xfer += $input->readListBegin($_etype689, $_size686); - for ($_i690 = 0; $_i690 < $_size686; ++$_i690) + $_size700 = 0; + $_etype703 = 0; + $xfer += $input->readListBegin($_etype703, $_size700); + for ($_i704 = 0; $_i704 < $_size700; ++$_i704) { - $elem691 = null; - $elem691 = new \metastore\Partition(); - $xfer += $elem691->read($input); - $this->success []= $elem691; + $elem705 = null; + $elem705 = new \metastore\Partition(); + $xfer += $elem705->read($input); + $this->success []= $elem705; } $xfer += $input->readListEnd(); } else { @@ -20253,9 +20355,9 @@ class ThriftHiveMetastore_get_partitions_by_names_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter692) + foreach ($this->success as $iter706) { - $xfer += $iter692->write($output); + $xfer += $iter706->write($output); } } $output->writeListEnd(); @@ -20570,15 +20672,15 @@ class ThriftHiveMetastore_alter_partitions_args { case 3: if ($ftype == TType::LST) { $this->new_parts = array(); - $_size693 = 0; - $_etype696 = 0; - $xfer += $input->readListBegin($_etype696, $_size693); - for ($_i697 = 0; $_i697 < $_size693; ++$_i697) + $_size707 = 0; + $_etype710 = 0; + $xfer += $input->readListBegin($_etype710, $_size707); + for ($_i711 = 0; $_i711 < $_size707; ++$_i711) { - $elem698 = null; - $elem698 = new \metastore\Partition(); - $xfer += $elem698->read($input); - $this->new_parts []= $elem698; + $elem712 = null; + $elem712 = new \metastore\Partition(); + $xfer += $elem712->read($input); + $this->new_parts []= $elem712; } $xfer += $input->readListEnd(); } else { @@ -20616,9 +20718,9 @@ class ThriftHiveMetastore_alter_partitions_args { { $output->writeListBegin(TType::STRUCT, count($this->new_parts)); { - foreach ($this->new_parts as $iter699) + foreach ($this->new_parts as $iter713) { - $xfer += $iter699->write($output); + $xfer += $iter713->write($output); } } $output->writeListEnd(); @@ -21052,14 +21154,14 @@ class ThriftHiveMetastore_rename_partition_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size700 = 0; - $_etype703 = 0; - $xfer += $input->readListBegin($_etype703, $_size700); - for ($_i704 = 0; $_i704 < $_size700; ++$_i704) + $_size714 = 0; + $_etype717 = 0; + $xfer += $input->readListBegin($_etype717, $_size714); + for ($_i718 = 0; $_i718 < $_size714; ++$_i718) { - $elem705 = null; - $xfer += $input->readString($elem705); - $this->part_vals []= $elem705; + $elem719 = null; + $xfer += $input->readString($elem719); + $this->part_vals []= $elem719; } $xfer += $input->readListEnd(); } else { @@ -21105,9 +21207,9 @@ class ThriftHiveMetastore_rename_partition_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter706) + foreach ($this->part_vals as $iter720) { - $xfer += $output->writeString($iter706); + $xfer += $output->writeString($iter720); } } $output->writeListEnd(); @@ -21280,14 +21382,14 @@ class ThriftHiveMetastore_partition_name_has_valid_characters_args { case 1: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size707 = 0; - $_etype710 = 0; - $xfer += $input->readListBegin($_etype710, $_size707); - for ($_i711 = 0; $_i711 < $_size707; ++$_i711) + $_size721 = 0; + $_etype724 = 0; + $xfer += $input->readListBegin($_etype724, $_size721); + for ($_i725 = 0; $_i725 < $_size721; ++$_i725) { - $elem712 = null; - $xfer += $input->readString($elem712); - $this->part_vals []= $elem712; + $elem726 = null; + $xfer += $input->readString($elem726); + $this->part_vals []= $elem726; } $xfer += $input->readListEnd(); } else { @@ -21322,9 +21424,9 @@ class ThriftHiveMetastore_partition_name_has_valid_characters_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter713) + foreach ($this->part_vals as $iter727) { - $xfer += $output->writeString($iter713); + $xfer += $output->writeString($iter727); } } $output->writeListEnd(); @@ -21751,14 +21853,14 @@ class ThriftHiveMetastore_partition_name_to_vals_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size714 = 0; - $_etype717 = 0; - $xfer += $input->readListBegin($_etype717, $_size714); - for ($_i718 = 0; $_i718 < $_size714; ++$_i718) + $_size728 = 0; + $_etype731 = 0; + $xfer += $input->readListBegin($_etype731, $_size728); + for ($_i732 = 0; $_i732 < $_size728; ++$_i732) { - $elem719 = null; - $xfer += $input->readString($elem719); - $this->success []= $elem719; + $elem733 = null; + $xfer += $input->readString($elem733); + $this->success []= $elem733; } $xfer += $input->readListEnd(); } else { @@ -21794,9 +21896,9 @@ class ThriftHiveMetastore_partition_name_to_vals_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter720) + foreach ($this->success as $iter734) { - $xfer += $output->writeString($iter720); + $xfer += $output->writeString($iter734); } } $output->writeListEnd(); @@ -21947,17 +22049,17 @@ class ThriftHiveMetastore_partition_name_to_spec_result { case 0: if ($ftype == TType::MAP) { $this->success = array(); - $_size721 = 0; - $_ktype722 = 0; - $_vtype723 = 0; - $xfer += $input->readMapBegin($_ktype722, $_vtype723, $_size721); - for ($_i725 = 0; $_i725 < $_size721; ++$_i725) + $_size735 = 0; + $_ktype736 = 0; + $_vtype737 = 0; + $xfer += $input->readMapBegin($_ktype736, $_vtype737, $_size735); + for ($_i739 = 0; $_i739 < $_size735; ++$_i739) { - $key726 = ''; - $val727 = ''; - $xfer += $input->readString($key726); - $xfer += $input->readString($val727); - $this->success[$key726] = $val727; + $key740 = ''; + $val741 = ''; + $xfer += $input->readString($key740); + $xfer += $input->readString($val741); + $this->success[$key740] = $val741; } $xfer += $input->readMapEnd(); } else { @@ -21993,10 +22095,10 @@ class ThriftHiveMetastore_partition_name_to_spec_result { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->success)); { - foreach ($this->success as $kiter728 => $viter729) + foreach ($this->success as $kiter742 => $viter743) { - $xfer += $output->writeString($kiter728); - $xfer += $output->writeString($viter729); + $xfer += $output->writeString($kiter742); + $xfer += $output->writeString($viter743); } } $output->writeMapEnd(); @@ -22104,17 +22206,17 @@ class ThriftHiveMetastore_markPartitionForEvent_args { case 3: if ($ftype == TType::MAP) { $this->part_vals = array(); - $_size730 = 0; - $_ktype731 = 0; - $_vtype732 = 0; - $xfer += $input->readMapBegin($_ktype731, $_vtype732, $_size730); - for ($_i734 = 0; $_i734 < $_size730; ++$_i734) + $_size744 = 0; + $_ktype745 = 0; + $_vtype746 = 0; + $xfer += $input->readMapBegin($_ktype745, $_vtype746, $_size744); + for ($_i748 = 0; $_i748 < $_size744; ++$_i748) { - $key735 = ''; - $val736 = ''; - $xfer += $input->readString($key735); - $xfer += $input->readString($val736); - $this->part_vals[$key735] = $val736; + $key749 = ''; + $val750 = ''; + $xfer += $input->readString($key749); + $xfer += $input->readString($val750); + $this->part_vals[$key749] = $val750; } $xfer += $input->readMapEnd(); } else { @@ -22159,10 +22261,10 @@ class ThriftHiveMetastore_markPartitionForEvent_args { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $kiter737 => $viter738) + foreach ($this->part_vals as $kiter751 => $viter752) { - $xfer += $output->writeString($kiter737); - $xfer += $output->writeString($viter738); + $xfer += $output->writeString($kiter751); + $xfer += $output->writeString($viter752); } } $output->writeMapEnd(); @@ -22454,17 +22556,17 @@ class ThriftHiveMetastore_isPartitionMarkedForEvent_args { case 3: if ($ftype == TType::MAP) { $this->part_vals = array(); - $_size739 = 0; - $_ktype740 = 0; - $_vtype741 = 0; - $xfer += $input->readMapBegin($_ktype740, $_vtype741, $_size739); - for ($_i743 = 0; $_i743 < $_size739; ++$_i743) + $_size753 = 0; + $_ktype754 = 0; + $_vtype755 = 0; + $xfer += $input->readMapBegin($_ktype754, $_vtype755, $_size753); + for ($_i757 = 0; $_i757 < $_size753; ++$_i757) { - $key744 = ''; - $val745 = ''; - $xfer += $input->readString($key744); - $xfer += $input->readString($val745); - $this->part_vals[$key744] = $val745; + $key758 = ''; + $val759 = ''; + $xfer += $input->readString($key758); + $xfer += $input->readString($val759); + $this->part_vals[$key758] = $val759; } $xfer += $input->readMapEnd(); } else { @@ -22509,10 +22611,10 @@ class ThriftHiveMetastore_isPartitionMarkedForEvent_args { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $kiter746 => $viter747) + foreach ($this->part_vals as $kiter760 => $viter761) { - $xfer += $output->writeString($kiter746); - $xfer += $output->writeString($viter747); + $xfer += $output->writeString($kiter760); + $xfer += $output->writeString($viter761); } } $output->writeMapEnd(); @@ -23872,15 +23974,15 @@ class ThriftHiveMetastore_get_indexes_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size748 = 0; - $_etype751 = 0; - $xfer += $input->readListBegin($_etype751, $_size748); - for ($_i752 = 0; $_i752 < $_size748; ++$_i752) + $_size762 = 0; + $_etype765 = 0; + $xfer += $input->readListBegin($_etype765, $_size762); + for ($_i766 = 0; $_i766 < $_size762; ++$_i766) { - $elem753 = null; - $elem753 = new \metastore\Index(); - $xfer += $elem753->read($input); - $this->success []= $elem753; + $elem767 = null; + $elem767 = new \metastore\Index(); + $xfer += $elem767->read($input); + $this->success []= $elem767; } $xfer += $input->readListEnd(); } else { @@ -23924,9 +24026,9 @@ class ThriftHiveMetastore_get_indexes_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter754) + foreach ($this->success as $iter768) { - $xfer += $iter754->write($output); + $xfer += $iter768->write($output); } } $output->writeListEnd(); @@ -24118,14 +24220,14 @@ class ThriftHiveMetastore_get_index_names_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size755 = 0; - $_etype758 = 0; - $xfer += $input->readListBegin($_etype758, $_size755); - for ($_i759 = 0; $_i759 < $_size755; ++$_i759) + $_size769 = 0; + $_etype772 = 0; + $xfer += $input->readListBegin($_etype772, $_size769); + for ($_i773 = 0; $_i773 < $_size769; ++$_i773) { - $elem760 = null; - $xfer += $input->readString($elem760); - $this->success []= $elem760; + $elem774 = null; + $xfer += $input->readString($elem774); + $this->success []= $elem774; } $xfer += $input->readListEnd(); } else { @@ -24161,9 +24263,9 @@ class ThriftHiveMetastore_get_index_names_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter761) + foreach ($this->success as $iter775) { - $xfer += $output->writeString($iter761); + $xfer += $output->writeString($iter775); } } $output->writeListEnd(); @@ -27391,14 +27493,14 @@ class ThriftHiveMetastore_get_functions_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size762 = 0; - $_etype765 = 0; - $xfer += $input->readListBegin($_etype765, $_size762); - for ($_i766 = 0; $_i766 < $_size762; ++$_i766) + $_size776 = 0; + $_etype779 = 0; + $xfer += $input->readListBegin($_etype779, $_size776); + for ($_i780 = 0; $_i780 < $_size776; ++$_i780) { - $elem767 = null; - $xfer += $input->readString($elem767); - $this->success []= $elem767; + $elem781 = null; + $xfer += $input->readString($elem781); + $this->success []= $elem781; } $xfer += $input->readListEnd(); } else { @@ -27434,9 +27536,9 @@ class ThriftHiveMetastore_get_functions_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter768) + foreach ($this->success as $iter782) { - $xfer += $output->writeString($iter768); + $xfer += $output->writeString($iter782); } } $output->writeListEnd(); @@ -28111,14 +28213,14 @@ class ThriftHiveMetastore_get_role_names_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size769 = 0; - $_etype772 = 0; - $xfer += $input->readListBegin($_etype772, $_size769); - for ($_i773 = 0; $_i773 < $_size769; ++$_i773) + $_size783 = 0; + $_etype786 = 0; + $xfer += $input->readListBegin($_etype786, $_size783); + for ($_i787 = 0; $_i787 < $_size783; ++$_i787) { - $elem774 = null; - $xfer += $input->readString($elem774); - $this->success []= $elem774; + $elem788 = null; + $xfer += $input->readString($elem788); + $this->success []= $elem788; } $xfer += $input->readListEnd(); } else { @@ -28154,9 +28256,9 @@ class ThriftHiveMetastore_get_role_names_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter775) + foreach ($this->success as $iter789) { - $xfer += $output->writeString($iter775); + $xfer += $output->writeString($iter789); } } $output->writeListEnd(); @@ -28796,15 +28898,15 @@ class ThriftHiveMetastore_list_roles_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size776 = 0; - $_etype779 = 0; - $xfer += $input->readListBegin($_etype779, $_size776); - for ($_i780 = 0; $_i780 < $_size776; ++$_i780) + $_size790 = 0; + $_etype793 = 0; + $xfer += $input->readListBegin($_etype793, $_size790); + for ($_i794 = 0; $_i794 < $_size790; ++$_i794) { - $elem781 = null; - $elem781 = new \metastore\Role(); - $xfer += $elem781->read($input); - $this->success []= $elem781; + $elem795 = null; + $elem795 = new \metastore\Role(); + $xfer += $elem795->read($input); + $this->success []= $elem795; } $xfer += $input->readListEnd(); } else { @@ -28840,9 +28942,9 @@ class ThriftHiveMetastore_list_roles_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter782) + foreach ($this->success as $iter796) { - $xfer += $iter782->write($output); + $xfer += $iter796->write($output); } } $output->writeListEnd(); @@ -29468,14 +29570,14 @@ class ThriftHiveMetastore_get_privilege_set_args { case 3: if ($ftype == TType::LST) { $this->group_names = array(); - $_size783 = 0; - $_etype786 = 0; - $xfer += $input->readListBegin($_etype786, $_size783); - for ($_i787 = 0; $_i787 < $_size783; ++$_i787) + $_size797 = 0; + $_etype800 = 0; + $xfer += $input->readListBegin($_etype800, $_size797); + for ($_i801 = 0; $_i801 < $_size797; ++$_i801) { - $elem788 = null; - $xfer += $input->readString($elem788); - $this->group_names []= $elem788; + $elem802 = null; + $xfer += $input->readString($elem802); + $this->group_names []= $elem802; } $xfer += $input->readListEnd(); } else { @@ -29516,9 +29618,9 @@ class ThriftHiveMetastore_get_privilege_set_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter789) + foreach ($this->group_names as $iter803) { - $xfer += $output->writeString($iter789); + $xfer += $output->writeString($iter803); } } $output->writeListEnd(); @@ -29805,15 +29907,15 @@ class ThriftHiveMetastore_list_privileges_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size790 = 0; - $_etype793 = 0; - $xfer += $input->readListBegin($_etype793, $_size790); - for ($_i794 = 0; $_i794 < $_size790; ++$_i794) + $_size804 = 0; + $_etype807 = 0; + $xfer += $input->readListBegin($_etype807, $_size804); + for ($_i808 = 0; $_i808 < $_size804; ++$_i808) { - $elem795 = null; - $elem795 = new \metastore\HiveObjectPrivilege(); - $xfer += $elem795->read($input); - $this->success []= $elem795; + $elem809 = null; + $elem809 = new \metastore\HiveObjectPrivilege(); + $xfer += $elem809->read($input); + $this->success []= $elem809; } $xfer += $input->readListEnd(); } else { @@ -29849,9 +29951,9 @@ class ThriftHiveMetastore_list_privileges_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter796) + foreach ($this->success as $iter810) { - $xfer += $iter796->write($output); + $xfer += $iter810->write($output); } } $output->writeListEnd(); @@ -30450,14 +30552,14 @@ class ThriftHiveMetastore_set_ugi_args { case 2: if ($ftype == TType::LST) { $this->group_names = array(); - $_size797 = 0; - $_etype800 = 0; - $xfer += $input->readListBegin($_etype800, $_size797); - for ($_i801 = 0; $_i801 < $_size797; ++$_i801) + $_size811 = 0; + $_etype814 = 0; + $xfer += $input->readListBegin($_etype814, $_size811); + for ($_i815 = 0; $_i815 < $_size811; ++$_i815) { - $elem802 = null; - $xfer += $input->readString($elem802); - $this->group_names []= $elem802; + $elem816 = null; + $xfer += $input->readString($elem816); + $this->group_names []= $elem816; } $xfer += $input->readListEnd(); } else { @@ -30490,9 +30592,9 @@ class ThriftHiveMetastore_set_ugi_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter803) + foreach ($this->group_names as $iter817) { - $xfer += $output->writeString($iter803); + $xfer += $output->writeString($iter817); } } $output->writeListEnd(); @@ -30562,14 +30664,14 @@ class ThriftHiveMetastore_set_ugi_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size804 = 0; - $_etype807 = 0; - $xfer += $input->readListBegin($_etype807, $_size804); - for ($_i808 = 0; $_i808 < $_size804; ++$_i808) + $_size818 = 0; + $_etype821 = 0; + $xfer += $input->readListBegin($_etype821, $_size818); + for ($_i822 = 0; $_i822 < $_size818; ++$_i822) { - $elem809 = null; - $xfer += $input->readString($elem809); - $this->success []= $elem809; + $elem823 = null; + $xfer += $input->readString($elem823); + $this->success []= $elem823; } $xfer += $input->readListEnd(); } else { @@ -30605,9 +30707,9 @@ class ThriftHiveMetastore_set_ugi_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter810) + foreach ($this->success as $iter824) { - $xfer += $output->writeString($iter810); + $xfer += $output->writeString($iter824); } } $output->writeListEnd(); diff --git metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote old mode 100644 new mode 100755 index 59c0393..2ad22dd --- metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote +++ metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote @@ -39,8 +39,8 @@ if len(sys.argv) <= 1 or sys.argv[1] == '--help': print ' get_schema(string db_name, string table_name)' print ' void create_table(Table tbl)' print ' void create_table_with_environment_context(Table tbl, EnvironmentContext environment_context)' - print ' void drop_table(string dbname, string name, bool deleteData)' - print ' void drop_table_with_environment_context(string dbname, string name, bool deleteData, EnvironmentContext environment_context)' + print ' drop_table(string dbname, string name, bool deleteData)' + print ' drop_table_with_environment_context(string dbname, string name, bool deleteData, EnvironmentContext environment_context)' print ' get_tables(string db_name, string pattern)' print ' get_all_tables(string db_name)' print ' Table get_table(string dbname, string tbl_name)' diff --git metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py index 100a7cb..6eb89bd 100644 --- metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py +++ metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py @@ -1541,7 +1541,7 @@ def drop_table(self, dbname, name, deleteData): - deleteData """ self.send_drop_table(dbname, name, deleteData) - self.recv_drop_table() + return self.recv_drop_table() def send_drop_table(self, dbname, name, deleteData): self._oprot.writeMessageBegin('drop_table', TMessageType.CALL, self._seqid) @@ -1563,11 +1563,13 @@ def recv_drop_table(self, ): result = drop_table_result() result.read(self._iprot) self._iprot.readMessageEnd() + if result.success is not None: + return result.success if result.o1 is not None: raise result.o1 if result.o3 is not None: raise result.o3 - return + raise TApplicationException(TApplicationException.MISSING_RESULT, "drop_table failed: unknown result"); def drop_table_with_environment_context(self, dbname, name, deleteData, environment_context): """ @@ -1578,7 +1580,7 @@ def drop_table_with_environment_context(self, dbname, name, deleteData, environm - environment_context """ self.send_drop_table_with_environment_context(dbname, name, deleteData, environment_context) - self.recv_drop_table_with_environment_context() + return self.recv_drop_table_with_environment_context() def send_drop_table_with_environment_context(self, dbname, name, deleteData, environment_context): self._oprot.writeMessageBegin('drop_table_with_environment_context', TMessageType.CALL, self._seqid) @@ -1601,11 +1603,13 @@ def recv_drop_table_with_environment_context(self, ): result = drop_table_with_environment_context_result() result.read(self._iprot) self._iprot.readMessageEnd() + if result.success is not None: + return result.success if result.o1 is not None: raise result.o1 if result.o3 is not None: raise result.o3 - return + raise TApplicationException(TApplicationException.MISSING_RESULT, "drop_table_with_environment_context failed: unknown result"); def get_tables(self, db_name, pattern): """ @@ -5603,7 +5607,7 @@ def process_drop_table(self, seqid, iprot, oprot): iprot.readMessageEnd() result = drop_table_result() try: - self._handler.drop_table(args.dbname, args.name, args.deleteData) + result.success = self._handler.drop_table(args.dbname, args.name, args.deleteData) except NoSuchObjectException as o1: result.o1 = o1 except MetaException as o3: @@ -5619,7 +5623,7 @@ def process_drop_table_with_environment_context(self, seqid, iprot, oprot): iprot.readMessageEnd() result = drop_table_with_environment_context_result() try: - self._handler.drop_table_with_environment_context(args.dbname, args.name, args.deleteData, args.environment_context) + result.success = self._handler.drop_table_with_environment_context(args.dbname, args.name, args.deleteData, args.environment_context) except NoSuchObjectException as o1: result.o1 = o1 except MetaException as o3: @@ -9717,17 +9721,19 @@ def __ne__(self, other): class drop_table_result: """ Attributes: + - success - o1 - o3 """ thrift_spec = ( - None, # 0 + (0, TType.LIST, 'success', (TType.STRUCT,(Partition, Partition.thrift_spec)), None, ), # 0 (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1 (2, TType.STRUCT, 'o3', (MetaException, MetaException.thrift_spec), None, ), # 2 ) - def __init__(self, o1=None, o3=None,): + def __init__(self, success=None, o1=None, o3=None,): + self.success = success self.o1 = o1 self.o3 = o3 @@ -9740,7 +9746,18 @@ def read(self, iprot): (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break - if fid == 1: + if fid == 0: + if ftype == TType.LIST: + self.success = [] + (_etype474, _size471) = iprot.readListBegin() + for _i475 in xrange(_size471): + _elem476 = Partition() + _elem476.read(iprot) + self.success.append(_elem476) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 1: if ftype == TType.STRUCT: self.o1 = NoSuchObjectException() self.o1.read(iprot) @@ -9762,6 +9779,13 @@ def write(self, oprot): oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('drop_table_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRUCT, len(self.success)) + for iter477 in self.success: + iter477.write(oprot) + oprot.writeListEnd() + oprot.writeFieldEnd() if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) @@ -9888,17 +9912,19 @@ def __ne__(self, other): class drop_table_with_environment_context_result: """ Attributes: + - success - o1 - o3 """ thrift_spec = ( - None, # 0 + (0, TType.LIST, 'success', (TType.STRUCT,(Partition, Partition.thrift_spec)), None, ), # 0 (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1 (2, TType.STRUCT, 'o3', (MetaException, MetaException.thrift_spec), None, ), # 2 ) - def __init__(self, o1=None, o3=None,): + def __init__(self, success=None, o1=None, o3=None,): + self.success = success self.o1 = o1 self.o3 = o3 @@ -9911,7 +9937,18 @@ def read(self, iprot): (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break - if fid == 1: + if fid == 0: + if ftype == TType.LIST: + self.success = [] + (_etype481, _size478) = iprot.readListBegin() + for _i482 in xrange(_size478): + _elem483 = Partition() + _elem483.read(iprot) + self.success.append(_elem483) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 1: if ftype == TType.STRUCT: self.o1 = NoSuchObjectException() self.o1.read(iprot) @@ -9933,6 +9970,13 @@ def write(self, oprot): oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('drop_table_with_environment_context_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRUCT, len(self.success)) + for iter484 in self.success: + iter484.write(oprot) + oprot.writeListEnd() + oprot.writeFieldEnd() if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) self.o1.write(oprot) @@ -10059,10 +10103,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype474, _size471) = iprot.readListBegin() - for _i475 in xrange(_size471): - _elem476 = iprot.readString(); - self.success.append(_elem476) + (_etype488, _size485) = iprot.readListBegin() + for _i489 in xrange(_size485): + _elem490 = iprot.readString(); + self.success.append(_elem490) iprot.readListEnd() else: iprot.skip(ftype) @@ -10085,8 +10129,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter477 in self.success: - oprot.writeString(iter477) + for iter491 in self.success: + oprot.writeString(iter491) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -10199,10 +10243,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype481, _size478) = iprot.readListBegin() - for _i482 in xrange(_size478): - _elem483 = iprot.readString(); - self.success.append(_elem483) + (_etype495, _size492) = iprot.readListBegin() + for _i496 in xrange(_size492): + _elem497 = iprot.readString(); + self.success.append(_elem497) iprot.readListEnd() else: iprot.skip(ftype) @@ -10225,8 +10269,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter484 in self.success: - oprot.writeString(iter484) + for iter498 in self.success: + oprot.writeString(iter498) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -10443,10 +10487,10 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.tbl_names = [] - (_etype488, _size485) = iprot.readListBegin() - for _i489 in xrange(_size485): - _elem490 = iprot.readString(); - self.tbl_names.append(_elem490) + (_etype502, _size499) = iprot.readListBegin() + for _i503 in xrange(_size499): + _elem504 = iprot.readString(); + self.tbl_names.append(_elem504) iprot.readListEnd() else: iprot.skip(ftype) @@ -10467,8 +10511,8 @@ def write(self, oprot): if self.tbl_names is not None: oprot.writeFieldBegin('tbl_names', TType.LIST, 2) oprot.writeListBegin(TType.STRING, len(self.tbl_names)) - for iter491 in self.tbl_names: - oprot.writeString(iter491) + for iter505 in self.tbl_names: + oprot.writeString(iter505) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -10523,11 +10567,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype495, _size492) = iprot.readListBegin() - for _i496 in xrange(_size492): - _elem497 = Table() - _elem497.read(iprot) - self.success.append(_elem497) + (_etype509, _size506) = iprot.readListBegin() + for _i510 in xrange(_size506): + _elem511 = Table() + _elem511.read(iprot) + self.success.append(_elem511) iprot.readListEnd() else: iprot.skip(ftype) @@ -10562,8 +10606,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter498 in self.success: - iter498.write(oprot) + for iter512 in self.success: + iter512.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -10714,10 +10758,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype502, _size499) = iprot.readListBegin() - for _i503 in xrange(_size499): - _elem504 = iprot.readString(); - self.success.append(_elem504) + (_etype516, _size513) = iprot.readListBegin() + for _i517 in xrange(_size513): + _elem518 = iprot.readString(); + self.success.append(_elem518) iprot.readListEnd() else: iprot.skip(ftype) @@ -10752,8 +10796,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter505 in self.success: - oprot.writeString(iter505) + for iter519 in self.success: + oprot.writeString(iter519) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -11647,11 +11691,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.new_parts = [] - (_etype509, _size506) = iprot.readListBegin() - for _i510 in xrange(_size506): - _elem511 = Partition() - _elem511.read(iprot) - self.new_parts.append(_elem511) + (_etype523, _size520) = iprot.readListBegin() + for _i524 in xrange(_size520): + _elem525 = Partition() + _elem525.read(iprot) + self.new_parts.append(_elem525) iprot.readListEnd() else: iprot.skip(ftype) @@ -11668,8 +11712,8 @@ def write(self, oprot): if self.new_parts is not None: oprot.writeFieldBegin('new_parts', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.new_parts)) - for iter512 in self.new_parts: - iter512.write(oprot) + for iter526 in self.new_parts: + iter526.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -11814,11 +11858,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.new_parts = [] - (_etype516, _size513) = iprot.readListBegin() - for _i517 in xrange(_size513): - _elem518 = PartitionSpec() - _elem518.read(iprot) - self.new_parts.append(_elem518) + (_etype530, _size527) = iprot.readListBegin() + for _i531 in xrange(_size527): + _elem532 = PartitionSpec() + _elem532.read(iprot) + self.new_parts.append(_elem532) iprot.readListEnd() else: iprot.skip(ftype) @@ -11835,8 +11879,8 @@ def write(self, oprot): if self.new_parts is not None: oprot.writeFieldBegin('new_parts', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.new_parts)) - for iter519 in self.new_parts: - iter519.write(oprot) + for iter533 in self.new_parts: + iter533.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -11997,10 +12041,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype523, _size520) = iprot.readListBegin() - for _i524 in xrange(_size520): - _elem525 = iprot.readString(); - self.part_vals.append(_elem525) + (_etype537, _size534) = iprot.readListBegin() + for _i538 in xrange(_size534): + _elem539 = iprot.readString(); + self.part_vals.append(_elem539) iprot.readListEnd() else: iprot.skip(ftype) @@ -12025,8 +12069,8 @@ def write(self, oprot): if self.part_vals is not None: oprot.writeFieldBegin('part_vals', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.part_vals)) - for iter526 in self.part_vals: - oprot.writeString(iter526) + for iter540 in self.part_vals: + oprot.writeString(iter540) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -12351,10 +12395,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype530, _size527) = iprot.readListBegin() - for _i531 in xrange(_size527): - _elem532 = iprot.readString(); - self.part_vals.append(_elem532) + (_etype544, _size541) = iprot.readListBegin() + for _i545 in xrange(_size541): + _elem546 = iprot.readString(); + self.part_vals.append(_elem546) iprot.readListEnd() else: iprot.skip(ftype) @@ -12385,8 +12429,8 @@ def write(self, oprot): if self.part_vals is not None: oprot.writeFieldBegin('part_vals', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.part_vals)) - for iter533 in self.part_vals: - oprot.writeString(iter533) + for iter547 in self.part_vals: + oprot.writeString(iter547) oprot.writeListEnd() oprot.writeFieldEnd() if self.environment_context is not None: @@ -12934,10 +12978,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype537, _size534) = iprot.readListBegin() - for _i538 in xrange(_size534): - _elem539 = iprot.readString(); - self.part_vals.append(_elem539) + (_etype551, _size548) = iprot.readListBegin() + for _i552 in xrange(_size548): + _elem553 = iprot.readString(); + self.part_vals.append(_elem553) iprot.readListEnd() else: iprot.skip(ftype) @@ -12967,8 +13011,8 @@ def write(self, oprot): if self.part_vals is not None: oprot.writeFieldBegin('part_vals', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.part_vals)) - for iter540 in self.part_vals: - oprot.writeString(iter540) + for iter554 in self.part_vals: + oprot.writeString(iter554) oprot.writeListEnd() oprot.writeFieldEnd() if self.deleteData is not None: @@ -13126,10 +13170,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype544, _size541) = iprot.readListBegin() - for _i545 in xrange(_size541): - _elem546 = iprot.readString(); - self.part_vals.append(_elem546) + (_etype558, _size555) = iprot.readListBegin() + for _i559 in xrange(_size555): + _elem560 = iprot.readString(); + self.part_vals.append(_elem560) iprot.readListEnd() else: iprot.skip(ftype) @@ -13165,8 +13209,8 @@ def write(self, oprot): if self.part_vals is not None: oprot.writeFieldBegin('part_vals', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.part_vals)) - for iter547 in self.part_vals: - oprot.writeString(iter547) + for iter561 in self.part_vals: + oprot.writeString(iter561) oprot.writeListEnd() oprot.writeFieldEnd() if self.deleteData is not None: @@ -13844,10 +13888,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype551, _size548) = iprot.readListBegin() - for _i552 in xrange(_size548): - _elem553 = iprot.readString(); - self.part_vals.append(_elem553) + (_etype565, _size562) = iprot.readListBegin() + for _i566 in xrange(_size562): + _elem567 = iprot.readString(); + self.part_vals.append(_elem567) iprot.readListEnd() else: iprot.skip(ftype) @@ -13872,8 +13916,8 @@ def write(self, oprot): if self.part_vals is not None: oprot.writeFieldBegin('part_vals', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.part_vals)) - for iter554 in self.part_vals: - oprot.writeString(iter554) + for iter568 in self.part_vals: + oprot.writeString(iter568) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -14018,11 +14062,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.MAP: self.partitionSpecs = {} - (_ktype556, _vtype557, _size555 ) = iprot.readMapBegin() - for _i559 in xrange(_size555): - _key560 = iprot.readString(); - _val561 = iprot.readString(); - self.partitionSpecs[_key560] = _val561 + (_ktype570, _vtype571, _size569 ) = iprot.readMapBegin() + for _i573 in xrange(_size569): + _key574 = iprot.readString(); + _val575 = iprot.readString(); + self.partitionSpecs[_key574] = _val575 iprot.readMapEnd() else: iprot.skip(ftype) @@ -14059,9 +14103,9 @@ def write(self, oprot): if self.partitionSpecs is not None: oprot.writeFieldBegin('partitionSpecs', TType.MAP, 1) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.partitionSpecs)) - for kiter562,viter563 in self.partitionSpecs.items(): - oprot.writeString(kiter562) - oprot.writeString(viter563) + for kiter576,viter577 in self.partitionSpecs.items(): + oprot.writeString(kiter576) + oprot.writeString(viter577) oprot.writeMapEnd() oprot.writeFieldEnd() if self.source_db is not None: @@ -14258,10 +14302,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype567, _size564) = iprot.readListBegin() - for _i568 in xrange(_size564): - _elem569 = iprot.readString(); - self.part_vals.append(_elem569) + (_etype581, _size578) = iprot.readListBegin() + for _i582 in xrange(_size578): + _elem583 = iprot.readString(); + self.part_vals.append(_elem583) iprot.readListEnd() else: iprot.skip(ftype) @@ -14273,10 +14317,10 @@ def read(self, iprot): elif fid == 5: if ftype == TType.LIST: self.group_names = [] - (_etype573, _size570) = iprot.readListBegin() - for _i574 in xrange(_size570): - _elem575 = iprot.readString(); - self.group_names.append(_elem575) + (_etype587, _size584) = iprot.readListBegin() + for _i588 in xrange(_size584): + _elem589 = iprot.readString(); + self.group_names.append(_elem589) iprot.readListEnd() else: iprot.skip(ftype) @@ -14301,8 +14345,8 @@ def write(self, oprot): if self.part_vals is not None: oprot.writeFieldBegin('part_vals', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.part_vals)) - for iter576 in self.part_vals: - oprot.writeString(iter576) + for iter590 in self.part_vals: + oprot.writeString(iter590) oprot.writeListEnd() oprot.writeFieldEnd() if self.user_name is not None: @@ -14312,8 +14356,8 @@ def write(self, oprot): if self.group_names is not None: oprot.writeFieldBegin('group_names', TType.LIST, 5) oprot.writeListBegin(TType.STRING, len(self.group_names)) - for iter577 in self.group_names: - oprot.writeString(iter577) + for iter591 in self.group_names: + oprot.writeString(iter591) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -14705,11 +14749,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype581, _size578) = iprot.readListBegin() - for _i582 in xrange(_size578): - _elem583 = Partition() - _elem583.read(iprot) - self.success.append(_elem583) + (_etype595, _size592) = iprot.readListBegin() + for _i596 in xrange(_size592): + _elem597 = Partition() + _elem597.read(iprot) + self.success.append(_elem597) iprot.readListEnd() else: iprot.skip(ftype) @@ -14738,8 +14782,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter584 in self.success: - iter584.write(oprot) + for iter598 in self.success: + iter598.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -14826,10 +14870,10 @@ def read(self, iprot): elif fid == 5: if ftype == TType.LIST: self.group_names = [] - (_etype588, _size585) = iprot.readListBegin() - for _i589 in xrange(_size585): - _elem590 = iprot.readString(); - self.group_names.append(_elem590) + (_etype602, _size599) = iprot.readListBegin() + for _i603 in xrange(_size599): + _elem604 = iprot.readString(); + self.group_names.append(_elem604) iprot.readListEnd() else: iprot.skip(ftype) @@ -14862,8 +14906,8 @@ def write(self, oprot): if self.group_names is not None: oprot.writeFieldBegin('group_names', TType.LIST, 5) oprot.writeListBegin(TType.STRING, len(self.group_names)) - for iter591 in self.group_names: - oprot.writeString(iter591) + for iter605 in self.group_names: + oprot.writeString(iter605) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -14915,11 +14959,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype595, _size592) = iprot.readListBegin() - for _i596 in xrange(_size592): - _elem597 = Partition() - _elem597.read(iprot) - self.success.append(_elem597) + (_etype609, _size606) = iprot.readListBegin() + for _i610 in xrange(_size606): + _elem611 = Partition() + _elem611.read(iprot) + self.success.append(_elem611) iprot.readListEnd() else: iprot.skip(ftype) @@ -14948,8 +14992,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter598 in self.success: - iter598.write(oprot) + for iter612 in self.success: + iter612.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -15093,11 +15137,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype602, _size599) = iprot.readListBegin() - for _i603 in xrange(_size599): - _elem604 = PartitionSpec() - _elem604.read(iprot) - self.success.append(_elem604) + (_etype616, _size613) = iprot.readListBegin() + for _i617 in xrange(_size613): + _elem618 = PartitionSpec() + _elem618.read(iprot) + self.success.append(_elem618) iprot.readListEnd() else: iprot.skip(ftype) @@ -15126,8 +15170,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter605 in self.success: - iter605.write(oprot) + for iter619 in self.success: + iter619.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -15268,10 +15312,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype609, _size606) = iprot.readListBegin() - for _i610 in xrange(_size606): - _elem611 = iprot.readString(); - self.success.append(_elem611) + (_etype623, _size620) = iprot.readListBegin() + for _i624 in xrange(_size620): + _elem625 = iprot.readString(); + self.success.append(_elem625) iprot.readListEnd() else: iprot.skip(ftype) @@ -15294,8 +15338,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter612 in self.success: - oprot.writeString(iter612) + for iter626 in self.success: + oprot.writeString(iter626) oprot.writeListEnd() oprot.writeFieldEnd() if self.o2 is not None: @@ -15365,10 +15409,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype616, _size613) = iprot.readListBegin() - for _i617 in xrange(_size613): - _elem618 = iprot.readString(); - self.part_vals.append(_elem618) + (_etype630, _size627) = iprot.readListBegin() + for _i631 in xrange(_size627): + _elem632 = iprot.readString(); + self.part_vals.append(_elem632) iprot.readListEnd() else: iprot.skip(ftype) @@ -15398,8 +15442,8 @@ def write(self, oprot): if self.part_vals is not None: oprot.writeFieldBegin('part_vals', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.part_vals)) - for iter619 in self.part_vals: - oprot.writeString(iter619) + for iter633 in self.part_vals: + oprot.writeString(iter633) oprot.writeListEnd() oprot.writeFieldEnd() if self.max_parts is not None: @@ -15455,11 +15499,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype623, _size620) = iprot.readListBegin() - for _i624 in xrange(_size620): - _elem625 = Partition() - _elem625.read(iprot) - self.success.append(_elem625) + (_etype637, _size634) = iprot.readListBegin() + for _i638 in xrange(_size634): + _elem639 = Partition() + _elem639.read(iprot) + self.success.append(_elem639) iprot.readListEnd() else: iprot.skip(ftype) @@ -15488,8 +15532,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter626 in self.success: - iter626.write(oprot) + for iter640 in self.success: + iter640.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -15569,10 +15613,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype630, _size627) = iprot.readListBegin() - for _i631 in xrange(_size627): - _elem632 = iprot.readString(); - self.part_vals.append(_elem632) + (_etype644, _size641) = iprot.readListBegin() + for _i645 in xrange(_size641): + _elem646 = iprot.readString(); + self.part_vals.append(_elem646) iprot.readListEnd() else: iprot.skip(ftype) @@ -15589,10 +15633,10 @@ def read(self, iprot): elif fid == 6: if ftype == TType.LIST: self.group_names = [] - (_etype636, _size633) = iprot.readListBegin() - for _i637 in xrange(_size633): - _elem638 = iprot.readString(); - self.group_names.append(_elem638) + (_etype650, _size647) = iprot.readListBegin() + for _i651 in xrange(_size647): + _elem652 = iprot.readString(); + self.group_names.append(_elem652) iprot.readListEnd() else: iprot.skip(ftype) @@ -15617,8 +15661,8 @@ def write(self, oprot): if self.part_vals is not None: oprot.writeFieldBegin('part_vals', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.part_vals)) - for iter639 in self.part_vals: - oprot.writeString(iter639) + for iter653 in self.part_vals: + oprot.writeString(iter653) oprot.writeListEnd() oprot.writeFieldEnd() if self.max_parts is not None: @@ -15632,8 +15676,8 @@ def write(self, oprot): if self.group_names is not None: oprot.writeFieldBegin('group_names', TType.LIST, 6) oprot.writeListBegin(TType.STRING, len(self.group_names)) - for iter640 in self.group_names: - oprot.writeString(iter640) + for iter654 in self.group_names: + oprot.writeString(iter654) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -15685,11 +15729,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype644, _size641) = iprot.readListBegin() - for _i645 in xrange(_size641): - _elem646 = Partition() - _elem646.read(iprot) - self.success.append(_elem646) + (_etype658, _size655) = iprot.readListBegin() + for _i659 in xrange(_size655): + _elem660 = Partition() + _elem660.read(iprot) + self.success.append(_elem660) iprot.readListEnd() else: iprot.skip(ftype) @@ -15718,8 +15762,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter647 in self.success: - iter647.write(oprot) + for iter661 in self.success: + iter661.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -15793,10 +15837,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype651, _size648) = iprot.readListBegin() - for _i652 in xrange(_size648): - _elem653 = iprot.readString(); - self.part_vals.append(_elem653) + (_etype665, _size662) = iprot.readListBegin() + for _i666 in xrange(_size662): + _elem667 = iprot.readString(); + self.part_vals.append(_elem667) iprot.readListEnd() else: iprot.skip(ftype) @@ -15826,8 +15870,8 @@ def write(self, oprot): if self.part_vals is not None: oprot.writeFieldBegin('part_vals', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.part_vals)) - for iter654 in self.part_vals: - oprot.writeString(iter654) + for iter668 in self.part_vals: + oprot.writeString(iter668) oprot.writeListEnd() oprot.writeFieldEnd() if self.max_parts is not None: @@ -15883,10 +15927,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype658, _size655) = iprot.readListBegin() - for _i659 in xrange(_size655): - _elem660 = iprot.readString(); - self.success.append(_elem660) + (_etype672, _size669) = iprot.readListBegin() + for _i673 in xrange(_size669): + _elem674 = iprot.readString(); + self.success.append(_elem674) iprot.readListEnd() else: iprot.skip(ftype) @@ -15915,8 +15959,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter661 in self.success: - oprot.writeString(iter661) + for iter675 in self.success: + oprot.writeString(iter675) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -16072,11 +16116,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype665, _size662) = iprot.readListBegin() - for _i666 in xrange(_size662): - _elem667 = Partition() - _elem667.read(iprot) - self.success.append(_elem667) + (_etype679, _size676) = iprot.readListBegin() + for _i680 in xrange(_size676): + _elem681 = Partition() + _elem681.read(iprot) + self.success.append(_elem681) iprot.readListEnd() else: iprot.skip(ftype) @@ -16105,8 +16149,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter668 in self.success: - iter668.write(oprot) + for iter682 in self.success: + iter682.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -16262,11 +16306,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype672, _size669) = iprot.readListBegin() - for _i673 in xrange(_size669): - _elem674 = PartitionSpec() - _elem674.read(iprot) - self.success.append(_elem674) + (_etype686, _size683) = iprot.readListBegin() + for _i687 in xrange(_size683): + _elem688 = PartitionSpec() + _elem688.read(iprot) + self.success.append(_elem688) iprot.readListEnd() else: iprot.skip(ftype) @@ -16295,8 +16339,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter675 in self.success: - iter675.write(oprot) + for iter689 in self.success: + iter689.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -16514,10 +16558,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.names = [] - (_etype679, _size676) = iprot.readListBegin() - for _i680 in xrange(_size676): - _elem681 = iprot.readString(); - self.names.append(_elem681) + (_etype693, _size690) = iprot.readListBegin() + for _i694 in xrange(_size690): + _elem695 = iprot.readString(); + self.names.append(_elem695) iprot.readListEnd() else: iprot.skip(ftype) @@ -16542,8 +16586,8 @@ def write(self, oprot): if self.names is not None: oprot.writeFieldBegin('names', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.names)) - for iter682 in self.names: - oprot.writeString(iter682) + for iter696 in self.names: + oprot.writeString(iter696) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -16595,11 +16639,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype686, _size683) = iprot.readListBegin() - for _i687 in xrange(_size683): - _elem688 = Partition() - _elem688.read(iprot) - self.success.append(_elem688) + (_etype700, _size697) = iprot.readListBegin() + for _i701 in xrange(_size697): + _elem702 = Partition() + _elem702.read(iprot) + self.success.append(_elem702) iprot.readListEnd() else: iprot.skip(ftype) @@ -16628,8 +16672,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter689 in self.success: - iter689.write(oprot) + for iter703 in self.success: + iter703.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -16859,11 +16903,11 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.new_parts = [] - (_etype693, _size690) = iprot.readListBegin() - for _i694 in xrange(_size690): - _elem695 = Partition() - _elem695.read(iprot) - self.new_parts.append(_elem695) + (_etype707, _size704) = iprot.readListBegin() + for _i708 in xrange(_size704): + _elem709 = Partition() + _elem709.read(iprot) + self.new_parts.append(_elem709) iprot.readListEnd() else: iprot.skip(ftype) @@ -16888,8 +16932,8 @@ def write(self, oprot): if self.new_parts is not None: oprot.writeFieldBegin('new_parts', TType.LIST, 3) oprot.writeListBegin(TType.STRUCT, len(self.new_parts)) - for iter696 in self.new_parts: - iter696.write(oprot) + for iter710 in self.new_parts: + iter710.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -17201,10 +17245,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype700, _size697) = iprot.readListBegin() - for _i701 in xrange(_size697): - _elem702 = iprot.readString(); - self.part_vals.append(_elem702) + (_etype714, _size711) = iprot.readListBegin() + for _i715 in xrange(_size711): + _elem716 = iprot.readString(); + self.part_vals.append(_elem716) iprot.readListEnd() else: iprot.skip(ftype) @@ -17235,8 +17279,8 @@ def write(self, oprot): if self.part_vals is not None: oprot.writeFieldBegin('part_vals', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.part_vals)) - for iter703 in self.part_vals: - oprot.writeString(iter703) + for iter717 in self.part_vals: + oprot.writeString(iter717) oprot.writeListEnd() oprot.writeFieldEnd() if self.new_part is not None: @@ -17364,10 +17408,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.part_vals = [] - (_etype707, _size704) = iprot.readListBegin() - for _i708 in xrange(_size704): - _elem709 = iprot.readString(); - self.part_vals.append(_elem709) + (_etype721, _size718) = iprot.readListBegin() + for _i722 in xrange(_size718): + _elem723 = iprot.readString(); + self.part_vals.append(_elem723) iprot.readListEnd() else: iprot.skip(ftype) @@ -17389,8 +17433,8 @@ def write(self, oprot): if self.part_vals is not None: oprot.writeFieldBegin('part_vals', TType.LIST, 1) oprot.writeListBegin(TType.STRING, len(self.part_vals)) - for iter710 in self.part_vals: - oprot.writeString(iter710) + for iter724 in self.part_vals: + oprot.writeString(iter724) oprot.writeListEnd() oprot.writeFieldEnd() if self.throw_exception is not None: @@ -17719,10 +17763,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype714, _size711) = iprot.readListBegin() - for _i715 in xrange(_size711): - _elem716 = iprot.readString(); - self.success.append(_elem716) + (_etype728, _size725) = iprot.readListBegin() + for _i729 in xrange(_size725): + _elem730 = iprot.readString(); + self.success.append(_elem730) iprot.readListEnd() else: iprot.skip(ftype) @@ -17745,8 +17789,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter717 in self.success: - oprot.writeString(iter717) + for iter731 in self.success: + oprot.writeString(iter731) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -17859,11 +17903,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.MAP: self.success = {} - (_ktype719, _vtype720, _size718 ) = iprot.readMapBegin() - for _i722 in xrange(_size718): - _key723 = iprot.readString(); - _val724 = iprot.readString(); - self.success[_key723] = _val724 + (_ktype733, _vtype734, _size732 ) = iprot.readMapBegin() + for _i736 in xrange(_size732): + _key737 = iprot.readString(); + _val738 = iprot.readString(); + self.success[_key737] = _val738 iprot.readMapEnd() else: iprot.skip(ftype) @@ -17886,9 +17930,9 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.MAP, 0) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.success)) - for kiter725,viter726 in self.success.items(): - oprot.writeString(kiter725) - oprot.writeString(viter726) + for kiter739,viter740 in self.success.items(): + oprot.writeString(kiter739) + oprot.writeString(viter740) oprot.writeMapEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -17958,11 +18002,11 @@ def read(self, iprot): elif fid == 3: if ftype == TType.MAP: self.part_vals = {} - (_ktype728, _vtype729, _size727 ) = iprot.readMapBegin() - for _i731 in xrange(_size727): - _key732 = iprot.readString(); - _val733 = iprot.readString(); - self.part_vals[_key732] = _val733 + (_ktype742, _vtype743, _size741 ) = iprot.readMapBegin() + for _i745 in xrange(_size741): + _key746 = iprot.readString(); + _val747 = iprot.readString(); + self.part_vals[_key746] = _val747 iprot.readMapEnd() else: iprot.skip(ftype) @@ -17992,9 +18036,9 @@ def write(self, oprot): 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 kiter734,viter735 in self.part_vals.items(): - oprot.writeString(kiter734) - oprot.writeString(viter735) + for kiter748,viter749 in self.part_vals.items(): + oprot.writeString(kiter748) + oprot.writeString(viter749) oprot.writeMapEnd() oprot.writeFieldEnd() if self.eventType is not None: @@ -18190,11 +18234,11 @@ def read(self, iprot): elif fid == 3: if ftype == TType.MAP: self.part_vals = {} - (_ktype737, _vtype738, _size736 ) = iprot.readMapBegin() - for _i740 in xrange(_size736): - _key741 = iprot.readString(); - _val742 = iprot.readString(); - self.part_vals[_key741] = _val742 + (_ktype751, _vtype752, _size750 ) = iprot.readMapBegin() + for _i754 in xrange(_size750): + _key755 = iprot.readString(); + _val756 = iprot.readString(); + self.part_vals[_key755] = _val756 iprot.readMapEnd() else: iprot.skip(ftype) @@ -18224,9 +18268,9 @@ def write(self, oprot): 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 kiter743,viter744 in self.part_vals.items(): - oprot.writeString(kiter743) - oprot.writeString(viter744) + for kiter757,viter758 in self.part_vals.items(): + oprot.writeString(kiter757) + oprot.writeString(viter758) oprot.writeMapEnd() oprot.writeFieldEnd() if self.eventType is not None: @@ -19198,11 +19242,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype748, _size745) = iprot.readListBegin() - for _i749 in xrange(_size745): - _elem750 = Index() - _elem750.read(iprot) - self.success.append(_elem750) + (_etype762, _size759) = iprot.readListBegin() + for _i763 in xrange(_size759): + _elem764 = Index() + _elem764.read(iprot) + self.success.append(_elem764) iprot.readListEnd() else: iprot.skip(ftype) @@ -19231,8 +19275,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter751 in self.success: - iter751.write(oprot) + for iter765 in self.success: + iter765.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -19373,10 +19417,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype755, _size752) = iprot.readListBegin() - for _i756 in xrange(_size752): - _elem757 = iprot.readString(); - self.success.append(_elem757) + (_etype769, _size766) = iprot.readListBegin() + for _i770 in xrange(_size766): + _elem771 = iprot.readString(); + self.success.append(_elem771) iprot.readListEnd() else: iprot.skip(ftype) @@ -19399,8 +19443,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter758 in self.success: - oprot.writeString(iter758) + for iter772 in self.success: + oprot.writeString(iter772) oprot.writeListEnd() oprot.writeFieldEnd() if self.o2 is not None: @@ -21754,10 +21798,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype762, _size759) = iprot.readListBegin() - for _i763 in xrange(_size759): - _elem764 = iprot.readString(); - self.success.append(_elem764) + (_etype776, _size773) = iprot.readListBegin() + for _i777 in xrange(_size773): + _elem778 = iprot.readString(); + self.success.append(_elem778) iprot.readListEnd() else: iprot.skip(ftype) @@ -21780,8 +21824,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter765 in self.success: - oprot.writeString(iter765) + for iter779 in self.success: + oprot.writeString(iter779) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -22299,10 +22343,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype769, _size766) = iprot.readListBegin() - for _i770 in xrange(_size766): - _elem771 = iprot.readString(); - self.success.append(_elem771) + (_etype783, _size780) = iprot.readListBegin() + for _i784 in xrange(_size780): + _elem785 = iprot.readString(); + self.success.append(_elem785) iprot.readListEnd() else: iprot.skip(ftype) @@ -22325,8 +22369,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter772 in self.success: - oprot.writeString(iter772) + for iter786 in self.success: + oprot.writeString(iter786) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -22799,11 +22843,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype776, _size773) = iprot.readListBegin() - for _i777 in xrange(_size773): - _elem778 = Role() - _elem778.read(iprot) - self.success.append(_elem778) + (_etype790, _size787) = iprot.readListBegin() + for _i791 in xrange(_size787): + _elem792 = Role() + _elem792.read(iprot) + self.success.append(_elem792) iprot.readListEnd() else: iprot.skip(ftype) @@ -22826,8 +22870,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter779 in self.success: - iter779.write(oprot) + for iter793 in self.success: + iter793.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -23297,10 +23341,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.group_names = [] - (_etype783, _size780) = iprot.readListBegin() - for _i784 in xrange(_size780): - _elem785 = iprot.readString(); - self.group_names.append(_elem785) + (_etype797, _size794) = iprot.readListBegin() + for _i798 in xrange(_size794): + _elem799 = iprot.readString(); + self.group_names.append(_elem799) iprot.readListEnd() else: iprot.skip(ftype) @@ -23325,8 +23369,8 @@ def write(self, oprot): if self.group_names is not None: oprot.writeFieldBegin('group_names', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.group_names)) - for iter786 in self.group_names: - oprot.writeString(iter786) + for iter800 in self.group_names: + oprot.writeString(iter800) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -23533,11 +23577,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype790, _size787) = iprot.readListBegin() - for _i791 in xrange(_size787): - _elem792 = HiveObjectPrivilege() - _elem792.read(iprot) - self.success.append(_elem792) + (_etype804, _size801) = iprot.readListBegin() + for _i805 in xrange(_size801): + _elem806 = HiveObjectPrivilege() + _elem806.read(iprot) + self.success.append(_elem806) iprot.readListEnd() else: iprot.skip(ftype) @@ -23560,8 +23604,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter793 in self.success: - iter793.write(oprot) + for iter807 in self.success: + iter807.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -24020,10 +24064,10 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.group_names = [] - (_etype797, _size794) = iprot.readListBegin() - for _i798 in xrange(_size794): - _elem799 = iprot.readString(); - self.group_names.append(_elem799) + (_etype811, _size808) = iprot.readListBegin() + for _i812 in xrange(_size808): + _elem813 = iprot.readString(); + self.group_names.append(_elem813) iprot.readListEnd() else: iprot.skip(ftype) @@ -24044,8 +24088,8 @@ def write(self, oprot): if self.group_names is not None: oprot.writeFieldBegin('group_names', TType.LIST, 2) oprot.writeListBegin(TType.STRING, len(self.group_names)) - for iter800 in self.group_names: - oprot.writeString(iter800) + for iter814 in self.group_names: + oprot.writeString(iter814) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -24094,10 +24138,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype804, _size801) = iprot.readListBegin() - for _i805 in xrange(_size801): - _elem806 = iprot.readString(); - self.success.append(_elem806) + (_etype818, _size815) = iprot.readListBegin() + for _i819 in xrange(_size815): + _elem820 = iprot.readString(); + self.success.append(_elem820) iprot.readListEnd() else: iprot.skip(ftype) @@ -24120,8 +24164,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter807 in self.success: - oprot.writeString(iter807) + for iter821 in self.success: + oprot.writeString(iter821) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: diff --git metastore/src/gen/thrift/gen-rb/thrift_hive_metastore.rb metastore/src/gen/thrift/gen-rb/thrift_hive_metastore.rb index e6ef08a..a07df09 100644 --- metastore/src/gen/thrift/gen-rb/thrift_hive_metastore.rb +++ metastore/src/gen/thrift/gen-rb/thrift_hive_metastore.rb @@ -284,7 +284,7 @@ module ThriftHiveMetastore def drop_table(dbname, name, deleteData) send_drop_table(dbname, name, deleteData) - recv_drop_table() + return recv_drop_table() end def send_drop_table(dbname, name, deleteData) @@ -293,14 +293,15 @@ module ThriftHiveMetastore def recv_drop_table() result = receive_message(Drop_table_result) + return result.success unless result.success.nil? raise result.o1 unless result.o1.nil? raise result.o3 unless result.o3.nil? - return + raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'drop_table failed: unknown result') end def drop_table_with_environment_context(dbname, name, deleteData, environment_context) send_drop_table_with_environment_context(dbname, name, deleteData, environment_context) - recv_drop_table_with_environment_context() + return recv_drop_table_with_environment_context() end def send_drop_table_with_environment_context(dbname, name, deleteData, environment_context) @@ -309,9 +310,10 @@ module ThriftHiveMetastore def recv_drop_table_with_environment_context() result = receive_message(Drop_table_with_environment_context_result) + return result.success unless result.success.nil? raise result.o1 unless result.o1.nil? raise result.o3 unless result.o3.nil? - return + raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'drop_table_with_environment_context failed: unknown result') end def get_tables(db_name, pattern) @@ -2202,7 +2204,7 @@ module ThriftHiveMetastore args = read_args(iprot, Drop_table_args) result = Drop_table_result.new() begin - @handler.drop_table(args.dbname, args.name, args.deleteData) + result.success = @handler.drop_table(args.dbname, args.name, args.deleteData) rescue ::NoSuchObjectException => o1 result.o1 = o1 rescue ::MetaException => o3 @@ -2215,7 +2217,7 @@ module ThriftHiveMetastore args = read_args(iprot, Drop_table_with_environment_context_args) result = Drop_table_with_environment_context_result.new() begin - @handler.drop_table_with_environment_context(args.dbname, args.name, args.deleteData, args.environment_context) + result.success = @handler.drop_table_with_environment_context(args.dbname, args.name, args.deleteData, args.environment_context) rescue ::NoSuchObjectException => o1 result.o1 = o1 rescue ::MetaException => o3 @@ -4104,10 +4106,12 @@ module ThriftHiveMetastore class Drop_table_result include ::Thrift::Struct, ::Thrift::Struct_Union + SUCCESS = 0 O1 = 1 O3 = 2 FIELDS = { + SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Partition}}, O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::NoSuchObjectException}, O3 => {:type => ::Thrift::Types::STRUCT, :name => 'o3', :class => ::MetaException} } @@ -4144,10 +4148,12 @@ module ThriftHiveMetastore class Drop_table_with_environment_context_result include ::Thrift::Struct, ::Thrift::Struct_Union + SUCCESS = 0 O1 = 1 O3 = 2 FIELDS = { + SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Partition}}, O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::NoSuchObjectException}, O3 => {:type => ::Thrift::Types::STRUCT, :name => 'o3', :class => ::MetaException} } diff --git metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaHook.java metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaHook.java index 570b358..3b205cd 100644 --- metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaHook.java +++ metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaHook.java @@ -89,4 +89,43 @@ public void rollbackDropTable(Table table) */ public void commitDropTable(Table table, boolean deleteData) throws MetaException; + + /** + * Called before a new partition definition is added to the metastore + * during CREATE PARTITION. + * + * @param partition new partition definition + */ + public void preCreatePartition(Table table, Partition partition) + throws MetaException; + + /** + * Called after failure adding a new partition definition to the metastore + * during CREATE PARTITION. + * + * @param partition new partition definition + */ + public void rollbackCreatePartition(Table table, Partition partition) + throws MetaException; + + /** + * Called after successfully adding a new partition definition to the metastore + * during CREATE PARTITION. + * + * @param partition new partition definition + */ + public void commitCreatePartition(Table table, Partition partition) + throws MetaException; + + /** + * Called after successfully removing a partition definition from the metastore + * during DROP PARTITION. + * + * @param partition partition definition + * + * @param deleteData whether to delete data as well; this should typically + * be ignored in the case of an external partition + */ + public void commitDropPartition(Table table, Partition partition, boolean deleteData) + throws MetaException; } diff --git metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java index 8404d03..9064987 100644 --- metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java +++ metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java @@ -59,6 +59,7 @@ import org.apache.hadoop.hive.common.FileUtils; import org.apache.hadoop.hive.common.LogUtils; import org.apache.hadoop.hive.common.LogUtils.LogInitializationException; +import org.apache.hadoop.hive.common.ObjectPair; import org.apache.hadoop.hive.common.classification.InterfaceAudience; import org.apache.hadoop.hive.common.classification.InterfaceStability; import org.apache.hadoop.hive.common.cli.CommonCliOptions; @@ -959,7 +960,7 @@ private void drop_database_core(RawStore ms, boolean success = false; Database db = null; List tablePaths = new ArrayList(); - List partitionPaths = new ArrayList(); + List partitionPaths = Collections.emptyList(); try { ms.openTransaction(); db = ms.getDatabase(name); @@ -1036,7 +1037,7 @@ private void drop_database_core(RawStore ms, // For each partition in each table, drop the partitions and get a list of // partitions' locations which might need to be deleted partitionPaths = dropPartitionsAndGetLocations(ms, name, table.getTableName(), - tablePath, table.getPartitionKeys(), deleteData && !isExternal(table)); + tablePath, table.getPartitionKeys(), deleteData && !isExternal(table)).getSecond(); // Drop the table but not its data drop_table(name, table.getTableName(), false); @@ -1442,14 +1443,16 @@ private boolean is_table_exists(RawStore ms, String dbname, String name) return (ms.getTable(dbname, name) != null); } - private boolean drop_table_core(final RawStore ms, final String dbname, final String name, + private List drop_table_core(final RawStore ms, final String dbname, final String name, final boolean deleteData, final EnvironmentContext envContext, - final String indexName) throws NoSuchObjectException, - MetaException, IOException, InvalidObjectException, InvalidInputException { + final String indexName) + throws NoSuchObjectException, MetaException, IOException, + InvalidObjectException, InvalidInputException { boolean success = false; boolean isExternal = false; Path tblPath = null; - List partPaths = null; + ObjectPair, List> partitions = + new ObjectPair, List>(null, null); Table tbl = null; try { ms.openTransaction(); @@ -1495,8 +1498,10 @@ private boolean drop_table_core(final RawStore ms, final String dbname, final St } // Drop the partitions and get a list of locations which need to be deleted - partPaths = dropPartitionsAndGetLocations(ms, dbname, name, tblPath, - tbl.getPartitionKeys(), deleteData && !isExternal); + if (MetaStoreUtils.isPartitionedTable(tbl)) { + partitions = dropPartitionsAndGetLocations(ms, dbname, name, tblPath, + tbl.getPartitionKeys(), deleteData && !isExternal); + } if (!ms.dropTable(dbname, name)) { String tableName = dbname + "." + name; @@ -1511,7 +1516,7 @@ private boolean drop_table_core(final RawStore ms, final String dbname, final St boolean ifPurge = envContext != null && Boolean.parseBoolean(envContext.getProperties().get("ifPurge")); // Delete the data in the partitions which have other locations - deletePartitionData(partPaths, ifPurge); + deletePartitionData(partitions.getSecond(), ifPurge); // Delete the data in the table deleteTableData(tblPath, ifPurge); // ok even if the data is not deleted @@ -1522,7 +1527,7 @@ private boolean drop_table_core(final RawStore ms, final String dbname, final St listener.onDropTable(dropTableEvent); } } - return success; + return partitions.getFirst(); } /** @@ -1606,8 +1611,9 @@ private void deletePartitionData(List partPaths, boolean ifPurge) { * @throws InvalidObjectException * @throws NoSuchObjectException */ - private List dropPartitionsAndGetLocations(RawStore ms, String dbName, - String tableName, Path tablePath, List partitionKeys, boolean checkLocation) + private ObjectPair, List> dropPartitionsAndGetLocations( + RawStore ms, String dbName, String tableName, Path tablePath, + List partitionKeys, boolean checkLocation) throws MetaException, IOException, NoSuchObjectException, InvalidObjectException, InvalidInputException { int partitionBatchSize = HiveConf.getIntVar(hiveConf, @@ -1616,6 +1622,7 @@ private void deletePartitionData(List partPaths, boolean ifPurge) { if (tablePath != null) { tableDnsPath = wh.getDnsPath(tablePath); } + List partitions = new ArrayList(); List partPaths = new ArrayList(); Table tbl = ms.getTable(dbName, tableName); @@ -1626,6 +1633,7 @@ private void deletePartitionData(List partPaths, boolean ifPurge) { if (partsToDelete == null || partsToDelete.isEmpty()) { break; } + partitions.addAll(partsToDelete); List partNames = new ArrayList(); for (Partition part : partsToDelete) { if (checkLocation && part.getSd() != null && @@ -1648,25 +1656,25 @@ private void deletePartitionData(List partPaths, boolean ifPurge) { ms.dropPartitions(dbName, tableName, partNames); } - return partPaths; + return new ObjectPair, List>(partitions, partPaths); } @Override - public void drop_table(final String dbname, final String name, final boolean deleteData) + public List drop_table(String dbname, String name, boolean deleteData) throws NoSuchObjectException, MetaException { - drop_table_with_environment_context(dbname, name, deleteData, null); + return drop_table_with_environment_context(dbname, name, deleteData, null); } @Override - public void drop_table_with_environment_context(final String dbname, final String name, - final boolean deleteData, final EnvironmentContext envContext) + public List drop_table_with_environment_context(String dbname, String name, + boolean deleteData, EnvironmentContext envContext) throws NoSuchObjectException, MetaException { startTableFunction("drop_table", dbname, name); - boolean success = false; Exception ex = null; + List partitions = null; try { - success = drop_table_core(getMS(), dbname, name, deleteData, envContext, null); + partitions = drop_table_core(getMS(), dbname, name, deleteData, envContext, null); } catch (IOException e) { ex = e; throw new MetaException(e.getMessage()); @@ -1680,9 +1688,9 @@ public void drop_table_with_environment_context(final String dbname, final Strin throw newMetaException(e); } } finally { - endFunction("drop_table", success, ex, name); + endFunction("drop_table", ex == null, ex, name); } - + return partitions; } /** @@ -2140,17 +2148,15 @@ public AddPartitionsResult add_partitions_req(AddPartitionsRequest request) public int add_partitions(final List parts) throws MetaException, InvalidObjectException, AlreadyExistsException { startFunction("add_partition"); - if (parts.size() == 0) { - return 0; - } - - Integer ret = null; Exception ex = null; try { - // Old API assumed all partitions belong to the same table; keep the same assumption - ret = add_partitions_core(getMS(), parts.get(0).getDbName(), - parts.get(0).getTableName(), parts, false).size(); - assert ret == parts.size(); + if (!parts.isEmpty()) { + // Old API assumed all partitions belong to the same table; keep the same assumption + List partitions = add_partitions_core(getMS(), parts.get(0).getDbName(), + parts.get(0).getTableName(), parts, false); + return partitions.size(); + } + return 0; } catch (Exception e) { ex = e; if (e instanceof MetaException) { @@ -2164,9 +2170,8 @@ public int add_partitions(final List parts) throws MetaException, } } finally { String tableName = parts.get(0).getTableName(); - endFunction("add_partition", ret != null, ex, tableName); + endFunction("add_partition", ex == null, ex, tableName); } - return ret; } @Override @@ -3925,7 +3930,7 @@ private boolean drop_index_by_name_core(final RawStore ms, // Drop the partitions and get a list of partition locations which need to be deleted partPaths = dropPartitionsAndGetLocations(ms, qualified[0], qualified[1], tblPath, - tbl.getPartitionKeys(), deleteData); + tbl.getPartitionKeys(), deleteData).getSecond(); if (!ms.dropTable(qualified[0], qualified[1])) { throw new MetaException("Unable to drop underlying data table " diff --git metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java index ed7f9d6..0458350 100644 --- metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java +++ metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java @@ -47,6 +47,7 @@ import org.apache.commons.logging.LogFactory; import org.apache.hadoop.hive.common.ObjectPair; import org.apache.hadoop.hive.common.ValidTxnList; +import org.apache.hadoop.fs.Path; import org.apache.hadoop.hive.conf.HiveConf; import org.apache.hadoop.hive.conf.HiveConf.ConfVars; import org.apache.hadoop.hive.conf.HiveConfUtil; @@ -123,7 +124,6 @@ import org.apache.hadoop.hive.metastore.api.UnlockRequest; import org.apache.hadoop.hive.metastore.partition.spec.PartitionSpecProxy; import org.apache.hadoop.hive.metastore.txn.TxnHandler; -import org.apache.hadoop.hive.shims.HadoopShims; import org.apache.hadoop.hive.shims.ShimLoader; import org.apache.hadoop.hive.shims.Utils; import org.apache.hadoop.hive.thrift.HadoopThriftAuthBridge; @@ -496,13 +496,40 @@ public String getMetaConf(String key) throws TException { public Partition add_partition(Partition new_part) throws InvalidObjectException, AlreadyExistsException, MetaException, TException { - return add_partition(new_part, null); + return add_partition(null, new_part, null); } public Partition add_partition(Partition new_part, EnvironmentContext envContext) throws InvalidObjectException, AlreadyExistsException, MetaException, TException { - return deepCopy(client.add_partition_with_environment_context(new_part, envContext)); + return add_partition(null, new_part, envContext); + } + + private Partition add_partition(Table table, Partition part, EnvironmentContext envContext) + throws InvalidObjectException, AlreadyExistsException, MetaException, + TException { + if (table == null) { + table = getTable(part.getDbName(), part.getTableName()); + } + HiveMetaHook hook = getHook(table); + if (hook != null) { + hook.preCreatePartition(table, part); + } + boolean success = false; + try { + Partition created = envContext == null ? + client.add_partition(part) : + client.add_partition_with_environment_context(part, envContext); + if (hook != null) { + hook.commitCreatePartition(table, part); + } + success = true; + return deepCopy(created); + } finally { + if (hook != null && !success) { + hook.rollbackCreatePartition(table, part); + } + } } /** @@ -517,7 +544,34 @@ public Partition add_partition(Partition new_part, EnvironmentContext envContext public int add_partitions(List new_parts) throws InvalidObjectException, AlreadyExistsException, MetaException, TException { - return client.add_partitions(new_parts); + if (new_parts == null || new_parts.isEmpty()) { + return 0; + } + Partition part0 = new_parts.get(0); + Table table = getTable(part0.getDbName(), part0.getTableName()); + HiveMetaHook hook = getHook(table); + if (hook != null) { + for (Partition new_part : new_parts) { + hook.preCreatePartition(table, new_part); + } + } + boolean success = false; + try { + int added = client.add_partitions(new_parts); + if (hook != null) { + for (Partition new_part : new_parts) { + hook.commitCreatePartition(table, new_part); + } + } + success = true; + return added; + } finally { + if (hook != null && !success) { + for (Partition new_part : new_parts) { + hook.rollbackCreatePartition(table, new_part); + } + } + } } @Override @@ -527,12 +581,35 @@ public int add_partitions(List new_parts) if (parts.isEmpty()) { return needResults ? new ArrayList() : null; } - Partition part = parts.get(0); + Partition part0 = parts.get(0); + Table table = getTable(part0.getDbName(), part0.getTableName()); + HiveMetaHook hook = getHook(table); + if (hook != null) { + for (Partition new_part : parts) { + hook.preCreatePartition(table, new_part); + } + } AddPartitionsRequest req = new AddPartitionsRequest( - part.getDbName(), part.getTableName(), parts, ifNotExists); + table.getDbName(), table.getTableName(), parts, ifNotExists); req.setNeedResult(needResults); - AddPartitionsResult result = client.add_partitions_req(req); - return needResults ? filterHook.filterPartitions(result.getPartitions()) : null; + + boolean success = false; + try { + AddPartitionsResult result = client.add_partitions_req(req); + if (hook != null && success) { + for (Partition new_part : parts) { + hook.commitCreatePartition(table, new_part); + } + } + success = true; + return needResults ? result.getPartitions() : null; + } finally { + if (hook != null && !success) { + for (Partition new_part : parts) { + hook.rollbackCreatePartition(table, new_part); + } + } + } } @Override @@ -562,8 +639,8 @@ public Partition appendPartition(String db_name, String table_name, public Partition appendPartition(String db_name, String table_name, List part_vals, EnvironmentContext envContext) throws InvalidObjectException, AlreadyExistsException, MetaException, TException { - return deepCopy(client.append_partition_with_environment_context(db_name, table_name, - part_vals, envContext)); + Table table = getTable(db_name, table_name); + return add_partition(table, toPartition(table, part_vals), envContext); } @Override @@ -575,8 +652,43 @@ public Partition appendPartition(String dbName, String tableName, String partNam public Partition appendPartition(String dbName, String tableName, String partName, EnvironmentContext envContext) throws InvalidObjectException, AlreadyExistsException, MetaException, TException { - return deepCopy(client.append_partition_by_name_with_environment_context(dbName, tableName, - partName, envContext)); + Table table = getTable(dbName, tableName); + return add_partition(table, toPartition(table, partName), envContext); + } + + private Partition toPartition(Table table, List partVals) throws TException { + String partName = Warehouse.makePartName(table.getPartitionKeys(), partVals); + return toPartition(table, partVals, partName); + } + + private Partition toPartition(Table table, String partName) throws TException { + // Unescape the partition name + LinkedHashMap hm = Warehouse.makeSpecFromName(partName); + List partVals = new ArrayList(); + for (FieldSchema field : table.getPartitionKeys()) { + String key = field.getName(); + String val = hm.get(key); + if (val == null) { + throw new InvalidObjectException("incomplete partition name - missing " + key); + } + partVals.add(val); + } + return toPartition(table, partVals, partName); + } + + private Partition toPartition(Table table, List partVals, String partName) { + Partition part = new Partition(); + part.setDbName(table.getDbName()); + part.setTableName(table.getTableName()); + part.setValues(partVals); + part.setSd(table.getSd()); + String location = table.getSd().getLocation(); + if (location != null) { + Path partLocation = new Path(location, partName); + part.getSd().setLocation(partLocation.toString()); + } + + return part; } /** @@ -584,7 +696,7 @@ public Partition appendPartition(String dbName, String tableName, String partNam * @param partitionSpecs partitions specs of the parent partition to be exchanged * @param destDb the db of the destination table * @param destinationTableName the destination table name - @ @return new partition after exchanging + * @return new partition after exchanging */ @Override public Partition exchange_partition(Map partitionSpecs, @@ -725,12 +837,13 @@ public void dropDatabase(String name, boolean deleteData, boolean ignoreUnknownD public boolean dropPartition(String db_name, String tbl_name, List part_vals) throws NoSuchObjectException, MetaException, TException { - return dropPartition(db_name, tbl_name, part_vals, true, null); + return dropPartition(db_name, tbl_name, part_vals, null); } public boolean dropPartition(String db_name, String tbl_name, List part_vals, EnvironmentContext env_context) throws NoSuchObjectException, MetaException, TException { - return dropPartition(db_name, tbl_name, part_vals, true, env_context); + Table table = getTable(db_name, tbl_name); + return drop_partition(table, toPartition(table, part_vals), true, env_context); } @Override @@ -741,8 +854,8 @@ public boolean dropPartition(String dbName, String tableName, String partName, b public boolean dropPartition(String dbName, String tableName, String partName, boolean deleteData, EnvironmentContext envContext) throws NoSuchObjectException, MetaException, TException { - return client.drop_partition_by_name_with_environment_context(dbName, tableName, partName, - deleteData, envContext); + Table table = getTable(dbName, tableName); + return drop_partition(table, toPartition(table, partName), deleteData, envContext); } /** @@ -762,14 +875,35 @@ public boolean dropPartition(String dbName, String tableName, String partName, b public boolean dropPartition(String db_name, String tbl_name, List part_vals, boolean deleteData) throws NoSuchObjectException, MetaException, TException { - return dropPartition(db_name, tbl_name, part_vals, deleteData, null); + Table table = getTable(db_name, tbl_name); + return drop_partition(table, toPartition(table, part_vals), deleteData, null); } public boolean dropPartition(String db_name, String tbl_name, List part_vals, boolean deleteData, EnvironmentContext envContext) throws NoSuchObjectException, MetaException, TException { - return client.drop_partition_with_environment_context(db_name, tbl_name, part_vals, deleteData, - envContext); + Table table = getTable(db_name, tbl_name); + return drop_partition(table, toPartition(table, part_vals), deleteData, envContext); + } + + private boolean drop_partition(Table table, Partition part, boolean deleteData, + EnvironmentContext ctx) + throws InvalidObjectException, AlreadyExistsException, MetaException, TException { + if (table == null) { + table = getTable(part.getDbName(), part.getTableName()); + } + HiveMetaHook hook = getHook(table); + String dbName = part.getDbName(); + String tableName = part.getTableName(); + List vals = part.getValues(); + + boolean done = ctx == null ? + client.drop_partition(dbName, tableName, vals, deleteData) : + client.drop_partition_with_environment_context(dbName, tableName, vals, deleteData, ctx); + if (hook != null && done) { + hook.commitDropPartition(table, part, deleteData); + } + return true; } @Override @@ -785,12 +919,22 @@ public boolean dropPartition(String db_name, String tbl_name, List part_ exprs.add(dpe); } rps.setExprs(exprs); + + Table table = getTable(dbName, tblName); + HiveMetaHook hook = getHook(table); + DropPartitionsRequest req = new DropPartitionsRequest(dbName, tblName, rps); req.setDeleteData(deleteData); req.setIgnoreProtection(ignoreProtection); req.setNeedResult(true); req.setIfExists(ifExists); - return client.drop_partitions_req(req).getPartitions(); + List partitions = client.drop_partitions_req(req).getPartitions(); + if (hook != null && partitions != null) { + for (Partition part : partitions) { + hook.commitDropPartition(table, part, deleteData); + } + } + return partitions; } /** @@ -886,10 +1030,16 @@ public void dropTable(String dbname, String name, boolean deleteData, } boolean success = false; try { - drop_table_with_environment_context(dbname, name, deleteData, envContext); + List partitions = + drop_table_with_environment_context(dbname, name, deleteData, envContext); if (hook != null) { hook.commitDropTable(tbl, deleteData); } + if (hook != null && partitions != null && !partitions.isEmpty()) { + for (Partition partition : partitions) { + hook.commitDropPartition(tbl, partition, deleteData); + } + } success=true; } catch (NoSuchObjectException e) { if (!ignoreUnknownTab) { @@ -1421,31 +1571,7 @@ public String getConfigValue(String name, String defaultValue) @Override public Partition getPartition(String db, String tableName, String partName) throws MetaException, TException, UnknownTableException, NoSuchObjectException { - return deepCopy(filterHook.filterPartition(client.get_partition_by_name(db, tableName, partName))); - } - - public Partition appendPartitionByName(String dbName, String tableName, String partName) - throws InvalidObjectException, AlreadyExistsException, MetaException, TException { - return appendPartitionByName(dbName, tableName, partName, null); - } - - public Partition appendPartitionByName(String dbName, String tableName, String partName, - EnvironmentContext envContext) throws InvalidObjectException, AlreadyExistsException, - MetaException, TException { - return deepCopy(client.append_partition_by_name_with_environment_context(dbName, tableName, - partName, envContext)); - } - - public boolean dropPartitionByName(String dbName, String tableName, String partName, - boolean deleteData) throws NoSuchObjectException, MetaException, TException { - return dropPartitionByName(dbName, tableName, partName, deleteData, null); - } - - public boolean dropPartitionByName(String dbName, String tableName, String partName, - boolean deleteData, EnvironmentContext envContext) throws NoSuchObjectException, - MetaException, TException { - return client.drop_partition_by_name_with_environment_context(dbName, tableName, partName, - deleteData, envContext); + return deepCopy(client.get_partition_by_name(db, tableName, partName)); } private HiveMetaHook getHook(Table tbl) throws MetaException { @@ -1925,10 +2051,10 @@ protected void create_table_with_environment_context(Table tbl, EnvironmentConte client.create_table_with_environment_context(tbl, envContext); } - protected void drop_table_with_environment_context(String dbname, String name, + protected List drop_table_with_environment_context(String dbname, String name, boolean deleteData, EnvironmentContext envContext) throws MetaException, TException, NoSuchObjectException, UnsupportedOperationException { - client.drop_table_with_environment_context(dbname, name, deleteData, envContext); + return client.drop_table_with_environment_context(dbname, name, deleteData, envContext); } @Override diff --git metastore/src/java/org/apache/hadoop/hive/metastore/MetaStoreUtils.java metastore/src/java/org/apache/hadoop/hive/metastore/MetaStoreUtils.java index 2db2658..0621b6e 100644 --- metastore/src/java/org/apache/hadoop/hive/metastore/MetaStoreUtils.java +++ metastore/src/java/org/apache/hadoop/hive/metastore/MetaStoreUtils.java @@ -1307,10 +1307,12 @@ public static Path getOriginalLocation( } public static boolean isNonNativeTable(Table table) { - if (table == null) { - return false; - } - return (table.getParameters().get(hive_metastoreConstants.META_TABLE_STORAGE) != null); + return table != null && + table.getParameters().get(hive_metastoreConstants.META_TABLE_STORAGE) != null; + } + + public static boolean isPartitionedTable(Table table) { + return table != null && table.getPartitionKeysSize() > 0; } /** diff --git ql/src/java/org/apache/hadoop/hive/ql/ErrorMsg.java ql/src/java/org/apache/hadoop/hive/ql/ErrorMsg.java index a06e858..69939a5 100644 --- ql/src/java/org/apache/hadoop/hive/ql/ErrorMsg.java +++ ql/src/java/org/apache/hadoop/hive/ql/ErrorMsg.java @@ -223,7 +223,7 @@ ALTER_COMMAND_FOR_VIEWS(10131, "To alter a view you need to use the ALTER VIEW command."), ALTER_COMMAND_FOR_TABLES(10132, "To alter a base table you need to use the ALTER TABLE command."), ALTER_VIEW_DISALLOWED_OP(10133, "Cannot use this form of ALTER on a view"), - ALTER_TABLE_NON_NATIVE(10134, "ALTER TABLE cannot be used for a non-native table"), + ALTER_TABLE_NON_NATIVE(10134, "ALTER TABLE {0} cannot be used for a non-native table {1}", true), SORTMERGE_MAPJOIN_FAILED(10135, "Sort merge bucketed join could not be performed. " + "If you really want to perform the operation, either set " + @@ -344,6 +344,7 @@ + "fails to construct aggregation for the partition "), ANALYZE_TABLE_PARTIALSCAN_AUTOGATHER(10233, "Analyze partialscan is not allowed " + "if hive.stats.autogather is set to false"), + PARTITION_VALUE_NOT_CONTINUOUS(10234, "Parition values specifed are not continuous." + " A subpartition value is specified without specififying the parent partition's value"), TABLES_INCOMPATIBLE_SCHEMAS(10235, "Tables have incompatible schemas and their partitions " + @@ -428,6 +429,8 @@ ALTER_TABLE_PARTITION_CASCADE_NOT_SUPPORTED(10300, "Alter table partition type {0} does not support cascade", true), + DYNAMIC_PARTITION_ON_NONNATIVE_TABLE(10301, + "Dynamic partition on non-native table {0} is not supported", true), //========================== 20000 range starts here ========================// SCRIPT_INIT_ERROR(20000, "Unable to initialize custom script."), @@ -700,9 +703,6 @@ public String getMsg(String reason) { return mesg + " " + reason; } - public String format(String reason) { - return format(new String[]{reason}); - } /** * If the message is parametrized, this will fill the parameters with supplied * {@code reasons}, otherwise {@code reasons} are appended at the end of the @@ -725,19 +725,12 @@ This method can also be used with INVALID_TABLE and the like and will match getM if(format != null) { return format.format(reasons); } - if(reasons.length > 1) { - StringBuilder sb = new StringBuilder(); - for(String re : reasons) { - if(re != null) { - if(sb.length() > 0) { - sb.append(" "); - } - sb.append(re); - } - } - return getMsg(sb.toString()); + StringBuilder sb = new StringBuilder(128); + sb.append(getMsg()); + for (Object reason : reasons) { + sb.append(' ').append(reason); } - return getMsg(reasons[0]); + return sb.toString(); } public String getErrorCodedMsg() { diff --git ql/src/java/org/apache/hadoop/hive/ql/exec/FetchOperator.java ql/src/java/org/apache/hadoop/hive/ql/exec/FetchOperator.java index 0ccab02..38feea4 100644 --- ql/src/java/org/apache/hadoop/hive/ql/exec/FetchOperator.java +++ ql/src/java/org/apache/hadoop/hive/ql/exec/FetchOperator.java @@ -305,6 +305,9 @@ static void setFetchOperatorContext(JobConf conf, List paths) { } if (isPartitioned) { row[1] = createPartValue(currDesc, partKeyOI); + if (currDesc != null) { + job.set("partName", Utilities.makePartName(currDesc.getPartSpec())); + } } iterSplits = Arrays.asList(splits).iterator(); diff --git ql/src/java/org/apache/hadoop/hive/ql/exec/FileSinkOperator.java ql/src/java/org/apache/hadoop/hive/ql/exec/FileSinkOperator.java index 4f3d504..d808187 100644 --- ql/src/java/org/apache/hadoop/hive/ql/exec/FileSinkOperator.java +++ ql/src/java/org/apache/hadoop/hive/ql/exec/FileSinkOperator.java @@ -138,6 +138,7 @@ Stat stat; int acidLastBucket = -1; int acidFileOffset = -1; + String partName; public FSPaths(Path specPath) { tmpPath = Utilities.toTempPath(specPath); @@ -281,6 +282,8 @@ public Stat getStat() { private transient int timeOut; // JT timeout in msec. private transient long lastProgressReport = System.currentTimeMillis(); + private transient String[] partKeys; + protected transient boolean autoDelete = false; protected transient JobConf jc; Class outputClass; @@ -366,6 +369,11 @@ protected void initializeOp(Configuration hconf) throws HiveException { jc.getPartitionerClass(), null); } + String pcols = conf.getTableInfo().getPartitionColumns(); + if (pcols != null && !pcols.isEmpty()) { + partKeys = pcols.trim().split("/"); + } + if (dpCtx != null) { dpSetup(); } @@ -376,6 +384,7 @@ protected void initializeOp(Configuration hconf) throws HiveException { if (!bDynParts) { fsp = new FSPaths(specPath); + fsp.partName = conf.getStaticSpec(); // Create all the files - this is required because empty files need to be created for // empty buckets @@ -507,6 +516,7 @@ protected void createBucketFiles(FSPaths fsp) throws HiveException { bucketMap.put(bucketNum, filesIdx); taskId = Utilities.replaceTaskIdFromFilename(Utilities.getTaskId(hconf), bucketNum); } + createBucketForFileIdx(fsp, filesIdx); filesIdx++; } @@ -559,6 +569,8 @@ protected void createBucketForFileIdx(FSPaths fsp, int filesIdx) autoDelete = fs.deleteOnExit(fsp.outPaths[filesIdx]); } + jc.set("partName", fsp.partName != null ? fsp.partName : ""); + Utilities.copyTableJobPropertiesToConf(conf.getTableInfo(), jc); // only create bucket files only if no dynamic partitions, // buckets of dynamic partitions will be created for each newly created partition @@ -609,12 +621,11 @@ protected boolean updateProgress() { @Override public void processOp(Object row, int tag) throws HiveException { /* Create list bucketing sub-directory only if stored-as-directories is on. */ - String lbDirName = null; - lbDirName = (lbCtx == null) ? null : generateListBucketingDirName(row); + String lbDirName = lbCtx == null ? null : generateListBucketingDirName(row); if (!bDynParts && !filesCreated) { if (lbDirName != null) { - FSPaths fsp2 = lookupListBucketingPaths(lbDirName); + FSPaths fsp2 = lookupListBucketingPaths(lbDirName, conf.getStaticSpec()); } else { createBucketFiles(fsp); } @@ -656,7 +667,7 @@ public void processOp(Object row, int tag) throws HiveException { recordValue = serializer.serialize(row, subSetOI); } else { if (lbDirName != null) { - fpaths = lookupListBucketingPaths(lbDirName); + fpaths = lookupListBucketingPaths(lbDirName, conf.getStaticSpec()); } else { fpaths = fsp; } @@ -767,10 +778,11 @@ private int findWriterOffset(Object row) throws HiveException { * @return * @throws HiveException */ - protected FSPaths lookupListBucketingPaths(String lbDirName) throws HiveException { + protected FSPaths lookupListBucketingPaths(String lbDirName, String partSpec) + throws HiveException { FSPaths fsp2 = valToPaths.get(lbDirName); if (fsp2 == null) { - fsp2 = createNewPaths(lbDirName); + fsp2 = createNewPaths(lbDirName, partSpec); } return fsp2; } @@ -782,7 +794,7 @@ protected FSPaths lookupListBucketingPaths(String lbDirName) throws HiveExceptio * @return * @throws HiveException */ - private FSPaths createNewPaths(String dirName) throws HiveException { + private FSPaths createNewPaths(String dirName, String partSpec) throws HiveException { FSPaths fsp2 = new FSPaths(specPath); if (childSpecPathDynLinkedPartitions != null) { fsp2.tmpPath = new Path(fsp2.tmpPath, @@ -795,7 +807,9 @@ private FSPaths createNewPaths(String dirName) throws HiveException { fsp2.taskOutputTempPath = new Path(fsp2.taskOutputTempPath, dirName); } - if(!conf.getDpSortState().equals(DPSortState.PARTITION_BUCKET_SORTED)) { + fsp2.partName = partSpec; + + if (conf.getDpSortState() != DPSortState.PARTITION_BUCKET_SORTED) { createBucketFiles(fsp2); valToPaths.put(dirName, fsp2); } @@ -903,7 +917,9 @@ protected FSPaths getDynOutPaths(List row, String lbDirName) throws Hive prevFsp = null; } - fsp2 = createNewPaths(dpDir); + String staticSpec = conf.getStaticSpec(); + String dynamicSpec = Utilities.makePartName(partKeys, dpColNames, row); + fsp2 = createNewPaths(dpDir, staticSpec == null ? dynamicSpec : staticSpec + dynamicSpec); if (prevFsp == null) { prevFsp = fsp2; } diff --git ql/src/java/org/apache/hadoop/hive/ql/exec/Utilities.java ql/src/java/org/apache/hadoop/hive/ql/exec/Utilities.java index ed03bb9..0293282 100644 --- ql/src/java/org/apache/hadoop/hive/ql/exec/Utilities.java +++ ql/src/java/org/apache/hadoop/hive/ql/exec/Utilities.java @@ -94,6 +94,7 @@ import org.apache.hadoop.fs.Path; import org.apache.hadoop.fs.PathFilter; import org.apache.hadoop.fs.permission.FsPermission; +import org.apache.hadoop.hive.common.FileUtils; import org.apache.hadoop.hive.common.HiveInterruptCallback; import org.apache.hadoop.hive.common.HiveInterruptUtils; import org.apache.hadoop.hive.common.HiveStatsUtils; @@ -2383,6 +2384,46 @@ public static void copyTablePropertiesToConf(TableDesc tbl, JobConf job) { } } + // copied from Warehouse for using in runtime + public static String makePartName(Map partSpec) { + StringBuilder builder = new StringBuilder(); + for (Map.Entry entry : partSpec.entrySet()) { + builder.append(FileUtils.escapePathName(entry.getKey())); + builder.append('='); + builder.append(FileUtils.escapePathName(entry.getValue())); + builder.append(Path.SEPARATOR); + } + return builder.toString(); + } + + public static String makePartName(String[] partKeys, List dpCols, List partVals) { + int needs = dpCols == null || dpCols.isEmpty() ? partKeys.length : dpCols.size(); + StringBuilder builder = new StringBuilder(); + int offset = partVals.size() - needs; + for (int i = 0; i < needs; i++) { + builder.append(FileUtils.escapePathName(partKeys[i])); + builder.append('='); + builder.append(FileUtils.escapePathName(partVals.get(offset + i))); + builder.append(Path.SEPARATOR); + } + return builder.toString(); + } + + // copied from Warehouse for using in runtime + public static LinkedHashMap makeSpecFromName(String name) { + LinkedHashMap partSpec = new LinkedHashMap(); + for (String entry : name.split(Path.SEPARATOR)) { + if (entry.isEmpty()) { + continue; + } + int index = entry.indexOf('='); + String k = FileUtils.unescapePathName(entry.substring(0, index)); + String v = FileUtils.unescapePathName(entry.substring(index + 1)); + partSpec.put(k, v); + } + return partSpec; + } + private static final Object INPUT_SUMMARY_LOCK = new Object(); /** diff --git ql/src/java/org/apache/hadoop/hive/ql/io/HivePassThroughOutputFormat.java ql/src/java/org/apache/hadoop/hive/ql/io/HivePassThroughOutputFormat.java index 5855288..fd933d5 100644 --- ql/src/java/org/apache/hadoop/hive/ql/io/HivePassThroughOutputFormat.java +++ ql/src/java/org/apache/hadoop/hive/ql/io/HivePassThroughOutputFormat.java @@ -65,4 +65,9 @@ public void checkOutputSpecs(FileSystem ignored, JobConf job) throws IOException RecordWriter recordWriter = actualOutputFormat.getRecordWriter(fs, jc, null, progress); return new HivePassThroughRecordWriter(recordWriter); } + + @Override + public String toString() { + return "HivePassThroughOutputFormat [" + actualOutputFormat + "]"; + } } diff --git ql/src/java/org/apache/hadoop/hive/ql/metadata/DefaultStorageHandler.java ql/src/java/org/apache/hadoop/hive/ql/metadata/DefaultStorageHandler.java index e183bf3..24b25a6 100644 --- ql/src/java/org/apache/hadoop/hive/ql/metadata/DefaultStorageHandler.java +++ ql/src/java/org/apache/hadoop/hive/ql/metadata/DefaultStorageHandler.java @@ -22,6 +22,8 @@ import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.hive.metastore.HiveMetaHook; +import org.apache.hadoop.hive.metastore.api.MetaException; +import org.apache.hadoop.hive.ql.plan.AlterTableDesc; import org.apache.hadoop.hive.ql.plan.TableDesc; import org.apache.hadoop.hive.serde2.SerDe; import org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe; @@ -44,6 +46,12 @@ private Configuration conf; @Override + public boolean supports(org.apache.hadoop.hive.ql.metadata.Table tbl, + AlterTableDesc.AlterTableTypes alter) { + return false; + } + + @Override public Class getInputFormatClass() { return SequenceFileInputFormat.class; } @@ -105,4 +113,22 @@ public void setConf(Configuration conf) { public String toString() { return this.getClass().getName(); } + + // optional implementation for partition + public void preCreatePartition(org.apache.hadoop.hive.metastore.api.Table table, + org.apache.hadoop.hive.metastore.api.Partition partition) throws MetaException { + } + + public void rollbackCreatePartition(org.apache.hadoop.hive.metastore.api.Table table, + org.apache.hadoop.hive.metastore.api.Partition partition) throws MetaException { + } + + public void commitCreatePartition(org.apache.hadoop.hive.metastore.api.Table table, + org.apache.hadoop.hive.metastore.api.Partition partition) throws MetaException { + } + + public void commitDropPartition(org.apache.hadoop.hive.metastore.api.Table table, + org.apache.hadoop.hive.metastore.api.Partition partition, boolean deleteData) + throws MetaException { + } } diff --git ql/src/java/org/apache/hadoop/hive/ql/metadata/HiveStorageHandler.java ql/src/java/org/apache/hadoop/hive/ql/metadata/HiveStorageHandler.java index 1eec32c..72ffa32 100644 --- ql/src/java/org/apache/hadoop/hive/ql/metadata/HiveStorageHandler.java +++ ql/src/java/org/apache/hadoop/hive/ql/metadata/HiveStorageHandler.java @@ -22,6 +22,7 @@ import org.apache.hadoop.conf.Configurable; import org.apache.hadoop.hive.metastore.HiveMetaHook; +import org.apache.hadoop.hive.ql.plan.AlterTableDesc; import org.apache.hadoop.hive.ql.plan.TableDesc; import org.apache.hadoop.hive.serde2.SerDe; import org.apache.hadoop.hive.ql.security.authorization.HiveAuthorizationProvider; @@ -48,6 +49,12 @@ * clause in CREATE TABLE. */ public interface HiveStorageHandler extends Configurable { + + /** + * Returns whether current storage handler supports DDL command + */ + public boolean supports(Table tbl, AlterTableDesc.AlterTableTypes alter); + /** * @return Class providing an implementation of {@link InputFormat} */ diff --git ql/src/java/org/apache/hadoop/hive/ql/metadata/SessionHiveMetaStoreClient.java ql/src/java/org/apache/hadoop/hive/ql/metadata/SessionHiveMetaStoreClient.java index ce5b284..ac8e1d9 100644 --- ql/src/java/org/apache/hadoop/hive/ql/metadata/SessionHiveMetaStoreClient.java +++ ql/src/java/org/apache/hadoop/hive/ql/metadata/SessionHiveMetaStoreClient.java @@ -31,34 +31,13 @@ import java.util.regex.Pattern; import org.apache.hadoop.fs.Path; -import org.apache.hadoop.fs.FileSystem; -import org.apache.hadoop.hive.common.FileUtils; import org.apache.hadoop.hive.conf.HiveConf; -import org.apache.hadoop.fs.FileSystem; -import org.apache.hadoop.hive.common.FileUtils; -import org.apache.hadoop.hive.conf.HiveConf; -import org.apache.hadoop.hive.metastore.HiveMetaHook; import org.apache.hadoop.hive.metastore.HiveMetaHookLoader; import org.apache.hadoop.hive.metastore.HiveMetaStoreClient; import org.apache.hadoop.hive.metastore.IMetaStoreClient; import org.apache.hadoop.hive.metastore.MetaStoreUtils; import org.apache.hadoop.hive.metastore.Warehouse; -import org.apache.hadoop.hive.metastore.api.AlreadyExistsException; -import org.apache.hadoop.hive.metastore.api.ColumnStatistics; -import org.apache.hadoop.hive.metastore.api.ColumnStatisticsObj; -import org.apache.hadoop.hive.metastore.api.EnvironmentContext; -import org.apache.hadoop.hive.metastore.api.FieldSchema; -import org.apache.hadoop.hive.metastore.api.HiveObjectRef; -import org.apache.hadoop.hive.metastore.api.HiveObjectType; -import org.apache.hadoop.hive.metastore.api.InvalidInputException; -import org.apache.hadoop.hive.metastore.api.InvalidObjectException; -import org.apache.hadoop.hive.metastore.api.InvalidOperationException; -import org.apache.hadoop.hive.metastore.api.MetaException; -import org.apache.hadoop.hive.metastore.api.NoSuchObjectException; -import org.apache.hadoop.hive.metastore.api.PartitionsStatsRequest; -import org.apache.hadoop.hive.metastore.api.PrincipalPrivilegeSet; -import org.apache.hadoop.hive.metastore.api.TableStatsRequest; -import org.apache.hadoop.hive.metastore.api.UnknownDBException; +import org.apache.hadoop.hive.metastore.api.*; import org.apache.hadoop.hive.ql.session.SessionState; import org.apache.hadoop.hive.ql.stats.StatsUtils; import org.apache.thrift.TException; @@ -97,7 +76,8 @@ protected void create_table_with_environment_context( } @Override - protected void drop_table_with_environment_context(String dbname, String name, + protected List + drop_table_with_environment_context(String dbname, String name, boolean deleteData, EnvironmentContext envContext) throws MetaException, TException, NoSuchObjectException, UnsupportedOperationException { // First try temp table @@ -110,11 +90,11 @@ protected void drop_table_with_environment_context(String dbname, String name, LOG.info(err); } dropTempTable(table, deleteData, envContext); - return; + return Collections.emptyList(); } // Try underlying client - super.drop_table_with_environment_context(dbname, name, deleteData, envContext); + return super.drop_table_with_environment_context(dbname, name, deleteData, envContext); } @Override diff --git ql/src/java/org/apache/hadoop/hive/ql/optimizer/GenMapRedUtils.java ql/src/java/org/apache/hadoop/hive/ql/optimizer/GenMapRedUtils.java index 9a74e1e..030b7c1 100644 --- ql/src/java/org/apache/hadoop/hive/ql/optimizer/GenMapRedUtils.java +++ ql/src/java/org/apache/hadoop/hive/ql/optimizer/GenMapRedUtils.java @@ -1224,7 +1224,7 @@ public static void createMRWorkForMergingFiles (FileSinkOperator fsInput, GenMapRedUtils.createTemporaryTableScanOperator(inputRS); // Create a FileSink operator - TableDesc ts = (TableDesc) fsInputDesc.getTableInfo().clone(); + TableDesc ts = fsInputDesc.getTableInfo().clone(); FileSinkDesc fsOutputDesc = new FileSinkDesc(finalName, ts, conf.getBoolVar(ConfVars.COMPRESSRESULT)); FileSinkOperator fsOutput = (FileSinkOperator) OperatorFactory.getAndMakeChild( diff --git ql/src/java/org/apache/hadoop/hive/ql/optimizer/physical/GenMRSkewJoinProcessor.java ql/src/java/org/apache/hadoop/hive/ql/optimizer/physical/GenMRSkewJoinProcessor.java index 15f0d70..9b9e636 100644 --- ql/src/java/org/apache/hadoop/hive/ql/optimizer/physical/GenMRSkewJoinProcessor.java +++ ql/src/java/org/apache/hadoop/hive/ql/optimizer/physical/GenMRSkewJoinProcessor.java @@ -159,7 +159,7 @@ public static void processSkewJoin(JoinOperator joinOp, List> listTasks = new ArrayList>(); MapredWork currPlan = (MapredWork) currTask.getWork(); - TableDesc keyTblDesc = (TableDesc) currPlan.getReduceWork().getKeyDesc().clone(); + TableDesc keyTblDesc = currPlan.getReduceWork().getKeyDesc().clone(); List joinKeys = Utilities .getColumnNames(keyTblDesc.getProperties()); List joinKeyTypes = Utilities.getColumnTypes(keyTblDesc diff --git ql/src/java/org/apache/hadoop/hive/ql/parse/DDLSemanticAnalyzer.java ql/src/java/org/apache/hadoop/hive/ql/parse/DDLSemanticAnalyzer.java index 2b23559..de1e336 100644 --- ql/src/java/org/apache/hadoop/hive/ql/parse/DDLSemanticAnalyzer.java +++ ql/src/java/org/apache/hadoop/hive/ql/parse/DDLSemanticAnalyzer.java @@ -80,6 +80,7 @@ import org.apache.hadoop.hive.ql.lockmgr.TxnManagerFactory; import org.apache.hadoop.hive.ql.metadata.Hive; import org.apache.hadoop.hive.ql.metadata.HiveException; +import org.apache.hadoop.hive.ql.metadata.HiveStorageHandler; import org.apache.hadoop.hive.ql.metadata.HiveUtils; import org.apache.hadoop.hive.ql.metadata.InvalidTableException; import org.apache.hadoop.hive.ql.metadata.Partition; @@ -1281,7 +1282,11 @@ private void validateAlterTableType(Table tbl, AlterTableTypes op, boolean expec } } if (tbl.isNonNative()) { - throw new SemanticException(ErrorMsg.ALTER_TABLE_NON_NATIVE.getMsg(tbl.getTableName())); + HiveStorageHandler handler = tbl.getStorageHandler(); + if (handler == null || !handler.supports(tbl, op)) { + throw new SemanticException( + ErrorMsg.ALTER_TABLE_NON_NATIVE.format(op.name(), tbl.getTableName())); + } } } diff --git ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java index c2d5c8c..bf3c1c6 100644 --- ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java +++ ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java @@ -5934,6 +5934,10 @@ private Operator genFileSinkPlan(String dest, QB qb, Operator input) qb.getParseInfo().getDestForClause(dest), ErrorMsg.NEED_PARTITION_ERROR.getMsg())); } + if (dest_tab.isNonNative()) { + throw new SemanticException( + ErrorMsg.DYNAMIC_PARTITION_ON_NONNATIVE_TABLE.format(dest_tab.getTableName())); + } // the HOLD_DDLTIIME hint should not be used with dynamic partition since the // newly generated partitions should always update their DDLTIME if (holdDDLTime) { diff --git ql/src/java/org/apache/hadoop/hive/ql/plan/JoinDesc.java ql/src/java/org/apache/hadoop/hive/ql/plan/JoinDesc.java index c144d8c..7b42e65 100644 --- ql/src/java/org/apache/hadoop/hive/ql/plan/JoinDesc.java +++ ql/src/java/org/apache/hadoop/hive/ql/plan/JoinDesc.java @@ -128,7 +128,7 @@ public Object clone() { ret.setSkewKeyDefinition(getSkewKeyDefinition()); ret.setTagOrder(getTagOrder().clone()); if (getKeyTableDesc() != null) { - ret.setKeyTableDesc((TableDesc) getKeyTableDesc().clone()); + ret.setKeyTableDesc(getKeyTableDesc().clone()); } if (getBigKeysDirMap() != null) { diff --git ql/src/java/org/apache/hadoop/hive/ql/plan/PartitionDesc.java ql/src/java/org/apache/hadoop/hive/ql/plan/PartitionDesc.java index 503117d..783a45f 100644 --- ql/src/java/org/apache/hadoop/hive/ql/plan/PartitionDesc.java +++ ql/src/java/org/apache/hadoop/hive/ql/plan/PartitionDesc.java @@ -74,7 +74,7 @@ public PartitionDesc() { } public PartitionDesc(final TableDesc table, final LinkedHashMap partSpec) { - this.tableDesc = table; + this.tableDesc = table.clone(); this.partSpec = partSpec; } @@ -87,7 +87,7 @@ public PartitionDesc(final Partition part) throws HiveException { } public PartitionDesc(final Partition part,final TableDesc tblDesc) throws HiveException { - this.tableDesc = tblDesc; + this.tableDesc = tblDesc.clone(); setProperties(part.getSchemaFromTableSchema(tblDesc.getProperties())); // each partition maintains a large properties partSpec = part.getSpec(); setOutputFileFormatClass(part.getInputFormatClass()); @@ -240,7 +240,7 @@ public PartitionDesc clone() { } ret.setProperties(newProp); } - ret.tableDesc = (TableDesc) tableDesc.clone(); + ret.tableDesc = tableDesc.clone(); // The partition spec is not present if (partSpec != null) { ret.partSpec = new java.util.LinkedHashMap(); diff --git ql/src/java/org/apache/hadoop/hive/ql/plan/ReduceSinkDesc.java ql/src/java/org/apache/hadoop/hive/ql/plan/ReduceSinkDesc.java index 57beb69..c629640 100644 --- ql/src/java/org/apache/hadoop/hive/ql/plan/ReduceSinkDesc.java +++ ql/src/java/org/apache/hadoop/hive/ql/plan/ReduceSinkDesc.java @@ -158,8 +158,8 @@ public Object clone() { desc.setTag(getTag()); desc.setNumReducers(getNumReducers()); desc.setPartitionCols((ArrayList) getPartitionCols().clone()); - desc.setKeySerializeInfo((TableDesc) getKeySerializeInfo().clone()); - desc.setValueSerializeInfo((TableDesc) getValueSerializeInfo().clone()); + desc.setKeySerializeInfo(getKeySerializeInfo().clone()); + desc.setValueSerializeInfo(getValueSerializeInfo().clone()); desc.setNumBuckets(numBuckets); desc.setBucketCols(bucketCols); desc.setStatistics(this.getStatistics()); diff --git ql/src/java/org/apache/hadoop/hive/ql/plan/TableDesc.java ql/src/java/org/apache/hadoop/hive/ql/plan/TableDesc.java index 0e34aee..4901b8e 100644 --- ql/src/java/org/apache/hadoop/hive/ql/plan/TableDesc.java +++ ql/src/java/org/apache/hadoop/hive/ql/plan/TableDesc.java @@ -149,6 +149,11 @@ public String getTableName() { .getProperty(hive_metastoreConstants.META_TABLE_NAME); } + public String getPartitionColumns() { + return properties + .getProperty(hive_metastoreConstants.META_TABLE_PARTITION_COLUMNS); + } + @Explain(displayName = "input format") public String getInputFileFormatClassName() { return getInputFileFormatClass().getName(); @@ -164,7 +169,7 @@ public boolean isNonNative() { } @Override - public Object clone() { + public TableDesc clone() { TableDesc ret = new TableDesc(); ret.setInputFileFormatClass(inputFileFormatClass); ret.setOutputFileFormatClass(outputFileFormatClass); diff --git ql/src/test/results/clientnegative/alter_non_native.q.out ql/src/test/results/clientnegative/alter_non_native.q.out index 64c4cee..576514c 100644 --- ql/src/test/results/clientnegative/alter_non_native.q.out +++ ql/src/test/results/clientnegative/alter_non_native.q.out @@ -8,4 +8,4 @@ STORED BY 'org.apache.hadoop.hive.ql.metadata.DefaultStorageHandler' POSTHOOK: type: CREATETABLE POSTHOOK: Output: database:default POSTHOOK: Output: default@non_native1 -FAILED: SemanticException [Error 10134]: ALTER TABLE cannot be used for a non-native table non_native1 +FAILED: SemanticException [Error 10134]: ALTER TABLE RENAME cannot be used for a non-native table non_native1