diff --git hcatalog/core/src/main/java/org/apache/hive/hcatalog/cli/SemanticAnalysis/HCatSemanticAnalyzer.java hcatalog/core/src/main/java/org/apache/hive/hcatalog/cli/SemanticAnalysis/HCatSemanticAnalyzer.java index 6c54c05..76b3882 100644 --- hcatalog/core/src/main/java/org/apache/hive/hcatalog/cli/SemanticAnalysis/HCatSemanticAnalyzer.java +++ hcatalog/core/src/main/java/org/apache/hive/hcatalog/cli/SemanticAnalysis/HCatSemanticAnalyzer.java @@ -19,7 +19,9 @@ package org.apache.hive.hcatalog.cli.SemanticAnalysis; import java.io.Serializable; +import java.util.ArrayList; import java.util.List; +import java.util.Map; import org.apache.hadoop.hive.metastore.api.Database; import org.apache.hadoop.hive.ql.exec.Task; @@ -335,24 +337,31 @@ protected void authorizeDDLWork(HiveSemanticAnalyzerHookContext cntxt, Hive hive DropTableDesc dropTable = work.getDropTblDesc(); if (dropTable != null) { - if (dropTable.getPartSpecs() == null) { - // drop table is already enforced by Hive. We only check for table level location even if the - // table is partitioned. - } else { - //this is actually a ALTER TABLE DROP PARITITION statement + String tableName = dropTable.getTableName(); + List partitions = new ArrayList(); + if (dropTable.getSimpleSpecs() != null) { + Table table = hive.getTable(SessionState.get().getCurrentDatabase(), tableName); + for (Map spec : dropTable.getSimpleSpecs()) { + partitions.addAll(hive.getPartitions(table, spec)); + } + } else if (dropTable.getPartSpecs() != null) { + //this is actually a ALTER TABLE DROP PARTITION statement + Table table = hive.getTable(SessionState.get().getCurrentDatabase(), tableName); for (DropTableDesc.PartSpec partSpec : dropTable.getPartSpecs()) { // partitions are not added as write entries in drop partitions in Hive - Table table = hive.getTable(SessionState.get().getCurrentDatabase(), dropTable.getTableName()); - List partitions = null; try { - partitions = hive.getPartitionsByFilter(table, partSpec.getPartSpec().getExprString()); + String filter = partSpec.getPartSpec().getExprString(); + partitions.addAll(hive.getPartitionsByFilter(table, filter)); } catch (Exception e) { throw new HiveException(e); } - for (Partition part : partitions) { - authorize(part, Privilege.DROP); - } } + } else { + // drop table is already enforced by Hive. We only check for table level location even if the + // table is partitioned. + } + for (Partition part : partitions) { + authorize(part, Privilege.DROP); } } diff --git metastore/if/hive_metastore.thrift metastore/if/hive_metastore.thrift index 5567bef..b4d8c5a 100755 --- metastore/if/hive_metastore.thrift +++ metastore/if/hive_metastore.thrift @@ -805,10 +805,10 @@ service ThriftHiveMetastore extends fb303.FacebookService Partition append_partition_by_name_with_environment_context(1:string db_name, 2:string tbl_name, 3:string part_name, 4:EnvironmentContext environment_context) throws (1:InvalidObjectException o1, 2:AlreadyExistsException o2, 3:MetaException o3) - bool drop_partition(1:string db_name, 2:string tbl_name, 3:list part_vals, 4:bool deleteData) + list drop_partitions(1:string db_name, 2:string tbl_name, 3:list part_vals, 4:bool deleteData) throws(1:NoSuchObjectException o1, 2:MetaException o2) - bool drop_partition_with_environment_context(1:string db_name, 2:string tbl_name, - 3:list part_vals, 4:bool deleteData, 5:EnvironmentContext environment_context) + list drop_partitions_with_environment_context(1:string db_name, 2:string tbl_name, + 3:list part_vals, 4:bool deleteData, 5:EnvironmentContext environment_context) throws(1:NoSuchObjectException o1, 2:MetaException o2) bool drop_partition_by_name(1:string db_name, 2:string tbl_name, 3:string part_name, 4:bool deleteData) throws(1:NoSuchObjectException o1, 2:MetaException o2) diff --git metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp index 5517b1a..7b724fe 100644 --- metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp +++ metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp @@ -7628,7 +7628,7 @@ uint32_t ThriftHiveMetastore_append_partition_by_name_with_environment_context_p return xfer; } -uint32_t ThriftHiveMetastore_drop_partition_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_drop_partitions_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -7704,9 +7704,9 @@ uint32_t ThriftHiveMetastore_drop_partition_args::read(::apache::thrift::protoco return xfer; } -uint32_t ThriftHiveMetastore_drop_partition_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_drop_partitions_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_partition_args"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_partitions_args"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); xfer += oprot->writeString(this->db_name); @@ -7737,9 +7737,9 @@ uint32_t ThriftHiveMetastore_drop_partition_args::write(::apache::thrift::protoc return xfer; } -uint32_t ThriftHiveMetastore_drop_partition_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_drop_partitions_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_partition_pargs"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_partitions_pargs"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); xfer += oprot->writeString((*(this->db_name))); @@ -7770,7 +7770,7 @@ uint32_t ThriftHiveMetastore_drop_partition_pargs::write(::apache::thrift::proto return xfer; } -uint32_t ThriftHiveMetastore_drop_partition_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_drop_partitions_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -7791,8 +7791,20 @@ uint32_t ThriftHiveMetastore_drop_partition_result::read(::apache::thrift::proto switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->success); + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->success.clear(); + uint32_t _size513; + ::apache::thrift::protocol::TType _etype516; + xfer += iprot->readListBegin(_etype516, _size513); + this->success.resize(_size513); + uint32_t _i517; + for (_i517 = 0; _i517 < _size513; ++_i517) + { + xfer += this->success[_i517].read(iprot); + } + xfer += iprot->readListEnd(); + } this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -7826,15 +7838,23 @@ uint32_t ThriftHiveMetastore_drop_partition_result::read(::apache::thrift::proto return xfer; } -uint32_t ThriftHiveMetastore_drop_partition_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_drop_partitions_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_partition_result"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_partitions_result"); if (this->__isset.success) { - xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_BOOL, 0); - xfer += oprot->writeBool(this->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 _iter518; + for (_iter518 = this->success.begin(); _iter518 != this->success.end(); ++_iter518) + { + xfer += (*_iter518).write(oprot); + } + xfer += oprot->writeListEnd(); + } xfer += oprot->writeFieldEnd(); } else if (this->__isset.o1) { xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1); @@ -7850,7 +7870,7 @@ uint32_t ThriftHiveMetastore_drop_partition_result::write(::apache::thrift::prot return xfer; } -uint32_t ThriftHiveMetastore_drop_partition_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_drop_partitions_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -7871,8 +7891,20 @@ uint32_t ThriftHiveMetastore_drop_partition_presult::read(::apache::thrift::prot switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool((*(this->success))); + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + (*(this->success)).clear(); + uint32_t _size519; + ::apache::thrift::protocol::TType _etype522; + xfer += iprot->readListBegin(_etype522, _size519); + (*(this->success)).resize(_size519); + uint32_t _i523; + for (_i523 = 0; _i523 < _size519; ++_i523) + { + xfer += (*(this->success))[_i523].read(iprot); + } + xfer += iprot->readListEnd(); + } this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -7906,7 +7938,7 @@ uint32_t ThriftHiveMetastore_drop_partition_presult::read(::apache::thrift::prot return xfer; } -uint32_t ThriftHiveMetastore_drop_partition_with_environment_context_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_drop_partitions_with_environment_context_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -7946,14 +7978,14 @@ uint32_t ThriftHiveMetastore_drop_partition_with_environment_context_args::read( if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size513; - ::apache::thrift::protocol::TType _etype516; - xfer += iprot->readListBegin(_etype516, _size513); - this->part_vals.resize(_size513); - uint32_t _i517; - for (_i517 = 0; _i517 < _size513; ++_i517) + uint32_t _size524; + ::apache::thrift::protocol::TType _etype527; + xfer += iprot->readListBegin(_etype527, _size524); + this->part_vals.resize(_size524); + uint32_t _i528; + for (_i528 = 0; _i528 < _size524; ++_i528) { - xfer += iprot->readString(this->part_vals[_i517]); + xfer += iprot->readString(this->part_vals[_i528]); } xfer += iprot->readListEnd(); } @@ -7990,9 +8022,9 @@ uint32_t ThriftHiveMetastore_drop_partition_with_environment_context_args::read( return xfer; } -uint32_t ThriftHiveMetastore_drop_partition_with_environment_context_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_drop_partitions_with_environment_context_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_partition_with_environment_context_args"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_partitions_with_environment_context_args"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); xfer += oprot->writeString(this->db_name); @@ -8005,10 +8037,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 _iter518; - for (_iter518 = this->part_vals.begin(); _iter518 != this->part_vals.end(); ++_iter518) + std::vector ::const_iterator _iter529; + for (_iter529 = this->part_vals.begin(); _iter529 != this->part_vals.end(); ++_iter529) { - xfer += oprot->writeString((*_iter518)); + xfer += oprot->writeString((*_iter529)); } xfer += oprot->writeListEnd(); } @@ -8027,9 +8059,9 @@ uint32_t ThriftHiveMetastore_drop_partition_with_environment_context_args::write return xfer; } -uint32_t ThriftHiveMetastore_drop_partition_with_environment_context_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_drop_partitions_with_environment_context_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_partition_with_environment_context_pargs"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_partitions_with_environment_context_pargs"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); xfer += oprot->writeString((*(this->db_name))); @@ -8042,10 +8074,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 _iter519; - for (_iter519 = (*(this->part_vals)).begin(); _iter519 != (*(this->part_vals)).end(); ++_iter519) + std::vector ::const_iterator _iter530; + for (_iter530 = (*(this->part_vals)).begin(); _iter530 != (*(this->part_vals)).end(); ++_iter530) { - xfer += oprot->writeString((*_iter519)); + xfer += oprot->writeString((*_iter530)); } xfer += oprot->writeListEnd(); } @@ -8064,7 +8096,7 @@ uint32_t ThriftHiveMetastore_drop_partition_with_environment_context_pargs::writ return xfer; } -uint32_t ThriftHiveMetastore_drop_partition_with_environment_context_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_drop_partitions_with_environment_context_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -8085,8 +8117,20 @@ uint32_t ThriftHiveMetastore_drop_partition_with_environment_context_result::rea switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->success); + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->success.clear(); + uint32_t _size531; + ::apache::thrift::protocol::TType _etype534; + xfer += iprot->readListBegin(_etype534, _size531); + this->success.resize(_size531); + uint32_t _i535; + for (_i535 = 0; _i535 < _size531; ++_i535) + { + xfer += this->success[_i535].read(iprot); + } + xfer += iprot->readListEnd(); + } this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -8120,15 +8164,23 @@ uint32_t ThriftHiveMetastore_drop_partition_with_environment_context_result::rea return xfer; } -uint32_t ThriftHiveMetastore_drop_partition_with_environment_context_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_drop_partitions_with_environment_context_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_partition_with_environment_context_result"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_partitions_with_environment_context_result"); if (this->__isset.success) { - xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_BOOL, 0); - xfer += oprot->writeBool(this->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 _iter536; + for (_iter536 = this->success.begin(); _iter536 != this->success.end(); ++_iter536) + { + xfer += (*_iter536).write(oprot); + } + xfer += oprot->writeListEnd(); + } xfer += oprot->writeFieldEnd(); } else if (this->__isset.o1) { xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1); @@ -8144,7 +8196,7 @@ uint32_t ThriftHiveMetastore_drop_partition_with_environment_context_result::wri return xfer; } -uint32_t ThriftHiveMetastore_drop_partition_with_environment_context_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_drop_partitions_with_environment_context_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -8165,8 +8217,20 @@ uint32_t ThriftHiveMetastore_drop_partition_with_environment_context_presult::re switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool((*(this->success))); + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + (*(this->success)).clear(); + uint32_t _size537; + ::apache::thrift::protocol::TType _etype540; + xfer += iprot->readListBegin(_etype540, _size537); + (*(this->success)).resize(_size537); + uint32_t _i541; + for (_i541 = 0; _i541 < _size537; ++_i541) + { + xfer += (*(this->success))[_i541].read(iprot); + } + xfer += iprot->readListEnd(); + } this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -8958,14 +9022,14 @@ uint32_t ThriftHiveMetastore_get_partition_args::read(::apache::thrift::protocol if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size520; - ::apache::thrift::protocol::TType _etype523; - xfer += iprot->readListBegin(_etype523, _size520); - this->part_vals.resize(_size520); - uint32_t _i524; - for (_i524 = 0; _i524 < _size520; ++_i524) + uint32_t _size542; + ::apache::thrift::protocol::TType _etype545; + xfer += iprot->readListBegin(_etype545, _size542); + this->part_vals.resize(_size542); + uint32_t _i546; + for (_i546 = 0; _i546 < _size542; ++_i546) { - xfer += iprot->readString(this->part_vals[_i524]); + xfer += iprot->readString(this->part_vals[_i546]); } xfer += iprot->readListEnd(); } @@ -9001,10 +9065,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 _iter525; - for (_iter525 = this->part_vals.begin(); _iter525 != this->part_vals.end(); ++_iter525) + std::vector ::const_iterator _iter547; + for (_iter547 = this->part_vals.begin(); _iter547 != this->part_vals.end(); ++_iter547) { - xfer += oprot->writeString((*_iter525)); + xfer += oprot->writeString((*_iter547)); } xfer += oprot->writeListEnd(); } @@ -9030,10 +9094,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 _iter526; - for (_iter526 = (*(this->part_vals)).begin(); _iter526 != (*(this->part_vals)).end(); ++_iter526) + std::vector ::const_iterator _iter548; + for (_iter548 = (*(this->part_vals)).begin(); _iter548 != (*(this->part_vals)).end(); ++_iter548) { - xfer += oprot->writeString((*_iter526)); + xfer += oprot->writeString((*_iter548)); } xfer += oprot->writeListEnd(); } @@ -9204,17 +9268,17 @@ uint32_t ThriftHiveMetastore_exchange_partition_args::read(::apache::thrift::pro if (ftype == ::apache::thrift::protocol::T_MAP) { { this->partitionSpecs.clear(); - uint32_t _size527; - ::apache::thrift::protocol::TType _ktype528; - ::apache::thrift::protocol::TType _vtype529; - xfer += iprot->readMapBegin(_ktype528, _vtype529, _size527); - uint32_t _i531; - for (_i531 = 0; _i531 < _size527; ++_i531) + uint32_t _size549; + ::apache::thrift::protocol::TType _ktype550; + ::apache::thrift::protocol::TType _vtype551; + xfer += iprot->readMapBegin(_ktype550, _vtype551, _size549); + uint32_t _i553; + for (_i553 = 0; _i553 < _size549; ++_i553) { - std::string _key532; - xfer += iprot->readString(_key532); - std::string& _val533 = this->partitionSpecs[_key532]; - xfer += iprot->readString(_val533); + std::string _key554; + xfer += iprot->readString(_key554); + std::string& _val555 = this->partitionSpecs[_key554]; + xfer += iprot->readString(_val555); } xfer += iprot->readMapEnd(); } @@ -9274,11 +9338,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 _iter534; - for (_iter534 = this->partitionSpecs.begin(); _iter534 != this->partitionSpecs.end(); ++_iter534) + std::map ::const_iterator _iter556; + for (_iter556 = this->partitionSpecs.begin(); _iter556 != this->partitionSpecs.end(); ++_iter556) { - xfer += oprot->writeString(_iter534->first); - xfer += oprot->writeString(_iter534->second); + xfer += oprot->writeString(_iter556->first); + xfer += oprot->writeString(_iter556->second); } xfer += oprot->writeMapEnd(); } @@ -9312,11 +9376,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 _iter535; - for (_iter535 = (*(this->partitionSpecs)).begin(); _iter535 != (*(this->partitionSpecs)).end(); ++_iter535) + std::map ::const_iterator _iter557; + for (_iter557 = (*(this->partitionSpecs)).begin(); _iter557 != (*(this->partitionSpecs)).end(); ++_iter557) { - xfer += oprot->writeString(_iter535->first); - xfer += oprot->writeString(_iter535->second); + xfer += oprot->writeString(_iter557->first); + xfer += oprot->writeString(_iter557->second); } xfer += oprot->writeMapEnd(); } @@ -9559,14 +9623,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 _size536; - ::apache::thrift::protocol::TType _etype539; - xfer += iprot->readListBegin(_etype539, _size536); - this->part_vals.resize(_size536); - uint32_t _i540; - for (_i540 = 0; _i540 < _size536; ++_i540) + uint32_t _size558; + ::apache::thrift::protocol::TType _etype561; + xfer += iprot->readListBegin(_etype561, _size558); + this->part_vals.resize(_size558); + uint32_t _i562; + for (_i562 = 0; _i562 < _size558; ++_i562) { - xfer += iprot->readString(this->part_vals[_i540]); + xfer += iprot->readString(this->part_vals[_i562]); } xfer += iprot->readListEnd(); } @@ -9587,14 +9651,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 _size541; - ::apache::thrift::protocol::TType _etype544; - xfer += iprot->readListBegin(_etype544, _size541); - this->group_names.resize(_size541); - uint32_t _i545; - for (_i545 = 0; _i545 < _size541; ++_i545) + uint32_t _size563; + ::apache::thrift::protocol::TType _etype566; + xfer += iprot->readListBegin(_etype566, _size563); + this->group_names.resize(_size563); + uint32_t _i567; + for (_i567 = 0; _i567 < _size563; ++_i567) { - xfer += iprot->readString(this->group_names[_i545]); + xfer += iprot->readString(this->group_names[_i567]); } xfer += iprot->readListEnd(); } @@ -9630,10 +9694,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 _iter546; - for (_iter546 = this->part_vals.begin(); _iter546 != this->part_vals.end(); ++_iter546) + std::vector ::const_iterator _iter568; + for (_iter568 = this->part_vals.begin(); _iter568 != this->part_vals.end(); ++_iter568) { - xfer += oprot->writeString((*_iter546)); + xfer += oprot->writeString((*_iter568)); } xfer += oprot->writeListEnd(); } @@ -9646,10 +9710,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 _iter547; - for (_iter547 = this->group_names.begin(); _iter547 != this->group_names.end(); ++_iter547) + std::vector ::const_iterator _iter569; + for (_iter569 = this->group_names.begin(); _iter569 != this->group_names.end(); ++_iter569) { - xfer += oprot->writeString((*_iter547)); + xfer += oprot->writeString((*_iter569)); } xfer += oprot->writeListEnd(); } @@ -9675,10 +9739,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 _iter548; - for (_iter548 = (*(this->part_vals)).begin(); _iter548 != (*(this->part_vals)).end(); ++_iter548) + std::vector ::const_iterator _iter570; + for (_iter570 = (*(this->part_vals)).begin(); _iter570 != (*(this->part_vals)).end(); ++_iter570) { - xfer += oprot->writeString((*_iter548)); + xfer += oprot->writeString((*_iter570)); } xfer += oprot->writeListEnd(); } @@ -9691,10 +9755,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 _iter549; - for (_iter549 = (*(this->group_names)).begin(); _iter549 != (*(this->group_names)).end(); ++_iter549) + std::vector ::const_iterator _iter571; + for (_iter571 = (*(this->group_names)).begin(); _iter571 != (*(this->group_names)).end(); ++_iter571) { - xfer += oprot->writeString((*_iter549)); + xfer += oprot->writeString((*_iter571)); } xfer += oprot->writeListEnd(); } @@ -10197,14 +10261,14 @@ uint32_t ThriftHiveMetastore_get_partitions_result::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size550; - ::apache::thrift::protocol::TType _etype553; - xfer += iprot->readListBegin(_etype553, _size550); - this->success.resize(_size550); - uint32_t _i554; - for (_i554 = 0; _i554 < _size550; ++_i554) + uint32_t _size572; + ::apache::thrift::protocol::TType _etype575; + xfer += iprot->readListBegin(_etype575, _size572); + this->success.resize(_size572); + uint32_t _i576; + for (_i576 = 0; _i576 < _size572; ++_i576) { - xfer += this->success[_i554].read(iprot); + xfer += this->success[_i576].read(iprot); } xfer += iprot->readListEnd(); } @@ -10251,10 +10315,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 _iter555; - for (_iter555 = this->success.begin(); _iter555 != this->success.end(); ++_iter555) + std::vector ::const_iterator _iter577; + for (_iter577 = this->success.begin(); _iter577 != this->success.end(); ++_iter577) { - xfer += (*_iter555).write(oprot); + xfer += (*_iter577).write(oprot); } xfer += oprot->writeListEnd(); } @@ -10297,14 +10361,14 @@ uint32_t ThriftHiveMetastore_get_partitions_presult::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size556; - ::apache::thrift::protocol::TType _etype559; - xfer += iprot->readListBegin(_etype559, _size556); - (*(this->success)).resize(_size556); - uint32_t _i560; - for (_i560 = 0; _i560 < _size556; ++_i560) + uint32_t _size578; + ::apache::thrift::protocol::TType _etype581; + xfer += iprot->readListBegin(_etype581, _size578); + (*(this->success)).resize(_size578); + uint32_t _i582; + for (_i582 = 0; _i582 < _size578; ++_i582) { - xfer += (*(this->success))[_i560].read(iprot); + xfer += (*(this->success))[_i582].read(iprot); } xfer += iprot->readListEnd(); } @@ -10397,14 +10461,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 _size561; - ::apache::thrift::protocol::TType _etype564; - xfer += iprot->readListBegin(_etype564, _size561); - this->group_names.resize(_size561); - uint32_t _i565; - for (_i565 = 0; _i565 < _size561; ++_i565) + uint32_t _size583; + ::apache::thrift::protocol::TType _etype586; + xfer += iprot->readListBegin(_etype586, _size583); + this->group_names.resize(_size583); + uint32_t _i587; + for (_i587 = 0; _i587 < _size583; ++_i587) { - xfer += iprot->readString(this->group_names[_i565]); + xfer += iprot->readString(this->group_names[_i587]); } xfer += iprot->readListEnd(); } @@ -10448,10 +10512,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 _iter566; - for (_iter566 = this->group_names.begin(); _iter566 != this->group_names.end(); ++_iter566) + std::vector ::const_iterator _iter588; + for (_iter588 = this->group_names.begin(); _iter588 != this->group_names.end(); ++_iter588) { - xfer += oprot->writeString((*_iter566)); + xfer += oprot->writeString((*_iter588)); } xfer += oprot->writeListEnd(); } @@ -10485,10 +10549,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 _iter567; - for (_iter567 = (*(this->group_names)).begin(); _iter567 != (*(this->group_names)).end(); ++_iter567) + std::vector ::const_iterator _iter589; + for (_iter589 = (*(this->group_names)).begin(); _iter589 != (*(this->group_names)).end(); ++_iter589) { - xfer += oprot->writeString((*_iter567)); + xfer += oprot->writeString((*_iter589)); } xfer += oprot->writeListEnd(); } @@ -10523,14 +10587,14 @@ uint32_t ThriftHiveMetastore_get_partitions_with_auth_result::read(::apache::thr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size568; - ::apache::thrift::protocol::TType _etype571; - xfer += iprot->readListBegin(_etype571, _size568); - this->success.resize(_size568); - uint32_t _i572; - for (_i572 = 0; _i572 < _size568; ++_i572) + uint32_t _size590; + ::apache::thrift::protocol::TType _etype593; + xfer += iprot->readListBegin(_etype593, _size590); + this->success.resize(_size590); + uint32_t _i594; + for (_i594 = 0; _i594 < _size590; ++_i594) { - xfer += this->success[_i572].read(iprot); + xfer += this->success[_i594].read(iprot); } xfer += iprot->readListEnd(); } @@ -10577,10 +10641,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 _iter573; - for (_iter573 = this->success.begin(); _iter573 != this->success.end(); ++_iter573) + std::vector ::const_iterator _iter595; + for (_iter595 = this->success.begin(); _iter595 != this->success.end(); ++_iter595) { - xfer += (*_iter573).write(oprot); + xfer += (*_iter595).write(oprot); } xfer += oprot->writeListEnd(); } @@ -10623,14 +10687,14 @@ uint32_t ThriftHiveMetastore_get_partitions_with_auth_presult::read(::apache::th if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size574; - ::apache::thrift::protocol::TType _etype577; - xfer += iprot->readListBegin(_etype577, _size574); - (*(this->success)).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->success)).resize(_size596); + uint32_t _i600; + for (_i600 = 0; _i600 < _size596; ++_i600) { - xfer += (*(this->success))[_i578].read(iprot); + xfer += (*(this->success))[_i600].read(iprot); } xfer += iprot->readListEnd(); } @@ -10789,14 +10853,14 @@ uint32_t ThriftHiveMetastore_get_partition_names_result::read(::apache::thrift:: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size579; - ::apache::thrift::protocol::TType _etype582; - xfer += iprot->readListBegin(_etype582, _size579); - this->success.resize(_size579); - uint32_t _i583; - for (_i583 = 0; _i583 < _size579; ++_i583) + 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) { - xfer += iprot->readString(this->success[_i583]); + xfer += iprot->readString(this->success[_i605]); } xfer += iprot->readListEnd(); } @@ -10835,10 +10899,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 _iter584; - for (_iter584 = this->success.begin(); _iter584 != this->success.end(); ++_iter584) + std::vector ::const_iterator _iter606; + for (_iter606 = this->success.begin(); _iter606 != this->success.end(); ++_iter606) { - xfer += oprot->writeString((*_iter584)); + xfer += oprot->writeString((*_iter606)); } xfer += oprot->writeListEnd(); } @@ -10877,14 +10941,14 @@ uint32_t ThriftHiveMetastore_get_partition_names_presult::read(::apache::thrift: if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size585; - ::apache::thrift::protocol::TType _etype588; - xfer += iprot->readListBegin(_etype588, _size585); - (*(this->success)).resize(_size585); - uint32_t _i589; - for (_i589 = 0; _i589 < _size585; ++_i589) + 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) { - xfer += iprot->readString((*(this->success))[_i589]); + xfer += iprot->readString((*(this->success))[_i611]); } xfer += iprot->readListEnd(); } @@ -10953,14 +11017,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 _size590; - ::apache::thrift::protocol::TType _etype593; - xfer += iprot->readListBegin(_etype593, _size590); - this->part_vals.resize(_size590); - uint32_t _i594; - for (_i594 = 0; _i594 < _size590; ++_i594) + uint32_t _size612; + ::apache::thrift::protocol::TType _etype615; + xfer += iprot->readListBegin(_etype615, _size612); + this->part_vals.resize(_size612); + uint32_t _i616; + for (_i616 = 0; _i616 < _size612; ++_i616) { - xfer += iprot->readString(this->part_vals[_i594]); + xfer += iprot->readString(this->part_vals[_i616]); } xfer += iprot->readListEnd(); } @@ -11004,10 +11068,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 _iter595; - for (_iter595 = this->part_vals.begin(); _iter595 != this->part_vals.end(); ++_iter595) + std::vector ::const_iterator _iter617; + for (_iter617 = this->part_vals.begin(); _iter617 != this->part_vals.end(); ++_iter617) { - xfer += oprot->writeString((*_iter595)); + xfer += oprot->writeString((*_iter617)); } xfer += oprot->writeListEnd(); } @@ -11037,10 +11101,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 _iter596; - for (_iter596 = (*(this->part_vals)).begin(); _iter596 != (*(this->part_vals)).end(); ++_iter596) + std::vector ::const_iterator _iter618; + for (_iter618 = (*(this->part_vals)).begin(); _iter618 != (*(this->part_vals)).end(); ++_iter618) { - xfer += oprot->writeString((*_iter596)); + xfer += oprot->writeString((*_iter618)); } xfer += oprot->writeListEnd(); } @@ -11079,14 +11143,14 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_result::read(::apache::thrift::pr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size597; - ::apache::thrift::protocol::TType _etype600; - xfer += iprot->readListBegin(_etype600, _size597); - this->success.resize(_size597); - uint32_t _i601; - for (_i601 = 0; _i601 < _size597; ++_i601) + uint32_t _size619; + ::apache::thrift::protocol::TType _etype622; + xfer += iprot->readListBegin(_etype622, _size619); + this->success.resize(_size619); + uint32_t _i623; + for (_i623 = 0; _i623 < _size619; ++_i623) { - xfer += this->success[_i601].read(iprot); + xfer += this->success[_i623].read(iprot); } xfer += iprot->readListEnd(); } @@ -11133,10 +11197,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 _iter602; - for (_iter602 = this->success.begin(); _iter602 != this->success.end(); ++_iter602) + std::vector ::const_iterator _iter624; + for (_iter624 = this->success.begin(); _iter624 != this->success.end(); ++_iter624) { - xfer += (*_iter602).write(oprot); + xfer += (*_iter624).write(oprot); } xfer += oprot->writeListEnd(); } @@ -11179,14 +11243,14 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_presult::read(::apache::thrift::p if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size603; - ::apache::thrift::protocol::TType _etype606; - xfer += iprot->readListBegin(_etype606, _size603); - (*(this->success)).resize(_size603); - uint32_t _i607; - for (_i607 = 0; _i607 < _size603; ++_i607) + uint32_t _size625; + ::apache::thrift::protocol::TType _etype628; + xfer += iprot->readListBegin(_etype628, _size625); + (*(this->success)).resize(_size625); + uint32_t _i629; + for (_i629 = 0; _i629 < _size625; ++_i629) { - xfer += (*(this->success))[_i607].read(iprot); + xfer += (*(this->success))[_i629].read(iprot); } xfer += iprot->readListEnd(); } @@ -11263,14 +11327,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 _size608; - ::apache::thrift::protocol::TType _etype611; - xfer += iprot->readListBegin(_etype611, _size608); - this->part_vals.resize(_size608); - uint32_t _i612; - for (_i612 = 0; _i612 < _size608; ++_i612) + uint32_t _size630; + ::apache::thrift::protocol::TType _etype633; + xfer += iprot->readListBegin(_etype633, _size630); + this->part_vals.resize(_size630); + uint32_t _i634; + for (_i634 = 0; _i634 < _size630; ++_i634) { - xfer += iprot->readString(this->part_vals[_i612]); + xfer += iprot->readString(this->part_vals[_i634]); } xfer += iprot->readListEnd(); } @@ -11299,14 +11363,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 _size613; - ::apache::thrift::protocol::TType _etype616; - xfer += iprot->readListBegin(_etype616, _size613); - this->group_names.resize(_size613); - uint32_t _i617; - for (_i617 = 0; _i617 < _size613; ++_i617) + uint32_t _size635; + ::apache::thrift::protocol::TType _etype638; + xfer += iprot->readListBegin(_etype638, _size635); + this->group_names.resize(_size635); + uint32_t _i639; + for (_i639 = 0; _i639 < _size635; ++_i639) { - xfer += iprot->readString(this->group_names[_i617]); + xfer += iprot->readString(this->group_names[_i639]); } xfer += iprot->readListEnd(); } @@ -11342,10 +11406,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 _iter618; - for (_iter618 = this->part_vals.begin(); _iter618 != this->part_vals.end(); ++_iter618) + std::vector ::const_iterator _iter640; + for (_iter640 = this->part_vals.begin(); _iter640 != this->part_vals.end(); ++_iter640) { - xfer += oprot->writeString((*_iter618)); + xfer += oprot->writeString((*_iter640)); } xfer += oprot->writeListEnd(); } @@ -11362,10 +11426,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 _iter619; - for (_iter619 = this->group_names.begin(); _iter619 != this->group_names.end(); ++_iter619) + std::vector ::const_iterator _iter641; + for (_iter641 = this->group_names.begin(); _iter641 != this->group_names.end(); ++_iter641) { - xfer += oprot->writeString((*_iter619)); + xfer += oprot->writeString((*_iter641)); } xfer += oprot->writeListEnd(); } @@ -11391,10 +11455,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 _iter620; - for (_iter620 = (*(this->part_vals)).begin(); _iter620 != (*(this->part_vals)).end(); ++_iter620) + std::vector ::const_iterator _iter642; + for (_iter642 = (*(this->part_vals)).begin(); _iter642 != (*(this->part_vals)).end(); ++_iter642) { - xfer += oprot->writeString((*_iter620)); + xfer += oprot->writeString((*_iter642)); } xfer += oprot->writeListEnd(); } @@ -11411,10 +11475,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 _iter621; - for (_iter621 = (*(this->group_names)).begin(); _iter621 != (*(this->group_names)).end(); ++_iter621) + std::vector ::const_iterator _iter643; + for (_iter643 = (*(this->group_names)).begin(); _iter643 != (*(this->group_names)).end(); ++_iter643) { - xfer += oprot->writeString((*_iter621)); + xfer += oprot->writeString((*_iter643)); } xfer += oprot->writeListEnd(); } @@ -11449,14 +11513,14 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_result::read(::apache:: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size622; - ::apache::thrift::protocol::TType _etype625; - xfer += iprot->readListBegin(_etype625, _size622); - this->success.resize(_size622); - uint32_t _i626; - for (_i626 = 0; _i626 < _size622; ++_i626) + uint32_t _size644; + ::apache::thrift::protocol::TType _etype647; + xfer += iprot->readListBegin(_etype647, _size644); + this->success.resize(_size644); + uint32_t _i648; + for (_i648 = 0; _i648 < _size644; ++_i648) { - xfer += this->success[_i626].read(iprot); + xfer += this->success[_i648].read(iprot); } xfer += iprot->readListEnd(); } @@ -11503,10 +11567,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 _iter627; - for (_iter627 = this->success.begin(); _iter627 != this->success.end(); ++_iter627) + std::vector ::const_iterator _iter649; + for (_iter649 = this->success.begin(); _iter649 != this->success.end(); ++_iter649) { - xfer += (*_iter627).write(oprot); + xfer += (*_iter649).write(oprot); } xfer += oprot->writeListEnd(); } @@ -11549,14 +11613,14 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_presult::read(::apache: if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size628; - ::apache::thrift::protocol::TType _etype631; - xfer += iprot->readListBegin(_etype631, _size628); - (*(this->success)).resize(_size628); - uint32_t _i632; - for (_i632 = 0; _i632 < _size628; ++_i632) + uint32_t _size650; + ::apache::thrift::protocol::TType _etype653; + xfer += iprot->readListBegin(_etype653, _size650); + (*(this->success)).resize(_size650); + uint32_t _i654; + for (_i654 = 0; _i654 < _size650; ++_i654) { - xfer += (*(this->success))[_i632].read(iprot); + xfer += (*(this->success))[_i654].read(iprot); } xfer += iprot->readListEnd(); } @@ -11633,14 +11697,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 _size633; - ::apache::thrift::protocol::TType _etype636; - xfer += iprot->readListBegin(_etype636, _size633); - this->part_vals.resize(_size633); - uint32_t _i637; - for (_i637 = 0; _i637 < _size633; ++_i637) + uint32_t _size655; + ::apache::thrift::protocol::TType _etype658; + xfer += iprot->readListBegin(_etype658, _size655); + this->part_vals.resize(_size655); + uint32_t _i659; + for (_i659 = 0; _i659 < _size655; ++_i659) { - xfer += iprot->readString(this->part_vals[_i637]); + xfer += iprot->readString(this->part_vals[_i659]); } xfer += iprot->readListEnd(); } @@ -11684,10 +11748,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 _iter638; - for (_iter638 = this->part_vals.begin(); _iter638 != this->part_vals.end(); ++_iter638) + std::vector ::const_iterator _iter660; + for (_iter660 = this->part_vals.begin(); _iter660 != this->part_vals.end(); ++_iter660) { - xfer += oprot->writeString((*_iter638)); + xfer += oprot->writeString((*_iter660)); } xfer += oprot->writeListEnd(); } @@ -11717,10 +11781,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 _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(); } @@ -11759,14 +11823,14 @@ uint32_t ThriftHiveMetastore_get_partition_names_ps_result::read(::apache::thrif if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - 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) + uint32_t _size662; + ::apache::thrift::protocol::TType _etype665; + xfer += iprot->readListBegin(_etype665, _size662); + this->success.resize(_size662); + uint32_t _i666; + for (_i666 = 0; _i666 < _size662; ++_i666) { - xfer += iprot->readString(this->success[_i644]); + xfer += iprot->readString(this->success[_i666]); } xfer += iprot->readListEnd(); } @@ -11813,10 +11877,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 _iter645; - for (_iter645 = this->success.begin(); _iter645 != this->success.end(); ++_iter645) + std::vector ::const_iterator _iter667; + for (_iter667 = this->success.begin(); _iter667 != this->success.end(); ++_iter667) { - xfer += oprot->writeString((*_iter645)); + xfer += oprot->writeString((*_iter667)); } xfer += oprot->writeListEnd(); } @@ -11859,14 +11923,14 @@ uint32_t ThriftHiveMetastore_get_partition_names_ps_presult::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size646; - ::apache::thrift::protocol::TType _etype649; - xfer += iprot->readListBegin(_etype649, _size646); - (*(this->success)).resize(_size646); - uint32_t _i650; - for (_i650 = 0; _i650 < _size646; ++_i650) + uint32_t _size668; + ::apache::thrift::protocol::TType _etype671; + xfer += iprot->readListBegin(_etype671, _size668); + (*(this->success)).resize(_size668); + uint32_t _i672; + for (_i672 = 0; _i672 < _size668; ++_i672) { - xfer += iprot->readString((*(this->success))[_i650]); + xfer += iprot->readString((*(this->success))[_i672]); } xfer += iprot->readListEnd(); } @@ -12041,14 +12105,14 @@ uint32_t ThriftHiveMetastore_get_partitions_by_filter_result::read(::apache::thr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - 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) + uint32_t _size673; + ::apache::thrift::protocol::TType _etype676; + xfer += iprot->readListBegin(_etype676, _size673); + this->success.resize(_size673); + uint32_t _i677; + for (_i677 = 0; _i677 < _size673; ++_i677) { - xfer += this->success[_i655].read(iprot); + xfer += this->success[_i677].read(iprot); } xfer += iprot->readListEnd(); } @@ -12095,10 +12159,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 _iter656; - for (_iter656 = this->success.begin(); _iter656 != this->success.end(); ++_iter656) + std::vector ::const_iterator _iter678; + for (_iter678 = this->success.begin(); _iter678 != this->success.end(); ++_iter678) { - xfer += (*_iter656).write(oprot); + xfer += (*_iter678).write(oprot); } xfer += oprot->writeListEnd(); } @@ -12141,14 +12205,14 @@ uint32_t ThriftHiveMetastore_get_partitions_by_filter_presult::read(::apache::th if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size657; - ::apache::thrift::protocol::TType _etype660; - xfer += iprot->readListBegin(_etype660, _size657); - (*(this->success)).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->success)).resize(_size679); + uint32_t _i683; + for (_i683 = 0; _i683 < _size679; ++_i683) { - xfer += (*(this->success))[_i661].read(iprot); + xfer += (*(this->success))[_i683].read(iprot); } xfer += iprot->readListEnd(); } @@ -12427,14 +12491,14 @@ uint32_t ThriftHiveMetastore_get_partitions_by_names_args::read(::apache::thrift if (ftype == ::apache::thrift::protocol::T_LIST) { { this->names.clear(); - uint32_t _size662; - ::apache::thrift::protocol::TType _etype665; - xfer += iprot->readListBegin(_etype665, _size662); - this->names.resize(_size662); - uint32_t _i666; - for (_i666 = 0; _i666 < _size662; ++_i666) + uint32_t _size684; + ::apache::thrift::protocol::TType _etype687; + xfer += iprot->readListBegin(_etype687, _size684); + this->names.resize(_size684); + uint32_t _i688; + for (_i688 = 0; _i688 < _size684; ++_i688) { - xfer += iprot->readString(this->names[_i666]); + xfer += iprot->readString(this->names[_i688]); } xfer += iprot->readListEnd(); } @@ -12470,10 +12534,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 _iter667; - for (_iter667 = this->names.begin(); _iter667 != this->names.end(); ++_iter667) + std::vector ::const_iterator _iter689; + for (_iter689 = this->names.begin(); _iter689 != this->names.end(); ++_iter689) { - xfer += oprot->writeString((*_iter667)); + xfer += oprot->writeString((*_iter689)); } xfer += oprot->writeListEnd(); } @@ -12499,10 +12563,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 _iter668; - for (_iter668 = (*(this->names)).begin(); _iter668 != (*(this->names)).end(); ++_iter668) + std::vector ::const_iterator _iter690; + for (_iter690 = (*(this->names)).begin(); _iter690 != (*(this->names)).end(); ++_iter690) { - xfer += oprot->writeString((*_iter668)); + xfer += oprot->writeString((*_iter690)); } xfer += oprot->writeListEnd(); } @@ -12537,14 +12601,14 @@ uint32_t ThriftHiveMetastore_get_partitions_by_names_result::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - 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) + uint32_t _size691; + ::apache::thrift::protocol::TType _etype694; + xfer += iprot->readListBegin(_etype694, _size691); + this->success.resize(_size691); + uint32_t _i695; + for (_i695 = 0; _i695 < _size691; ++_i695) { - xfer += this->success[_i673].read(iprot); + xfer += this->success[_i695].read(iprot); } xfer += iprot->readListEnd(); } @@ -12591,10 +12655,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 _iter674; - for (_iter674 = this->success.begin(); _iter674 != this->success.end(); ++_iter674) + std::vector ::const_iterator _iter696; + for (_iter696 = this->success.begin(); _iter696 != this->success.end(); ++_iter696) { - xfer += (*_iter674).write(oprot); + xfer += (*_iter696).write(oprot); } xfer += oprot->writeListEnd(); } @@ -12637,14 +12701,14 @@ uint32_t ThriftHiveMetastore_get_partitions_by_names_presult::read(::apache::thr if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size675; - ::apache::thrift::protocol::TType _etype678; - xfer += iprot->readListBegin(_etype678, _size675); - (*(this->success)).resize(_size675); - uint32_t _i679; - for (_i679 = 0; _i679 < _size675; ++_i679) + uint32_t _size697; + ::apache::thrift::protocol::TType _etype700; + xfer += iprot->readListBegin(_etype700, _size697); + (*(this->success)).resize(_size697); + uint32_t _i701; + for (_i701 = 0; _i701 < _size697; ++_i701) { - xfer += (*(this->success))[_i679].read(iprot); + xfer += (*(this->success))[_i701].read(iprot); } xfer += iprot->readListEnd(); } @@ -12935,14 +12999,14 @@ uint32_t ThriftHiveMetastore_alter_partitions_args::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->new_parts.clear(); - uint32_t _size680; - ::apache::thrift::protocol::TType _etype683; - xfer += iprot->readListBegin(_etype683, _size680); - this->new_parts.resize(_size680); - uint32_t _i684; - for (_i684 = 0; _i684 < _size680; ++_i684) + uint32_t _size702; + ::apache::thrift::protocol::TType _etype705; + xfer += iprot->readListBegin(_etype705, _size702); + this->new_parts.resize(_size702); + uint32_t _i706; + for (_i706 = 0; _i706 < _size702; ++_i706) { - xfer += this->new_parts[_i684].read(iprot); + xfer += this->new_parts[_i706].read(iprot); } xfer += iprot->readListEnd(); } @@ -12978,10 +13042,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 _iter685; - for (_iter685 = this->new_parts.begin(); _iter685 != this->new_parts.end(); ++_iter685) + std::vector ::const_iterator _iter707; + for (_iter707 = this->new_parts.begin(); _iter707 != this->new_parts.end(); ++_iter707) { - xfer += (*_iter685).write(oprot); + xfer += (*_iter707).write(oprot); } xfer += oprot->writeListEnd(); } @@ -13007,10 +13071,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 _iter686; - for (_iter686 = (*(this->new_parts)).begin(); _iter686 != (*(this->new_parts)).end(); ++_iter686) + std::vector ::const_iterator _iter708; + for (_iter708 = (*(this->new_parts)).begin(); _iter708 != (*(this->new_parts)).end(); ++_iter708) { - xfer += (*_iter686).write(oprot); + xfer += (*_iter708).write(oprot); } xfer += oprot->writeListEnd(); } @@ -13407,14 +13471,14 @@ uint32_t ThriftHiveMetastore_rename_partition_args::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size687; - ::apache::thrift::protocol::TType _etype690; - xfer += iprot->readListBegin(_etype690, _size687); - this->part_vals.resize(_size687); - uint32_t _i691; - for (_i691 = 0; _i691 < _size687; ++_i691) + uint32_t _size709; + ::apache::thrift::protocol::TType _etype712; + xfer += iprot->readListBegin(_etype712, _size709); + this->part_vals.resize(_size709); + uint32_t _i713; + for (_i713 = 0; _i713 < _size709; ++_i713) { - xfer += iprot->readString(this->part_vals[_i691]); + xfer += iprot->readString(this->part_vals[_i713]); } xfer += iprot->readListEnd(); } @@ -13458,10 +13522,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 _iter692; - for (_iter692 = this->part_vals.begin(); _iter692 != this->part_vals.end(); ++_iter692) + std::vector ::const_iterator _iter714; + for (_iter714 = this->part_vals.begin(); _iter714 != this->part_vals.end(); ++_iter714) { - xfer += oprot->writeString((*_iter692)); + xfer += oprot->writeString((*_iter714)); } xfer += oprot->writeListEnd(); } @@ -13491,10 +13555,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 _iter693; - for (_iter693 = (*(this->part_vals)).begin(); _iter693 != (*(this->part_vals)).end(); ++_iter693) + std::vector ::const_iterator _iter715; + for (_iter715 = (*(this->part_vals)).begin(); _iter715 != (*(this->part_vals)).end(); ++_iter715) { - xfer += oprot->writeString((*_iter693)); + xfer += oprot->writeString((*_iter715)); } xfer += oprot->writeListEnd(); } @@ -13649,14 +13713,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 _size694; - ::apache::thrift::protocol::TType _etype697; - xfer += iprot->readListBegin(_etype697, _size694); - this->part_vals.resize(_size694); - uint32_t _i698; - for (_i698 = 0; _i698 < _size694; ++_i698) + uint32_t _size716; + ::apache::thrift::protocol::TType _etype719; + xfer += iprot->readListBegin(_etype719, _size716); + this->part_vals.resize(_size716); + uint32_t _i720; + for (_i720 = 0; _i720 < _size716; ++_i720) { - xfer += iprot->readString(this->part_vals[_i698]); + xfer += iprot->readString(this->part_vals[_i720]); } xfer += iprot->readListEnd(); } @@ -13692,10 +13756,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 _iter699; - for (_iter699 = this->part_vals.begin(); _iter699 != this->part_vals.end(); ++_iter699) + std::vector ::const_iterator _iter721; + for (_iter721 = this->part_vals.begin(); _iter721 != this->part_vals.end(); ++_iter721) { - xfer += oprot->writeString((*_iter699)); + xfer += oprot->writeString((*_iter721)); } xfer += oprot->writeListEnd(); } @@ -13717,10 +13781,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 _iter700; - for (_iter700 = (*(this->part_vals)).begin(); _iter700 != (*(this->part_vals)).end(); ++_iter700) + std::vector ::const_iterator _iter722; + for (_iter722 = (*(this->part_vals)).begin(); _iter722 != (*(this->part_vals)).end(); ++_iter722) { - xfer += oprot->writeString((*_iter700)); + xfer += oprot->writeString((*_iter722)); } xfer += oprot->writeListEnd(); } @@ -14139,14 +14203,14 @@ uint32_t ThriftHiveMetastore_partition_name_to_vals_result::read(::apache::thrif 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 += iprot->readString(this->success[_i705]); + xfer += iprot->readString(this->success[_i727]); } xfer += iprot->readListEnd(); } @@ -14185,10 +14249,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 _iter706; - for (_iter706 = this->success.begin(); _iter706 != this->success.end(); ++_iter706) + std::vector ::const_iterator _iter728; + for (_iter728 = this->success.begin(); _iter728 != this->success.end(); ++_iter728) { - xfer += oprot->writeString((*_iter706)); + xfer += oprot->writeString((*_iter728)); } xfer += oprot->writeListEnd(); } @@ -14227,14 +14291,14 @@ uint32_t ThriftHiveMetastore_partition_name_to_vals_presult::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size707; - ::apache::thrift::protocol::TType _etype710; - xfer += iprot->readListBegin(_etype710, _size707); - (*(this->success)).resize(_size707); - uint32_t _i711; - for (_i711 = 0; _i711 < _size707; ++_i711) + uint32_t _size729; + ::apache::thrift::protocol::TType _etype732; + xfer += iprot->readListBegin(_etype732, _size729); + (*(this->success)).resize(_size729); + uint32_t _i733; + for (_i733 = 0; _i733 < _size729; ++_i733) { - xfer += iprot->readString((*(this->success))[_i711]); + xfer += iprot->readString((*(this->success))[_i733]); } xfer += iprot->readListEnd(); } @@ -14353,17 +14417,17 @@ uint32_t ThriftHiveMetastore_partition_name_to_spec_result::read(::apache::thrif if (ftype == ::apache::thrift::protocol::T_MAP) { { this->success.clear(); - uint32_t _size712; - ::apache::thrift::protocol::TType _ktype713; - ::apache::thrift::protocol::TType _vtype714; - xfer += iprot->readMapBegin(_ktype713, _vtype714, _size712); - uint32_t _i716; - for (_i716 = 0; _i716 < _size712; ++_i716) + uint32_t _size734; + ::apache::thrift::protocol::TType _ktype735; + ::apache::thrift::protocol::TType _vtype736; + xfer += iprot->readMapBegin(_ktype735, _vtype736, _size734); + uint32_t _i738; + for (_i738 = 0; _i738 < _size734; ++_i738) { - std::string _key717; - xfer += iprot->readString(_key717); - std::string& _val718 = this->success[_key717]; - xfer += iprot->readString(_val718); + std::string _key739; + xfer += iprot->readString(_key739); + std::string& _val740 = this->success[_key739]; + xfer += iprot->readString(_val740); } xfer += iprot->readMapEnd(); } @@ -14402,11 +14466,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 _iter719; - for (_iter719 = this->success.begin(); _iter719 != this->success.end(); ++_iter719) + std::map ::const_iterator _iter741; + for (_iter741 = this->success.begin(); _iter741 != this->success.end(); ++_iter741) { - xfer += oprot->writeString(_iter719->first); - xfer += oprot->writeString(_iter719->second); + xfer += oprot->writeString(_iter741->first); + xfer += oprot->writeString(_iter741->second); } xfer += oprot->writeMapEnd(); } @@ -14445,17 +14509,17 @@ uint32_t ThriftHiveMetastore_partition_name_to_spec_presult::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_MAP) { { (*(this->success)).clear(); - uint32_t _size720; - ::apache::thrift::protocol::TType _ktype721; - ::apache::thrift::protocol::TType _vtype722; - xfer += iprot->readMapBegin(_ktype721, _vtype722, _size720); - uint32_t _i724; - for (_i724 = 0; _i724 < _size720; ++_i724) + uint32_t _size742; + ::apache::thrift::protocol::TType _ktype743; + ::apache::thrift::protocol::TType _vtype744; + xfer += iprot->readMapBegin(_ktype743, _vtype744, _size742); + uint32_t _i746; + for (_i746 = 0; _i746 < _size742; ++_i746) { - std::string _key725; - xfer += iprot->readString(_key725); - std::string& _val726 = (*(this->success))[_key725]; - xfer += iprot->readString(_val726); + std::string _key747; + xfer += iprot->readString(_key747); + std::string& _val748 = (*(this->success))[_key747]; + xfer += iprot->readString(_val748); } xfer += iprot->readMapEnd(); } @@ -14524,17 +14588,17 @@ uint32_t ThriftHiveMetastore_markPartitionForEvent_args::read(::apache::thrift:: if (ftype == ::apache::thrift::protocol::T_MAP) { { this->part_vals.clear(); - uint32_t _size727; - ::apache::thrift::protocol::TType _ktype728; - ::apache::thrift::protocol::TType _vtype729; - xfer += iprot->readMapBegin(_ktype728, _vtype729, _size727); - uint32_t _i731; - for (_i731 = 0; _i731 < _size727; ++_i731) + uint32_t _size749; + ::apache::thrift::protocol::TType _ktype750; + ::apache::thrift::protocol::TType _vtype751; + xfer += iprot->readMapBegin(_ktype750, _vtype751, _size749); + uint32_t _i753; + for (_i753 = 0; _i753 < _size749; ++_i753) { - std::string _key732; - xfer += iprot->readString(_key732); - std::string& _val733 = this->part_vals[_key732]; - xfer += iprot->readString(_val733); + std::string _key754; + xfer += iprot->readString(_key754); + std::string& _val755 = this->part_vals[_key754]; + xfer += iprot->readString(_val755); } xfer += iprot->readMapEnd(); } @@ -14545,9 +14609,9 @@ uint32_t ThriftHiveMetastore_markPartitionForEvent_args::read(::apache::thrift:: break; case 4: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast734; - xfer += iprot->readI32(ecast734); - this->eventType = (PartitionEventType::type)ecast734; + int32_t ecast756; + xfer += iprot->readI32(ecast756); + this->eventType = (PartitionEventType::type)ecast756; this->__isset.eventType = true; } else { xfer += iprot->skip(ftype); @@ -14580,11 +14644,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 _iter735; - for (_iter735 = this->part_vals.begin(); _iter735 != this->part_vals.end(); ++_iter735) + std::map ::const_iterator _iter757; + for (_iter757 = this->part_vals.begin(); _iter757 != this->part_vals.end(); ++_iter757) { - xfer += oprot->writeString(_iter735->first); - xfer += oprot->writeString(_iter735->second); + xfer += oprot->writeString(_iter757->first); + xfer += oprot->writeString(_iter757->second); } xfer += oprot->writeMapEnd(); } @@ -14614,11 +14678,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 _iter736; - for (_iter736 = (*(this->part_vals)).begin(); _iter736 != (*(this->part_vals)).end(); ++_iter736) + std::map ::const_iterator _iter758; + for (_iter758 = (*(this->part_vals)).begin(); _iter758 != (*(this->part_vals)).end(); ++_iter758) { - xfer += oprot->writeString(_iter736->first); - xfer += oprot->writeString(_iter736->second); + xfer += oprot->writeString(_iter758->first); + xfer += oprot->writeString(_iter758->second); } xfer += oprot->writeMapEnd(); } @@ -14869,17 +14933,17 @@ uint32_t ThriftHiveMetastore_isPartitionMarkedForEvent_args::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_MAP) { { this->part_vals.clear(); - uint32_t _size737; - ::apache::thrift::protocol::TType _ktype738; - ::apache::thrift::protocol::TType _vtype739; - xfer += iprot->readMapBegin(_ktype738, _vtype739, _size737); - uint32_t _i741; - for (_i741 = 0; _i741 < _size737; ++_i741) + uint32_t _size759; + ::apache::thrift::protocol::TType _ktype760; + ::apache::thrift::protocol::TType _vtype761; + xfer += iprot->readMapBegin(_ktype760, _vtype761, _size759); + uint32_t _i763; + for (_i763 = 0; _i763 < _size759; ++_i763) { - std::string _key742; - xfer += iprot->readString(_key742); - std::string& _val743 = this->part_vals[_key742]; - xfer += iprot->readString(_val743); + std::string _key764; + xfer += iprot->readString(_key764); + std::string& _val765 = this->part_vals[_key764]; + xfer += iprot->readString(_val765); } xfer += iprot->readMapEnd(); } @@ -14890,9 +14954,9 @@ uint32_t ThriftHiveMetastore_isPartitionMarkedForEvent_args::read(::apache::thri break; case 4: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast744; - xfer += iprot->readI32(ecast744); - this->eventType = (PartitionEventType::type)ecast744; + int32_t ecast766; + xfer += iprot->readI32(ecast766); + this->eventType = (PartitionEventType::type)ecast766; this->__isset.eventType = true; } else { xfer += iprot->skip(ftype); @@ -14925,11 +14989,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 _iter745; - for (_iter745 = this->part_vals.begin(); _iter745 != this->part_vals.end(); ++_iter745) + std::map ::const_iterator _iter767; + for (_iter767 = this->part_vals.begin(); _iter767 != this->part_vals.end(); ++_iter767) { - xfer += oprot->writeString(_iter745->first); - xfer += oprot->writeString(_iter745->second); + xfer += oprot->writeString(_iter767->first); + xfer += oprot->writeString(_iter767->second); } xfer += oprot->writeMapEnd(); } @@ -14959,11 +15023,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 _iter746; - for (_iter746 = (*(this->part_vals)).begin(); _iter746 != (*(this->part_vals)).end(); ++_iter746) + std::map ::const_iterator _iter768; + for (_iter768 = (*(this->part_vals)).begin(); _iter768 != (*(this->part_vals)).end(); ++_iter768) { - xfer += oprot->writeString(_iter746->first); - xfer += oprot->writeString(_iter746->second); + xfer += oprot->writeString(_iter768->first); + xfer += oprot->writeString(_iter768->second); } xfer += oprot->writeMapEnd(); } @@ -16268,14 +16332,14 @@ uint32_t ThriftHiveMetastore_get_indexes_result::read(::apache::thrift::protocol if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size747; - ::apache::thrift::protocol::TType _etype750; - xfer += iprot->readListBegin(_etype750, _size747); - this->success.resize(_size747); - uint32_t _i751; - for (_i751 = 0; _i751 < _size747; ++_i751) + uint32_t _size769; + ::apache::thrift::protocol::TType _etype772; + xfer += iprot->readListBegin(_etype772, _size769); + this->success.resize(_size769); + uint32_t _i773; + for (_i773 = 0; _i773 < _size769; ++_i773) { - xfer += this->success[_i751].read(iprot); + xfer += this->success[_i773].read(iprot); } xfer += iprot->readListEnd(); } @@ -16322,10 +16386,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 _iter752; - for (_iter752 = this->success.begin(); _iter752 != this->success.end(); ++_iter752) + std::vector ::const_iterator _iter774; + for (_iter774 = this->success.begin(); _iter774 != this->success.end(); ++_iter774) { - xfer += (*_iter752).write(oprot); + xfer += (*_iter774).write(oprot); } xfer += oprot->writeListEnd(); } @@ -16368,14 +16432,14 @@ uint32_t ThriftHiveMetastore_get_indexes_presult::read(::apache::thrift::protoco if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size753; - ::apache::thrift::protocol::TType _etype756; - xfer += iprot->readListBegin(_etype756, _size753); - (*(this->success)).resize(_size753); - uint32_t _i757; - for (_i757 = 0; _i757 < _size753; ++_i757) + uint32_t _size775; + ::apache::thrift::protocol::TType _etype778; + xfer += iprot->readListBegin(_etype778, _size775); + (*(this->success)).resize(_size775); + uint32_t _i779; + for (_i779 = 0; _i779 < _size775; ++_i779) { - xfer += (*(this->success))[_i757].read(iprot); + xfer += (*(this->success))[_i779].read(iprot); } xfer += iprot->readListEnd(); } @@ -16534,14 +16598,14 @@ uint32_t ThriftHiveMetastore_get_index_names_result::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size758; - ::apache::thrift::protocol::TType _etype761; - xfer += iprot->readListBegin(_etype761, _size758); - this->success.resize(_size758); - uint32_t _i762; - for (_i762 = 0; _i762 < _size758; ++_i762) + uint32_t _size780; + ::apache::thrift::protocol::TType _etype783; + xfer += iprot->readListBegin(_etype783, _size780); + this->success.resize(_size780); + uint32_t _i784; + for (_i784 = 0; _i784 < _size780; ++_i784) { - xfer += iprot->readString(this->success[_i762]); + xfer += iprot->readString(this->success[_i784]); } xfer += iprot->readListEnd(); } @@ -16580,10 +16644,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 _iter763; - for (_iter763 = this->success.begin(); _iter763 != this->success.end(); ++_iter763) + std::vector ::const_iterator _iter785; + for (_iter785 = this->success.begin(); _iter785 != this->success.end(); ++_iter785) { - xfer += oprot->writeString((*_iter763)); + xfer += oprot->writeString((*_iter785)); } xfer += oprot->writeListEnd(); } @@ -16622,14 +16686,14 @@ uint32_t ThriftHiveMetastore_get_index_names_presult::read(::apache::thrift::pro if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size764; - ::apache::thrift::protocol::TType _etype767; - xfer += iprot->readListBegin(_etype767, _size764); - (*(this->success)).resize(_size764); - uint32_t _i768; - for (_i768 = 0; _i768 < _size764; ++_i768) + uint32_t _size786; + ::apache::thrift::protocol::TType _etype789; + xfer += iprot->readListBegin(_etype789, _size786); + (*(this->success)).resize(_size786); + uint32_t _i790; + for (_i790 = 0; _i790 < _size786; ++_i790) { - xfer += iprot->readString((*(this->success))[_i768]); + xfer += iprot->readString((*(this->success))[_i790]); } xfer += iprot->readListEnd(); } @@ -19858,14 +19922,14 @@ uint32_t ThriftHiveMetastore_get_functions_result::read(::apache::thrift::protoc if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size769; - ::apache::thrift::protocol::TType _etype772; - xfer += iprot->readListBegin(_etype772, _size769); - this->success.resize(_size769); - uint32_t _i773; - for (_i773 = 0; _i773 < _size769; ++_i773) + uint32_t _size791; + ::apache::thrift::protocol::TType _etype794; + xfer += iprot->readListBegin(_etype794, _size791); + this->success.resize(_size791); + uint32_t _i795; + for (_i795 = 0; _i795 < _size791; ++_i795) { - xfer += iprot->readString(this->success[_i773]); + xfer += iprot->readString(this->success[_i795]); } xfer += iprot->readListEnd(); } @@ -19904,10 +19968,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 _iter774; - for (_iter774 = this->success.begin(); _iter774 != this->success.end(); ++_iter774) + std::vector ::const_iterator _iter796; + for (_iter796 = this->success.begin(); _iter796 != this->success.end(); ++_iter796) { - xfer += oprot->writeString((*_iter774)); + xfer += oprot->writeString((*_iter796)); } xfer += oprot->writeListEnd(); } @@ -19946,14 +20010,14 @@ uint32_t ThriftHiveMetastore_get_functions_presult::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size775; - ::apache::thrift::protocol::TType _etype778; - xfer += iprot->readListBegin(_etype778, _size775); - (*(this->success)).resize(_size775); - uint32_t _i779; - for (_i779 = 0; _i779 < _size775; ++_i779) + uint32_t _size797; + ::apache::thrift::protocol::TType _etype800; + xfer += iprot->readListBegin(_etype800, _size797); + (*(this->success)).resize(_size797); + uint32_t _i801; + for (_i801 = 0; _i801 < _size797; ++_i801) { - xfer += iprot->readString((*(this->success))[_i779]); + xfer += iprot->readString((*(this->success))[_i801]); } xfer += iprot->readListEnd(); } @@ -20633,14 +20697,14 @@ uint32_t ThriftHiveMetastore_get_role_names_result::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size780; - ::apache::thrift::protocol::TType _etype783; - xfer += iprot->readListBegin(_etype783, _size780); - this->success.resize(_size780); - uint32_t _i784; - for (_i784 = 0; _i784 < _size780; ++_i784) + 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) { - xfer += iprot->readString(this->success[_i784]); + xfer += iprot->readString(this->success[_i806]); } xfer += iprot->readListEnd(); } @@ -20679,10 +20743,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 _iter785; - for (_iter785 = this->success.begin(); _iter785 != this->success.end(); ++_iter785) + std::vector ::const_iterator _iter807; + for (_iter807 = this->success.begin(); _iter807 != this->success.end(); ++_iter807) { - xfer += oprot->writeString((*_iter785)); + xfer += oprot->writeString((*_iter807)); } xfer += oprot->writeListEnd(); } @@ -20721,14 +20785,14 @@ uint32_t ThriftHiveMetastore_get_role_names_presult::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size786; - ::apache::thrift::protocol::TType _etype789; - xfer += iprot->readListBegin(_etype789, _size786); - (*(this->success)).resize(_size786); - uint32_t _i790; - for (_i790 = 0; _i790 < _size786; ++_i790) + 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) { - xfer += iprot->readString((*(this->success))[_i790]); + xfer += iprot->readString((*(this->success))[_i812]); } xfer += iprot->readListEnd(); } @@ -20795,9 +20859,9 @@ uint32_t ThriftHiveMetastore_grant_role_args::read(::apache::thrift::protocol::T break; case 3: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast791; - xfer += iprot->readI32(ecast791); - this->principal_type = (PrincipalType::type)ecast791; + int32_t ecast813; + xfer += iprot->readI32(ecast813); + this->principal_type = (PrincipalType::type)ecast813; this->__isset.principal_type = true; } else { xfer += iprot->skip(ftype); @@ -20813,9 +20877,9 @@ uint32_t ThriftHiveMetastore_grant_role_args::read(::apache::thrift::protocol::T break; case 5: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast792; - xfer += iprot->readI32(ecast792); - this->grantorType = (PrincipalType::type)ecast792; + int32_t ecast814; + xfer += iprot->readI32(ecast814); + this->grantorType = (PrincipalType::type)ecast814; this->__isset.grantorType = true; } else { xfer += iprot->skip(ftype); @@ -21061,9 +21125,9 @@ uint32_t ThriftHiveMetastore_revoke_role_args::read(::apache::thrift::protocol:: break; case 3: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast793; - xfer += iprot->readI32(ecast793); - this->principal_type = (PrincipalType::type)ecast793; + int32_t ecast815; + xfer += iprot->readI32(ecast815); + this->principal_type = (PrincipalType::type)ecast815; this->__isset.principal_type = true; } else { xfer += iprot->skip(ftype); @@ -21269,9 +21333,9 @@ uint32_t ThriftHiveMetastore_list_roles_args::read(::apache::thrift::protocol::T break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast794; - xfer += iprot->readI32(ecast794); - this->principal_type = (PrincipalType::type)ecast794; + int32_t ecast816; + xfer += iprot->readI32(ecast816); + this->principal_type = (PrincipalType::type)ecast816; this->__isset.principal_type = true; } else { xfer += iprot->skip(ftype); @@ -21347,14 +21411,14 @@ uint32_t ThriftHiveMetastore_list_roles_result::read(::apache::thrift::protocol: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size795; - ::apache::thrift::protocol::TType _etype798; - xfer += iprot->readListBegin(_etype798, _size795); - this->success.resize(_size795); - uint32_t _i799; - for (_i799 = 0; _i799 < _size795; ++_i799) + uint32_t _size817; + ::apache::thrift::protocol::TType _etype820; + xfer += iprot->readListBegin(_etype820, _size817); + this->success.resize(_size817); + uint32_t _i821; + for (_i821 = 0; _i821 < _size817; ++_i821) { - xfer += this->success[_i799].read(iprot); + xfer += this->success[_i821].read(iprot); } xfer += iprot->readListEnd(); } @@ -21393,10 +21457,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 _iter800; - for (_iter800 = this->success.begin(); _iter800 != this->success.end(); ++_iter800) + std::vector ::const_iterator _iter822; + for (_iter822 = this->success.begin(); _iter822 != this->success.end(); ++_iter822) { - xfer += (*_iter800).write(oprot); + xfer += (*_iter822).write(oprot); } xfer += oprot->writeListEnd(); } @@ -21435,14 +21499,14 @@ uint32_t ThriftHiveMetastore_list_roles_presult::read(::apache::thrift::protocol if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size801; - ::apache::thrift::protocol::TType _etype804; - xfer += iprot->readListBegin(_etype804, _size801); - (*(this->success)).resize(_size801); - uint32_t _i805; - for (_i805 = 0; _i805 < _size801; ++_i805) + uint32_t _size823; + ::apache::thrift::protocol::TType _etype826; + xfer += iprot->readListBegin(_etype826, _size823); + (*(this->success)).resize(_size823); + uint32_t _i827; + for (_i827 = 0; _i827 < _size823; ++_i827) { - xfer += (*(this->success))[_i805].read(iprot); + xfer += (*(this->success))[_i827].read(iprot); } xfer += iprot->readListEnd(); } @@ -22057,14 +22121,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 _size806; - ::apache::thrift::protocol::TType _etype809; - xfer += iprot->readListBegin(_etype809, _size806); - this->group_names.resize(_size806); - uint32_t _i810; - for (_i810 = 0; _i810 < _size806; ++_i810) + uint32_t _size828; + ::apache::thrift::protocol::TType _etype831; + xfer += iprot->readListBegin(_etype831, _size828); + this->group_names.resize(_size828); + uint32_t _i832; + for (_i832 = 0; _i832 < _size828; ++_i832) { - xfer += iprot->readString(this->group_names[_i810]); + xfer += iprot->readString(this->group_names[_i832]); } xfer += iprot->readListEnd(); } @@ -22100,10 +22164,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 _iter811; - for (_iter811 = this->group_names.begin(); _iter811 != this->group_names.end(); ++_iter811) + std::vector ::const_iterator _iter833; + for (_iter833 = this->group_names.begin(); _iter833 != this->group_names.end(); ++_iter833) { - xfer += oprot->writeString((*_iter811)); + xfer += oprot->writeString((*_iter833)); } xfer += oprot->writeListEnd(); } @@ -22129,10 +22193,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 _iter812; - for (_iter812 = (*(this->group_names)).begin(); _iter812 != (*(this->group_names)).end(); ++_iter812) + std::vector ::const_iterator _iter834; + for (_iter834 = (*(this->group_names)).begin(); _iter834 != (*(this->group_names)).end(); ++_iter834) { - xfer += oprot->writeString((*_iter812)); + xfer += oprot->writeString((*_iter834)); } xfer += oprot->writeListEnd(); } @@ -22289,9 +22353,9 @@ uint32_t ThriftHiveMetastore_list_privileges_args::read(::apache::thrift::protoc break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast813; - xfer += iprot->readI32(ecast813); - this->principal_type = (PrincipalType::type)ecast813; + int32_t ecast835; + xfer += iprot->readI32(ecast835); + this->principal_type = (PrincipalType::type)ecast835; this->__isset.principal_type = true; } else { xfer += iprot->skip(ftype); @@ -22383,14 +22447,14 @@ uint32_t ThriftHiveMetastore_list_privileges_result::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size814; - ::apache::thrift::protocol::TType _etype817; - xfer += iprot->readListBegin(_etype817, _size814); - this->success.resize(_size814); - uint32_t _i818; - for (_i818 = 0; _i818 < _size814; ++_i818) + uint32_t _size836; + ::apache::thrift::protocol::TType _etype839; + xfer += iprot->readListBegin(_etype839, _size836); + this->success.resize(_size836); + uint32_t _i840; + for (_i840 = 0; _i840 < _size836; ++_i840) { - xfer += this->success[_i818].read(iprot); + xfer += this->success[_i840].read(iprot); } xfer += iprot->readListEnd(); } @@ -22429,10 +22493,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 _iter819; - for (_iter819 = this->success.begin(); _iter819 != this->success.end(); ++_iter819) + std::vector ::const_iterator _iter841; + for (_iter841 = this->success.begin(); _iter841 != this->success.end(); ++_iter841) { - xfer += (*_iter819).write(oprot); + xfer += (*_iter841).write(oprot); } xfer += oprot->writeListEnd(); } @@ -22471,14 +22535,14 @@ uint32_t ThriftHiveMetastore_list_privileges_presult::read(::apache::thrift::pro if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size820; - ::apache::thrift::protocol::TType _etype823; - xfer += iprot->readListBegin(_etype823, _size820); - (*(this->success)).resize(_size820); - uint32_t _i824; - for (_i824 = 0; _i824 < _size820; ++_i824) + uint32_t _size842; + ::apache::thrift::protocol::TType _etype845; + xfer += iprot->readListBegin(_etype845, _size842); + (*(this->success)).resize(_size842); + uint32_t _i846; + for (_i846 = 0; _i846 < _size842; ++_i846) { - xfer += (*(this->success))[_i824].read(iprot); + xfer += (*(this->success))[_i846].read(iprot); } xfer += iprot->readListEnd(); } @@ -23085,14 +23149,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 _size825; - ::apache::thrift::protocol::TType _etype828; - xfer += iprot->readListBegin(_etype828, _size825); - this->group_names.resize(_size825); - uint32_t _i829; - for (_i829 = 0; _i829 < _size825; ++_i829) + uint32_t _size847; + ::apache::thrift::protocol::TType _etype850; + xfer += iprot->readListBegin(_etype850, _size847); + this->group_names.resize(_size847); + uint32_t _i851; + for (_i851 = 0; _i851 < _size847; ++_i851) { - xfer += iprot->readString(this->group_names[_i829]); + xfer += iprot->readString(this->group_names[_i851]); } xfer += iprot->readListEnd(); } @@ -23124,10 +23188,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 _iter830; - for (_iter830 = this->group_names.begin(); _iter830 != this->group_names.end(); ++_iter830) + std::vector ::const_iterator _iter852; + for (_iter852 = this->group_names.begin(); _iter852 != this->group_names.end(); ++_iter852) { - xfer += oprot->writeString((*_iter830)); + xfer += oprot->writeString((*_iter852)); } xfer += oprot->writeListEnd(); } @@ -23149,10 +23213,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 _iter831; - for (_iter831 = (*(this->group_names)).begin(); _iter831 != (*(this->group_names)).end(); ++_iter831) + std::vector ::const_iterator _iter853; + for (_iter853 = (*(this->group_names)).begin(); _iter853 != (*(this->group_names)).end(); ++_iter853) { - xfer += oprot->writeString((*_iter831)); + xfer += oprot->writeString((*_iter853)); } xfer += oprot->writeListEnd(); } @@ -23187,14 +23251,14 @@ uint32_t ThriftHiveMetastore_set_ugi_result::read(::apache::thrift::protocol::TP if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size832; - ::apache::thrift::protocol::TType _etype835; - xfer += iprot->readListBegin(_etype835, _size832); - this->success.resize(_size832); - uint32_t _i836; - for (_i836 = 0; _i836 < _size832; ++_i836) + uint32_t _size854; + ::apache::thrift::protocol::TType _etype857; + xfer += iprot->readListBegin(_etype857, _size854); + this->success.resize(_size854); + uint32_t _i858; + for (_i858 = 0; _i858 < _size854; ++_i858) { - xfer += iprot->readString(this->success[_i836]); + xfer += iprot->readString(this->success[_i858]); } xfer += iprot->readListEnd(); } @@ -23233,10 +23297,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 _iter837; - for (_iter837 = this->success.begin(); _iter837 != this->success.end(); ++_iter837) + std::vector ::const_iterator _iter859; + for (_iter859 = this->success.begin(); _iter859 != this->success.end(); ++_iter859) { - xfer += oprot->writeString((*_iter837)); + xfer += oprot->writeString((*_iter859)); } xfer += oprot->writeListEnd(); } @@ -23275,14 +23339,14 @@ uint32_t ThriftHiveMetastore_set_ugi_presult::read(::apache::thrift::protocol::T if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size838; - ::apache::thrift::protocol::TType _etype841; - xfer += iprot->readListBegin(_etype841, _size838); - (*(this->success)).resize(_size838); - uint32_t _i842; - for (_i842 = 0; _i842 < _size838; ++_i842) + uint32_t _size860; + ::apache::thrift::protocol::TType _etype863; + xfer += iprot->readListBegin(_etype863, _size860); + (*(this->success)).resize(_size860); + uint32_t _i864; + for (_i864 = 0; _i864 < _size860; ++_i864) { - xfer += iprot->readString((*(this->success))[_i842]); + xfer += iprot->readString((*(this->success))[_i864]); } xfer += iprot->readListEnd(); } @@ -28196,18 +28260,18 @@ void ThriftHiveMetastoreClient::recv_append_partition_by_name_with_environment_c throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "append_partition_by_name_with_environment_context failed: unknown result"); } -bool ThriftHiveMetastoreClient::drop_partition(const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const bool deleteData) +void ThriftHiveMetastoreClient::drop_partitions(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const bool deleteData) { - send_drop_partition(db_name, tbl_name, part_vals, deleteData); - return recv_drop_partition(); + send_drop_partitions(db_name, tbl_name, part_vals, deleteData); + recv_drop_partitions(_return); } -void ThriftHiveMetastoreClient::send_drop_partition(const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const bool deleteData) +void ThriftHiveMetastoreClient::send_drop_partitions(const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const bool deleteData) { int32_t cseqid = 0; - oprot_->writeMessageBegin("drop_partition", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("drop_partitions", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_drop_partition_pargs args; + ThriftHiveMetastore_drop_partitions_pargs args; args.db_name = &db_name; args.tbl_name = &tbl_name; args.part_vals = &part_vals; @@ -28219,7 +28283,7 @@ void ThriftHiveMetastoreClient::send_drop_partition(const std::string& db_name, oprot_->getTransport()->flush(); } -bool ThriftHiveMetastoreClient::recv_drop_partition() +void ThriftHiveMetastoreClient::recv_drop_partitions(std::vector & _return) { int32_t rseqid = 0; @@ -28239,20 +28303,20 @@ bool ThriftHiveMetastoreClient::recv_drop_partition() iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("drop_partition") != 0) { + if (fname.compare("drop_partitions") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - bool _return; - ThriftHiveMetastore_drop_partition_presult result; + ThriftHiveMetastore_drop_partitions_presult result; result.success = &_return; result.read(iprot_); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); if (result.__isset.success) { - return _return; + // _return pointer has now been filled + return; } if (result.__isset.o1) { throw result.o1; @@ -28260,21 +28324,21 @@ bool ThriftHiveMetastoreClient::recv_drop_partition() if (result.__isset.o2) { throw result.o2; } - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "drop_partition failed: unknown result"); + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "drop_partitions failed: unknown result"); } -bool ThriftHiveMetastoreClient::drop_partition_with_environment_context(const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const bool deleteData, const EnvironmentContext& environment_context) +void ThriftHiveMetastoreClient::drop_partitions_with_environment_context(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const bool deleteData, const EnvironmentContext& environment_context) { - send_drop_partition_with_environment_context(db_name, tbl_name, part_vals, deleteData, environment_context); - return recv_drop_partition_with_environment_context(); + send_drop_partitions_with_environment_context(db_name, tbl_name, part_vals, deleteData, environment_context); + recv_drop_partitions_with_environment_context(_return); } -void ThriftHiveMetastoreClient::send_drop_partition_with_environment_context(const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const bool deleteData, const EnvironmentContext& environment_context) +void ThriftHiveMetastoreClient::send_drop_partitions_with_environment_context(const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const bool deleteData, const EnvironmentContext& environment_context) { int32_t cseqid = 0; - oprot_->writeMessageBegin("drop_partition_with_environment_context", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("drop_partitions_with_environment_context", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_drop_partition_with_environment_context_pargs args; + ThriftHiveMetastore_drop_partitions_with_environment_context_pargs args; args.db_name = &db_name; args.tbl_name = &tbl_name; args.part_vals = &part_vals; @@ -28287,7 +28351,7 @@ void ThriftHiveMetastoreClient::send_drop_partition_with_environment_context(con oprot_->getTransport()->flush(); } -bool ThriftHiveMetastoreClient::recv_drop_partition_with_environment_context() +void ThriftHiveMetastoreClient::recv_drop_partitions_with_environment_context(std::vector & _return) { int32_t rseqid = 0; @@ -28307,20 +28371,20 @@ bool ThriftHiveMetastoreClient::recv_drop_partition_with_environment_context() iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("drop_partition_with_environment_context") != 0) { + if (fname.compare("drop_partitions_with_environment_context") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - bool _return; - ThriftHiveMetastore_drop_partition_with_environment_context_presult result; + ThriftHiveMetastore_drop_partitions_with_environment_context_presult result; result.success = &_return; result.read(iprot_); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); if (result.__isset.success) { - return _return; + // _return pointer has now been filled + return; } if (result.__isset.o1) { throw result.o1; @@ -28328,7 +28392,7 @@ bool ThriftHiveMetastoreClient::recv_drop_partition_with_environment_context() if (result.__isset.o2) { throw result.o2; } - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "drop_partition_with_environment_context failed: unknown result"); + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "drop_partitions_with_environment_context failed: unknown result"); } bool ThriftHiveMetastoreClient::drop_partition_by_name(const std::string& db_name, const std::string& tbl_name, const std::string& part_name, const bool deleteData) @@ -35331,30 +35395,30 @@ void ThriftHiveMetastoreProcessor::process_append_partition_by_name_with_environ } } -void ThriftHiveMetastoreProcessor::process_drop_partition(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) +void ThriftHiveMetastoreProcessor::process_drop_partitions(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { void* ctx = NULL; if (this->eventHandler_.get() != NULL) { - ctx = this->eventHandler_->getContext("ThriftHiveMetastore.drop_partition", callContext); + ctx = this->eventHandler_->getContext("ThriftHiveMetastore.drop_partitions", callContext); } - ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "ThriftHiveMetastore.drop_partition"); + ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "ThriftHiveMetastore.drop_partitions"); if (this->eventHandler_.get() != NULL) { - this->eventHandler_->preRead(ctx, "ThriftHiveMetastore.drop_partition"); + this->eventHandler_->preRead(ctx, "ThriftHiveMetastore.drop_partitions"); } - ThriftHiveMetastore_drop_partition_args args; + ThriftHiveMetastore_drop_partitions_args args; args.read(iprot); iprot->readMessageEnd(); uint32_t bytes = iprot->getTransport()->readEnd(); if (this->eventHandler_.get() != NULL) { - this->eventHandler_->postRead(ctx, "ThriftHiveMetastore.drop_partition", bytes); + this->eventHandler_->postRead(ctx, "ThriftHiveMetastore.drop_partitions", bytes); } - ThriftHiveMetastore_drop_partition_result result; + ThriftHiveMetastore_drop_partitions_result result; try { - result.success = iface_->drop_partition(args.db_name, args.tbl_name, args.part_vals, args.deleteData); + iface_->drop_partitions(result.success, args.db_name, args.tbl_name, args.part_vals, args.deleteData); result.__isset.success = true; } catch (NoSuchObjectException &o1) { result.o1 = o1; @@ -35364,11 +35428,11 @@ void ThriftHiveMetastoreProcessor::process_drop_partition(int32_t seqid, ::apach result.__isset.o2 = true; } catch (const std::exception& e) { if (this->eventHandler_.get() != NULL) { - this->eventHandler_->handlerError(ctx, "ThriftHiveMetastore.drop_partition"); + this->eventHandler_->handlerError(ctx, "ThriftHiveMetastore.drop_partitions"); } ::apache::thrift::TApplicationException x(e.what()); - oprot->writeMessageBegin("drop_partition", ::apache::thrift::protocol::T_EXCEPTION, seqid); + oprot->writeMessageBegin("drop_partitions", ::apache::thrift::protocol::T_EXCEPTION, seqid); x.write(oprot); oprot->writeMessageEnd(); oprot->getTransport()->writeEnd(); @@ -35377,44 +35441,44 @@ void ThriftHiveMetastoreProcessor::process_drop_partition(int32_t seqid, ::apach } if (this->eventHandler_.get() != NULL) { - this->eventHandler_->preWrite(ctx, "ThriftHiveMetastore.drop_partition"); + this->eventHandler_->preWrite(ctx, "ThriftHiveMetastore.drop_partitions"); } - oprot->writeMessageBegin("drop_partition", ::apache::thrift::protocol::T_REPLY, seqid); + oprot->writeMessageBegin("drop_partitions", ::apache::thrift::protocol::T_REPLY, seqid); result.write(oprot); oprot->writeMessageEnd(); bytes = oprot->getTransport()->writeEnd(); oprot->getTransport()->flush(); if (this->eventHandler_.get() != NULL) { - this->eventHandler_->postWrite(ctx, "ThriftHiveMetastore.drop_partition", bytes); + this->eventHandler_->postWrite(ctx, "ThriftHiveMetastore.drop_partitions", bytes); } } -void ThriftHiveMetastoreProcessor::process_drop_partition_with_environment_context(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) +void ThriftHiveMetastoreProcessor::process_drop_partitions_with_environment_context(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { void* ctx = NULL; if (this->eventHandler_.get() != NULL) { - ctx = this->eventHandler_->getContext("ThriftHiveMetastore.drop_partition_with_environment_context", callContext); + ctx = this->eventHandler_->getContext("ThriftHiveMetastore.drop_partitions_with_environment_context", callContext); } - ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "ThriftHiveMetastore.drop_partition_with_environment_context"); + ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "ThriftHiveMetastore.drop_partitions_with_environment_context"); if (this->eventHandler_.get() != NULL) { - this->eventHandler_->preRead(ctx, "ThriftHiveMetastore.drop_partition_with_environment_context"); + this->eventHandler_->preRead(ctx, "ThriftHiveMetastore.drop_partitions_with_environment_context"); } - ThriftHiveMetastore_drop_partition_with_environment_context_args args; + ThriftHiveMetastore_drop_partitions_with_environment_context_args args; args.read(iprot); iprot->readMessageEnd(); uint32_t bytes = iprot->getTransport()->readEnd(); if (this->eventHandler_.get() != NULL) { - this->eventHandler_->postRead(ctx, "ThriftHiveMetastore.drop_partition_with_environment_context", bytes); + this->eventHandler_->postRead(ctx, "ThriftHiveMetastore.drop_partitions_with_environment_context", bytes); } - ThriftHiveMetastore_drop_partition_with_environment_context_result result; + ThriftHiveMetastore_drop_partitions_with_environment_context_result result; try { - result.success = iface_->drop_partition_with_environment_context(args.db_name, args.tbl_name, args.part_vals, args.deleteData, args.environment_context); + iface_->drop_partitions_with_environment_context(result.success, args.db_name, args.tbl_name, args.part_vals, args.deleteData, args.environment_context); result.__isset.success = true; } catch (NoSuchObjectException &o1) { result.o1 = o1; @@ -35424,11 +35488,11 @@ void ThriftHiveMetastoreProcessor::process_drop_partition_with_environment_conte result.__isset.o2 = true; } catch (const std::exception& e) { if (this->eventHandler_.get() != NULL) { - this->eventHandler_->handlerError(ctx, "ThriftHiveMetastore.drop_partition_with_environment_context"); + this->eventHandler_->handlerError(ctx, "ThriftHiveMetastore.drop_partitions_with_environment_context"); } ::apache::thrift::TApplicationException x(e.what()); - oprot->writeMessageBegin("drop_partition_with_environment_context", ::apache::thrift::protocol::T_EXCEPTION, seqid); + oprot->writeMessageBegin("drop_partitions_with_environment_context", ::apache::thrift::protocol::T_EXCEPTION, seqid); x.write(oprot); oprot->writeMessageEnd(); oprot->getTransport()->writeEnd(); @@ -35437,17 +35501,17 @@ void ThriftHiveMetastoreProcessor::process_drop_partition_with_environment_conte } if (this->eventHandler_.get() != NULL) { - this->eventHandler_->preWrite(ctx, "ThriftHiveMetastore.drop_partition_with_environment_context"); + this->eventHandler_->preWrite(ctx, "ThriftHiveMetastore.drop_partitions_with_environment_context"); } - oprot->writeMessageBegin("drop_partition_with_environment_context", ::apache::thrift::protocol::T_REPLY, seqid); + oprot->writeMessageBegin("drop_partitions_with_environment_context", ::apache::thrift::protocol::T_REPLY, seqid); result.write(oprot); oprot->writeMessageEnd(); bytes = oprot->getTransport()->writeEnd(); oprot->getTransport()->flush(); if (this->eventHandler_.get() != NULL) { - this->eventHandler_->postWrite(ctx, "ThriftHiveMetastore.drop_partition_with_environment_context", bytes); + this->eventHandler_->postWrite(ctx, "ThriftHiveMetastore.drop_partitions_with_environment_context", bytes); } } diff --git metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h index ef1352b..b223962 100644 --- metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h +++ metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h @@ -49,8 +49,8 @@ class ThriftHiveMetastoreIf : virtual public ::facebook::fb303::FacebookService virtual void append_partition_with_environment_context(Partition& _return, const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const EnvironmentContext& environment_context) = 0; virtual void append_partition_by_name(Partition& _return, const std::string& db_name, const std::string& tbl_name, const std::string& part_name) = 0; virtual void append_partition_by_name_with_environment_context(Partition& _return, const std::string& db_name, const std::string& tbl_name, const std::string& part_name, const EnvironmentContext& environment_context) = 0; - virtual bool drop_partition(const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const bool deleteData) = 0; - virtual bool drop_partition_with_environment_context(const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const bool deleteData, const EnvironmentContext& environment_context) = 0; + virtual void drop_partitions(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const bool deleteData) = 0; + virtual void drop_partitions_with_environment_context(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const bool deleteData, const EnvironmentContext& environment_context) = 0; virtual bool drop_partition_by_name(const std::string& db_name, const std::string& tbl_name, const std::string& part_name, const bool deleteData) = 0; virtual bool drop_partition_by_name_with_environment_context(const std::string& db_name, const std::string& tbl_name, const std::string& part_name, const bool deleteData, const EnvironmentContext& environment_context) = 0; virtual void drop_partitions_req(DropPartitionsResult& _return, const DropPartitionsRequest& req) = 0; @@ -260,13 +260,11 @@ class ThriftHiveMetastoreNull : virtual public ThriftHiveMetastoreIf , virtual p void append_partition_by_name_with_environment_context(Partition& /* _return */, const std::string& /* db_name */, const std::string& /* tbl_name */, const std::string& /* part_name */, const EnvironmentContext& /* environment_context */) { return; } - bool drop_partition(const std::string& /* db_name */, const std::string& /* tbl_name */, const std::vector & /* part_vals */, const bool /* deleteData */) { - bool _return = false; - return _return; + void drop_partitions(std::vector & /* _return */, const std::string& /* db_name */, const std::string& /* tbl_name */, const std::vector & /* part_vals */, const bool /* deleteData */) { + return; } - bool drop_partition_with_environment_context(const std::string& /* db_name */, const std::string& /* tbl_name */, const std::vector & /* part_vals */, const bool /* deleteData */, const EnvironmentContext& /* environment_context */) { - bool _return = false; - return _return; + void drop_partitions_with_environment_context(std::vector & /* _return */, const std::string& /* db_name */, const std::string& /* tbl_name */, const std::vector & /* part_vals */, const bool /* deleteData */, const EnvironmentContext& /* environment_context */) { + return; } bool drop_partition_by_name(const std::string& /* db_name */, const std::string& /* tbl_name */, const std::string& /* part_name */, const bool /* deleteData */) { bool _return = false; @@ -5048,28 +5046,28 @@ class ThriftHiveMetastore_append_partition_by_name_with_environment_context_pres }; -typedef struct _ThriftHiveMetastore_drop_partition_args__isset { - _ThriftHiveMetastore_drop_partition_args__isset() : db_name(false), tbl_name(false), part_vals(false), deleteData(false) {} +typedef struct _ThriftHiveMetastore_drop_partitions_args__isset { + _ThriftHiveMetastore_drop_partitions_args__isset() : db_name(false), tbl_name(false), part_vals(false), deleteData(false) {} bool db_name; bool tbl_name; bool part_vals; bool deleteData; -} _ThriftHiveMetastore_drop_partition_args__isset; +} _ThriftHiveMetastore_drop_partitions_args__isset; -class ThriftHiveMetastore_drop_partition_args { +class ThriftHiveMetastore_drop_partitions_args { public: - ThriftHiveMetastore_drop_partition_args() : db_name(), tbl_name(), deleteData(0) { + ThriftHiveMetastore_drop_partitions_args() : db_name(), tbl_name(), deleteData(0) { } - virtual ~ThriftHiveMetastore_drop_partition_args() throw() {} + virtual ~ThriftHiveMetastore_drop_partitions_args() throw() {} std::string db_name; std::string tbl_name; std::vector part_vals; bool deleteData; - _ThriftHiveMetastore_drop_partition_args__isset __isset; + _ThriftHiveMetastore_drop_partitions_args__isset __isset; void __set_db_name(const std::string& val) { db_name = val; @@ -5087,7 +5085,7 @@ class ThriftHiveMetastore_drop_partition_args { deleteData = val; } - bool operator == (const ThriftHiveMetastore_drop_partition_args & rhs) const + bool operator == (const ThriftHiveMetastore_drop_partitions_args & rhs) const { if (!(db_name == rhs.db_name)) return false; @@ -5099,11 +5097,11 @@ class ThriftHiveMetastore_drop_partition_args { return false; return true; } - bool operator != (const ThriftHiveMetastore_drop_partition_args &rhs) const { + bool operator != (const ThriftHiveMetastore_drop_partitions_args &rhs) const { return !(*this == rhs); } - bool operator < (const ThriftHiveMetastore_drop_partition_args & ) const; + bool operator < (const ThriftHiveMetastore_drop_partitions_args & ) const; uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; @@ -5111,11 +5109,11 @@ class ThriftHiveMetastore_drop_partition_args { }; -class ThriftHiveMetastore_drop_partition_pargs { +class ThriftHiveMetastore_drop_partitions_pargs { public: - virtual ~ThriftHiveMetastore_drop_partition_pargs() throw() {} + virtual ~ThriftHiveMetastore_drop_partitions_pargs() throw() {} const std::string* db_name; const std::string* tbl_name; @@ -5126,28 +5124,28 @@ class ThriftHiveMetastore_drop_partition_pargs { }; -typedef struct _ThriftHiveMetastore_drop_partition_result__isset { - _ThriftHiveMetastore_drop_partition_result__isset() : success(false), o1(false), o2(false) {} +typedef struct _ThriftHiveMetastore_drop_partitions_result__isset { + _ThriftHiveMetastore_drop_partitions_result__isset() : success(false), o1(false), o2(false) {} bool success; bool o1; bool o2; -} _ThriftHiveMetastore_drop_partition_result__isset; +} _ThriftHiveMetastore_drop_partitions_result__isset; -class ThriftHiveMetastore_drop_partition_result { +class ThriftHiveMetastore_drop_partitions_result { public: - ThriftHiveMetastore_drop_partition_result() : success(0) { + ThriftHiveMetastore_drop_partitions_result() { } - virtual ~ThriftHiveMetastore_drop_partition_result() throw() {} + virtual ~ThriftHiveMetastore_drop_partitions_result() throw() {} - bool success; + std::vector success; NoSuchObjectException o1; MetaException o2; - _ThriftHiveMetastore_drop_partition_result__isset __isset; + _ThriftHiveMetastore_drop_partitions_result__isset __isset; - void __set_success(const bool val) { + void __set_success(const std::vector & val) { success = val; } @@ -5159,7 +5157,7 @@ class ThriftHiveMetastore_drop_partition_result { o2 = val; } - bool operator == (const ThriftHiveMetastore_drop_partition_result & rhs) const + bool operator == (const ThriftHiveMetastore_drop_partitions_result & rhs) const { if (!(success == rhs.success)) return false; @@ -5169,56 +5167,56 @@ class ThriftHiveMetastore_drop_partition_result { return false; return true; } - bool operator != (const ThriftHiveMetastore_drop_partition_result &rhs) const { + bool operator != (const ThriftHiveMetastore_drop_partitions_result &rhs) const { return !(*this == rhs); } - bool operator < (const ThriftHiveMetastore_drop_partition_result & ) const; + bool operator < (const ThriftHiveMetastore_drop_partitions_result & ) const; uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; }; -typedef struct _ThriftHiveMetastore_drop_partition_presult__isset { - _ThriftHiveMetastore_drop_partition_presult__isset() : success(false), o1(false), o2(false) {} +typedef struct _ThriftHiveMetastore_drop_partitions_presult__isset { + _ThriftHiveMetastore_drop_partitions_presult__isset() : success(false), o1(false), o2(false) {} bool success; bool o1; bool o2; -} _ThriftHiveMetastore_drop_partition_presult__isset; +} _ThriftHiveMetastore_drop_partitions_presult__isset; -class ThriftHiveMetastore_drop_partition_presult { +class ThriftHiveMetastore_drop_partitions_presult { public: - virtual ~ThriftHiveMetastore_drop_partition_presult() throw() {} + virtual ~ThriftHiveMetastore_drop_partitions_presult() throw() {} - bool* success; + std::vector * success; NoSuchObjectException o1; MetaException o2; - _ThriftHiveMetastore_drop_partition_presult__isset __isset; + _ThriftHiveMetastore_drop_partitions_presult__isset __isset; uint32_t read(::apache::thrift::protocol::TProtocol* iprot); }; -typedef struct _ThriftHiveMetastore_drop_partition_with_environment_context_args__isset { - _ThriftHiveMetastore_drop_partition_with_environment_context_args__isset() : db_name(false), tbl_name(false), part_vals(false), deleteData(false), environment_context(false) {} +typedef struct _ThriftHiveMetastore_drop_partitions_with_environment_context_args__isset { + _ThriftHiveMetastore_drop_partitions_with_environment_context_args__isset() : db_name(false), tbl_name(false), part_vals(false), deleteData(false), environment_context(false) {} bool db_name; bool tbl_name; bool part_vals; bool deleteData; bool environment_context; -} _ThriftHiveMetastore_drop_partition_with_environment_context_args__isset; +} _ThriftHiveMetastore_drop_partitions_with_environment_context_args__isset; -class ThriftHiveMetastore_drop_partition_with_environment_context_args { +class ThriftHiveMetastore_drop_partitions_with_environment_context_args { public: - ThriftHiveMetastore_drop_partition_with_environment_context_args() : db_name(), tbl_name(), deleteData(0) { + ThriftHiveMetastore_drop_partitions_with_environment_context_args() : db_name(), tbl_name(), deleteData(0) { } - virtual ~ThriftHiveMetastore_drop_partition_with_environment_context_args() throw() {} + virtual ~ThriftHiveMetastore_drop_partitions_with_environment_context_args() throw() {} std::string db_name; std::string tbl_name; @@ -5226,7 +5224,7 @@ class ThriftHiveMetastore_drop_partition_with_environment_context_args { bool deleteData; EnvironmentContext environment_context; - _ThriftHiveMetastore_drop_partition_with_environment_context_args__isset __isset; + _ThriftHiveMetastore_drop_partitions_with_environment_context_args__isset __isset; void __set_db_name(const std::string& val) { db_name = val; @@ -5248,7 +5246,7 @@ class ThriftHiveMetastore_drop_partition_with_environment_context_args { environment_context = val; } - bool operator == (const ThriftHiveMetastore_drop_partition_with_environment_context_args & rhs) const + bool operator == (const ThriftHiveMetastore_drop_partitions_with_environment_context_args & rhs) const { if (!(db_name == rhs.db_name)) return false; @@ -5262,11 +5260,11 @@ class ThriftHiveMetastore_drop_partition_with_environment_context_args { return false; return true; } - bool operator != (const ThriftHiveMetastore_drop_partition_with_environment_context_args &rhs) const { + bool operator != (const ThriftHiveMetastore_drop_partitions_with_environment_context_args &rhs) const { return !(*this == rhs); } - bool operator < (const ThriftHiveMetastore_drop_partition_with_environment_context_args & ) const; + bool operator < (const ThriftHiveMetastore_drop_partitions_with_environment_context_args & ) const; uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; @@ -5274,11 +5272,11 @@ class ThriftHiveMetastore_drop_partition_with_environment_context_args { }; -class ThriftHiveMetastore_drop_partition_with_environment_context_pargs { +class ThriftHiveMetastore_drop_partitions_with_environment_context_pargs { public: - virtual ~ThriftHiveMetastore_drop_partition_with_environment_context_pargs() throw() {} + virtual ~ThriftHiveMetastore_drop_partitions_with_environment_context_pargs() throw() {} const std::string* db_name; const std::string* tbl_name; @@ -5290,28 +5288,28 @@ class ThriftHiveMetastore_drop_partition_with_environment_context_pargs { }; -typedef struct _ThriftHiveMetastore_drop_partition_with_environment_context_result__isset { - _ThriftHiveMetastore_drop_partition_with_environment_context_result__isset() : success(false), o1(false), o2(false) {} +typedef struct _ThriftHiveMetastore_drop_partitions_with_environment_context_result__isset { + _ThriftHiveMetastore_drop_partitions_with_environment_context_result__isset() : success(false), o1(false), o2(false) {} bool success; bool o1; bool o2; -} _ThriftHiveMetastore_drop_partition_with_environment_context_result__isset; +} _ThriftHiveMetastore_drop_partitions_with_environment_context_result__isset; -class ThriftHiveMetastore_drop_partition_with_environment_context_result { +class ThriftHiveMetastore_drop_partitions_with_environment_context_result { public: - ThriftHiveMetastore_drop_partition_with_environment_context_result() : success(0) { + ThriftHiveMetastore_drop_partitions_with_environment_context_result() { } - virtual ~ThriftHiveMetastore_drop_partition_with_environment_context_result() throw() {} + virtual ~ThriftHiveMetastore_drop_partitions_with_environment_context_result() throw() {} - bool success; + std::vector success; NoSuchObjectException o1; MetaException o2; - _ThriftHiveMetastore_drop_partition_with_environment_context_result__isset __isset; + _ThriftHiveMetastore_drop_partitions_with_environment_context_result__isset __isset; - void __set_success(const bool val) { + void __set_success(const std::vector & val) { success = val; } @@ -5323,7 +5321,7 @@ class ThriftHiveMetastore_drop_partition_with_environment_context_result { o2 = val; } - bool operator == (const ThriftHiveMetastore_drop_partition_with_environment_context_result & rhs) const + bool operator == (const ThriftHiveMetastore_drop_partitions_with_environment_context_result & rhs) const { if (!(success == rhs.success)) return false; @@ -5333,35 +5331,35 @@ class ThriftHiveMetastore_drop_partition_with_environment_context_result { return false; return true; } - bool operator != (const ThriftHiveMetastore_drop_partition_with_environment_context_result &rhs) const { + bool operator != (const ThriftHiveMetastore_drop_partitions_with_environment_context_result &rhs) const { return !(*this == rhs); } - bool operator < (const ThriftHiveMetastore_drop_partition_with_environment_context_result & ) const; + bool operator < (const ThriftHiveMetastore_drop_partitions_with_environment_context_result & ) const; uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; }; -typedef struct _ThriftHiveMetastore_drop_partition_with_environment_context_presult__isset { - _ThriftHiveMetastore_drop_partition_with_environment_context_presult__isset() : success(false), o1(false), o2(false) {} +typedef struct _ThriftHiveMetastore_drop_partitions_with_environment_context_presult__isset { + _ThriftHiveMetastore_drop_partitions_with_environment_context_presult__isset() : success(false), o1(false), o2(false) {} bool success; bool o1; bool o2; -} _ThriftHiveMetastore_drop_partition_with_environment_context_presult__isset; +} _ThriftHiveMetastore_drop_partitions_with_environment_context_presult__isset; -class ThriftHiveMetastore_drop_partition_with_environment_context_presult { +class ThriftHiveMetastore_drop_partitions_with_environment_context_presult { public: - virtual ~ThriftHiveMetastore_drop_partition_with_environment_context_presult() throw() {} + virtual ~ThriftHiveMetastore_drop_partitions_with_environment_context_presult() throw() {} - bool* success; + std::vector * success; NoSuchObjectException o1; MetaException o2; - _ThriftHiveMetastore_drop_partition_with_environment_context_presult__isset __isset; + _ThriftHiveMetastore_drop_partitions_with_environment_context_presult__isset __isset; uint32_t read(::apache::thrift::protocol::TProtocol* iprot); @@ -16077,12 +16075,12 @@ class ThriftHiveMetastoreClient : virtual public ThriftHiveMetastoreIf, public void append_partition_by_name_with_environment_context(Partition& _return, const std::string& db_name, const std::string& tbl_name, const std::string& part_name, const EnvironmentContext& environment_context); void send_append_partition_by_name_with_environment_context(const std::string& db_name, const std::string& tbl_name, const std::string& part_name, const EnvironmentContext& environment_context); void recv_append_partition_by_name_with_environment_context(Partition& _return); - bool drop_partition(const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const bool deleteData); - void send_drop_partition(const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const bool deleteData); - bool recv_drop_partition(); - bool drop_partition_with_environment_context(const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const bool deleteData, const EnvironmentContext& environment_context); - void send_drop_partition_with_environment_context(const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const bool deleteData, const EnvironmentContext& environment_context); - bool recv_drop_partition_with_environment_context(); + void drop_partitions(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const bool deleteData); + void send_drop_partitions(const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const bool deleteData); + void recv_drop_partitions(std::vector & _return); + void drop_partitions_with_environment_context(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const bool deleteData, const EnvironmentContext& environment_context); + void send_drop_partitions_with_environment_context(const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const bool deleteData, const EnvironmentContext& environment_context); + void recv_drop_partitions_with_environment_context(std::vector & _return); bool drop_partition_by_name(const std::string& db_name, const std::string& tbl_name, const std::string& part_name, const bool deleteData); void send_drop_partition_by_name(const std::string& db_name, const std::string& tbl_name, const std::string& part_name, const bool deleteData); bool recv_drop_partition_by_name(); @@ -16360,8 +16358,8 @@ class ThriftHiveMetastoreProcessor : public ::facebook::fb303::FacebookServiceP void process_append_partition_with_environment_context(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_append_partition_by_name(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_append_partition_by_name_with_environment_context(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); - void process_drop_partition(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); - void process_drop_partition_with_environment_context(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); + void process_drop_partitions(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); + void process_drop_partitions_with_environment_context(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_drop_partition_by_name(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_drop_partition_by_name_with_environment_context(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_drop_partitions_req(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); @@ -16477,8 +16475,8 @@ class ThriftHiveMetastoreProcessor : public ::facebook::fb303::FacebookServiceP processMap_["append_partition_with_environment_context"] = &ThriftHiveMetastoreProcessor::process_append_partition_with_environment_context; processMap_["append_partition_by_name"] = &ThriftHiveMetastoreProcessor::process_append_partition_by_name; processMap_["append_partition_by_name_with_environment_context"] = &ThriftHiveMetastoreProcessor::process_append_partition_by_name_with_environment_context; - processMap_["drop_partition"] = &ThriftHiveMetastoreProcessor::process_drop_partition; - processMap_["drop_partition_with_environment_context"] = &ThriftHiveMetastoreProcessor::process_drop_partition_with_environment_context; + processMap_["drop_partitions"] = &ThriftHiveMetastoreProcessor::process_drop_partitions; + processMap_["drop_partitions_with_environment_context"] = &ThriftHiveMetastoreProcessor::process_drop_partitions_with_environment_context; processMap_["drop_partition_by_name"] = &ThriftHiveMetastoreProcessor::process_drop_partition_by_name; processMap_["drop_partition_by_name_with_environment_context"] = &ThriftHiveMetastoreProcessor::process_drop_partition_by_name_with_environment_context; processMap_["drop_partitions_req"] = &ThriftHiveMetastoreProcessor::process_drop_partitions_req; @@ -16907,22 +16905,24 @@ class ThriftHiveMetastoreMultiface : virtual public ThriftHiveMetastoreIf, publi return; } - bool drop_partition(const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const bool deleteData) { + void drop_partitions(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const bool deleteData) { size_t sz = ifaces_.size(); size_t i = 0; for (; i < (sz - 1); ++i) { - ifaces_[i]->drop_partition(db_name, tbl_name, part_vals, deleteData); + ifaces_[i]->drop_partitions(_return, db_name, tbl_name, part_vals, deleteData); } - return ifaces_[i]->drop_partition(db_name, tbl_name, part_vals, deleteData); + ifaces_[i]->drop_partitions(_return, db_name, tbl_name, part_vals, deleteData); + return; } - bool drop_partition_with_environment_context(const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const bool deleteData, const EnvironmentContext& environment_context) { + void drop_partitions_with_environment_context(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const bool deleteData, const EnvironmentContext& environment_context) { size_t sz = ifaces_.size(); size_t i = 0; for (; i < (sz - 1); ++i) { - ifaces_[i]->drop_partition_with_environment_context(db_name, tbl_name, part_vals, deleteData, environment_context); + ifaces_[i]->drop_partitions_with_environment_context(_return, db_name, tbl_name, part_vals, deleteData, environment_context); } - return ifaces_[i]->drop_partition_with_environment_context(db_name, tbl_name, part_vals, deleteData, environment_context); + ifaces_[i]->drop_partitions_with_environment_context(_return, db_name, tbl_name, part_vals, deleteData, environment_context); + return; } bool drop_partition_by_name(const std::string& db_name, const std::string& tbl_name, const std::string& part_name, const bool deleteData) { diff --git metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore_server.skeleton.cpp metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore_server.skeleton.cpp index 021f5c6..3a0fa96 100644 --- metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore_server.skeleton.cpp +++ metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore_server.skeleton.cpp @@ -187,14 +187,14 @@ class ThriftHiveMetastoreHandler : virtual public ThriftHiveMetastoreIf { printf("append_partition_by_name_with_environment_context\n"); } - bool drop_partition(const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const bool deleteData) { + void drop_partitions(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const bool deleteData) { // Your implementation goes here - printf("drop_partition\n"); + printf("drop_partitions\n"); } - bool drop_partition_with_environment_context(const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const bool deleteData, const EnvironmentContext& environment_context) { + void drop_partitions_with_environment_context(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const bool deleteData, const EnvironmentContext& environment_context) { // Your implementation goes here - printf("drop_partition_with_environment_context\n"); + printf("drop_partitions_with_environment_context\n"); } bool drop_partition_by_name(const std::string& db_name, const std::string& tbl_name, const std::string& part_name, const bool deleteData) { 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 011f612..adf79dc 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 @@ -104,9 +104,9 @@ public Partition append_partition_by_name_with_environment_context(String db_name, String tbl_name, String part_name, EnvironmentContext environment_context) throws InvalidObjectException, AlreadyExistsException, MetaException, org.apache.thrift.TException; - public boolean drop_partition(String db_name, String tbl_name, List part_vals, boolean deleteData) throws NoSuchObjectException, MetaException, org.apache.thrift.TException; + public List drop_partitions(String db_name, String tbl_name, List part_vals, boolean deleteData) throws NoSuchObjectException, MetaException, org.apache.thrift.TException; - public boolean drop_partition_with_environment_context(String db_name, String tbl_name, List part_vals, boolean deleteData, EnvironmentContext environment_context) throws NoSuchObjectException, MetaException, org.apache.thrift.TException; + public List drop_partitions_with_environment_context(String db_name, String tbl_name, List part_vals, boolean deleteData, EnvironmentContext environment_context) throws NoSuchObjectException, MetaException, org.apache.thrift.TException; public boolean drop_partition_by_name(String db_name, String tbl_name, String part_name, boolean deleteData) throws NoSuchObjectException, MetaException, org.apache.thrift.TException; @@ -334,9 +334,9 @@ public void append_partition_by_name_with_environment_context(String db_name, String tbl_name, String part_name, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void drop_partition(String db_name, String tbl_name, List part_vals, boolean deleteData, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void drop_partitions(String db_name, String tbl_name, List part_vals, boolean deleteData, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void drop_partition_with_environment_context(String db_name, String tbl_name, List part_vals, boolean deleteData, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void drop_partitions_with_environment_context(String db_name, String tbl_name, List part_vals, boolean deleteData, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void drop_partition_by_name(String db_name, String tbl_name, String part_name, boolean deleteData, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; @@ -1511,26 +1511,26 @@ public Partition recv_append_partition_by_name_with_environment_context() throws throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "append_partition_by_name_with_environment_context failed: unknown result"); } - public boolean drop_partition(String db_name, String tbl_name, List part_vals, boolean deleteData) throws NoSuchObjectException, MetaException, org.apache.thrift.TException + public List drop_partitions(String db_name, String tbl_name, List part_vals, boolean deleteData) throws NoSuchObjectException, MetaException, org.apache.thrift.TException { - send_drop_partition(db_name, tbl_name, part_vals, deleteData); - return recv_drop_partition(); + send_drop_partitions(db_name, tbl_name, part_vals, deleteData); + return recv_drop_partitions(); } - public void send_drop_partition(String db_name, String tbl_name, List part_vals, boolean deleteData) throws org.apache.thrift.TException + public void send_drop_partitions(String db_name, String tbl_name, List part_vals, boolean deleteData) throws org.apache.thrift.TException { - drop_partition_args args = new drop_partition_args(); + drop_partitions_args args = new drop_partitions_args(); args.setDb_name(db_name); args.setTbl_name(tbl_name); args.setPart_vals(part_vals); args.setDeleteData(deleteData); - sendBase("drop_partition", args); + sendBase("drop_partitions", args); } - public boolean recv_drop_partition() throws NoSuchObjectException, MetaException, org.apache.thrift.TException + public List recv_drop_partitions() throws NoSuchObjectException, MetaException, org.apache.thrift.TException { - drop_partition_result result = new drop_partition_result(); - receiveBase(result, "drop_partition"); + drop_partitions_result result = new drop_partitions_result(); + receiveBase(result, "drop_partitions"); if (result.isSetSuccess()) { return result.success; } @@ -1540,30 +1540,30 @@ public boolean recv_drop_partition() throws NoSuchObjectException, MetaException if (result.o2 != null) { throw result.o2; } - throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "drop_partition failed: unknown result"); + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "drop_partitions failed: unknown result"); } - public boolean drop_partition_with_environment_context(String db_name, String tbl_name, List part_vals, boolean deleteData, EnvironmentContext environment_context) throws NoSuchObjectException, MetaException, org.apache.thrift.TException + public List drop_partitions_with_environment_context(String db_name, String tbl_name, List part_vals, boolean deleteData, EnvironmentContext environment_context) throws NoSuchObjectException, MetaException, org.apache.thrift.TException { - send_drop_partition_with_environment_context(db_name, tbl_name, part_vals, deleteData, environment_context); - return recv_drop_partition_with_environment_context(); + send_drop_partitions_with_environment_context(db_name, tbl_name, part_vals, deleteData, environment_context); + return recv_drop_partitions_with_environment_context(); } - public void send_drop_partition_with_environment_context(String db_name, String tbl_name, List part_vals, boolean deleteData, EnvironmentContext environment_context) throws org.apache.thrift.TException + public void send_drop_partitions_with_environment_context(String db_name, String tbl_name, List part_vals, boolean deleteData, EnvironmentContext environment_context) throws org.apache.thrift.TException { - drop_partition_with_environment_context_args args = new drop_partition_with_environment_context_args(); + drop_partitions_with_environment_context_args args = new drop_partitions_with_environment_context_args(); args.setDb_name(db_name); args.setTbl_name(tbl_name); args.setPart_vals(part_vals); args.setDeleteData(deleteData); args.setEnvironment_context(environment_context); - sendBase("drop_partition_with_environment_context", args); + sendBase("drop_partitions_with_environment_context", args); } - public boolean recv_drop_partition_with_environment_context() throws NoSuchObjectException, MetaException, org.apache.thrift.TException + public List recv_drop_partitions_with_environment_context() throws NoSuchObjectException, MetaException, org.apache.thrift.TException { - drop_partition_with_environment_context_result result = new drop_partition_with_environment_context_result(); - receiveBase(result, "drop_partition_with_environment_context"); + drop_partitions_with_environment_context_result result = new drop_partitions_with_environment_context_result(); + receiveBase(result, "drop_partitions_with_environment_context"); if (result.isSetSuccess()) { return result.success; } @@ -1573,7 +1573,7 @@ public boolean recv_drop_partition_with_environment_context() throws NoSuchObjec if (result.o2 != null) { throw result.o2; } - throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "drop_partition_with_environment_context failed: unknown result"); + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "drop_partitions_with_environment_context failed: unknown result"); } public boolean drop_partition_by_name(String db_name, String tbl_name, String part_name, boolean deleteData) throws NoSuchObjectException, MetaException, org.apache.thrift.TException @@ -5030,19 +5030,19 @@ public Partition getResult() throws InvalidObjectException, AlreadyExistsExcepti } } - public void drop_partition(String db_name, String tbl_name, List part_vals, boolean deleteData, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void drop_partitions(String db_name, String tbl_name, List part_vals, boolean deleteData, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - drop_partition_call method_call = new drop_partition_call(db_name, tbl_name, part_vals, deleteData, resultHandler, this, ___protocolFactory, ___transport); + drop_partitions_call method_call = new drop_partitions_call(db_name, tbl_name, part_vals, deleteData, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class drop_partition_call extends org.apache.thrift.async.TAsyncMethodCall { + public static class drop_partitions_call extends org.apache.thrift.async.TAsyncMethodCall { private String db_name; private String tbl_name; private List part_vals; private boolean deleteData; - public drop_partition_call(String db_name, String tbl_name, List part_vals, boolean deleteData, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public drop_partitions_call(String db_name, String tbl_name, List part_vals, boolean deleteData, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.db_name = db_name; this.tbl_name = tbl_name; @@ -5051,8 +5051,8 @@ public drop_partition_call(String db_name, String tbl_name, List part_va } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { - prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("drop_partition", org.apache.thrift.protocol.TMessageType.CALL, 0)); - drop_partition_args args = new drop_partition_args(); + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("drop_partitions", org.apache.thrift.protocol.TMessageType.CALL, 0)); + drop_partitions_args args = new drop_partitions_args(); args.setDb_name(db_name); args.setTbl_name(tbl_name); args.setPart_vals(part_vals); @@ -5061,30 +5061,30 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa prot.writeMessageEnd(); } - public boolean 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); - return (new Client(prot)).recv_drop_partition(); + return (new Client(prot)).recv_drop_partitions(); } } - public void drop_partition_with_environment_context(String db_name, String tbl_name, List part_vals, boolean deleteData, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void drop_partitions_with_environment_context(String db_name, String tbl_name, List part_vals, boolean deleteData, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - drop_partition_with_environment_context_call method_call = new drop_partition_with_environment_context_call(db_name, tbl_name, part_vals, deleteData, environment_context, resultHandler, this, ___protocolFactory, ___transport); + drop_partitions_with_environment_context_call method_call = new drop_partitions_with_environment_context_call(db_name, tbl_name, part_vals, deleteData, environment_context, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class drop_partition_with_environment_context_call extends org.apache.thrift.async.TAsyncMethodCall { + public static class drop_partitions_with_environment_context_call extends org.apache.thrift.async.TAsyncMethodCall { private String db_name; private String tbl_name; private List part_vals; private boolean deleteData; private EnvironmentContext environment_context; - public drop_partition_with_environment_context_call(String db_name, String tbl_name, List part_vals, boolean deleteData, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public drop_partitions_with_environment_context_call(String db_name, String tbl_name, List part_vals, boolean deleteData, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.db_name = db_name; this.tbl_name = tbl_name; @@ -5094,8 +5094,8 @@ public drop_partition_with_environment_context_call(String db_name, String tbl_n } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { - prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("drop_partition_with_environment_context", org.apache.thrift.protocol.TMessageType.CALL, 0)); - drop_partition_with_environment_context_args args = new drop_partition_with_environment_context_args(); + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("drop_partitions_with_environment_context", org.apache.thrift.protocol.TMessageType.CALL, 0)); + drop_partitions_with_environment_context_args args = new drop_partitions_with_environment_context_args(); args.setDb_name(db_name); args.setTbl_name(tbl_name); args.setPart_vals(part_vals); @@ -5105,13 +5105,13 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa prot.writeMessageEnd(); } - public boolean 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); - return (new Client(prot)).recv_drop_partition_with_environment_context(); + return (new Client(prot)).recv_drop_partitions_with_environment_context(); } } @@ -7957,8 +7957,8 @@ protected Processor(I iface, Map extends org.apache.thrift.ProcessFunction { - public drop_partition() { - super("drop_partition"); + public static class drop_partitions extends org.apache.thrift.ProcessFunction { + public drop_partitions() { + super("drop_partitions"); } - public drop_partition_args getEmptyArgsInstance() { - return new drop_partition_args(); + public drop_partitions_args getEmptyArgsInstance() { + return new drop_partitions_args(); } protected boolean isOneway() { return false; } - public drop_partition_result getResult(I iface, drop_partition_args args) throws org.apache.thrift.TException { - drop_partition_result result = new drop_partition_result(); + public drop_partitions_result getResult(I iface, drop_partitions_args args) throws org.apache.thrift.TException { + drop_partitions_result result = new drop_partitions_result(); try { - result.success = iface.drop_partition(args.db_name, args.tbl_name, args.part_vals, args.deleteData); - result.setSuccessIsSet(true); + result.success = iface.drop_partitions(args.db_name, args.tbl_name, args.part_vals, args.deleteData); } catch (NoSuchObjectException o1) { result.o1 = o1; } catch (MetaException o2) { @@ -8952,24 +8951,23 @@ public drop_partition_result getResult(I iface, drop_partition_args args) throws } } - public static class drop_partition_with_environment_context extends org.apache.thrift.ProcessFunction { - public drop_partition_with_environment_context() { - super("drop_partition_with_environment_context"); + public static class drop_partitions_with_environment_context extends org.apache.thrift.ProcessFunction { + public drop_partitions_with_environment_context() { + super("drop_partitions_with_environment_context"); } - public drop_partition_with_environment_context_args getEmptyArgsInstance() { - return new drop_partition_with_environment_context_args(); + public drop_partitions_with_environment_context_args getEmptyArgsInstance() { + return new drop_partitions_with_environment_context_args(); } protected boolean isOneway() { return false; } - public drop_partition_with_environment_context_result getResult(I iface, drop_partition_with_environment_context_args args) throws org.apache.thrift.TException { - drop_partition_with_environment_context_result result = new drop_partition_with_environment_context_result(); + public drop_partitions_with_environment_context_result getResult(I iface, drop_partitions_with_environment_context_args args) throws org.apache.thrift.TException { + drop_partitions_with_environment_context_result result = new drop_partitions_with_environment_context_result(); try { - result.success = iface.drop_partition_with_environment_context(args.db_name, args.tbl_name, args.part_vals, args.deleteData, args.environment_context); - result.setSuccessIsSet(true); + result.success = iface.drop_partitions_with_environment_context(args.db_name, args.tbl_name, args.part_vals, args.deleteData, args.environment_context); } catch (NoSuchObjectException o1) { result.o1 = o1; } catch (MetaException o2) { @@ -45981,8 +45979,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_by_ } - public static class drop_partition_args 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_partition_args"); + public static class drop_partitions_args 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_partitions_args"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); @@ -45991,8 +45989,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_by_ private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new drop_partition_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new drop_partition_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new drop_partitions_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new drop_partitions_argsTupleSchemeFactory()); } private String db_name; // required @@ -46083,13 +46081,13 @@ public String getFieldName() { tmpMap.put(_Fields.DELETE_DATA, new org.apache.thrift.meta_data.FieldMetaData("deleteData", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_partition_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_partitions_args.class, metaDataMap); } - public drop_partition_args() { + public drop_partitions_args() { } - public drop_partition_args( + public drop_partitions_args( String db_name, String tbl_name, List part_vals, @@ -46106,7 +46104,7 @@ public drop_partition_args( /** * Performs a deep copy on other. */ - public drop_partition_args(drop_partition_args other) { + public drop_partitions_args(drop_partitions_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetDb_name()) { this.db_name = other.db_name; @@ -46124,8 +46122,8 @@ public drop_partition_args(drop_partition_args other) { this.deleteData = other.deleteData; } - public drop_partition_args deepCopy() { - return new drop_partition_args(this); + public drop_partitions_args deepCopy() { + return new drop_partitions_args(this); } @Override @@ -46321,12 +46319,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof drop_partition_args) - return this.equals((drop_partition_args)that); + if (that instanceof drop_partitions_args) + return this.equals((drop_partitions_args)that); return false; } - public boolean equals(drop_partition_args that) { + public boolean equals(drop_partitions_args that) { if (that == null) return false; @@ -46396,13 +46394,13 @@ public int hashCode() { return builder.toHashCode(); } - public int compareTo(drop_partition_args other) { + public int compareTo(drop_partitions_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - drop_partition_args typedOther = (drop_partition_args)other; + drop_partitions_args typedOther = (drop_partitions_args)other; lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(typedOther.isSetDb_name()); if (lastComparison != 0) { @@ -46461,7 +46459,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("drop_partition_args("); + StringBuilder sb = new StringBuilder("drop_partitions_args("); boolean first = true; sb.append("db_name:"); @@ -46518,15 +46516,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class drop_partition_argsStandardSchemeFactory implements SchemeFactory { - public drop_partition_argsStandardScheme getScheme() { - return new drop_partition_argsStandardScheme(); + private static class drop_partitions_argsStandardSchemeFactory implements SchemeFactory { + public drop_partitions_argsStandardScheme getScheme() { + return new drop_partitions_argsStandardScheme(); } } - private static class drop_partition_argsStandardScheme extends StandardScheme { + private static class drop_partitions_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partitions_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -46587,7 +46585,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_args struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partition_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partitions_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -46622,16 +46620,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partition_arg } - private static class drop_partition_argsTupleSchemeFactory implements SchemeFactory { - public drop_partition_argsTupleScheme getScheme() { - return new drop_partition_argsTupleScheme(); + private static class drop_partitions_argsTupleSchemeFactory implements SchemeFactory { + public drop_partitions_argsTupleScheme getScheme() { + return new drop_partitions_argsTupleScheme(); } } - private static class drop_partition_argsTupleScheme extends TupleScheme { + private static class drop_partitions_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, drop_partitions_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetDb_name()) { @@ -46668,7 +46666,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_args } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, drop_partitions_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { @@ -46701,20 +46699,20 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_args } - public static class drop_partition_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_partition_result"); + public static class drop_partitions_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_partitions_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); + 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 O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new drop_partition_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new drop_partition_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new drop_partitions_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new drop_partitions_resultTupleSchemeFactory()); } - private boolean success; // required + private List success; // required private NoSuchObjectException o1; // required private MetaException o2; // required @@ -46783,32 +46781,30 @@ public String getFieldName() { } // isset id assignments - private static final int __SUCCESS_ISSET_ID = 0; - private byte __isset_bitfield = 0; 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.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + 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.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_partition_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_partitions_result.class, metaDataMap); } - public drop_partition_result() { + public drop_partitions_result() { } - public drop_partition_result( - boolean success, + public drop_partitions_result( + List success, NoSuchObjectException o1, MetaException o2) { this(); this.success = success; - setSuccessIsSet(true); this.o1 = o1; this.o2 = o2; } @@ -46816,9 +46812,14 @@ public drop_partition_result( /** * Performs a deep copy on other. */ - public drop_partition_result(drop_partition_result other) { - __isset_bitfield = other.__isset_bitfield; - this.success = other.success; + public drop_partitions_result(drop_partitions_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); } @@ -46827,38 +46828,53 @@ public drop_partition_result(drop_partition_result other) { } } - public drop_partition_result deepCopy() { - return new drop_partition_result(this); + public drop_partitions_result deepCopy() { + return new drop_partitions_result(this); } @Override public void clear() { - setSuccessIsSet(false); - this.success = false; + this.success = null; this.o1 = null; this.o2 = null; } - public boolean isSuccess() { + 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(boolean success) { + public void setSuccess(List success) { this.success = success; - setSuccessIsSet(true); } public void unsetSuccess() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); + this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { - return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); + return this.success != null; } public void setSuccessIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); + if (!value) { + this.success = null; + } } public NoSuchObjectException getO1() { @@ -46913,7 +46929,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((Boolean)value); + setSuccess((List)value); } break; @@ -46939,7 +46955,7 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: - return Boolean.valueOf(isSuccess()); + return getSuccess(); case O1: return getO1(); @@ -46972,21 +46988,21 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof drop_partition_result) - return this.equals((drop_partition_result)that); + if (that instanceof drop_partitions_result) + return this.equals((drop_partitions_result)that); return false; } - public boolean equals(drop_partition_result that) { + public boolean equals(drop_partitions_result that) { if (that == null) return false; - boolean this_present_success = true; - boolean that_present_success = true; + 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 != that.success) + if (!this.success.equals(that.success)) return false; } @@ -47015,7 +47031,7 @@ public boolean equals(drop_partition_result that) { public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); - boolean present_success = true; + boolean present_success = true && (isSetSuccess()); builder.append(present_success); if (present_success) builder.append(success); @@ -47033,13 +47049,13 @@ public int hashCode() { return builder.toHashCode(); } - public int compareTo(drop_partition_result other) { + public int compareTo(drop_partitions_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - drop_partition_result typedOther = (drop_partition_result)other; + drop_partitions_result typedOther = (drop_partitions_result)other; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { @@ -47088,11 +47104,15 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("drop_partition_result("); + StringBuilder sb = new StringBuilder("drop_partitions_result("); boolean first = true; sb.append("success:"); - sb.append(this.success); + if (this.success == null) { + sb.append("null"); + } else { + sb.append(this.success); + } first = false; if (!first) sb.append(", "); sb.append("o1:"); @@ -47129,23 +47149,21 @@ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOExcept private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { - // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. - __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class drop_partition_resultStandardSchemeFactory implements SchemeFactory { - public drop_partition_resultStandardScheme getScheme() { - return new drop_partition_resultStandardScheme(); + private static class drop_partitions_resultStandardSchemeFactory implements SchemeFactory { + public drop_partitions_resultStandardScheme getScheme() { + return new drop_partitions_resultStandardScheme(); } } - private static class drop_partition_resultStandardScheme extends StandardScheme { + private static class drop_partitions_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partitions_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -47156,8 +47174,19 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_resu } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.success = iprot.readBool(); + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list572 = iprot.readListBegin(); + struct.success = new ArrayList(_list572.size); + for (int _i573 = 0; _i573 < _list572.size; ++_i573) + { + Partition _elem574; // required + _elem574 = new Partition(); + _elem574.read(iprot); + struct.success.add(_elem574); + } + iprot.readListEnd(); + } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -47190,13 +47219,20 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_resu struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partition_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partitions_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.isSetSuccess()) { + if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - oprot.writeBool(struct.success); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); + for (Partition _iter575 : struct.success) + { + _iter575.write(oprot); + } + oprot.writeListEnd(); + } oprot.writeFieldEnd(); } if (struct.o1 != null) { @@ -47215,16 +47251,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partition_res } - private static class drop_partition_resultTupleSchemeFactory implements SchemeFactory { - public drop_partition_resultTupleScheme getScheme() { - return new drop_partition_resultTupleScheme(); + private static class drop_partitions_resultTupleSchemeFactory implements SchemeFactory { + public drop_partitions_resultTupleScheme getScheme() { + return new drop_partitions_resultTupleScheme(); } } - private static class drop_partition_resultTupleScheme extends TupleScheme { + private static class drop_partitions_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, drop_partitions_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -47238,7 +47274,13 @@ public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_resu } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { - oprot.writeBool(struct.success); + { + oprot.writeI32(struct.success.size()); + for (Partition _iter576 : struct.success) + { + _iter576.write(oprot); + } + } } if (struct.isSetO1()) { struct.o1.write(oprot); @@ -47249,11 +47291,21 @@ public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_resu } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, drop_partitions_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - struct.success = iprot.readBool(); + { + org.apache.thrift.protocol.TList _list577 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list577.size); + for (int _i578 = 0; _i578 < _list577.size; ++_i578) + { + Partition _elem579; // required + _elem579 = new Partition(); + _elem579.read(iprot); + struct.success.add(_elem579); + } + } struct.setSuccessIsSet(true); } if (incoming.get(1)) { @@ -47271,8 +47323,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_resul } - public static class drop_partition_with_environment_context_args 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_partition_with_environment_context_args"); + public static class drop_partitions_with_environment_context_args 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_partitions_with_environment_context_args"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); @@ -47282,8 +47334,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_resul private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new drop_partition_with_environment_context_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new drop_partition_with_environment_context_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new drop_partitions_with_environment_context_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new drop_partitions_with_environment_context_argsTupleSchemeFactory()); } private String db_name; // required @@ -47380,13 +47432,13 @@ public String getFieldName() { tmpMap.put(_Fields.ENVIRONMENT_CONTEXT, new org.apache.thrift.meta_data.FieldMetaData("environment_context", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, EnvironmentContext.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_partition_with_environment_context_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_partitions_with_environment_context_args.class, metaDataMap); } - public drop_partition_with_environment_context_args() { + public drop_partitions_with_environment_context_args() { } - public drop_partition_with_environment_context_args( + public drop_partitions_with_environment_context_args( String db_name, String tbl_name, List part_vals, @@ -47405,7 +47457,7 @@ public drop_partition_with_environment_context_args( /** * Performs a deep copy on other. */ - public drop_partition_with_environment_context_args(drop_partition_with_environment_context_args other) { + public drop_partitions_with_environment_context_args(drop_partitions_with_environment_context_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetDb_name()) { this.db_name = other.db_name; @@ -47426,8 +47478,8 @@ public drop_partition_with_environment_context_args(drop_partition_with_environm } } - public drop_partition_with_environment_context_args deepCopy() { - return new drop_partition_with_environment_context_args(this); + public drop_partitions_with_environment_context_args deepCopy() { + return new drop_partitions_with_environment_context_args(this); } @Override @@ -47660,12 +47712,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof drop_partition_with_environment_context_args) - return this.equals((drop_partition_with_environment_context_args)that); + if (that instanceof drop_partitions_with_environment_context_args) + return this.equals((drop_partitions_with_environment_context_args)that); return false; } - public boolean equals(drop_partition_with_environment_context_args that) { + public boolean equals(drop_partitions_with_environment_context_args that) { if (that == null) return false; @@ -47749,13 +47801,13 @@ public int hashCode() { return builder.toHashCode(); } - public int compareTo(drop_partition_with_environment_context_args other) { + public int compareTo(drop_partitions_with_environment_context_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - drop_partition_with_environment_context_args typedOther = (drop_partition_with_environment_context_args)other; + drop_partitions_with_environment_context_args typedOther = (drop_partitions_with_environment_context_args)other; lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(typedOther.isSetDb_name()); if (lastComparison != 0) { @@ -47824,7 +47876,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("drop_partition_with_environment_context_args("); + StringBuilder sb = new StringBuilder("drop_partitions_with_environment_context_args("); boolean first = true; sb.append("db_name:"); @@ -47892,15 +47944,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class drop_partition_with_environment_context_argsStandardSchemeFactory implements SchemeFactory { - public drop_partition_with_environment_context_argsStandardScheme getScheme() { - return new drop_partition_with_environment_context_argsStandardScheme(); + private static class drop_partitions_with_environment_context_argsStandardSchemeFactory implements SchemeFactory { + public drop_partitions_with_environment_context_argsStandardScheme getScheme() { + return new drop_partitions_with_environment_context_argsStandardScheme(); } } - private static class drop_partition_with_environment_context_argsStandardScheme extends StandardScheme { + private static class drop_partitions_with_environment_context_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_with_environment_context_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partitions_with_environment_context_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -47929,13 +47981,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 _list572 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list572.size); - for (int _i573 = 0; _i573 < _list572.size; ++_i573) + org.apache.thrift.protocol.TList _list580 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list580.size); + for (int _i581 = 0; _i581 < _list580.size; ++_i581) { - String _elem574; // required - _elem574 = iprot.readString(); - struct.part_vals.add(_elem574); + String _elem582; // required + _elem582 = iprot.readString(); + struct.part_vals.add(_elem582); } iprot.readListEnd(); } @@ -47970,7 +48022,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_with struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partition_with_environment_context_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partitions_with_environment_context_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -47988,9 +48040,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 _iter575 : struct.part_vals) + for (String _iter583 : struct.part_vals) { - oprot.writeString(_iter575); + oprot.writeString(_iter583); } oprot.writeListEnd(); } @@ -48010,16 +48062,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partition_wit } - private static class drop_partition_with_environment_context_argsTupleSchemeFactory implements SchemeFactory { - public drop_partition_with_environment_context_argsTupleScheme getScheme() { - return new drop_partition_with_environment_context_argsTupleScheme(); + private static class drop_partitions_with_environment_context_argsTupleSchemeFactory implements SchemeFactory { + public drop_partitions_with_environment_context_argsTupleScheme getScheme() { + return new drop_partitions_with_environment_context_argsTupleScheme(); } } - private static class drop_partition_with_environment_context_argsTupleScheme extends TupleScheme { + private static class drop_partitions_with_environment_context_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_with_environment_context_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, drop_partitions_with_environment_context_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetDb_name()) { @@ -48047,9 +48099,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 _iter576 : struct.part_vals) + for (String _iter584 : struct.part_vals) { - oprot.writeString(_iter576); + oprot.writeString(_iter584); } } } @@ -48062,7 +48114,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_with } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_with_environment_context_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, drop_partitions_with_environment_context_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { @@ -48075,13 +48127,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_with_ } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list577 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list577.size); - for (int _i578 = 0; _i578 < _list577.size; ++_i578) + org.apache.thrift.protocol.TList _list585 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list585.size); + for (int _i586 = 0; _i586 < _list585.size; ++_i586) { - String _elem579; // required - _elem579 = iprot.readString(); - struct.part_vals.add(_elem579); + String _elem587; // required + _elem587 = iprot.readString(); + struct.part_vals.add(_elem587); } } struct.setPart_valsIsSet(true); @@ -48100,20 +48152,20 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_with_ } - public static class drop_partition_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_partition_with_environment_context_result"); + public static class drop_partitions_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_partitions_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.BOOL, (short)0); + 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 O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new drop_partition_with_environment_context_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new drop_partition_with_environment_context_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new drop_partitions_with_environment_context_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new drop_partitions_with_environment_context_resultTupleSchemeFactory()); } - private boolean success; // required + private List success; // required private NoSuchObjectException o1; // required private MetaException o2; // required @@ -48182,32 +48234,30 @@ public String getFieldName() { } // isset id assignments - private static final int __SUCCESS_ISSET_ID = 0; - private byte __isset_bitfield = 0; 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.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + 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.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_partition_with_environment_context_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_partitions_with_environment_context_result.class, metaDataMap); } - public drop_partition_with_environment_context_result() { + public drop_partitions_with_environment_context_result() { } - public drop_partition_with_environment_context_result( - boolean success, + public drop_partitions_with_environment_context_result( + List success, NoSuchObjectException o1, MetaException o2) { this(); this.success = success; - setSuccessIsSet(true); this.o1 = o1; this.o2 = o2; } @@ -48215,9 +48265,14 @@ public drop_partition_with_environment_context_result( /** * Performs a deep copy on other. */ - public drop_partition_with_environment_context_result(drop_partition_with_environment_context_result other) { - __isset_bitfield = other.__isset_bitfield; - this.success = other.success; + public drop_partitions_with_environment_context_result(drop_partitions_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); } @@ -48226,38 +48281,53 @@ public drop_partition_with_environment_context_result(drop_partition_with_enviro } } - public drop_partition_with_environment_context_result deepCopy() { - return new drop_partition_with_environment_context_result(this); + public drop_partitions_with_environment_context_result deepCopy() { + return new drop_partitions_with_environment_context_result(this); } @Override public void clear() { - setSuccessIsSet(false); - this.success = false; + this.success = null; this.o1 = null; this.o2 = null; } - public boolean isSuccess() { + 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(boolean success) { + public void setSuccess(List success) { this.success = success; - setSuccessIsSet(true); } public void unsetSuccess() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); + this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { - return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); + return this.success != null; } public void setSuccessIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); + if (!value) { + this.success = null; + } } public NoSuchObjectException getO1() { @@ -48312,7 +48382,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((Boolean)value); + setSuccess((List)value); } break; @@ -48338,7 +48408,7 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: - return Boolean.valueOf(isSuccess()); + return getSuccess(); case O1: return getO1(); @@ -48371,21 +48441,21 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof drop_partition_with_environment_context_result) - return this.equals((drop_partition_with_environment_context_result)that); + if (that instanceof drop_partitions_with_environment_context_result) + return this.equals((drop_partitions_with_environment_context_result)that); return false; } - public boolean equals(drop_partition_with_environment_context_result that) { + public boolean equals(drop_partitions_with_environment_context_result that) { if (that == null) return false; - boolean this_present_success = true; - boolean that_present_success = true; + 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 != that.success) + if (!this.success.equals(that.success)) return false; } @@ -48414,7 +48484,7 @@ public boolean equals(drop_partition_with_environment_context_result that) { public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); - boolean present_success = true; + boolean present_success = true && (isSetSuccess()); builder.append(present_success); if (present_success) builder.append(success); @@ -48432,13 +48502,13 @@ public int hashCode() { return builder.toHashCode(); } - public int compareTo(drop_partition_with_environment_context_result other) { + public int compareTo(drop_partitions_with_environment_context_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - drop_partition_with_environment_context_result typedOther = (drop_partition_with_environment_context_result)other; + drop_partitions_with_environment_context_result typedOther = (drop_partitions_with_environment_context_result)other; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { @@ -48487,11 +48557,15 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("drop_partition_with_environment_context_result("); + StringBuilder sb = new StringBuilder("drop_partitions_with_environment_context_result("); boolean first = true; sb.append("success:"); - sb.append(this.success); + if (this.success == null) { + sb.append("null"); + } else { + sb.append(this.success); + } first = false; if (!first) sb.append(", "); sb.append("o1:"); @@ -48528,23 +48602,21 @@ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOExcept private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { - // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. - __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class drop_partition_with_environment_context_resultStandardSchemeFactory implements SchemeFactory { - public drop_partition_with_environment_context_resultStandardScheme getScheme() { - return new drop_partition_with_environment_context_resultStandardScheme(); + private static class drop_partitions_with_environment_context_resultStandardSchemeFactory implements SchemeFactory { + public drop_partitions_with_environment_context_resultStandardScheme getScheme() { + return new drop_partitions_with_environment_context_resultStandardScheme(); } } - private static class drop_partition_with_environment_context_resultStandardScheme extends StandardScheme { + private static class drop_partitions_with_environment_context_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_with_environment_context_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partitions_with_environment_context_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -48555,8 +48627,19 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_with } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.success = iprot.readBool(); + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list588 = iprot.readListBegin(); + struct.success = new ArrayList(_list588.size); + for (int _i589 = 0; _i589 < _list588.size; ++_i589) + { + Partition _elem590; // required + _elem590 = new Partition(); + _elem590.read(iprot); + struct.success.add(_elem590); + } + iprot.readListEnd(); + } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -48589,13 +48672,20 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_with struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partition_with_environment_context_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partitions_with_environment_context_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.isSetSuccess()) { + if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - oprot.writeBool(struct.success); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); + for (Partition _iter591 : struct.success) + { + _iter591.write(oprot); + } + oprot.writeListEnd(); + } oprot.writeFieldEnd(); } if (struct.o1 != null) { @@ -48614,16 +48704,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partition_wit } - private static class drop_partition_with_environment_context_resultTupleSchemeFactory implements SchemeFactory { - public drop_partition_with_environment_context_resultTupleScheme getScheme() { - return new drop_partition_with_environment_context_resultTupleScheme(); + private static class drop_partitions_with_environment_context_resultTupleSchemeFactory implements SchemeFactory { + public drop_partitions_with_environment_context_resultTupleScheme getScheme() { + return new drop_partitions_with_environment_context_resultTupleScheme(); } } - private static class drop_partition_with_environment_context_resultTupleScheme extends TupleScheme { + private static class drop_partitions_with_environment_context_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_with_environment_context_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, drop_partitions_with_environment_context_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -48637,7 +48727,13 @@ public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_with } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { - oprot.writeBool(struct.success); + { + oprot.writeI32(struct.success.size()); + for (Partition _iter592 : struct.success) + { + _iter592.write(oprot); + } + } } if (struct.isSetO1()) { struct.o1.write(oprot); @@ -48648,11 +48744,21 @@ public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_with } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_with_environment_context_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, drop_partitions_with_environment_context_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - struct.success = iprot.readBool(); + { + org.apache.thrift.protocol.TList _list593 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list593.size); + for (int _i594 = 0; _i594 < _list593.size; ++_i594) + { + Partition _elem595; // required + _elem595 = new Partition(); + _elem595.read(iprot); + struct.success.add(_elem595); + } + } struct.setSuccessIsSet(true); } if (incoming.get(1)) { @@ -52686,13 +52792,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 _list580 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list580.size); - for (int _i581 = 0; _i581 < _list580.size; ++_i581) + org.apache.thrift.protocol.TList _list596 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list596.size); + for (int _i597 = 0; _i597 < _list596.size; ++_i597) { - String _elem582; // required - _elem582 = iprot.readString(); - struct.part_vals.add(_elem582); + String _elem598; // required + _elem598 = iprot.readString(); + struct.part_vals.add(_elem598); } iprot.readListEnd(); } @@ -52728,9 +52834,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 _iter583 : struct.part_vals) + for (String _iter599 : struct.part_vals) { - oprot.writeString(_iter583); + oprot.writeString(_iter599); } oprot.writeListEnd(); } @@ -52773,9 +52879,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 _iter584 : struct.part_vals) + for (String _iter600 : struct.part_vals) { - oprot.writeString(_iter584); + oprot.writeString(_iter600); } } } @@ -52795,13 +52901,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_args s } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list585 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list585.size); - for (int _i586 = 0; _i586 < _list585.size; ++_i586) + org.apache.thrift.protocol.TList _list601 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list601.size); + for (int _i602 = 0; _i602 < _list601.size; ++_i602) { - String _elem587; // required - _elem587 = iprot.readString(); - struct.part_vals.add(_elem587); + String _elem603; // required + _elem603 = iprot.readString(); + struct.part_vals.add(_elem603); } } struct.setPart_valsIsSet(true); @@ -54030,15 +54136,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 _map588 = iprot.readMapBegin(); - struct.partitionSpecs = new HashMap(2*_map588.size); - for (int _i589 = 0; _i589 < _map588.size; ++_i589) + org.apache.thrift.protocol.TMap _map604 = iprot.readMapBegin(); + struct.partitionSpecs = new HashMap(2*_map604.size); + for (int _i605 = 0; _i605 < _map604.size; ++_i605) { - String _key590; // required - String _val591; // required - _key590 = iprot.readString(); - _val591 = iprot.readString(); - struct.partitionSpecs.put(_key590, _val591); + String _key606; // required + String _val607; // required + _key606 = iprot.readString(); + _val607 = iprot.readString(); + struct.partitionSpecs.put(_key606, _val607); } iprot.readMapEnd(); } @@ -54096,10 +54202,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 _iter592 : struct.partitionSpecs.entrySet()) + for (Map.Entry _iter608 : struct.partitionSpecs.entrySet()) { - oprot.writeString(_iter592.getKey()); - oprot.writeString(_iter592.getValue()); + oprot.writeString(_iter608.getKey()); + oprot.writeString(_iter608.getValue()); } oprot.writeMapEnd(); } @@ -54162,10 +54268,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, exchange_partition_ if (struct.isSetPartitionSpecs()) { { oprot.writeI32(struct.partitionSpecs.size()); - for (Map.Entry _iter593 : struct.partitionSpecs.entrySet()) + for (Map.Entry _iter609 : struct.partitionSpecs.entrySet()) { - oprot.writeString(_iter593.getKey()); - oprot.writeString(_iter593.getValue()); + oprot.writeString(_iter609.getKey()); + oprot.writeString(_iter609.getValue()); } } } @@ -54189,15 +54295,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 _map594 = 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*_map594.size); - for (int _i595 = 0; _i595 < _map594.size; ++_i595) + org.apache.thrift.protocol.TMap _map610 = 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*_map610.size); + for (int _i611 = 0; _i611 < _map610.size; ++_i611) { - String _key596; // required - String _val597; // required - _key596 = iprot.readString(); - _val597 = iprot.readString(); - struct.partitionSpecs.put(_key596, _val597); + String _key612; // required + String _val613; // required + _key612 = iprot.readString(); + _val613 = iprot.readString(); + struct.partitionSpecs.put(_key612, _val613); } } struct.setPartitionSpecsIsSet(true); @@ -55685,13 +55791,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 _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(); } @@ -55711,13 +55817,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 _list601 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list601.size); - for (int _i602 = 0; _i602 < _list601.size; ++_i602) + org.apache.thrift.protocol.TList _list617 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list617.size); + for (int _i618 = 0; _i618 < _list617.size; ++_i618) { - String _elem603; // required - _elem603 = iprot.readString(); - struct.group_names.add(_elem603); + String _elem619; // required + _elem619 = iprot.readString(); + struct.group_names.add(_elem619); } iprot.readListEnd(); } @@ -55753,9 +55859,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 _iter604 : struct.part_vals) + for (String _iter620 : struct.part_vals) { - oprot.writeString(_iter604); + oprot.writeString(_iter620); } oprot.writeListEnd(); } @@ -55770,9 +55876,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 _iter605 : struct.group_names) + for (String _iter621 : struct.group_names) { - oprot.writeString(_iter605); + oprot.writeString(_iter621); } oprot.writeListEnd(); } @@ -55821,9 +55927,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 _iter606 : struct.part_vals) + for (String _iter622 : struct.part_vals) { - oprot.writeString(_iter606); + oprot.writeString(_iter622); } } } @@ -55833,9 +55939,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 _iter607 : struct.group_names) + for (String _iter623 : struct.group_names) { - oprot.writeString(_iter607); + oprot.writeString(_iter623); } } } @@ -55855,13 +55961,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_with_a } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list608 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list608.size); - for (int _i609 = 0; _i609 < _list608.size; ++_i609) + org.apache.thrift.protocol.TList _list624 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list624.size); + for (int _i625 = 0; _i625 < _list624.size; ++_i625) { - String _elem610; // required - _elem610 = iprot.readString(); - struct.part_vals.add(_elem610); + String _elem626; // required + _elem626 = iprot.readString(); + struct.part_vals.add(_elem626); } } struct.setPart_valsIsSet(true); @@ -55872,13 +55978,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_with_a } if (incoming.get(4)) { { - org.apache.thrift.protocol.TList _list611 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = 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.group_names = new ArrayList(_list627.size); + for (int _i628 = 0; _i628 < _list627.size; ++_i628) { - String _elem613; // required - _elem613 = iprot.readString(); - struct.group_names.add(_elem613); + String _elem629; // required + _elem629 = iprot.readString(); + struct.group_names.add(_elem629); } } struct.setGroup_namesIsSet(true); @@ -58647,14 +58753,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 _list614 = iprot.readListBegin(); - struct.success = new ArrayList(_list614.size); - for (int _i615 = 0; _i615 < _list614.size; ++_i615) + org.apache.thrift.protocol.TList _list630 = iprot.readListBegin(); + struct.success = new ArrayList(_list630.size); + for (int _i631 = 0; _i631 < _list630.size; ++_i631) { - Partition _elem616; // required - _elem616 = new Partition(); - _elem616.read(iprot); - struct.success.add(_elem616); + Partition _elem632; // required + _elem632 = new Partition(); + _elem632.read(iprot); + struct.success.add(_elem632); } iprot.readListEnd(); } @@ -58698,9 +58804,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 _iter617 : struct.success) + for (Partition _iter633 : struct.success) { - _iter617.write(oprot); + _iter633.write(oprot); } oprot.writeListEnd(); } @@ -58747,9 +58853,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_resu if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter618 : struct.success) + for (Partition _iter634 : struct.success) { - _iter618.write(oprot); + _iter634.write(oprot); } } } @@ -58767,14 +58873,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 _list619 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = 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.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list635.size); + for (int _i636 = 0; _i636 < _list635.size; ++_i636) { - Partition _elem621; // required - _elem621 = new Partition(); - _elem621.read(iprot); - struct.success.add(_elem621); + Partition _elem637; // required + _elem637 = new Partition(); + _elem637.read(iprot); + struct.success.add(_elem637); } } struct.setSuccessIsSet(true); @@ -59467,13 +59573,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 _list622 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list622.size); - for (int _i623 = 0; _i623 < _list622.size; ++_i623) + org.apache.thrift.protocol.TList _list638 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list638.size); + for (int _i639 = 0; _i639 < _list638.size; ++_i639) { - String _elem624; // required - _elem624 = iprot.readString(); - struct.group_names.add(_elem624); + String _elem640; // required + _elem640 = iprot.readString(); + struct.group_names.add(_elem640); } iprot.readListEnd(); } @@ -59517,9 +59623,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 _iter625 : struct.group_names) + for (String _iter641 : struct.group_names) { - oprot.writeString(_iter625); + oprot.writeString(_iter641); } oprot.writeListEnd(); } @@ -59574,9 +59680,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 _iter626 : struct.group_names) + for (String _iter642 : struct.group_names) { - oprot.writeString(_iter626); + oprot.writeString(_iter642); } } } @@ -59604,13 +59710,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_with_ } if (incoming.get(4)) { { - org.apache.thrift.protocol.TList _list627 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = 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.group_names = new ArrayList(_list643.size); + for (int _i644 = 0; _i644 < _list643.size; ++_i644) { - String _elem629; // required - _elem629 = iprot.readString(); - struct.group_names.add(_elem629); + String _elem645; // required + _elem645 = iprot.readString(); + struct.group_names.add(_elem645); } } struct.setGroup_namesIsSet(true); @@ -60097,14 +60203,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 _list630 = iprot.readListBegin(); - struct.success = new ArrayList(_list630.size); - for (int _i631 = 0; _i631 < _list630.size; ++_i631) + org.apache.thrift.protocol.TList _list646 = iprot.readListBegin(); + struct.success = new ArrayList(_list646.size); + for (int _i647 = 0; _i647 < _list646.size; ++_i647) { - Partition _elem632; // required - _elem632 = new Partition(); - _elem632.read(iprot); - struct.success.add(_elem632); + Partition _elem648; // required + _elem648 = new Partition(); + _elem648.read(iprot); + struct.success.add(_elem648); } iprot.readListEnd(); } @@ -60148,9 +60254,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 _iter633 : struct.success) + for (Partition _iter649 : struct.success) { - _iter633.write(oprot); + _iter649.write(oprot); } oprot.writeListEnd(); } @@ -60197,9 +60303,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_with if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter634 : struct.success) + for (Partition _iter650 : struct.success) { - _iter634.write(oprot); + _iter650.write(oprot); } } } @@ -60217,14 +60323,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 _list635 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list635.size); - for (int _i636 = 0; _i636 < _list635.size; ++_i636) + org.apache.thrift.protocol.TList _list651 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list651.size); + for (int _i652 = 0; _i652 < _list651.size; ++_i652) { - Partition _elem637; // required - _elem637 = new Partition(); - _elem637.read(iprot); - struct.success.add(_elem637); + Partition _elem653; // required + _elem653 = new Partition(); + _elem653.read(iprot); + struct.success.add(_elem653); } } struct.setSuccessIsSet(true); @@ -61206,13 +61312,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 _list638 = iprot.readListBegin(); - struct.success = new ArrayList(_list638.size); - for (int _i639 = 0; _i639 < _list638.size; ++_i639) + org.apache.thrift.protocol.TList _list654 = iprot.readListBegin(); + struct.success = new ArrayList(_list654.size); + for (int _i655 = 0; _i655 < _list654.size; ++_i655) { - String _elem640; // required - _elem640 = iprot.readString(); - struct.success.add(_elem640); + String _elem656; // required + _elem656 = iprot.readString(); + struct.success.add(_elem656); } iprot.readListEnd(); } @@ -61247,9 +61353,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 _iter641 : struct.success) + for (String _iter657 : struct.success) { - oprot.writeString(_iter641); + oprot.writeString(_iter657); } oprot.writeListEnd(); } @@ -61288,9 +61394,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_names if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter642 : struct.success) + for (String _iter658 : struct.success) { - oprot.writeString(_iter642); + oprot.writeString(_iter658); } } } @@ -61305,13 +61411,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 _list643 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list643.size); - for (int _i644 = 0; _i644 < _list643.size; ++_i644) + org.apache.thrift.protocol.TList _list659 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list659.size); + for (int _i660 = 0; _i660 < _list659.size; ++_i660) { - String _elem645; // required - _elem645 = iprot.readString(); - struct.success.add(_elem645); + String _elem661; // required + _elem661 = iprot.readString(); + struct.success.add(_elem661); } } struct.setSuccessIsSet(true); @@ -61902,13 +62008,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 _list646 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list646.size); - for (int _i647 = 0; _i647 < _list646.size; ++_i647) + org.apache.thrift.protocol.TList _list662 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list662.size); + for (int _i663 = 0; _i663 < _list662.size; ++_i663) { - String _elem648; // required - _elem648 = iprot.readString(); - struct.part_vals.add(_elem648); + String _elem664; // required + _elem664 = iprot.readString(); + struct.part_vals.add(_elem664); } iprot.readListEnd(); } @@ -61952,9 +62058,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 _iter649 : struct.part_vals) + for (String _iter665 : struct.part_vals) { - oprot.writeString(_iter649); + oprot.writeString(_iter665); } oprot.writeListEnd(); } @@ -62003,9 +62109,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 _iter650 : struct.part_vals) + for (String _iter666 : struct.part_vals) { - oprot.writeString(_iter650); + oprot.writeString(_iter666); } } } @@ -62028,13 +62134,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_ar } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list651 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list651.size); - for (int _i652 = 0; _i652 < _list651.size; ++_i652) + org.apache.thrift.protocol.TList _list667 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list667.size); + for (int _i668 = 0; _i668 < _list667.size; ++_i668) { - String _elem653; // required - _elem653 = iprot.readString(); - struct.part_vals.add(_elem653); + String _elem669; // required + _elem669 = iprot.readString(); + struct.part_vals.add(_elem669); } } struct.setPart_valsIsSet(true); @@ -62525,14 +62631,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 _list654 = iprot.readListBegin(); - struct.success = new ArrayList(_list654.size); - for (int _i655 = 0; _i655 < _list654.size; ++_i655) + org.apache.thrift.protocol.TList _list670 = iprot.readListBegin(); + struct.success = new ArrayList(_list670.size); + for (int _i671 = 0; _i671 < _list670.size; ++_i671) { - Partition _elem656; // required - _elem656 = new Partition(); - _elem656.read(iprot); - struct.success.add(_elem656); + Partition _elem672; // required + _elem672 = new Partition(); + _elem672.read(iprot); + struct.success.add(_elem672); } iprot.readListEnd(); } @@ -62576,9 +62682,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 _iter657 : struct.success) + for (Partition _iter673 : struct.success) { - _iter657.write(oprot); + _iter673.write(oprot); } oprot.writeListEnd(); } @@ -62625,9 +62731,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_r if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter658 : struct.success) + for (Partition _iter674 : struct.success) { - _iter658.write(oprot); + _iter674.write(oprot); } } } @@ -62645,14 +62751,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 _list659 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list659.size); - for (int _i660 = 0; _i660 < _list659.size; ++_i660) + org.apache.thrift.protocol.TList _list675 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list675.size); + for (int _i676 = 0; _i676 < _list675.size; ++_i676) { - Partition _elem661; // required - _elem661 = new Partition(); - _elem661.read(iprot); - struct.success.add(_elem661); + Partition _elem677; // required + _elem677 = new Partition(); + _elem677.read(iprot); + struct.success.add(_elem677); } } struct.setSuccessIsSet(true); @@ -63430,13 +63536,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 _list662 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list662.size); - for (int _i663 = 0; _i663 < _list662.size; ++_i663) + org.apache.thrift.protocol.TList _list678 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list678.size); + for (int _i679 = 0; _i679 < _list678.size; ++_i679) { - String _elem664; // required - _elem664 = iprot.readString(); - struct.part_vals.add(_elem664); + String _elem680; // required + _elem680 = iprot.readString(); + struct.part_vals.add(_elem680); } iprot.readListEnd(); } @@ -63464,13 +63570,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 _list665 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list665.size); - for (int _i666 = 0; _i666 < _list665.size; ++_i666) + org.apache.thrift.protocol.TList _list681 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list681.size); + for (int _i682 = 0; _i682 < _list681.size; ++_i682) { - String _elem667; // required - _elem667 = iprot.readString(); - struct.group_names.add(_elem667); + String _elem683; // required + _elem683 = iprot.readString(); + struct.group_names.add(_elem683); } iprot.readListEnd(); } @@ -63506,9 +63612,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 _iter668 : struct.part_vals) + for (String _iter684 : struct.part_vals) { - oprot.writeString(_iter668); + oprot.writeString(_iter684); } oprot.writeListEnd(); } @@ -63526,9 +63632,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 _iter669 : struct.group_names) + for (String _iter685 : struct.group_names) { - oprot.writeString(_iter669); + oprot.writeString(_iter685); } oprot.writeListEnd(); } @@ -63580,9 +63686,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 _iter670 : struct.part_vals) + for (String _iter686 : struct.part_vals) { - oprot.writeString(_iter670); + oprot.writeString(_iter686); } } } @@ -63595,9 +63701,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 _iter671 : struct.group_names) + for (String _iter687 : struct.group_names) { - oprot.writeString(_iter671); + oprot.writeString(_iter687); } } } @@ -63617,13 +63723,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_wi } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list672 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list672.size); - for (int _i673 = 0; _i673 < _list672.size; ++_i673) + org.apache.thrift.protocol.TList _list688 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list688.size); + for (int _i689 = 0; _i689 < _list688.size; ++_i689) { - String _elem674; // required - _elem674 = iprot.readString(); - struct.part_vals.add(_elem674); + String _elem690; // required + _elem690 = iprot.readString(); + struct.part_vals.add(_elem690); } } struct.setPart_valsIsSet(true); @@ -63638,13 +63744,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_wi } if (incoming.get(5)) { { - org.apache.thrift.protocol.TList _list675 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list675.size); - for (int _i676 = 0; _i676 < _list675.size; ++_i676) + org.apache.thrift.protocol.TList _list691 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list691.size); + for (int _i692 = 0; _i692 < _list691.size; ++_i692) { - String _elem677; // required - _elem677 = iprot.readString(); - struct.group_names.add(_elem677); + String _elem693; // required + _elem693 = iprot.readString(); + struct.group_names.add(_elem693); } } struct.setGroup_namesIsSet(true); @@ -64131,14 +64237,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 _list678 = iprot.readListBegin(); - struct.success = new ArrayList(_list678.size); - for (int _i679 = 0; _i679 < _list678.size; ++_i679) + org.apache.thrift.protocol.TList _list694 = iprot.readListBegin(); + struct.success = new ArrayList(_list694.size); + for (int _i695 = 0; _i695 < _list694.size; ++_i695) { - Partition _elem680; // required - _elem680 = new Partition(); - _elem680.read(iprot); - struct.success.add(_elem680); + Partition _elem696; // required + _elem696 = new Partition(); + _elem696.read(iprot); + struct.success.add(_elem696); } iprot.readListEnd(); } @@ -64182,9 +64288,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 _iter681 : struct.success) + for (Partition _iter697 : struct.success) { - _iter681.write(oprot); + _iter697.write(oprot); } oprot.writeListEnd(); } @@ -64231,9 +64337,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_w if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter682 : struct.success) + for (Partition _iter698 : struct.success) { - _iter682.write(oprot); + _iter698.write(oprot); } } } @@ -64251,14 +64357,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 _list683 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list683.size); - for (int _i684 = 0; _i684 < _list683.size; ++_i684) + org.apache.thrift.protocol.TList _list699 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list699.size); + for (int _i700 = 0; _i700 < _list699.size; ++_i700) { - Partition _elem685; // required - _elem685 = new Partition(); - _elem685.read(iprot); - struct.success.add(_elem685); + Partition _elem701; // required + _elem701 = new Partition(); + _elem701.read(iprot); + struct.success.add(_elem701); } } struct.setSuccessIsSet(true); @@ -64854,13 +64960,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 _list686 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list686.size); - for (int _i687 = 0; _i687 < _list686.size; ++_i687) + org.apache.thrift.protocol.TList _list702 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list702.size); + for (int _i703 = 0; _i703 < _list702.size; ++_i703) { - String _elem688; // required - _elem688 = iprot.readString(); - struct.part_vals.add(_elem688); + String _elem704; // required + _elem704 = iprot.readString(); + struct.part_vals.add(_elem704); } iprot.readListEnd(); } @@ -64904,9 +65010,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 _iter689 : struct.part_vals) + for (String _iter705 : struct.part_vals) { - oprot.writeString(_iter689); + oprot.writeString(_iter705); } oprot.writeListEnd(); } @@ -64955,9 +65061,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 _iter690 : struct.part_vals) + for (String _iter706 : struct.part_vals) { - oprot.writeString(_iter690); + oprot.writeString(_iter706); } } } @@ -64980,13 +65086,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_names_ } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list691 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list691.size); - for (int _i692 = 0; _i692 < _list691.size; ++_i692) + org.apache.thrift.protocol.TList _list707 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list707.size); + for (int _i708 = 0; _i708 < _list707.size; ++_i708) { - String _elem693; // required - _elem693 = iprot.readString(); - struct.part_vals.add(_elem693); + String _elem709; // required + _elem709 = iprot.readString(); + struct.part_vals.add(_elem709); } } struct.setPart_valsIsSet(true); @@ -65477,13 +65583,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 _list694 = iprot.readListBegin(); - struct.success = new ArrayList(_list694.size); - for (int _i695 = 0; _i695 < _list694.size; ++_i695) + org.apache.thrift.protocol.TList _list710 = iprot.readListBegin(); + struct.success = new ArrayList(_list710.size); + for (int _i711 = 0; _i711 < _list710.size; ++_i711) { - String _elem696; // required - _elem696 = iprot.readString(); - struct.success.add(_elem696); + String _elem712; // required + _elem712 = iprot.readString(); + struct.success.add(_elem712); } iprot.readListEnd(); } @@ -65527,9 +65633,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 _iter697 : struct.success) + for (String _iter713 : struct.success) { - oprot.writeString(_iter697); + oprot.writeString(_iter713); } oprot.writeListEnd(); } @@ -65576,9 +65682,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_names if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter698 : struct.success) + for (String _iter714 : struct.success) { - oprot.writeString(_iter698); + oprot.writeString(_iter714); } } } @@ -65596,13 +65702,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 _list699 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list699.size); - for (int _i700 = 0; _i700 < _list699.size; ++_i700) + org.apache.thrift.protocol.TList _list715 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list715.size); + for (int _i716 = 0; _i716 < _list715.size; ++_i716) { - String _elem701; // required - _elem701 = iprot.readString(); - struct.success.add(_elem701); + String _elem717; // required + _elem717 = iprot.readString(); + struct.success.add(_elem717); } } struct.setSuccessIsSet(true); @@ -66769,14 +66875,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 _list702 = iprot.readListBegin(); - struct.success = new ArrayList(_list702.size); - for (int _i703 = 0; _i703 < _list702.size; ++_i703) + org.apache.thrift.protocol.TList _list718 = iprot.readListBegin(); + struct.success = new ArrayList(_list718.size); + for (int _i719 = 0; _i719 < _list718.size; ++_i719) { - Partition _elem704; // required - _elem704 = new Partition(); - _elem704.read(iprot); - struct.success.add(_elem704); + Partition _elem720; // required + _elem720 = new Partition(); + _elem720.read(iprot); + struct.success.add(_elem720); } iprot.readListEnd(); } @@ -66820,9 +66926,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 _iter705 : struct.success) + for (Partition _iter721 : struct.success) { - _iter705.write(oprot); + _iter721.write(oprot); } oprot.writeListEnd(); } @@ -66869,9 +66975,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_f if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter706 : struct.success) + for (Partition _iter722 : struct.success) { - _iter706.write(oprot); + _iter722.write(oprot); } } } @@ -66889,14 +66995,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 _list707 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list707.size); - for (int _i708 = 0; _i708 < _list707.size; ++_i708) + org.apache.thrift.protocol.TList _list723 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list723.size); + for (int _i724 = 0; _i724 < _list723.size; ++_i724) { - Partition _elem709; // required - _elem709 = new Partition(); - _elem709.read(iprot); - struct.success.add(_elem709); + Partition _elem725; // required + _elem725 = new Partition(); + _elem725.read(iprot); + struct.success.add(_elem725); } } struct.setSuccessIsSet(true); @@ -68347,13 +68453,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 _list710 = iprot.readListBegin(); - struct.names = new ArrayList(_list710.size); - for (int _i711 = 0; _i711 < _list710.size; ++_i711) + org.apache.thrift.protocol.TList _list726 = iprot.readListBegin(); + struct.names = new ArrayList(_list726.size); + for (int _i727 = 0; _i727 < _list726.size; ++_i727) { - String _elem712; // required - _elem712 = iprot.readString(); - struct.names.add(_elem712); + String _elem728; // required + _elem728 = iprot.readString(); + struct.names.add(_elem728); } iprot.readListEnd(); } @@ -68389,9 +68495,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 _iter713 : struct.names) + for (String _iter729 : struct.names) { - oprot.writeString(_iter713); + oprot.writeString(_iter729); } oprot.writeListEnd(); } @@ -68434,9 +68540,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_n if (struct.isSetNames()) { { oprot.writeI32(struct.names.size()); - for (String _iter714 : struct.names) + for (String _iter730 : struct.names) { - oprot.writeString(_iter714); + oprot.writeString(_iter730); } } } @@ -68456,13 +68562,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_na } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list715 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.names = new ArrayList(_list715.size); - for (int _i716 = 0; _i716 < _list715.size; ++_i716) + org.apache.thrift.protocol.TList _list731 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.names = new ArrayList(_list731.size); + for (int _i732 = 0; _i732 < _list731.size; ++_i732) { - String _elem717; // required - _elem717 = iprot.readString(); - struct.names.add(_elem717); + String _elem733; // required + _elem733 = iprot.readString(); + struct.names.add(_elem733); } } struct.setNamesIsSet(true); @@ -68949,14 +69055,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 _list718 = iprot.readListBegin(); - struct.success = new ArrayList(_list718.size); - for (int _i719 = 0; _i719 < _list718.size; ++_i719) + org.apache.thrift.protocol.TList _list734 = iprot.readListBegin(); + struct.success = new ArrayList(_list734.size); + for (int _i735 = 0; _i735 < _list734.size; ++_i735) { - Partition _elem720; // required - _elem720 = new Partition(); - _elem720.read(iprot); - struct.success.add(_elem720); + Partition _elem736; // required + _elem736 = new Partition(); + _elem736.read(iprot); + struct.success.add(_elem736); } iprot.readListEnd(); } @@ -69000,9 +69106,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 _iter721 : struct.success) + for (Partition _iter737 : struct.success) { - _iter721.write(oprot); + _iter737.write(oprot); } oprot.writeListEnd(); } @@ -69049,9 +69155,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_n if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter722 : struct.success) + for (Partition _iter738 : struct.success) { - _iter722.write(oprot); + _iter738.write(oprot); } } } @@ -69069,14 +69175,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 _list723 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list723.size); - for (int _i724 = 0; _i724 < _list723.size; ++_i724) + org.apache.thrift.protocol.TList _list739 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list739.size); + for (int _i740 = 0; _i740 < _list739.size; ++_i740) { - Partition _elem725; // required - _elem725 = new Partition(); - _elem725.read(iprot); - struct.success.add(_elem725); + Partition _elem741; // required + _elem741 = new Partition(); + _elem741.read(iprot); + struct.success.add(_elem741); } } struct.setSuccessIsSet(true); @@ -70626,14 +70732,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 _list726 = iprot.readListBegin(); - struct.new_parts = new ArrayList(_list726.size); - for (int _i727 = 0; _i727 < _list726.size; ++_i727) + org.apache.thrift.protocol.TList _list742 = iprot.readListBegin(); + struct.new_parts = new ArrayList(_list742.size); + for (int _i743 = 0; _i743 < _list742.size; ++_i743) { - Partition _elem728; // required - _elem728 = new Partition(); - _elem728.read(iprot); - struct.new_parts.add(_elem728); + Partition _elem744; // required + _elem744 = new Partition(); + _elem744.read(iprot); + struct.new_parts.add(_elem744); } iprot.readListEnd(); } @@ -70669,9 +70775,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 _iter729 : struct.new_parts) + for (Partition _iter745 : struct.new_parts) { - _iter729.write(oprot); + _iter745.write(oprot); } oprot.writeListEnd(); } @@ -70714,9 +70820,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 _iter730 : struct.new_parts) + for (Partition _iter746 : struct.new_parts) { - _iter730.write(oprot); + _iter746.write(oprot); } } } @@ -70736,14 +70842,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, alter_partitions_arg } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list731 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.new_parts = new ArrayList(_list731.size); - for (int _i732 = 0; _i732 < _list731.size; ++_i732) + org.apache.thrift.protocol.TList _list747 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.new_parts = new ArrayList(_list747.size); + for (int _i748 = 0; _i748 < _list747.size; ++_i748) { - Partition _elem733; // required - _elem733 = new Partition(); - _elem733.read(iprot); - struct.new_parts.add(_elem733); + Partition _elem749; // required + _elem749 = new Partition(); + _elem749.read(iprot); + struct.new_parts.add(_elem749); } } struct.setNew_partsIsSet(true); @@ -72942,13 +73048,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 _list734 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list734.size); - for (int _i735 = 0; _i735 < _list734.size; ++_i735) + org.apache.thrift.protocol.TList _list750 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list750.size); + for (int _i751 = 0; _i751 < _list750.size; ++_i751) { - String _elem736; // required - _elem736 = iprot.readString(); - struct.part_vals.add(_elem736); + String _elem752; // required + _elem752 = iprot.readString(); + struct.part_vals.add(_elem752); } iprot.readListEnd(); } @@ -72993,9 +73099,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 _iter737 : struct.part_vals) + for (String _iter753 : struct.part_vals) { - oprot.writeString(_iter737); + oprot.writeString(_iter753); } oprot.writeListEnd(); } @@ -73046,9 +73152,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 _iter738 : struct.part_vals) + for (String _iter754 : struct.part_vals) { - oprot.writeString(_iter738); + oprot.writeString(_iter754); } } } @@ -73071,13 +73177,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, rename_partition_arg } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list739 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list739.size); - for (int _i740 = 0; _i740 < _list739.size; ++_i740) + org.apache.thrift.protocol.TList _list755 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list755.size); + for (int _i756 = 0; _i756 < _list755.size; ++_i756) { - String _elem741; // required - _elem741 = iprot.readString(); - struct.part_vals.add(_elem741); + String _elem757; // required + _elem757 = iprot.readString(); + struct.part_vals.add(_elem757); } } struct.setPart_valsIsSet(true); @@ -73954,13 +74060,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 _list742 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list742.size); - for (int _i743 = 0; _i743 < _list742.size; ++_i743) + org.apache.thrift.protocol.TList _list758 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list758.size); + for (int _i759 = 0; _i759 < _list758.size; ++_i759) { - String _elem744; // required - _elem744 = iprot.readString(); - struct.part_vals.add(_elem744); + String _elem760; // required + _elem760 = iprot.readString(); + struct.part_vals.add(_elem760); } iprot.readListEnd(); } @@ -73994,9 +74100,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 _iter745 : struct.part_vals) + for (String _iter761 : struct.part_vals) { - oprot.writeString(_iter745); + oprot.writeString(_iter761); } oprot.writeListEnd(); } @@ -74033,9 +74139,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 _iter746 : struct.part_vals) + for (String _iter762 : struct.part_vals) { - oprot.writeString(_iter746); + oprot.writeString(_iter762); } } } @@ -74050,13 +74156,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 _list747 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list747.size); - for (int _i748 = 0; _i748 < _list747.size; ++_i748) + org.apache.thrift.protocol.TList _list763 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list763.size); + for (int _i764 = 0; _i764 < _list763.size; ++_i764) { - String _elem749; // required - _elem749 = iprot.readString(); - struct.part_vals.add(_elem749); + String _elem765; // required + _elem765 = iprot.readString(); + struct.part_vals.add(_elem765); } } struct.setPart_valsIsSet(true); @@ -76214,13 +76320,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 _list750 = iprot.readListBegin(); - struct.success = new ArrayList(_list750.size); - for (int _i751 = 0; _i751 < _list750.size; ++_i751) + org.apache.thrift.protocol.TList _list766 = iprot.readListBegin(); + struct.success = new ArrayList(_list766.size); + for (int _i767 = 0; _i767 < _list766.size; ++_i767) { - String _elem752; // required - _elem752 = iprot.readString(); - struct.success.add(_elem752); + String _elem768; // required + _elem768 = iprot.readString(); + struct.success.add(_elem768); } iprot.readListEnd(); } @@ -76255,9 +76361,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 _iter753 : struct.success) + for (String _iter769 : struct.success) { - oprot.writeString(_iter753); + oprot.writeString(_iter769); } oprot.writeListEnd(); } @@ -76296,9 +76402,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, partition_name_to_v if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter754 : struct.success) + for (String _iter770 : struct.success) { - oprot.writeString(_iter754); + oprot.writeString(_iter770); } } } @@ -76313,13 +76419,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 _list755 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list755.size); - for (int _i756 = 0; _i756 < _list755.size; ++_i756) + org.apache.thrift.protocol.TList _list771 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list771.size); + for (int _i772 = 0; _i772 < _list771.size; ++_i772) { - String _elem757; // required - _elem757 = iprot.readString(); - struct.success.add(_elem757); + String _elem773; // required + _elem773 = iprot.readString(); + struct.success.add(_elem773); } } struct.setSuccessIsSet(true); @@ -77093,15 +77199,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 _map758 = iprot.readMapBegin(); - struct.success = new HashMap(2*_map758.size); - for (int _i759 = 0; _i759 < _map758.size; ++_i759) + org.apache.thrift.protocol.TMap _map774 = iprot.readMapBegin(); + struct.success = new HashMap(2*_map774.size); + for (int _i775 = 0; _i775 < _map774.size; ++_i775) { - String _key760; // required - String _val761; // required - _key760 = iprot.readString(); - _val761 = iprot.readString(); - struct.success.put(_key760, _val761); + String _key776; // required + String _val777; // required + _key776 = iprot.readString(); + _val777 = iprot.readString(); + struct.success.put(_key776, _val777); } iprot.readMapEnd(); } @@ -77136,10 +77242,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 _iter762 : struct.success.entrySet()) + for (Map.Entry _iter778 : struct.success.entrySet()) { - oprot.writeString(_iter762.getKey()); - oprot.writeString(_iter762.getValue()); + oprot.writeString(_iter778.getKey()); + oprot.writeString(_iter778.getValue()); } oprot.writeMapEnd(); } @@ -77178,10 +77284,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 _iter763 : struct.success.entrySet()) + for (Map.Entry _iter779 : struct.success.entrySet()) { - oprot.writeString(_iter763.getKey()); - oprot.writeString(_iter763.getValue()); + oprot.writeString(_iter779.getKey()); + oprot.writeString(_iter779.getValue()); } } } @@ -77196,15 +77302,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 _map764 = 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*_map764.size); - for (int _i765 = 0; _i765 < _map764.size; ++_i765) + org.apache.thrift.protocol.TMap _map780 = 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*_map780.size); + for (int _i781 = 0; _i781 < _map780.size; ++_i781) { - String _key766; // required - String _val767; // required - _key766 = iprot.readString(); - _val767 = iprot.readString(); - struct.success.put(_key766, _val767); + String _key782; // required + String _val783; // required + _key782 = iprot.readString(); + _val783 = iprot.readString(); + struct.success.put(_key782, _val783); } } struct.setSuccessIsSet(true); @@ -77810,15 +77916,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 _map768 = iprot.readMapBegin(); - struct.part_vals = new HashMap(2*_map768.size); - for (int _i769 = 0; _i769 < _map768.size; ++_i769) + org.apache.thrift.protocol.TMap _map784 = iprot.readMapBegin(); + struct.part_vals = new HashMap(2*_map784.size); + for (int _i785 = 0; _i785 < _map784.size; ++_i785) { - String _key770; // required - String _val771; // required - _key770 = iprot.readString(); - _val771 = iprot.readString(); - struct.part_vals.put(_key770, _val771); + String _key786; // required + String _val787; // required + _key786 = iprot.readString(); + _val787 = iprot.readString(); + struct.part_vals.put(_key786, _val787); } iprot.readMapEnd(); } @@ -77862,10 +77968,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 _iter772 : struct.part_vals.entrySet()) + for (Map.Entry _iter788 : struct.part_vals.entrySet()) { - oprot.writeString(_iter772.getKey()); - oprot.writeString(_iter772.getValue()); + oprot.writeString(_iter788.getKey()); + oprot.writeString(_iter788.getValue()); } oprot.writeMapEnd(); } @@ -77916,10 +78022,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, markPartitionForEve if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (Map.Entry _iter773 : struct.part_vals.entrySet()) + for (Map.Entry _iter789 : struct.part_vals.entrySet()) { - oprot.writeString(_iter773.getKey()); - oprot.writeString(_iter773.getValue()); + oprot.writeString(_iter789.getKey()); + oprot.writeString(_iter789.getValue()); } } } @@ -77942,15 +78048,15 @@ public void read(org.apache.thrift.protocol.TProtocol prot, markPartitionForEven } if (incoming.get(2)) { { - org.apache.thrift.protocol.TMap _map774 = 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*_map774.size); - for (int _i775 = 0; _i775 < _map774.size; ++_i775) + org.apache.thrift.protocol.TMap _map790 = 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*_map790.size); + for (int _i791 = 0; _i791 < _map790.size; ++_i791) { - String _key776; // required - String _val777; // required - _key776 = iprot.readString(); - _val777 = iprot.readString(); - struct.part_vals.put(_key776, _val777); + String _key792; // required + String _val793; // required + _key792 = iprot.readString(); + _val793 = iprot.readString(); + struct.part_vals.put(_key792, _val793); } } struct.setPart_valsIsSet(true); @@ -79445,15 +79551,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 _map778 = iprot.readMapBegin(); - struct.part_vals = new HashMap(2*_map778.size); - for (int _i779 = 0; _i779 < _map778.size; ++_i779) + org.apache.thrift.protocol.TMap _map794 = iprot.readMapBegin(); + struct.part_vals = new HashMap(2*_map794.size); + for (int _i795 = 0; _i795 < _map794.size; ++_i795) { - String _key780; // required - String _val781; // required - _key780 = iprot.readString(); - _val781 = iprot.readString(); - struct.part_vals.put(_key780, _val781); + String _key796; // required + String _val797; // required + _key796 = iprot.readString(); + _val797 = iprot.readString(); + struct.part_vals.put(_key796, _val797); } iprot.readMapEnd(); } @@ -79497,10 +79603,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 _iter782 : struct.part_vals.entrySet()) + for (Map.Entry _iter798 : struct.part_vals.entrySet()) { - oprot.writeString(_iter782.getKey()); - oprot.writeString(_iter782.getValue()); + oprot.writeString(_iter798.getKey()); + oprot.writeString(_iter798.getValue()); } oprot.writeMapEnd(); } @@ -79551,10 +79657,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, isPartitionMarkedFo if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (Map.Entry _iter783 : struct.part_vals.entrySet()) + for (Map.Entry _iter799 : struct.part_vals.entrySet()) { - oprot.writeString(_iter783.getKey()); - oprot.writeString(_iter783.getValue()); + oprot.writeString(_iter799.getKey()); + oprot.writeString(_iter799.getValue()); } } } @@ -79577,15 +79683,15 @@ public void read(org.apache.thrift.protocol.TProtocol prot, isPartitionMarkedFor } if (incoming.get(2)) { { - org.apache.thrift.protocol.TMap _map784 = 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*_map784.size); - for (int _i785 = 0; _i785 < _map784.size; ++_i785) + org.apache.thrift.protocol.TMap _map800 = 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*_map800.size); + for (int _i801 = 0; _i801 < _map800.size; ++_i801) { - String _key786; // required - String _val787; // required - _key786 = iprot.readString(); - _val787 = iprot.readString(); - struct.part_vals.put(_key786, _val787); + String _key802; // required + String _val803; // required + _key802 = iprot.readString(); + _val803 = iprot.readString(); + struct.part_vals.put(_key802, _val803); } } struct.setPart_valsIsSet(true); @@ -86309,14 +86415,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 _list788 = iprot.readListBegin(); - struct.success = new ArrayList(_list788.size); - for (int _i789 = 0; _i789 < _list788.size; ++_i789) + org.apache.thrift.protocol.TList _list804 = iprot.readListBegin(); + struct.success = new ArrayList(_list804.size); + for (int _i805 = 0; _i805 < _list804.size; ++_i805) { - Index _elem790; // required - _elem790 = new Index(); - _elem790.read(iprot); - struct.success.add(_elem790); + Index _elem806; // required + _elem806 = new Index(); + _elem806.read(iprot); + struct.success.add(_elem806); } iprot.readListEnd(); } @@ -86360,9 +86466,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 _iter791 : struct.success) + for (Index _iter807 : struct.success) { - _iter791.write(oprot); + _iter807.write(oprot); } oprot.writeListEnd(); } @@ -86409,9 +86515,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_indexes_result if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Index _iter792 : struct.success) + for (Index _iter808 : struct.success) { - _iter792.write(oprot); + _iter808.write(oprot); } } } @@ -86429,14 +86535,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 _list793 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list793.size); - for (int _i794 = 0; _i794 < _list793.size; ++_i794) + org.apache.thrift.protocol.TList _list809 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list809.size); + for (int _i810 = 0; _i810 < _list809.size; ++_i810) { - Index _elem795; // required - _elem795 = new Index(); - _elem795.read(iprot); - struct.success.add(_elem795); + Index _elem811; // required + _elem811 = new Index(); + _elem811.read(iprot); + struct.success.add(_elem811); } } struct.setSuccessIsSet(true); @@ -87418,13 +87524,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 _list796 = iprot.readListBegin(); - struct.success = new ArrayList(_list796.size); - for (int _i797 = 0; _i797 < _list796.size; ++_i797) + org.apache.thrift.protocol.TList _list812 = iprot.readListBegin(); + struct.success = new ArrayList(_list812.size); + for (int _i813 = 0; _i813 < _list812.size; ++_i813) { - String _elem798; // required - _elem798 = iprot.readString(); - struct.success.add(_elem798); + String _elem814; // required + _elem814 = iprot.readString(); + struct.success.add(_elem814); } iprot.readListEnd(); } @@ -87459,9 +87565,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 _iter799 : struct.success) + for (String _iter815 : struct.success) { - oprot.writeString(_iter799); + oprot.writeString(_iter815); } oprot.writeListEnd(); } @@ -87500,9 +87606,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_index_names_res if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter800 : struct.success) + for (String _iter816 : struct.success) { - oprot.writeString(_iter800); + oprot.writeString(_iter816); } } } @@ -87517,13 +87623,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 _list801 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list801.size); - for (int _i802 = 0; _i802 < _list801.size; ++_i802) + org.apache.thrift.protocol.TList _list817 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list817.size); + for (int _i818 = 0; _i818 < _list817.size; ++_i818) { - String _elem803; // required - _elem803 = iprot.readString(); - struct.success.add(_elem803); + String _elem819; // required + _elem819 = iprot.readString(); + struct.success.add(_elem819); } } struct.setSuccessIsSet(true); @@ -103261,13 +103367,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 _list804 = iprot.readListBegin(); - struct.success = new ArrayList(_list804.size); - for (int _i805 = 0; _i805 < _list804.size; ++_i805) + org.apache.thrift.protocol.TList _list820 = iprot.readListBegin(); + struct.success = new ArrayList(_list820.size); + for (int _i821 = 0; _i821 < _list820.size; ++_i821) { - String _elem806; // required - _elem806 = iprot.readString(); - struct.success.add(_elem806); + String _elem822; // required + _elem822 = iprot.readString(); + struct.success.add(_elem822); } iprot.readListEnd(); } @@ -103302,9 +103408,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 _iter807 : struct.success) + for (String _iter823 : struct.success) { - oprot.writeString(_iter807); + oprot.writeString(_iter823); } oprot.writeListEnd(); } @@ -103343,9 +103449,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_functions_resul if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter808 : struct.success) + for (String _iter824 : struct.success) { - oprot.writeString(_iter808); + oprot.writeString(_iter824); } } } @@ -103360,13 +103466,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 _list809 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list809.size); - for (int _i810 = 0; _i810 < _list809.size; ++_i810) + org.apache.thrift.protocol.TList _list825 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list825.size); + for (int _i826 = 0; _i826 < _list825.size; ++_i826) { - String _elem811; // required - _elem811 = iprot.readString(); - struct.success.add(_elem811); + String _elem827; // required + _elem827 = iprot.readString(); + struct.success.add(_elem827); } } struct.setSuccessIsSet(true); @@ -106709,13 +106815,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 _list812 = iprot.readListBegin(); - struct.success = new ArrayList(_list812.size); - for (int _i813 = 0; _i813 < _list812.size; ++_i813) + org.apache.thrift.protocol.TList _list828 = iprot.readListBegin(); + struct.success = new ArrayList(_list828.size); + for (int _i829 = 0; _i829 < _list828.size; ++_i829) { - String _elem814; // required - _elem814 = iprot.readString(); - struct.success.add(_elem814); + String _elem830; // required + _elem830 = iprot.readString(); + struct.success.add(_elem830); } iprot.readListEnd(); } @@ -106750,9 +106856,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 _iter815 : struct.success) + for (String _iter831 : struct.success) { - oprot.writeString(_iter815); + oprot.writeString(_iter831); } oprot.writeListEnd(); } @@ -106791,9 +106897,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_role_names_resu if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter816 : struct.success) + for (String _iter832 : struct.success) { - oprot.writeString(_iter816); + oprot.writeString(_iter832); } } } @@ -106808,13 +106914,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 _list817 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list817.size); - for (int _i818 = 0; _i818 < _list817.size; ++_i818) + org.apache.thrift.protocol.TList _list833 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list833.size); + for (int _i834 = 0; _i834 < _list833.size; ++_i834) { - String _elem819; // required - _elem819 = iprot.readString(); - struct.success.add(_elem819); + String _elem835; // required + _elem835 = iprot.readString(); + struct.success.add(_elem835); } } struct.setSuccessIsSet(true); @@ -110105,14 +110211,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 _list820 = iprot.readListBegin(); - struct.success = new ArrayList(_list820.size); - for (int _i821 = 0; _i821 < _list820.size; ++_i821) + org.apache.thrift.protocol.TList _list836 = iprot.readListBegin(); + struct.success = new ArrayList(_list836.size); + for (int _i837 = 0; _i837 < _list836.size; ++_i837) { - Role _elem822; // required - _elem822 = new Role(); - _elem822.read(iprot); - struct.success.add(_elem822); + Role _elem838; // required + _elem838 = new Role(); + _elem838.read(iprot); + struct.success.add(_elem838); } iprot.readListEnd(); } @@ -110147,9 +110253,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 _iter823 : struct.success) + for (Role _iter839 : struct.success) { - _iter823.write(oprot); + _iter839.write(oprot); } oprot.writeListEnd(); } @@ -110188,9 +110294,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, list_roles_result s if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Role _iter824 : struct.success) + for (Role _iter840 : struct.success) { - _iter824.write(oprot); + _iter840.write(oprot); } } } @@ -110205,14 +110311,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 _list825 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list825.size); - for (int _i826 = 0; _i826 < _list825.size; ++_i826) + org.apache.thrift.protocol.TList _list841 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list841.size); + for (int _i842 = 0; _i842 < _list841.size; ++_i842) { - Role _elem827; // required - _elem827 = new Role(); - _elem827.read(iprot); - struct.success.add(_elem827); + Role _elem843; // required + _elem843 = new Role(); + _elem843.read(iprot); + struct.success.add(_elem843); } } struct.setSuccessIsSet(true); @@ -113220,13 +113326,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 _list828 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list828.size); - for (int _i829 = 0; _i829 < _list828.size; ++_i829) + org.apache.thrift.protocol.TList _list844 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list844.size); + for (int _i845 = 0; _i845 < _list844.size; ++_i845) { - String _elem830; // required - _elem830 = iprot.readString(); - struct.group_names.add(_elem830); + String _elem846; // required + _elem846 = iprot.readString(); + struct.group_names.add(_elem846); } iprot.readListEnd(); } @@ -113262,9 +113368,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 _iter831 : struct.group_names) + for (String _iter847 : struct.group_names) { - oprot.writeString(_iter831); + oprot.writeString(_iter847); } oprot.writeListEnd(); } @@ -113307,9 +113413,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 _iter832 : struct.group_names) + for (String _iter848 : struct.group_names) { - oprot.writeString(_iter832); + oprot.writeString(_iter848); } } } @@ -113330,13 +113436,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_privilege_set_ar } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list833 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list833.size); - for (int _i834 = 0; _i834 < _list833.size; ++_i834) + org.apache.thrift.protocol.TList _list849 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list849.size); + for (int _i850 = 0; _i850 < _list849.size; ++_i850) { - String _elem835; // required - _elem835 = iprot.readString(); - struct.group_names.add(_elem835); + String _elem851; // required + _elem851 = iprot.readString(); + struct.group_names.add(_elem851); } } struct.setGroup_namesIsSet(true); @@ -114794,14 +114900,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 _list836 = iprot.readListBegin(); - struct.success = new ArrayList(_list836.size); - for (int _i837 = 0; _i837 < _list836.size; ++_i837) + org.apache.thrift.protocol.TList _list852 = iprot.readListBegin(); + struct.success = new ArrayList(_list852.size); + for (int _i853 = 0; _i853 < _list852.size; ++_i853) { - HiveObjectPrivilege _elem838; // required - _elem838 = new HiveObjectPrivilege(); - _elem838.read(iprot); - struct.success.add(_elem838); + HiveObjectPrivilege _elem854; // required + _elem854 = new HiveObjectPrivilege(); + _elem854.read(iprot); + struct.success.add(_elem854); } iprot.readListEnd(); } @@ -114836,9 +114942,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 _iter839 : struct.success) + for (HiveObjectPrivilege _iter855 : struct.success) { - _iter839.write(oprot); + _iter855.write(oprot); } oprot.writeListEnd(); } @@ -114877,9 +114983,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, list_privileges_res if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (HiveObjectPrivilege _iter840 : struct.success) + for (HiveObjectPrivilege _iter856 : struct.success) { - _iter840.write(oprot); + _iter856.write(oprot); } } } @@ -114894,14 +115000,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 _list841 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list841.size); - for (int _i842 = 0; _i842 < _list841.size; ++_i842) + org.apache.thrift.protocol.TList _list857 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list857.size); + for (int _i858 = 0; _i858 < _list857.size; ++_i858) { - HiveObjectPrivilege _elem843; // required - _elem843 = new HiveObjectPrivilege(); - _elem843.read(iprot); - struct.success.add(_elem843); + HiveObjectPrivilege _elem859; // required + _elem859 = new HiveObjectPrivilege(); + _elem859.read(iprot); + struct.success.add(_elem859); } } struct.setSuccessIsSet(true); @@ -117806,13 +117912,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 _list844 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list844.size); - for (int _i845 = 0; _i845 < _list844.size; ++_i845) + org.apache.thrift.protocol.TList _list860 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list860.size); + for (int _i861 = 0; _i861 < _list860.size; ++_i861) { - String _elem846; // required - _elem846 = iprot.readString(); - struct.group_names.add(_elem846); + String _elem862; // required + _elem862 = iprot.readString(); + struct.group_names.add(_elem862); } iprot.readListEnd(); } @@ -117843,9 +117949,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 _iter847 : struct.group_names) + for (String _iter863 : struct.group_names) { - oprot.writeString(_iter847); + oprot.writeString(_iter863); } oprot.writeListEnd(); } @@ -117882,9 +117988,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 _iter848 : struct.group_names) + for (String _iter864 : struct.group_names) { - oprot.writeString(_iter848); + oprot.writeString(_iter864); } } } @@ -117900,13 +118006,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, set_ugi_args struct) } if (incoming.get(1)) { { - org.apache.thrift.protocol.TList _list849 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list849.size); - for (int _i850 = 0; _i850 < _list849.size; ++_i850) + org.apache.thrift.protocol.TList _list865 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list865.size); + for (int _i866 = 0; _i866 < _list865.size; ++_i866) { - String _elem851; // required - _elem851 = iprot.readString(); - struct.group_names.add(_elem851); + String _elem867; // required + _elem867 = iprot.readString(); + struct.group_names.add(_elem867); } } struct.setGroup_namesIsSet(true); @@ -118312,13 +118418,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 _list852 = iprot.readListBegin(); - struct.success = new ArrayList(_list852.size); - for (int _i853 = 0; _i853 < _list852.size; ++_i853) + org.apache.thrift.protocol.TList _list868 = iprot.readListBegin(); + struct.success = new ArrayList(_list868.size); + for (int _i869 = 0; _i869 < _list868.size; ++_i869) { - String _elem854; // required - _elem854 = iprot.readString(); - struct.success.add(_elem854); + String _elem870; // required + _elem870 = iprot.readString(); + struct.success.add(_elem870); } iprot.readListEnd(); } @@ -118353,9 +118459,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 _iter855 : struct.success) + for (String _iter871 : struct.success) { - oprot.writeString(_iter855); + oprot.writeString(_iter871); } oprot.writeListEnd(); } @@ -118394,9 +118500,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, set_ugi_result stru if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter856 : struct.success) + for (String _iter872 : struct.success) { - oprot.writeString(_iter856); + oprot.writeString(_iter872); } } } @@ -118411,13 +118517,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 _list857 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list857.size); - for (int _i858 = 0; _i858 < _list857.size; ++_i858) + org.apache.thrift.protocol.TList _list873 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list873.size); + for (int _i874 = 0; _i874 < _list873.size; ++_i874) { - String _elem859; // required - _elem859 = iprot.readString(); - struct.success.add(_elem859); + String _elem875; // required + _elem875 = iprot.readString(); + struct.success.add(_elem875); } } struct.setSuccessIsSet(true); diff --git metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php index 95fd1fa..111b62a 100644 --- metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php +++ metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php @@ -49,8 +49,8 @@ interface ThriftHiveMetastoreIf extends \FacebookServiceIf { public function append_partition_with_environment_context($db_name, $tbl_name, $part_vals, \metastore\EnvironmentContext $environment_context); public function append_partition_by_name($db_name, $tbl_name, $part_name); public function append_partition_by_name_with_environment_context($db_name, $tbl_name, $part_name, \metastore\EnvironmentContext $environment_context); - public function drop_partition($db_name, $tbl_name, $part_vals, $deleteData); - public function drop_partition_with_environment_context($db_name, $tbl_name, $part_vals, $deleteData, \metastore\EnvironmentContext $environment_context); + public function drop_partitions($db_name, $tbl_name, $part_vals, $deleteData); + public function drop_partitions_with_environment_context($db_name, $tbl_name, $part_vals, $deleteData, \metastore\EnvironmentContext $environment_context); public function drop_partition_by_name($db_name, $tbl_name, $part_name, $deleteData); public function drop_partition_by_name_with_environment_context($db_name, $tbl_name, $part_name, $deleteData, \metastore\EnvironmentContext $environment_context); public function drop_partitions_req(\metastore\DropPartitionsRequest $req); @@ -2055,15 +2055,15 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas throw new \Exception("append_partition_by_name_with_environment_context failed: unknown result"); } - public function drop_partition($db_name, $tbl_name, $part_vals, $deleteData) + public function drop_partitions($db_name, $tbl_name, $part_vals, $deleteData) { - $this->send_drop_partition($db_name, $tbl_name, $part_vals, $deleteData); - return $this->recv_drop_partition(); + $this->send_drop_partitions($db_name, $tbl_name, $part_vals, $deleteData); + return $this->recv_drop_partitions(); } - public function send_drop_partition($db_name, $tbl_name, $part_vals, $deleteData) + public function send_drop_partitions($db_name, $tbl_name, $part_vals, $deleteData) { - $args = new \metastore\ThriftHiveMetastore_drop_partition_args(); + $args = new \metastore\ThriftHiveMetastore_drop_partitions_args(); $args->db_name = $db_name; $args->tbl_name = $tbl_name; $args->part_vals = $part_vals; @@ -2071,21 +2071,21 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { - thrift_protocol_write_binary($this->output_, 'drop_partition', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); + thrift_protocol_write_binary($this->output_, 'drop_partitions', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); } else { - $this->output_->writeMessageBegin('drop_partition', TMessageType::CALL, $this->seqid_); + $this->output_->writeMessageBegin('drop_partitions', TMessageType::CALL, $this->seqid_); $args->write($this->output_); $this->output_->writeMessageEnd(); $this->output_->getTransport()->flush(); } } - public function recv_drop_partition() + public function recv_drop_partitions() { $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); - if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_drop_partition_result', $this->input_->isStrictRead()); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_drop_partitions_result', $this->input_->isStrictRead()); else { $rseqid = 0; @@ -2099,7 +2099,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $this->input_->readMessageEnd(); throw $x; } - $result = new \metastore\ThriftHiveMetastore_drop_partition_result(); + $result = new \metastore\ThriftHiveMetastore_drop_partitions_result(); $result->read($this->input_); $this->input_->readMessageEnd(); } @@ -2112,18 +2112,18 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas if ($result->o2 !== null) { throw $result->o2; } - throw new \Exception("drop_partition failed: unknown result"); + throw new \Exception("drop_partitions failed: unknown result"); } - public function drop_partition_with_environment_context($db_name, $tbl_name, $part_vals, $deleteData, \metastore\EnvironmentContext $environment_context) + public function drop_partitions_with_environment_context($db_name, $tbl_name, $part_vals, $deleteData, \metastore\EnvironmentContext $environment_context) { - $this->send_drop_partition_with_environment_context($db_name, $tbl_name, $part_vals, $deleteData, $environment_context); - return $this->recv_drop_partition_with_environment_context(); + $this->send_drop_partitions_with_environment_context($db_name, $tbl_name, $part_vals, $deleteData, $environment_context); + return $this->recv_drop_partitions_with_environment_context(); } - public function send_drop_partition_with_environment_context($db_name, $tbl_name, $part_vals, $deleteData, \metastore\EnvironmentContext $environment_context) + public function send_drop_partitions_with_environment_context($db_name, $tbl_name, $part_vals, $deleteData, \metastore\EnvironmentContext $environment_context) { - $args = new \metastore\ThriftHiveMetastore_drop_partition_with_environment_context_args(); + $args = new \metastore\ThriftHiveMetastore_drop_partitions_with_environment_context_args(); $args->db_name = $db_name; $args->tbl_name = $tbl_name; $args->part_vals = $part_vals; @@ -2132,21 +2132,21 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { - thrift_protocol_write_binary($this->output_, 'drop_partition_with_environment_context', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); + thrift_protocol_write_binary($this->output_, 'drop_partitions_with_environment_context', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); } else { - $this->output_->writeMessageBegin('drop_partition_with_environment_context', TMessageType::CALL, $this->seqid_); + $this->output_->writeMessageBegin('drop_partitions_with_environment_context', TMessageType::CALL, $this->seqid_); $args->write($this->output_); $this->output_->writeMessageEnd(); $this->output_->getTransport()->flush(); } } - public function recv_drop_partition_with_environment_context() + public function recv_drop_partitions_with_environment_context() { $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); - if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_drop_partition_with_environment_context_result', $this->input_->isStrictRead()); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_drop_partitions_with_environment_context_result', $this->input_->isStrictRead()); else { $rseqid = 0; @@ -2160,7 +2160,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $this->input_->readMessageEnd(); throw $x; } - $result = new \metastore\ThriftHiveMetastore_drop_partition_with_environment_context_result(); + $result = new \metastore\ThriftHiveMetastore_drop_partitions_with_environment_context_result(); $result->read($this->input_); $this->input_->readMessageEnd(); } @@ -2173,7 +2173,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas if ($result->o2 !== null) { throw $result->o2; } - throw new \Exception("drop_partition_with_environment_context failed: unknown result"); + throw new \Exception("drop_partitions_with_environment_context failed: unknown result"); } public function drop_partition_by_name($db_name, $tbl_name, $part_name, $deleteData) @@ -14040,7 +14040,7 @@ class ThriftHiveMetastore_append_partition_by_name_with_environment_context_resu } -class ThriftHiveMetastore_drop_partition_args { +class ThriftHiveMetastore_drop_partitions_args { static $_TSPEC; public $db_name = null; @@ -14090,7 +14090,7 @@ class ThriftHiveMetastore_drop_partition_args { } public function getName() { - return 'ThriftHiveMetastore_drop_partition_args'; + return 'ThriftHiveMetastore_drop_partitions_args'; } public function read($input) @@ -14158,7 +14158,7 @@ class ThriftHiveMetastore_drop_partition_args { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('ThriftHiveMetastore_drop_partition_args'); + $xfer += $output->writeStructBegin('ThriftHiveMetastore_drop_partitions_args'); if ($this->db_name !== null) { $xfer += $output->writeFieldBegin('db_name', TType::STRING, 1); $xfer += $output->writeString($this->db_name); @@ -14198,7 +14198,7 @@ class ThriftHiveMetastore_drop_partition_args { } -class ThriftHiveMetastore_drop_partition_result { +class ThriftHiveMetastore_drop_partitions_result { static $_TSPEC; public $success = null; @@ -14210,7 +14210,12 @@ class ThriftHiveMetastore_drop_partition_result { self::$_TSPEC = array( 0 => array( 'var' => 'success', - 'type' => TType::BOOL, + 'type' => TType::LST, + 'etype' => TType::STRUCT, + 'elem' => array( + 'type' => TType::STRUCT, + 'class' => '\metastore\Partition', + ), ), 1 => array( 'var' => 'o1', @@ -14238,7 +14243,7 @@ class ThriftHiveMetastore_drop_partition_result { } public function getName() { - return 'ThriftHiveMetastore_drop_partition_result'; + return 'ThriftHiveMetastore_drop_partitions_result'; } public function read($input) @@ -14257,8 +14262,19 @@ class ThriftHiveMetastore_drop_partition_result { switch ($fid) { case 0: - if ($ftype == TType::BOOL) { - $xfer += $input->readBool($this->success); + if ($ftype == TType::LST) { + $this->success = array(); + $_size507 = 0; + $_etype510 = 0; + $xfer += $input->readListBegin($_etype510, $_size507); + for ($_i511 = 0; $_i511 < $_size507; ++$_i511) + { + $elem512 = null; + $elem512 = new \metastore\Partition(); + $xfer += $elem512->read($input); + $this->success []= $elem512; + } + $xfer += $input->readListEnd(); } else { $xfer += $input->skip($ftype); } @@ -14291,10 +14307,22 @@ class ThriftHiveMetastore_drop_partition_result { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('ThriftHiveMetastore_drop_partition_result'); + $xfer += $output->writeStructBegin('ThriftHiveMetastore_drop_partitions_result'); if ($this->success !== null) { - $xfer += $output->writeFieldBegin('success', TType::BOOL, 0); - $xfer += $output->writeBool($this->success); + 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 $iter513) + { + $xfer += $iter513->write($output); + } + } + $output->writeListEnd(); + } $xfer += $output->writeFieldEnd(); } if ($this->o1 !== null) { @@ -14314,7 +14342,7 @@ class ThriftHiveMetastore_drop_partition_result { } -class ThriftHiveMetastore_drop_partition_with_environment_context_args { +class ThriftHiveMetastore_drop_partitions_with_environment_context_args { static $_TSPEC; public $db_name = null; @@ -14373,7 +14401,7 @@ class ThriftHiveMetastore_drop_partition_with_environment_context_args { } public function getName() { - return 'ThriftHiveMetastore_drop_partition_with_environment_context_args'; + return 'ThriftHiveMetastore_drop_partitions_with_environment_context_args'; } public function read($input) @@ -14408,14 +14436,14 @@ class ThriftHiveMetastore_drop_partition_with_environment_context_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size507 = 0; - $_etype510 = 0; - $xfer += $input->readListBegin($_etype510, $_size507); - for ($_i511 = 0; $_i511 < $_size507; ++$_i511) + $_size514 = 0; + $_etype517 = 0; + $xfer += $input->readListBegin($_etype517, $_size514); + for ($_i518 = 0; $_i518 < $_size514; ++$_i518) { - $elem512 = null; - $xfer += $input->readString($elem512); - $this->part_vals []= $elem512; + $elem519 = null; + $xfer += $input->readString($elem519); + $this->part_vals []= $elem519; } $xfer += $input->readListEnd(); } else { @@ -14449,7 +14477,7 @@ class ThriftHiveMetastore_drop_partition_with_environment_context_args { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('ThriftHiveMetastore_drop_partition_with_environment_context_args'); + $xfer += $output->writeStructBegin('ThriftHiveMetastore_drop_partitions_with_environment_context_args'); if ($this->db_name !== null) { $xfer += $output->writeFieldBegin('db_name', TType::STRING, 1); $xfer += $output->writeString($this->db_name); @@ -14468,9 +14496,9 @@ class ThriftHiveMetastore_drop_partition_with_environment_context_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter513) + foreach ($this->part_vals as $iter520) { - $xfer += $output->writeString($iter513); + $xfer += $output->writeString($iter520); } } $output->writeListEnd(); @@ -14497,7 +14525,7 @@ class ThriftHiveMetastore_drop_partition_with_environment_context_args { } -class ThriftHiveMetastore_drop_partition_with_environment_context_result { +class ThriftHiveMetastore_drop_partitions_with_environment_context_result { static $_TSPEC; public $success = null; @@ -14509,7 +14537,12 @@ class ThriftHiveMetastore_drop_partition_with_environment_context_result { self::$_TSPEC = array( 0 => array( 'var' => 'success', - 'type' => TType::BOOL, + 'type' => TType::LST, + 'etype' => TType::STRUCT, + 'elem' => array( + 'type' => TType::STRUCT, + 'class' => '\metastore\Partition', + ), ), 1 => array( 'var' => 'o1', @@ -14537,7 +14570,7 @@ class ThriftHiveMetastore_drop_partition_with_environment_context_result { } public function getName() { - return 'ThriftHiveMetastore_drop_partition_with_environment_context_result'; + return 'ThriftHiveMetastore_drop_partitions_with_environment_context_result'; } public function read($input) @@ -14556,8 +14589,19 @@ class ThriftHiveMetastore_drop_partition_with_environment_context_result { switch ($fid) { case 0: - if ($ftype == TType::BOOL) { - $xfer += $input->readBool($this->success); + if ($ftype == TType::LST) { + $this->success = array(); + $_size521 = 0; + $_etype524 = 0; + $xfer += $input->readListBegin($_etype524, $_size521); + for ($_i525 = 0; $_i525 < $_size521; ++$_i525) + { + $elem526 = null; + $elem526 = new \metastore\Partition(); + $xfer += $elem526->read($input); + $this->success []= $elem526; + } + $xfer += $input->readListEnd(); } else { $xfer += $input->skip($ftype); } @@ -14590,10 +14634,22 @@ class ThriftHiveMetastore_drop_partition_with_environment_context_result { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('ThriftHiveMetastore_drop_partition_with_environment_context_result'); + $xfer += $output->writeStructBegin('ThriftHiveMetastore_drop_partitions_with_environment_context_result'); if ($this->success !== null) { - $xfer += $output->writeFieldBegin('success', TType::BOOL, 0); - $xfer += $output->writeBool($this->success); + 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 $iter527) + { + $xfer += $iter527->write($output); + } + } + $output->writeListEnd(); + } $xfer += $output->writeFieldEnd(); } if ($this->o1 !== null) { @@ -15409,14 +15465,14 @@ class ThriftHiveMetastore_get_partition_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size514 = 0; - $_etype517 = 0; - $xfer += $input->readListBegin($_etype517, $_size514); - for ($_i518 = 0; $_i518 < $_size514; ++$_i518) + $_size528 = 0; + $_etype531 = 0; + $xfer += $input->readListBegin($_etype531, $_size528); + for ($_i532 = 0; $_i532 < $_size528; ++$_i532) { - $elem519 = null; - $xfer += $input->readString($elem519); - $this->part_vals []= $elem519; + $elem533 = null; + $xfer += $input->readString($elem533); + $this->part_vals []= $elem533; } $xfer += $input->readListEnd(); } else { @@ -15454,9 +15510,9 @@ class ThriftHiveMetastore_get_partition_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter520) + foreach ($this->part_vals as $iter534) { - $xfer += $output->writeString($iter520); + $xfer += $output->writeString($iter534); } } $output->writeListEnd(); @@ -15674,17 +15730,17 @@ class ThriftHiveMetastore_exchange_partition_args { case 1: if ($ftype == TType::MAP) { $this->partitionSpecs = array(); - $_size521 = 0; - $_ktype522 = 0; - $_vtype523 = 0; - $xfer += $input->readMapBegin($_ktype522, $_vtype523, $_size521); - for ($_i525 = 0; $_i525 < $_size521; ++$_i525) + $_size535 = 0; + $_ktype536 = 0; + $_vtype537 = 0; + $xfer += $input->readMapBegin($_ktype536, $_vtype537, $_size535); + for ($_i539 = 0; $_i539 < $_size535; ++$_i539) { - $key526 = ''; - $val527 = ''; - $xfer += $input->readString($key526); - $xfer += $input->readString($val527); - $this->partitionSpecs[$key526] = $val527; + $key540 = ''; + $val541 = ''; + $xfer += $input->readString($key540); + $xfer += $input->readString($val541); + $this->partitionSpecs[$key540] = $val541; } $xfer += $input->readMapEnd(); } else { @@ -15740,10 +15796,10 @@ class ThriftHiveMetastore_exchange_partition_args { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->partitionSpecs)); { - foreach ($this->partitionSpecs as $kiter528 => $viter529) + foreach ($this->partitionSpecs as $kiter542 => $viter543) { - $xfer += $output->writeString($kiter528); - $xfer += $output->writeString($viter529); + $xfer += $output->writeString($kiter542); + $xfer += $output->writeString($viter543); } } $output->writeMapEnd(); @@ -16039,14 +16095,14 @@ class ThriftHiveMetastore_get_partition_with_auth_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 { @@ -16063,14 +16119,14 @@ class ThriftHiveMetastore_get_partition_with_auth_args { case 5: if ($ftype == TType::LST) { $this->group_names = array(); - $_size536 = 0; - $_etype539 = 0; - $xfer += $input->readListBegin($_etype539, $_size536); - for ($_i540 = 0; $_i540 < $_size536; ++$_i540) + $_size550 = 0; + $_etype553 = 0; + $xfer += $input->readListBegin($_etype553, $_size550); + for ($_i554 = 0; $_i554 < $_size550; ++$_i554) { - $elem541 = null; - $xfer += $input->readString($elem541); - $this->group_names []= $elem541; + $elem555 = null; + $xfer += $input->readString($elem555); + $this->group_names []= $elem555; } $xfer += $input->readListEnd(); } else { @@ -16108,9 +16164,9 @@ class ThriftHiveMetastore_get_partition_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter542) + foreach ($this->part_vals as $iter556) { - $xfer += $output->writeString($iter542); + $xfer += $output->writeString($iter556); } } $output->writeListEnd(); @@ -16130,9 +16186,9 @@ class ThriftHiveMetastore_get_partition_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter543) + foreach ($this->group_names as $iter557) { - $xfer += $output->writeString($iter543); + $xfer += $output->writeString($iter557); } } $output->writeListEnd(); @@ -16678,15 +16734,15 @@ class ThriftHiveMetastore_get_partitions_result { case 0: if ($ftype == TType::LST) { $this->success = 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; - $elem549 = new \metastore\Partition(); - $xfer += $elem549->read($input); - $this->success []= $elem549; + $elem563 = null; + $elem563 = new \metastore\Partition(); + $xfer += $elem563->read($input); + $this->success []= $elem563; } $xfer += $input->readListEnd(); } else { @@ -16730,9 +16786,9 @@ class ThriftHiveMetastore_get_partitions_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter550) + foreach ($this->success as $iter564) { - $xfer += $iter550->write($output); + $xfer += $iter564->write($output); } } $output->writeListEnd(); @@ -16863,14 +16919,14 @@ class ThriftHiveMetastore_get_partitions_with_auth_args { case 5: if ($ftype == TType::LST) { $this->group_names = 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->group_names []= $elem556; + $elem570 = null; + $xfer += $input->readString($elem570); + $this->group_names []= $elem570; } $xfer += $input->readListEnd(); } else { @@ -16918,9 +16974,9 @@ class ThriftHiveMetastore_get_partitions_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter557) + foreach ($this->group_names as $iter571) { - $xfer += $output->writeString($iter557); + $xfer += $output->writeString($iter571); } } $output->writeListEnd(); @@ -17000,15 +17056,15 @@ class ThriftHiveMetastore_get_partitions_with_auth_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size558 = 0; - $_etype561 = 0; - $xfer += $input->readListBegin($_etype561, $_size558); - for ($_i562 = 0; $_i562 < $_size558; ++$_i562) + $_size572 = 0; + $_etype575 = 0; + $xfer += $input->readListBegin($_etype575, $_size572); + for ($_i576 = 0; $_i576 < $_size572; ++$_i576) { - $elem563 = null; - $elem563 = new \metastore\Partition(); - $xfer += $elem563->read($input); - $this->success []= $elem563; + $elem577 = null; + $elem577 = new \metastore\Partition(); + $xfer += $elem577->read($input); + $this->success []= $elem577; } $xfer += $input->readListEnd(); } else { @@ -17052,9 +17108,9 @@ class ThriftHiveMetastore_get_partitions_with_auth_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter564) + foreach ($this->success as $iter578) { - $xfer += $iter564->write($output); + $xfer += $iter578->write($output); } } $output->writeListEnd(); @@ -17246,14 +17302,14 @@ class ThriftHiveMetastore_get_partition_names_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size565 = 0; - $_etype568 = 0; - $xfer += $input->readListBegin($_etype568, $_size565); - for ($_i569 = 0; $_i569 < $_size565; ++$_i569) + $_size579 = 0; + $_etype582 = 0; + $xfer += $input->readListBegin($_etype582, $_size579); + for ($_i583 = 0; $_i583 < $_size579; ++$_i583) { - $elem570 = null; - $xfer += $input->readString($elem570); - $this->success []= $elem570; + $elem584 = null; + $xfer += $input->readString($elem584); + $this->success []= $elem584; } $xfer += $input->readListEnd(); } else { @@ -17289,9 +17345,9 @@ class ThriftHiveMetastore_get_partition_names_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter571) + foreach ($this->success as $iter585) { - $xfer += $output->writeString($iter571); + $xfer += $output->writeString($iter585); } } $output->writeListEnd(); @@ -17395,14 +17451,14 @@ class ThriftHiveMetastore_get_partitions_ps_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size572 = 0; - $_etype575 = 0; - $xfer += $input->readListBegin($_etype575, $_size572); - for ($_i576 = 0; $_i576 < $_size572; ++$_i576) + $_size586 = 0; + $_etype589 = 0; + $xfer += $input->readListBegin($_etype589, $_size586); + for ($_i590 = 0; $_i590 < $_size586; ++$_i590) { - $elem577 = null; - $xfer += $input->readString($elem577); - $this->part_vals []= $elem577; + $elem591 = null; + $xfer += $input->readString($elem591); + $this->part_vals []= $elem591; } $xfer += $input->readListEnd(); } else { @@ -17447,9 +17503,9 @@ class ThriftHiveMetastore_get_partitions_ps_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter578) + foreach ($this->part_vals as $iter592) { - $xfer += $output->writeString($iter578); + $xfer += $output->writeString($iter592); } } $output->writeListEnd(); @@ -17534,15 +17590,15 @@ class ThriftHiveMetastore_get_partitions_ps_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size579 = 0; - $_etype582 = 0; - $xfer += $input->readListBegin($_etype582, $_size579); - for ($_i583 = 0; $_i583 < $_size579; ++$_i583) + $_size593 = 0; + $_etype596 = 0; + $xfer += $input->readListBegin($_etype596, $_size593); + for ($_i597 = 0; $_i597 < $_size593; ++$_i597) { - $elem584 = null; - $elem584 = new \metastore\Partition(); - $xfer += $elem584->read($input); - $this->success []= $elem584; + $elem598 = null; + $elem598 = new \metastore\Partition(); + $xfer += $elem598->read($input); + $this->success []= $elem598; } $xfer += $input->readListEnd(); } else { @@ -17586,9 +17642,9 @@ class ThriftHiveMetastore_get_partitions_ps_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter585) + foreach ($this->success as $iter599) { - $xfer += $iter585->write($output); + $xfer += $iter599->write($output); } } $output->writeListEnd(); @@ -17717,14 +17773,14 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size586 = 0; - $_etype589 = 0; - $xfer += $input->readListBegin($_etype589, $_size586); - for ($_i590 = 0; $_i590 < $_size586; ++$_i590) + $_size600 = 0; + $_etype603 = 0; + $xfer += $input->readListBegin($_etype603, $_size600); + for ($_i604 = 0; $_i604 < $_size600; ++$_i604) { - $elem591 = null; - $xfer += $input->readString($elem591); - $this->part_vals []= $elem591; + $elem605 = null; + $xfer += $input->readString($elem605); + $this->part_vals []= $elem605; } $xfer += $input->readListEnd(); } else { @@ -17748,14 +17804,14 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { case 6: if ($ftype == TType::LST) { $this->group_names = array(); - $_size592 = 0; - $_etype595 = 0; - $xfer += $input->readListBegin($_etype595, $_size592); - for ($_i596 = 0; $_i596 < $_size592; ++$_i596) + $_size606 = 0; + $_etype609 = 0; + $xfer += $input->readListBegin($_etype609, $_size606); + for ($_i610 = 0; $_i610 < $_size606; ++$_i610) { - $elem597 = null; - $xfer += $input->readString($elem597); - $this->group_names []= $elem597; + $elem611 = null; + $xfer += $input->readString($elem611); + $this->group_names []= $elem611; } $xfer += $input->readListEnd(); } else { @@ -17793,9 +17849,9 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter598) + foreach ($this->part_vals as $iter612) { - $xfer += $output->writeString($iter598); + $xfer += $output->writeString($iter612); } } $output->writeListEnd(); @@ -17820,9 +17876,9 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter599) + foreach ($this->group_names as $iter613) { - $xfer += $output->writeString($iter599); + $xfer += $output->writeString($iter613); } } $output->writeListEnd(); @@ -17902,15 +17958,15 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size600 = 0; - $_etype603 = 0; - $xfer += $input->readListBegin($_etype603, $_size600); - for ($_i604 = 0; $_i604 < $_size600; ++$_i604) + $_size614 = 0; + $_etype617 = 0; + $xfer += $input->readListBegin($_etype617, $_size614); + for ($_i618 = 0; $_i618 < $_size614; ++$_i618) { - $elem605 = null; - $elem605 = new \metastore\Partition(); - $xfer += $elem605->read($input); - $this->success []= $elem605; + $elem619 = null; + $elem619 = new \metastore\Partition(); + $xfer += $elem619->read($input); + $this->success []= $elem619; } $xfer += $input->readListEnd(); } else { @@ -17954,9 +18010,9 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter606) + foreach ($this->success as $iter620) { - $xfer += $iter606->write($output); + $xfer += $iter620->write($output); } } $output->writeListEnd(); @@ -18065,14 +18121,14 @@ class ThriftHiveMetastore_get_partition_names_ps_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size607 = 0; - $_etype610 = 0; - $xfer += $input->readListBegin($_etype610, $_size607); - for ($_i611 = 0; $_i611 < $_size607; ++$_i611) + $_size621 = 0; + $_etype624 = 0; + $xfer += $input->readListBegin($_etype624, $_size621); + for ($_i625 = 0; $_i625 < $_size621; ++$_i625) { - $elem612 = null; - $xfer += $input->readString($elem612); - $this->part_vals []= $elem612; + $elem626 = null; + $xfer += $input->readString($elem626); + $this->part_vals []= $elem626; } $xfer += $input->readListEnd(); } else { @@ -18117,9 +18173,9 @@ class ThriftHiveMetastore_get_partition_names_ps_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter613) + foreach ($this->part_vals as $iter627) { - $xfer += $output->writeString($iter613); + $xfer += $output->writeString($iter627); } } $output->writeListEnd(); @@ -18203,14 +18259,14 @@ class ThriftHiveMetastore_get_partition_names_ps_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size614 = 0; - $_etype617 = 0; - $xfer += $input->readListBegin($_etype617, $_size614); - for ($_i618 = 0; $_i618 < $_size614; ++$_i618) + $_size628 = 0; + $_etype631 = 0; + $xfer += $input->readListBegin($_etype631, $_size628); + for ($_i632 = 0; $_i632 < $_size628; ++$_i632) { - $elem619 = null; - $xfer += $input->readString($elem619); - $this->success []= $elem619; + $elem633 = null; + $xfer += $input->readString($elem633); + $this->success []= $elem633; } $xfer += $input->readListEnd(); } else { @@ -18254,9 +18310,9 @@ class ThriftHiveMetastore_get_partition_names_ps_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter620) + foreach ($this->success as $iter634) { - $xfer += $output->writeString($iter620); + $xfer += $output->writeString($iter634); } } $output->writeListEnd(); @@ -18478,15 +18534,15 @@ class ThriftHiveMetastore_get_partitions_by_filter_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size621 = 0; - $_etype624 = 0; - $xfer += $input->readListBegin($_etype624, $_size621); - for ($_i625 = 0; $_i625 < $_size621; ++$_i625) + $_size635 = 0; + $_etype638 = 0; + $xfer += $input->readListBegin($_etype638, $_size635); + for ($_i639 = 0; $_i639 < $_size635; ++$_i639) { - $elem626 = null; - $elem626 = new \metastore\Partition(); - $xfer += $elem626->read($input); - $this->success []= $elem626; + $elem640 = null; + $elem640 = new \metastore\Partition(); + $xfer += $elem640->read($input); + $this->success []= $elem640; } $xfer += $input->readListEnd(); } else { @@ -18530,9 +18586,9 @@ class ThriftHiveMetastore_get_partitions_by_filter_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter627) + foreach ($this->success as $iter641) { - $xfer += $iter627->write($output); + $xfer += $iter641->write($output); } } $output->writeListEnd(); @@ -18831,14 +18887,14 @@ class ThriftHiveMetastore_get_partitions_by_names_args { case 3: if ($ftype == TType::LST) { $this->names = array(); - $_size628 = 0; - $_etype631 = 0; - $xfer += $input->readListBegin($_etype631, $_size628); - for ($_i632 = 0; $_i632 < $_size628; ++$_i632) + $_size642 = 0; + $_etype645 = 0; + $xfer += $input->readListBegin($_etype645, $_size642); + for ($_i646 = 0; $_i646 < $_size642; ++$_i646) { - $elem633 = null; - $xfer += $input->readString($elem633); - $this->names []= $elem633; + $elem647 = null; + $xfer += $input->readString($elem647); + $this->names []= $elem647; } $xfer += $input->readListEnd(); } else { @@ -18876,9 +18932,9 @@ class ThriftHiveMetastore_get_partitions_by_names_args { { $output->writeListBegin(TType::STRING, count($this->names)); { - foreach ($this->names as $iter634) + foreach ($this->names as $iter648) { - $xfer += $output->writeString($iter634); + $xfer += $output->writeString($iter648); } } $output->writeListEnd(); @@ -18958,15 +19014,15 @@ class ThriftHiveMetastore_get_partitions_by_names_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size635 = 0; - $_etype638 = 0; - $xfer += $input->readListBegin($_etype638, $_size635); - for ($_i639 = 0; $_i639 < $_size635; ++$_i639) + $_size649 = 0; + $_etype652 = 0; + $xfer += $input->readListBegin($_etype652, $_size649); + for ($_i653 = 0; $_i653 < $_size649; ++$_i653) { - $elem640 = null; - $elem640 = new \metastore\Partition(); - $xfer += $elem640->read($input); - $this->success []= $elem640; + $elem654 = null; + $elem654 = new \metastore\Partition(); + $xfer += $elem654->read($input); + $this->success []= $elem654; } $xfer += $input->readListEnd(); } else { @@ -19010,9 +19066,9 @@ class ThriftHiveMetastore_get_partitions_by_names_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter641) + foreach ($this->success as $iter655) { - $xfer += $iter641->write($output); + $xfer += $iter655->write($output); } } $output->writeListEnd(); @@ -19327,15 +19383,15 @@ class ThriftHiveMetastore_alter_partitions_args { case 3: if ($ftype == TType::LST) { $this->new_parts = array(); - $_size642 = 0; - $_etype645 = 0; - $xfer += $input->readListBegin($_etype645, $_size642); - for ($_i646 = 0; $_i646 < $_size642; ++$_i646) + $_size656 = 0; + $_etype659 = 0; + $xfer += $input->readListBegin($_etype659, $_size656); + for ($_i660 = 0; $_i660 < $_size656; ++$_i660) { - $elem647 = null; - $elem647 = new \metastore\Partition(); - $xfer += $elem647->read($input); - $this->new_parts []= $elem647; + $elem661 = null; + $elem661 = new \metastore\Partition(); + $xfer += $elem661->read($input); + $this->new_parts []= $elem661; } $xfer += $input->readListEnd(); } else { @@ -19373,9 +19429,9 @@ class ThriftHiveMetastore_alter_partitions_args { { $output->writeListBegin(TType::STRUCT, count($this->new_parts)); { - foreach ($this->new_parts as $iter648) + foreach ($this->new_parts as $iter662) { - $xfer += $iter648->write($output); + $xfer += $iter662->write($output); } } $output->writeListEnd(); @@ -19809,14 +19865,14 @@ class ThriftHiveMetastore_rename_partition_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size649 = 0; - $_etype652 = 0; - $xfer += $input->readListBegin($_etype652, $_size649); - for ($_i653 = 0; $_i653 < $_size649; ++$_i653) + $_size663 = 0; + $_etype666 = 0; + $xfer += $input->readListBegin($_etype666, $_size663); + for ($_i667 = 0; $_i667 < $_size663; ++$_i667) { - $elem654 = null; - $xfer += $input->readString($elem654); - $this->part_vals []= $elem654; + $elem668 = null; + $xfer += $input->readString($elem668); + $this->part_vals []= $elem668; } $xfer += $input->readListEnd(); } else { @@ -19862,9 +19918,9 @@ class ThriftHiveMetastore_rename_partition_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter655) + foreach ($this->part_vals as $iter669) { - $xfer += $output->writeString($iter655); + $xfer += $output->writeString($iter669); } } $output->writeListEnd(); @@ -20037,14 +20093,14 @@ class ThriftHiveMetastore_partition_name_has_valid_characters_args { case 1: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size656 = 0; - $_etype659 = 0; - $xfer += $input->readListBegin($_etype659, $_size656); - for ($_i660 = 0; $_i660 < $_size656; ++$_i660) + $_size670 = 0; + $_etype673 = 0; + $xfer += $input->readListBegin($_etype673, $_size670); + for ($_i674 = 0; $_i674 < $_size670; ++$_i674) { - $elem661 = null; - $xfer += $input->readString($elem661); - $this->part_vals []= $elem661; + $elem675 = null; + $xfer += $input->readString($elem675); + $this->part_vals []= $elem675; } $xfer += $input->readListEnd(); } else { @@ -20079,9 +20135,9 @@ class ThriftHiveMetastore_partition_name_has_valid_characters_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter662) + foreach ($this->part_vals as $iter676) { - $xfer += $output->writeString($iter662); + $xfer += $output->writeString($iter676); } } $output->writeListEnd(); @@ -20508,14 +20564,14 @@ class ThriftHiveMetastore_partition_name_to_vals_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size663 = 0; - $_etype666 = 0; - $xfer += $input->readListBegin($_etype666, $_size663); - for ($_i667 = 0; $_i667 < $_size663; ++$_i667) + $_size677 = 0; + $_etype680 = 0; + $xfer += $input->readListBegin($_etype680, $_size677); + for ($_i681 = 0; $_i681 < $_size677; ++$_i681) { - $elem668 = null; - $xfer += $input->readString($elem668); - $this->success []= $elem668; + $elem682 = null; + $xfer += $input->readString($elem682); + $this->success []= $elem682; } $xfer += $input->readListEnd(); } else { @@ -20551,9 +20607,9 @@ class ThriftHiveMetastore_partition_name_to_vals_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter669) + foreach ($this->success as $iter683) { - $xfer += $output->writeString($iter669); + $xfer += $output->writeString($iter683); } } $output->writeListEnd(); @@ -20704,17 +20760,17 @@ class ThriftHiveMetastore_partition_name_to_spec_result { case 0: if ($ftype == TType::MAP) { $this->success = array(); - $_size670 = 0; - $_ktype671 = 0; - $_vtype672 = 0; - $xfer += $input->readMapBegin($_ktype671, $_vtype672, $_size670); - for ($_i674 = 0; $_i674 < $_size670; ++$_i674) + $_size684 = 0; + $_ktype685 = 0; + $_vtype686 = 0; + $xfer += $input->readMapBegin($_ktype685, $_vtype686, $_size684); + for ($_i688 = 0; $_i688 < $_size684; ++$_i688) { - $key675 = ''; - $val676 = ''; - $xfer += $input->readString($key675); - $xfer += $input->readString($val676); - $this->success[$key675] = $val676; + $key689 = ''; + $val690 = ''; + $xfer += $input->readString($key689); + $xfer += $input->readString($val690); + $this->success[$key689] = $val690; } $xfer += $input->readMapEnd(); } else { @@ -20750,10 +20806,10 @@ class ThriftHiveMetastore_partition_name_to_spec_result { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->success)); { - foreach ($this->success as $kiter677 => $viter678) + foreach ($this->success as $kiter691 => $viter692) { - $xfer += $output->writeString($kiter677); - $xfer += $output->writeString($viter678); + $xfer += $output->writeString($kiter691); + $xfer += $output->writeString($viter692); } } $output->writeMapEnd(); @@ -20861,17 +20917,17 @@ class ThriftHiveMetastore_markPartitionForEvent_args { case 3: if ($ftype == TType::MAP) { $this->part_vals = array(); - $_size679 = 0; - $_ktype680 = 0; - $_vtype681 = 0; - $xfer += $input->readMapBegin($_ktype680, $_vtype681, $_size679); - for ($_i683 = 0; $_i683 < $_size679; ++$_i683) + $_size693 = 0; + $_ktype694 = 0; + $_vtype695 = 0; + $xfer += $input->readMapBegin($_ktype694, $_vtype695, $_size693); + for ($_i697 = 0; $_i697 < $_size693; ++$_i697) { - $key684 = ''; - $val685 = ''; - $xfer += $input->readString($key684); - $xfer += $input->readString($val685); - $this->part_vals[$key684] = $val685; + $key698 = ''; + $val699 = ''; + $xfer += $input->readString($key698); + $xfer += $input->readString($val699); + $this->part_vals[$key698] = $val699; } $xfer += $input->readMapEnd(); } else { @@ -20916,10 +20972,10 @@ class ThriftHiveMetastore_markPartitionForEvent_args { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $kiter686 => $viter687) + foreach ($this->part_vals as $kiter700 => $viter701) { - $xfer += $output->writeString($kiter686); - $xfer += $output->writeString($viter687); + $xfer += $output->writeString($kiter700); + $xfer += $output->writeString($viter701); } } $output->writeMapEnd(); @@ -21211,17 +21267,17 @@ class ThriftHiveMetastore_isPartitionMarkedForEvent_args { case 3: if ($ftype == TType::MAP) { $this->part_vals = array(); - $_size688 = 0; - $_ktype689 = 0; - $_vtype690 = 0; - $xfer += $input->readMapBegin($_ktype689, $_vtype690, $_size688); - for ($_i692 = 0; $_i692 < $_size688; ++$_i692) + $_size702 = 0; + $_ktype703 = 0; + $_vtype704 = 0; + $xfer += $input->readMapBegin($_ktype703, $_vtype704, $_size702); + for ($_i706 = 0; $_i706 < $_size702; ++$_i706) { - $key693 = ''; - $val694 = ''; - $xfer += $input->readString($key693); - $xfer += $input->readString($val694); - $this->part_vals[$key693] = $val694; + $key707 = ''; + $val708 = ''; + $xfer += $input->readString($key707); + $xfer += $input->readString($val708); + $this->part_vals[$key707] = $val708; } $xfer += $input->readMapEnd(); } else { @@ -21266,10 +21322,10 @@ class ThriftHiveMetastore_isPartitionMarkedForEvent_args { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $kiter695 => $viter696) + foreach ($this->part_vals as $kiter709 => $viter710) { - $xfer += $output->writeString($kiter695); - $xfer += $output->writeString($viter696); + $xfer += $output->writeString($kiter709); + $xfer += $output->writeString($viter710); } } $output->writeMapEnd(); @@ -22629,15 +22685,15 @@ class ThriftHiveMetastore_get_indexes_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size697 = 0; - $_etype700 = 0; - $xfer += $input->readListBegin($_etype700, $_size697); - for ($_i701 = 0; $_i701 < $_size697; ++$_i701) + $_size711 = 0; + $_etype714 = 0; + $xfer += $input->readListBegin($_etype714, $_size711); + for ($_i715 = 0; $_i715 < $_size711; ++$_i715) { - $elem702 = null; - $elem702 = new \metastore\Index(); - $xfer += $elem702->read($input); - $this->success []= $elem702; + $elem716 = null; + $elem716 = new \metastore\Index(); + $xfer += $elem716->read($input); + $this->success []= $elem716; } $xfer += $input->readListEnd(); } else { @@ -22681,9 +22737,9 @@ class ThriftHiveMetastore_get_indexes_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter703) + foreach ($this->success as $iter717) { - $xfer += $iter703->write($output); + $xfer += $iter717->write($output); } } $output->writeListEnd(); @@ -22875,14 +22931,14 @@ class ThriftHiveMetastore_get_index_names_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size704 = 0; - $_etype707 = 0; - $xfer += $input->readListBegin($_etype707, $_size704); - for ($_i708 = 0; $_i708 < $_size704; ++$_i708) + $_size718 = 0; + $_etype721 = 0; + $xfer += $input->readListBegin($_etype721, $_size718); + for ($_i722 = 0; $_i722 < $_size718; ++$_i722) { - $elem709 = null; - $xfer += $input->readString($elem709); - $this->success []= $elem709; + $elem723 = null; + $xfer += $input->readString($elem723); + $this->success []= $elem723; } $xfer += $input->readListEnd(); } else { @@ -22918,9 +22974,9 @@ class ThriftHiveMetastore_get_index_names_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter710) + foreach ($this->success as $iter724) { - $xfer += $output->writeString($iter710); + $xfer += $output->writeString($iter724); } } $output->writeListEnd(); @@ -26148,14 +26204,14 @@ class ThriftHiveMetastore_get_functions_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size711 = 0; - $_etype714 = 0; - $xfer += $input->readListBegin($_etype714, $_size711); - for ($_i715 = 0; $_i715 < $_size711; ++$_i715) + $_size725 = 0; + $_etype728 = 0; + $xfer += $input->readListBegin($_etype728, $_size725); + for ($_i729 = 0; $_i729 < $_size725; ++$_i729) { - $elem716 = null; - $xfer += $input->readString($elem716); - $this->success []= $elem716; + $elem730 = null; + $xfer += $input->readString($elem730); + $this->success []= $elem730; } $xfer += $input->readListEnd(); } else { @@ -26191,9 +26247,9 @@ class ThriftHiveMetastore_get_functions_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter717) + foreach ($this->success as $iter731) { - $xfer += $output->writeString($iter717); + $xfer += $output->writeString($iter731); } } $output->writeListEnd(); @@ -26868,14 +26924,14 @@ class ThriftHiveMetastore_get_role_names_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size718 = 0; - $_etype721 = 0; - $xfer += $input->readListBegin($_etype721, $_size718); - for ($_i722 = 0; $_i722 < $_size718; ++$_i722) + $_size732 = 0; + $_etype735 = 0; + $xfer += $input->readListBegin($_etype735, $_size732); + for ($_i736 = 0; $_i736 < $_size732; ++$_i736) { - $elem723 = null; - $xfer += $input->readString($elem723); - $this->success []= $elem723; + $elem737 = null; + $xfer += $input->readString($elem737); + $this->success []= $elem737; } $xfer += $input->readListEnd(); } else { @@ -26911,9 +26967,9 @@ class ThriftHiveMetastore_get_role_names_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter724) + foreach ($this->success as $iter738) { - $xfer += $output->writeString($iter724); + $xfer += $output->writeString($iter738); } } $output->writeListEnd(); @@ -27553,15 +27609,15 @@ class ThriftHiveMetastore_list_roles_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size725 = 0; - $_etype728 = 0; - $xfer += $input->readListBegin($_etype728, $_size725); - for ($_i729 = 0; $_i729 < $_size725; ++$_i729) + $_size739 = 0; + $_etype742 = 0; + $xfer += $input->readListBegin($_etype742, $_size739); + for ($_i743 = 0; $_i743 < $_size739; ++$_i743) { - $elem730 = null; - $elem730 = new \metastore\Role(); - $xfer += $elem730->read($input); - $this->success []= $elem730; + $elem744 = null; + $elem744 = new \metastore\Role(); + $xfer += $elem744->read($input); + $this->success []= $elem744; } $xfer += $input->readListEnd(); } else { @@ -27597,9 +27653,9 @@ class ThriftHiveMetastore_list_roles_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter731) + foreach ($this->success as $iter745) { - $xfer += $iter731->write($output); + $xfer += $iter745->write($output); } } $output->writeListEnd(); @@ -28225,14 +28281,14 @@ class ThriftHiveMetastore_get_privilege_set_args { case 3: if ($ftype == TType::LST) { $this->group_names = array(); - $_size732 = 0; - $_etype735 = 0; - $xfer += $input->readListBegin($_etype735, $_size732); - for ($_i736 = 0; $_i736 < $_size732; ++$_i736) + $_size746 = 0; + $_etype749 = 0; + $xfer += $input->readListBegin($_etype749, $_size746); + for ($_i750 = 0; $_i750 < $_size746; ++$_i750) { - $elem737 = null; - $xfer += $input->readString($elem737); - $this->group_names []= $elem737; + $elem751 = null; + $xfer += $input->readString($elem751); + $this->group_names []= $elem751; } $xfer += $input->readListEnd(); } else { @@ -28273,9 +28329,9 @@ class ThriftHiveMetastore_get_privilege_set_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter738) + foreach ($this->group_names as $iter752) { - $xfer += $output->writeString($iter738); + $xfer += $output->writeString($iter752); } } $output->writeListEnd(); @@ -28562,15 +28618,15 @@ class ThriftHiveMetastore_list_privileges_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size739 = 0; - $_etype742 = 0; - $xfer += $input->readListBegin($_etype742, $_size739); - for ($_i743 = 0; $_i743 < $_size739; ++$_i743) + $_size753 = 0; + $_etype756 = 0; + $xfer += $input->readListBegin($_etype756, $_size753); + for ($_i757 = 0; $_i757 < $_size753; ++$_i757) { - $elem744 = null; - $elem744 = new \metastore\HiveObjectPrivilege(); - $xfer += $elem744->read($input); - $this->success []= $elem744; + $elem758 = null; + $elem758 = new \metastore\HiveObjectPrivilege(); + $xfer += $elem758->read($input); + $this->success []= $elem758; } $xfer += $input->readListEnd(); } else { @@ -28606,9 +28662,9 @@ class ThriftHiveMetastore_list_privileges_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter745) + foreach ($this->success as $iter759) { - $xfer += $iter745->write($output); + $xfer += $iter759->write($output); } } $output->writeListEnd(); @@ -29207,14 +29263,14 @@ class ThriftHiveMetastore_set_ugi_args { case 2: if ($ftype == TType::LST) { $this->group_names = array(); - $_size746 = 0; - $_etype749 = 0; - $xfer += $input->readListBegin($_etype749, $_size746); - for ($_i750 = 0; $_i750 < $_size746; ++$_i750) + $_size760 = 0; + $_etype763 = 0; + $xfer += $input->readListBegin($_etype763, $_size760); + for ($_i764 = 0; $_i764 < $_size760; ++$_i764) { - $elem751 = null; - $xfer += $input->readString($elem751); - $this->group_names []= $elem751; + $elem765 = null; + $xfer += $input->readString($elem765); + $this->group_names []= $elem765; } $xfer += $input->readListEnd(); } else { @@ -29247,9 +29303,9 @@ class ThriftHiveMetastore_set_ugi_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter752) + foreach ($this->group_names as $iter766) { - $xfer += $output->writeString($iter752); + $xfer += $output->writeString($iter766); } } $output->writeListEnd(); @@ -29319,14 +29375,14 @@ class ThriftHiveMetastore_set_ugi_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size753 = 0; - $_etype756 = 0; - $xfer += $input->readListBegin($_etype756, $_size753); - for ($_i757 = 0; $_i757 < $_size753; ++$_i757) + $_size767 = 0; + $_etype770 = 0; + $xfer += $input->readListBegin($_etype770, $_size767); + for ($_i771 = 0; $_i771 < $_size767; ++$_i771) { - $elem758 = null; - $xfer += $input->readString($elem758); - $this->success []= $elem758; + $elem772 = null; + $xfer += $input->readString($elem772); + $this->success []= $elem772; } $xfer += $input->readListEnd(); } else { @@ -29362,9 +29418,9 @@ class ThriftHiveMetastore_set_ugi_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter759) + foreach ($this->success as $iter773) { - $xfer += $output->writeString($iter759); + $xfer += $output->writeString($iter773); } } $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 c93b74e..183fcdc --- metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote +++ metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote @@ -56,8 +56,8 @@ if len(sys.argv) <= 1 or sys.argv[1] == '--help': print ' Partition append_partition_with_environment_context(string db_name, string tbl_name, part_vals, EnvironmentContext environment_context)' print ' Partition append_partition_by_name(string db_name, string tbl_name, string part_name)' print ' Partition append_partition_by_name_with_environment_context(string db_name, string tbl_name, string part_name, EnvironmentContext environment_context)' - print ' bool drop_partition(string db_name, string tbl_name, part_vals, bool deleteData)' - print ' bool drop_partition_with_environment_context(string db_name, string tbl_name, part_vals, bool deleteData, EnvironmentContext environment_context)' + print ' drop_partitions(string db_name, string tbl_name, part_vals, bool deleteData)' + print ' drop_partitions_with_environment_context(string db_name, string tbl_name, part_vals, bool deleteData, EnvironmentContext environment_context)' print ' bool drop_partition_by_name(string db_name, string tbl_name, string part_name, bool deleteData)' print ' bool drop_partition_by_name_with_environment_context(string db_name, string tbl_name, string part_name, bool deleteData, EnvironmentContext environment_context)' print ' DropPartitionsResult drop_partitions_req(DropPartitionsRequest req)' @@ -385,17 +385,17 @@ elif cmd == 'append_partition_by_name_with_environment_context': sys.exit(1) pp.pprint(client.append_partition_by_name_with_environment_context(args[0],args[1],args[2],eval(args[3]),)) -elif cmd == 'drop_partition': +elif cmd == 'drop_partitions': if len(args) != 4: - print 'drop_partition requires 4 args' + print 'drop_partitions requires 4 args' sys.exit(1) - pp.pprint(client.drop_partition(args[0],args[1],eval(args[2]),eval(args[3]),)) + pp.pprint(client.drop_partitions(args[0],args[1],eval(args[2]),eval(args[3]),)) -elif cmd == 'drop_partition_with_environment_context': +elif cmd == 'drop_partitions_with_environment_context': if len(args) != 5: - print 'drop_partition_with_environment_context requires 5 args' + print 'drop_partitions_with_environment_context requires 5 args' sys.exit(1) - pp.pprint(client.drop_partition_with_environment_context(args[0],args[1],eval(args[2]),eval(args[3]),eval(args[4]),)) + pp.pprint(client.drop_partitions_with_environment_context(args[0],args[1],eval(args[2]),eval(args[3]),eval(args[4]),)) elif cmd == 'drop_partition_by_name': if len(args) != 4: diff --git metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py index 7c4c6a0..ff1432b 100644 --- metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py +++ metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py @@ -282,7 +282,7 @@ def append_partition_by_name_with_environment_context(self, db_name, tbl_name, p """ pass - def drop_partition(self, db_name, tbl_name, part_vals, deleteData): + def drop_partitions(self, db_name, tbl_name, part_vals, deleteData): """ Parameters: - db_name @@ -292,7 +292,7 @@ def drop_partition(self, db_name, tbl_name, part_vals, deleteData): """ pass - def drop_partition_with_environment_context(self, db_name, tbl_name, part_vals, deleteData, environment_context): + def drop_partitions_with_environment_context(self, db_name, tbl_name, part_vals, deleteData, environment_context): """ Parameters: - db_name @@ -2135,7 +2135,7 @@ def recv_append_partition_by_name_with_environment_context(self, ): raise result.o3 raise TApplicationException(TApplicationException.MISSING_RESULT, "append_partition_by_name_with_environment_context failed: unknown result"); - def drop_partition(self, db_name, tbl_name, part_vals, deleteData): + def drop_partitions(self, db_name, tbl_name, part_vals, deleteData): """ Parameters: - db_name @@ -2143,12 +2143,12 @@ def drop_partition(self, db_name, tbl_name, part_vals, deleteData): - part_vals - deleteData """ - self.send_drop_partition(db_name, tbl_name, part_vals, deleteData) - return self.recv_drop_partition() + self.send_drop_partitions(db_name, tbl_name, part_vals, deleteData) + return self.recv_drop_partitions() - def send_drop_partition(self, db_name, tbl_name, part_vals, deleteData): - self._oprot.writeMessageBegin('drop_partition', TMessageType.CALL, self._seqid) - args = drop_partition_args() + def send_drop_partitions(self, db_name, tbl_name, part_vals, deleteData): + self._oprot.writeMessageBegin('drop_partitions', TMessageType.CALL, self._seqid) + args = drop_partitions_args() args.db_name = db_name args.tbl_name = tbl_name args.part_vals = part_vals @@ -2157,14 +2157,14 @@ def send_drop_partition(self, db_name, tbl_name, part_vals, deleteData): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_drop_partition(self, ): + def recv_drop_partitions(self, ): (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() raise x - result = drop_partition_result() + result = drop_partitions_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.success is not None: @@ -2173,9 +2173,9 @@ def recv_drop_partition(self, ): raise result.o1 if result.o2 is not None: raise result.o2 - raise TApplicationException(TApplicationException.MISSING_RESULT, "drop_partition failed: unknown result"); + raise TApplicationException(TApplicationException.MISSING_RESULT, "drop_partitions failed: unknown result"); - def drop_partition_with_environment_context(self, db_name, tbl_name, part_vals, deleteData, environment_context): + def drop_partitions_with_environment_context(self, db_name, tbl_name, part_vals, deleteData, environment_context): """ Parameters: - db_name @@ -2184,12 +2184,12 @@ def drop_partition_with_environment_context(self, db_name, tbl_name, part_vals, - deleteData - environment_context """ - self.send_drop_partition_with_environment_context(db_name, tbl_name, part_vals, deleteData, environment_context) - return self.recv_drop_partition_with_environment_context() + self.send_drop_partitions_with_environment_context(db_name, tbl_name, part_vals, deleteData, environment_context) + return self.recv_drop_partitions_with_environment_context() - def send_drop_partition_with_environment_context(self, db_name, tbl_name, part_vals, deleteData, environment_context): - self._oprot.writeMessageBegin('drop_partition_with_environment_context', TMessageType.CALL, self._seqid) - args = drop_partition_with_environment_context_args() + def send_drop_partitions_with_environment_context(self, db_name, tbl_name, part_vals, deleteData, environment_context): + self._oprot.writeMessageBegin('drop_partitions_with_environment_context', TMessageType.CALL, self._seqid) + args = drop_partitions_with_environment_context_args() args.db_name = db_name args.tbl_name = tbl_name args.part_vals = part_vals @@ -2199,14 +2199,14 @@ def send_drop_partition_with_environment_context(self, db_name, tbl_name, part_v self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_drop_partition_with_environment_context(self, ): + def recv_drop_partitions_with_environment_context(self, ): (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(self._iprot) self._iprot.readMessageEnd() raise x - result = drop_partition_with_environment_context_result() + result = drop_partitions_with_environment_context_result() result.read(self._iprot) self._iprot.readMessageEnd() if result.success is not None: @@ -2215,7 +2215,7 @@ def recv_drop_partition_with_environment_context(self, ): raise result.o1 if result.o2 is not None: raise result.o2 - raise TApplicationException(TApplicationException.MISSING_RESULT, "drop_partition_with_environment_context failed: unknown result"); + raise TApplicationException(TApplicationException.MISSING_RESULT, "drop_partitions_with_environment_context failed: unknown result"); def drop_partition_by_name(self, db_name, tbl_name, part_name, deleteData): """ @@ -5045,8 +5045,8 @@ def __init__(self, handler): self._processMap["append_partition_with_environment_context"] = Processor.process_append_partition_with_environment_context self._processMap["append_partition_by_name"] = Processor.process_append_partition_by_name self._processMap["append_partition_by_name_with_environment_context"] = Processor.process_append_partition_by_name_with_environment_context - self._processMap["drop_partition"] = Processor.process_drop_partition - self._processMap["drop_partition_with_environment_context"] = Processor.process_drop_partition_with_environment_context + self._processMap["drop_partitions"] = Processor.process_drop_partitions + self._processMap["drop_partitions_with_environment_context"] = Processor.process_drop_partitions_with_environment_context self._processMap["drop_partition_by_name"] = Processor.process_drop_partition_by_name self._processMap["drop_partition_by_name_with_environment_context"] = Processor.process_drop_partition_by_name_with_environment_context self._processMap["drop_partitions_req"] = Processor.process_drop_partitions_req @@ -5693,34 +5693,34 @@ def process_append_partition_by_name_with_environment_context(self, seqid, iprot oprot.writeMessageEnd() oprot.trans.flush() - def process_drop_partition(self, seqid, iprot, oprot): - args = drop_partition_args() + def process_drop_partitions(self, seqid, iprot, oprot): + args = drop_partitions_args() args.read(iprot) iprot.readMessageEnd() - result = drop_partition_result() + result = drop_partitions_result() try: - result.success = self._handler.drop_partition(args.db_name, args.tbl_name, args.part_vals, args.deleteData) + result.success = self._handler.drop_partitions(args.db_name, args.tbl_name, args.part_vals, args.deleteData) except NoSuchObjectException as o1: result.o1 = o1 except MetaException as o2: result.o2 = o2 - oprot.writeMessageBegin("drop_partition", TMessageType.REPLY, seqid) + oprot.writeMessageBegin("drop_partitions", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() - def process_drop_partition_with_environment_context(self, seqid, iprot, oprot): - args = drop_partition_with_environment_context_args() + def process_drop_partitions_with_environment_context(self, seqid, iprot, oprot): + args = drop_partitions_with_environment_context_args() args.read(iprot) iprot.readMessageEnd() - result = drop_partition_with_environment_context_result() + result = drop_partitions_with_environment_context_result() try: - result.success = self._handler.drop_partition_with_environment_context(args.db_name, args.tbl_name, args.part_vals, args.deleteData, args.environment_context) + result.success = self._handler.drop_partitions_with_environment_context(args.db_name, args.tbl_name, args.part_vals, args.deleteData, args.environment_context) except NoSuchObjectException as o1: result.o1 = o1 except MetaException as o2: result.o2 = o2 - oprot.writeMessageBegin("drop_partition_with_environment_context", TMessageType.REPLY, seqid) + oprot.writeMessageBegin("drop_partitions_with_environment_context", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -12293,7 +12293,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class drop_partition_args: +class drop_partitions_args: """ Attributes: - db_name @@ -12359,7 +12359,7 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('drop_partition_args') + oprot.writeStructBegin('drop_partitions_args') if self.db_name is not None: oprot.writeFieldBegin('db_name', TType.STRING, 1) oprot.writeString(self.db_name) @@ -12397,7 +12397,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class drop_partition_result: +class drop_partitions_result: """ Attributes: - success @@ -12406,7 +12406,7 @@ class drop_partition_result: """ thrift_spec = ( - (0, TType.BOOL, 'success', None, 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, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2 ) @@ -12426,8 +12426,14 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 0: - if ftype == TType.BOOL: - self.success = iprot.readBool(); + if ftype == TType.LIST: + self.success = [] + (_etype507, _size504) = iprot.readListBegin() + for _i508 in xrange(_size504): + _elem509 = Partition() + _elem509.read(iprot) + self.success.append(_elem509) + iprot.readListEnd() else: iprot.skip(ftype) elif fid == 1: @@ -12451,10 +12457,13 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('drop_partition_result') + oprot.writeStructBegin('drop_partitions_result') if self.success is not None: - oprot.writeFieldBegin('success', TType.BOOL, 0) - oprot.writeBool(self.success) + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRUCT, len(self.success)) + for iter510 in self.success: + iter510.write(oprot) + oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) @@ -12482,7 +12491,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class drop_partition_with_environment_context_args: +class drop_partitions_with_environment_context_args: """ Attributes: - db_name @@ -12530,10 +12539,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype507, _size504) = iprot.readListBegin() - for _i508 in xrange(_size504): - _elem509 = iprot.readString(); - self.part_vals.append(_elem509) + (_etype514, _size511) = iprot.readListBegin() + for _i515 in xrange(_size511): + _elem516 = iprot.readString(); + self.part_vals.append(_elem516) iprot.readListEnd() else: iprot.skip(ftype) @@ -12557,7 +12566,7 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('drop_partition_with_environment_context_args') + oprot.writeStructBegin('drop_partitions_with_environment_context_args') if self.db_name is not None: oprot.writeFieldBegin('db_name', TType.STRING, 1) oprot.writeString(self.db_name) @@ -12569,8 +12578,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 iter510 in self.part_vals: - oprot.writeString(iter510) + for iter517 in self.part_vals: + oprot.writeString(iter517) oprot.writeListEnd() oprot.writeFieldEnd() if self.deleteData is not None: @@ -12599,7 +12608,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class drop_partition_with_environment_context_result: +class drop_partitions_with_environment_context_result: """ Attributes: - success @@ -12608,7 +12617,7 @@ class drop_partition_with_environment_context_result: """ thrift_spec = ( - (0, TType.BOOL, 'success', None, 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, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2 ) @@ -12628,8 +12637,14 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 0: - if ftype == TType.BOOL: - self.success = iprot.readBool(); + if ftype == TType.LIST: + self.success = [] + (_etype521, _size518) = iprot.readListBegin() + for _i522 in xrange(_size518): + _elem523 = Partition() + _elem523.read(iprot) + self.success.append(_elem523) + iprot.readListEnd() else: iprot.skip(ftype) elif fid == 1: @@ -12653,10 +12668,13 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('drop_partition_with_environment_context_result') + oprot.writeStructBegin('drop_partitions_with_environment_context_result') if self.success is not None: - oprot.writeFieldBegin('success', TType.BOOL, 0) - oprot.writeBool(self.success) + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRUCT, len(self.success)) + for iter524 in self.success: + iter524.write(oprot) + oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) @@ -13248,10 +13266,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype514, _size511) = iprot.readListBegin() - for _i515 in xrange(_size511): - _elem516 = iprot.readString(); - self.part_vals.append(_elem516) + (_etype528, _size525) = iprot.readListBegin() + for _i529 in xrange(_size525): + _elem530 = iprot.readString(); + self.part_vals.append(_elem530) iprot.readListEnd() else: iprot.skip(ftype) @@ -13276,8 +13294,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 iter517 in self.part_vals: - oprot.writeString(iter517) + for iter531 in self.part_vals: + oprot.writeString(iter531) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -13422,11 +13440,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.MAP: self.partitionSpecs = {} - (_ktype519, _vtype520, _size518 ) = iprot.readMapBegin() - for _i522 in xrange(_size518): - _key523 = iprot.readString(); - _val524 = iprot.readString(); - self.partitionSpecs[_key523] = _val524 + (_ktype533, _vtype534, _size532 ) = iprot.readMapBegin() + for _i536 in xrange(_size532): + _key537 = iprot.readString(); + _val538 = iprot.readString(); + self.partitionSpecs[_key537] = _val538 iprot.readMapEnd() else: iprot.skip(ftype) @@ -13463,9 +13481,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 kiter525,viter526 in self.partitionSpecs.items(): - oprot.writeString(kiter525) - oprot.writeString(viter526) + for kiter539,viter540 in self.partitionSpecs.items(): + oprot.writeString(kiter539) + oprot.writeString(viter540) oprot.writeMapEnd() oprot.writeFieldEnd() if self.source_db is not None: @@ -13662,10 +13680,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) @@ -13677,10 +13695,10 @@ def read(self, iprot): elif fid == 5: if ftype == TType.LIST: self.group_names = [] - (_etype536, _size533) = iprot.readListBegin() - for _i537 in xrange(_size533): - _elem538 = iprot.readString(); - self.group_names.append(_elem538) + (_etype550, _size547) = iprot.readListBegin() + for _i551 in xrange(_size547): + _elem552 = iprot.readString(); + self.group_names.append(_elem552) iprot.readListEnd() else: iprot.skip(ftype) @@ -13705,8 +13723,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 iter539 in self.part_vals: - oprot.writeString(iter539) + for iter553 in self.part_vals: + oprot.writeString(iter553) oprot.writeListEnd() oprot.writeFieldEnd() if self.user_name is not None: @@ -13716,8 +13734,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 iter540 in self.group_names: - oprot.writeString(iter540) + for iter554 in self.group_names: + oprot.writeString(iter554) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -14109,11 +14127,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype544, _size541) = iprot.readListBegin() - for _i545 in xrange(_size541): - _elem546 = Partition() - _elem546.read(iprot) - self.success.append(_elem546) + (_etype558, _size555) = iprot.readListBegin() + for _i559 in xrange(_size555): + _elem560 = Partition() + _elem560.read(iprot) + self.success.append(_elem560) iprot.readListEnd() else: iprot.skip(ftype) @@ -14142,8 +14160,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 iter547 in self.success: - iter547.write(oprot) + for iter561 in self.success: + iter561.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -14230,10 +14248,10 @@ def read(self, iprot): elif fid == 5: if ftype == TType.LIST: self.group_names = [] - (_etype551, _size548) = iprot.readListBegin() - for _i552 in xrange(_size548): - _elem553 = iprot.readString(); - self.group_names.append(_elem553) + (_etype565, _size562) = iprot.readListBegin() + for _i566 in xrange(_size562): + _elem567 = iprot.readString(); + self.group_names.append(_elem567) iprot.readListEnd() else: iprot.skip(ftype) @@ -14266,8 +14284,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 iter554 in self.group_names: - oprot.writeString(iter554) + for iter568 in self.group_names: + oprot.writeString(iter568) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -14319,11 +14337,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype558, _size555) = iprot.readListBegin() - for _i559 in xrange(_size555): - _elem560 = Partition() - _elem560.read(iprot) - self.success.append(_elem560) + (_etype572, _size569) = iprot.readListBegin() + for _i573 in xrange(_size569): + _elem574 = Partition() + _elem574.read(iprot) + self.success.append(_elem574) iprot.readListEnd() else: iprot.skip(ftype) @@ -14352,8 +14370,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 iter561 in self.success: - iter561.write(oprot) + for iter575 in self.success: + iter575.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -14494,10 +14512,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype565, _size562) = iprot.readListBegin() - for _i566 in xrange(_size562): - _elem567 = iprot.readString(); - self.success.append(_elem567) + (_etype579, _size576) = iprot.readListBegin() + for _i580 in xrange(_size576): + _elem581 = iprot.readString(); + self.success.append(_elem581) iprot.readListEnd() else: iprot.skip(ftype) @@ -14520,8 +14538,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 iter568 in self.success: - oprot.writeString(iter568) + for iter582 in self.success: + oprot.writeString(iter582) oprot.writeListEnd() oprot.writeFieldEnd() if self.o2 is not None: @@ -14591,10 +14609,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype572, _size569) = iprot.readListBegin() - for _i573 in xrange(_size569): - _elem574 = iprot.readString(); - self.part_vals.append(_elem574) + (_etype586, _size583) = iprot.readListBegin() + for _i587 in xrange(_size583): + _elem588 = iprot.readString(); + self.part_vals.append(_elem588) iprot.readListEnd() else: iprot.skip(ftype) @@ -14624,8 +14642,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 iter575 in self.part_vals: - oprot.writeString(iter575) + for iter589 in self.part_vals: + oprot.writeString(iter589) oprot.writeListEnd() oprot.writeFieldEnd() if self.max_parts is not None: @@ -14681,11 +14699,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype579, _size576) = iprot.readListBegin() - for _i580 in xrange(_size576): - _elem581 = Partition() - _elem581.read(iprot) - self.success.append(_elem581) + (_etype593, _size590) = iprot.readListBegin() + for _i594 in xrange(_size590): + _elem595 = Partition() + _elem595.read(iprot) + self.success.append(_elem595) iprot.readListEnd() else: iprot.skip(ftype) @@ -14714,8 +14732,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 iter582 in self.success: - iter582.write(oprot) + for iter596 in self.success: + iter596.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -14795,10 +14813,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype586, _size583) = iprot.readListBegin() - for _i587 in xrange(_size583): - _elem588 = iprot.readString(); - self.part_vals.append(_elem588) + (_etype600, _size597) = iprot.readListBegin() + for _i601 in xrange(_size597): + _elem602 = iprot.readString(); + self.part_vals.append(_elem602) iprot.readListEnd() else: iprot.skip(ftype) @@ -14815,10 +14833,10 @@ def read(self, iprot): elif fid == 6: if ftype == TType.LIST: self.group_names = [] - (_etype592, _size589) = iprot.readListBegin() - for _i593 in xrange(_size589): - _elem594 = iprot.readString(); - self.group_names.append(_elem594) + (_etype606, _size603) = iprot.readListBegin() + for _i607 in xrange(_size603): + _elem608 = iprot.readString(); + self.group_names.append(_elem608) iprot.readListEnd() else: iprot.skip(ftype) @@ -14843,8 +14861,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 iter595 in self.part_vals: - oprot.writeString(iter595) + for iter609 in self.part_vals: + oprot.writeString(iter609) oprot.writeListEnd() oprot.writeFieldEnd() if self.max_parts is not None: @@ -14858,8 +14876,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 iter596 in self.group_names: - oprot.writeString(iter596) + for iter610 in self.group_names: + oprot.writeString(iter610) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -14911,11 +14929,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype600, _size597) = iprot.readListBegin() - for _i601 in xrange(_size597): - _elem602 = Partition() - _elem602.read(iprot) - self.success.append(_elem602) + (_etype614, _size611) = iprot.readListBegin() + for _i615 in xrange(_size611): + _elem616 = Partition() + _elem616.read(iprot) + self.success.append(_elem616) iprot.readListEnd() else: iprot.skip(ftype) @@ -14944,8 +14962,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 iter603 in self.success: - iter603.write(oprot) + for iter617 in self.success: + iter617.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -15019,10 +15037,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype607, _size604) = iprot.readListBegin() - for _i608 in xrange(_size604): - _elem609 = iprot.readString(); - self.part_vals.append(_elem609) + (_etype621, _size618) = iprot.readListBegin() + for _i622 in xrange(_size618): + _elem623 = iprot.readString(); + self.part_vals.append(_elem623) iprot.readListEnd() else: iprot.skip(ftype) @@ -15052,8 +15070,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 iter610 in self.part_vals: - oprot.writeString(iter610) + for iter624 in self.part_vals: + oprot.writeString(iter624) oprot.writeListEnd() oprot.writeFieldEnd() if self.max_parts is not None: @@ -15109,10 +15127,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype614, _size611) = iprot.readListBegin() - for _i615 in xrange(_size611): - _elem616 = iprot.readString(); - self.success.append(_elem616) + (_etype628, _size625) = iprot.readListBegin() + for _i629 in xrange(_size625): + _elem630 = iprot.readString(); + self.success.append(_elem630) iprot.readListEnd() else: iprot.skip(ftype) @@ -15141,8 +15159,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 iter617 in self.success: - oprot.writeString(iter617) + for iter631 in self.success: + oprot.writeString(iter631) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -15298,11 +15316,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype621, _size618) = iprot.readListBegin() - for _i622 in xrange(_size618): - _elem623 = Partition() - _elem623.read(iprot) - self.success.append(_elem623) + (_etype635, _size632) = iprot.readListBegin() + for _i636 in xrange(_size632): + _elem637 = Partition() + _elem637.read(iprot) + self.success.append(_elem637) iprot.readListEnd() else: iprot.skip(ftype) @@ -15331,8 +15349,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 iter624 in self.success: - iter624.write(oprot) + for iter638 in self.success: + iter638.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -15550,10 +15568,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.names = [] - (_etype628, _size625) = iprot.readListBegin() - for _i629 in xrange(_size625): - _elem630 = iprot.readString(); - self.names.append(_elem630) + (_etype642, _size639) = iprot.readListBegin() + for _i643 in xrange(_size639): + _elem644 = iprot.readString(); + self.names.append(_elem644) iprot.readListEnd() else: iprot.skip(ftype) @@ -15578,8 +15596,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 iter631 in self.names: - oprot.writeString(iter631) + for iter645 in self.names: + oprot.writeString(iter645) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -15631,11 +15649,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype635, _size632) = iprot.readListBegin() - for _i636 in xrange(_size632): - _elem637 = Partition() - _elem637.read(iprot) - self.success.append(_elem637) + (_etype649, _size646) = iprot.readListBegin() + for _i650 in xrange(_size646): + _elem651 = Partition() + _elem651.read(iprot) + self.success.append(_elem651) iprot.readListEnd() else: iprot.skip(ftype) @@ -15664,8 +15682,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 iter638 in self.success: - iter638.write(oprot) + for iter652 in self.success: + iter652.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -15895,11 +15913,11 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.new_parts = [] - (_etype642, _size639) = iprot.readListBegin() - for _i643 in xrange(_size639): - _elem644 = Partition() - _elem644.read(iprot) - self.new_parts.append(_elem644) + (_etype656, _size653) = iprot.readListBegin() + for _i657 in xrange(_size653): + _elem658 = Partition() + _elem658.read(iprot) + self.new_parts.append(_elem658) iprot.readListEnd() else: iprot.skip(ftype) @@ -15924,8 +15942,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 iter645 in self.new_parts: - iter645.write(oprot) + for iter659 in self.new_parts: + iter659.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -16237,10 +16255,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype649, _size646) = iprot.readListBegin() - for _i650 in xrange(_size646): - _elem651 = iprot.readString(); - self.part_vals.append(_elem651) + (_etype663, _size660) = iprot.readListBegin() + for _i664 in xrange(_size660): + _elem665 = iprot.readString(); + self.part_vals.append(_elem665) iprot.readListEnd() else: iprot.skip(ftype) @@ -16271,8 +16289,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 iter652 in self.part_vals: - oprot.writeString(iter652) + for iter666 in self.part_vals: + oprot.writeString(iter666) oprot.writeListEnd() oprot.writeFieldEnd() if self.new_part is not None: @@ -16400,10 +16418,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.part_vals = [] - (_etype656, _size653) = iprot.readListBegin() - for _i657 in xrange(_size653): - _elem658 = iprot.readString(); - self.part_vals.append(_elem658) + (_etype670, _size667) = iprot.readListBegin() + for _i671 in xrange(_size667): + _elem672 = iprot.readString(); + self.part_vals.append(_elem672) iprot.readListEnd() else: iprot.skip(ftype) @@ -16425,8 +16443,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 iter659 in self.part_vals: - oprot.writeString(iter659) + for iter673 in self.part_vals: + oprot.writeString(iter673) oprot.writeListEnd() oprot.writeFieldEnd() if self.throw_exception is not None: @@ -16755,10 +16773,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype663, _size660) = iprot.readListBegin() - for _i664 in xrange(_size660): - _elem665 = iprot.readString(); - self.success.append(_elem665) + (_etype677, _size674) = iprot.readListBegin() + for _i678 in xrange(_size674): + _elem679 = iprot.readString(); + self.success.append(_elem679) iprot.readListEnd() else: iprot.skip(ftype) @@ -16781,8 +16799,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 iter666 in self.success: - oprot.writeString(iter666) + for iter680 in self.success: + oprot.writeString(iter680) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -16895,11 +16913,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.MAP: self.success = {} - (_ktype668, _vtype669, _size667 ) = iprot.readMapBegin() - for _i671 in xrange(_size667): - _key672 = iprot.readString(); - _val673 = iprot.readString(); - self.success[_key672] = _val673 + (_ktype682, _vtype683, _size681 ) = iprot.readMapBegin() + for _i685 in xrange(_size681): + _key686 = iprot.readString(); + _val687 = iprot.readString(); + self.success[_key686] = _val687 iprot.readMapEnd() else: iprot.skip(ftype) @@ -16922,9 +16940,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 kiter674,viter675 in self.success.items(): - oprot.writeString(kiter674) - oprot.writeString(viter675) + for kiter688,viter689 in self.success.items(): + oprot.writeString(kiter688) + oprot.writeString(viter689) oprot.writeMapEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -16994,11 +17012,11 @@ def read(self, iprot): elif fid == 3: if ftype == TType.MAP: self.part_vals = {} - (_ktype677, _vtype678, _size676 ) = iprot.readMapBegin() - for _i680 in xrange(_size676): - _key681 = iprot.readString(); - _val682 = iprot.readString(); - self.part_vals[_key681] = _val682 + (_ktype691, _vtype692, _size690 ) = iprot.readMapBegin() + for _i694 in xrange(_size690): + _key695 = iprot.readString(); + _val696 = iprot.readString(); + self.part_vals[_key695] = _val696 iprot.readMapEnd() else: iprot.skip(ftype) @@ -17028,9 +17046,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 kiter683,viter684 in self.part_vals.items(): - oprot.writeString(kiter683) - oprot.writeString(viter684) + for kiter697,viter698 in self.part_vals.items(): + oprot.writeString(kiter697) + oprot.writeString(viter698) oprot.writeMapEnd() oprot.writeFieldEnd() if self.eventType is not None: @@ -17226,11 +17244,11 @@ def read(self, iprot): elif fid == 3: if ftype == TType.MAP: self.part_vals = {} - (_ktype686, _vtype687, _size685 ) = iprot.readMapBegin() - for _i689 in xrange(_size685): - _key690 = iprot.readString(); - _val691 = iprot.readString(); - self.part_vals[_key690] = _val691 + (_ktype700, _vtype701, _size699 ) = iprot.readMapBegin() + for _i703 in xrange(_size699): + _key704 = iprot.readString(); + _val705 = iprot.readString(); + self.part_vals[_key704] = _val705 iprot.readMapEnd() else: iprot.skip(ftype) @@ -17260,9 +17278,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 kiter692,viter693 in self.part_vals.items(): - oprot.writeString(kiter692) - oprot.writeString(viter693) + for kiter706,viter707 in self.part_vals.items(): + oprot.writeString(kiter706) + oprot.writeString(viter707) oprot.writeMapEnd() oprot.writeFieldEnd() if self.eventType is not None: @@ -18234,11 +18252,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype697, _size694) = iprot.readListBegin() - for _i698 in xrange(_size694): - _elem699 = Index() - _elem699.read(iprot) - self.success.append(_elem699) + (_etype711, _size708) = iprot.readListBegin() + for _i712 in xrange(_size708): + _elem713 = Index() + _elem713.read(iprot) + self.success.append(_elem713) iprot.readListEnd() else: iprot.skip(ftype) @@ -18267,8 +18285,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 iter700 in self.success: - iter700.write(oprot) + for iter714 in self.success: + iter714.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -18409,10 +18427,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype704, _size701) = iprot.readListBegin() - for _i705 in xrange(_size701): - _elem706 = iprot.readString(); - self.success.append(_elem706) + (_etype718, _size715) = iprot.readListBegin() + for _i719 in xrange(_size715): + _elem720 = iprot.readString(); + self.success.append(_elem720) iprot.readListEnd() else: iprot.skip(ftype) @@ -18435,8 +18453,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 iter707 in self.success: - oprot.writeString(iter707) + for iter721 in self.success: + oprot.writeString(iter721) oprot.writeListEnd() oprot.writeFieldEnd() if self.o2 is not None: @@ -20790,10 +20808,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype711, _size708) = iprot.readListBegin() - for _i712 in xrange(_size708): - _elem713 = iprot.readString(); - self.success.append(_elem713) + (_etype725, _size722) = iprot.readListBegin() + for _i726 in xrange(_size722): + _elem727 = iprot.readString(); + self.success.append(_elem727) iprot.readListEnd() else: iprot.skip(ftype) @@ -20816,8 +20834,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 iter714 in self.success: - oprot.writeString(iter714) + for iter728 in self.success: + oprot.writeString(iter728) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -21335,10 +21353,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype718, _size715) = iprot.readListBegin() - for _i719 in xrange(_size715): - _elem720 = iprot.readString(); - self.success.append(_elem720) + (_etype732, _size729) = iprot.readListBegin() + for _i733 in xrange(_size729): + _elem734 = iprot.readString(); + self.success.append(_elem734) iprot.readListEnd() else: iprot.skip(ftype) @@ -21361,8 +21379,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 iter721 in self.success: - oprot.writeString(iter721) + for iter735 in self.success: + oprot.writeString(iter735) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -21835,11 +21853,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype725, _size722) = iprot.readListBegin() - for _i726 in xrange(_size722): - _elem727 = Role() - _elem727.read(iprot) - self.success.append(_elem727) + (_etype739, _size736) = iprot.readListBegin() + for _i740 in xrange(_size736): + _elem741 = Role() + _elem741.read(iprot) + self.success.append(_elem741) iprot.readListEnd() else: iprot.skip(ftype) @@ -21862,8 +21880,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 iter728 in self.success: - iter728.write(oprot) + for iter742 in self.success: + iter742.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -22333,10 +22351,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.group_names = [] - (_etype732, _size729) = iprot.readListBegin() - for _i733 in xrange(_size729): - _elem734 = iprot.readString(); - self.group_names.append(_elem734) + (_etype746, _size743) = iprot.readListBegin() + for _i747 in xrange(_size743): + _elem748 = iprot.readString(); + self.group_names.append(_elem748) iprot.readListEnd() else: iprot.skip(ftype) @@ -22361,8 +22379,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 iter735 in self.group_names: - oprot.writeString(iter735) + for iter749 in self.group_names: + oprot.writeString(iter749) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -22569,11 +22587,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype739, _size736) = iprot.readListBegin() - for _i740 in xrange(_size736): - _elem741 = HiveObjectPrivilege() - _elem741.read(iprot) - self.success.append(_elem741) + (_etype753, _size750) = iprot.readListBegin() + for _i754 in xrange(_size750): + _elem755 = HiveObjectPrivilege() + _elem755.read(iprot) + self.success.append(_elem755) iprot.readListEnd() else: iprot.skip(ftype) @@ -22596,8 +22614,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 iter742 in self.success: - iter742.write(oprot) + for iter756 in self.success: + iter756.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -23056,10 +23074,10 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.group_names = [] - (_etype746, _size743) = iprot.readListBegin() - for _i747 in xrange(_size743): - _elem748 = iprot.readString(); - self.group_names.append(_elem748) + (_etype760, _size757) = iprot.readListBegin() + for _i761 in xrange(_size757): + _elem762 = iprot.readString(); + self.group_names.append(_elem762) iprot.readListEnd() else: iprot.skip(ftype) @@ -23080,8 +23098,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 iter749 in self.group_names: - oprot.writeString(iter749) + for iter763 in self.group_names: + oprot.writeString(iter763) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -23130,10 +23148,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype753, _size750) = iprot.readListBegin() - for _i754 in xrange(_size750): - _elem755 = iprot.readString(); - self.success.append(_elem755) + (_etype767, _size764) = iprot.readListBegin() + for _i768 in xrange(_size764): + _elem769 = iprot.readString(); + self.success.append(_elem769) iprot.readListEnd() else: iprot.skip(ftype) @@ -23156,8 +23174,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 iter756 in self.success: - oprot.writeString(iter756) + for iter770 in self.success: + oprot.writeString(iter770) 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 2962fd5..0ce10cf 100644 --- metastore/src/gen/thrift/gen-rb/thrift_hive_metastore.rb +++ metastore/src/gen/thrift/gen-rb/thrift_hive_metastore.rb @@ -575,38 +575,38 @@ module ThriftHiveMetastore raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'append_partition_by_name_with_environment_context failed: unknown result') end - def drop_partition(db_name, tbl_name, part_vals, deleteData) - send_drop_partition(db_name, tbl_name, part_vals, deleteData) - return recv_drop_partition() + def drop_partitions(db_name, tbl_name, part_vals, deleteData) + send_drop_partitions(db_name, tbl_name, part_vals, deleteData) + return recv_drop_partitions() end - def send_drop_partition(db_name, tbl_name, part_vals, deleteData) - send_message('drop_partition', Drop_partition_args, :db_name => db_name, :tbl_name => tbl_name, :part_vals => part_vals, :deleteData => deleteData) + def send_drop_partitions(db_name, tbl_name, part_vals, deleteData) + send_message('drop_partitions', Drop_partitions_args, :db_name => db_name, :tbl_name => tbl_name, :part_vals => part_vals, :deleteData => deleteData) end - def recv_drop_partition() - result = receive_message(Drop_partition_result) + def recv_drop_partitions() + result = receive_message(Drop_partitions_result) return result.success unless result.success.nil? raise result.o1 unless result.o1.nil? raise result.o2 unless result.o2.nil? - raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'drop_partition failed: unknown result') + raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'drop_partitions failed: unknown result') end - def drop_partition_with_environment_context(db_name, tbl_name, part_vals, deleteData, environment_context) - send_drop_partition_with_environment_context(db_name, tbl_name, part_vals, deleteData, environment_context) - return recv_drop_partition_with_environment_context() + def drop_partitions_with_environment_context(db_name, tbl_name, part_vals, deleteData, environment_context) + send_drop_partitions_with_environment_context(db_name, tbl_name, part_vals, deleteData, environment_context) + return recv_drop_partitions_with_environment_context() end - def send_drop_partition_with_environment_context(db_name, tbl_name, part_vals, deleteData, environment_context) - send_message('drop_partition_with_environment_context', Drop_partition_with_environment_context_args, :db_name => db_name, :tbl_name => tbl_name, :part_vals => part_vals, :deleteData => deleteData, :environment_context => environment_context) + def send_drop_partitions_with_environment_context(db_name, tbl_name, part_vals, deleteData, environment_context) + send_message('drop_partitions_with_environment_context', Drop_partitions_with_environment_context_args, :db_name => db_name, :tbl_name => tbl_name, :part_vals => part_vals, :deleteData => deleteData, :environment_context => environment_context) end - def recv_drop_partition_with_environment_context() - result = receive_message(Drop_partition_with_environment_context_result) + def recv_drop_partitions_with_environment_context() + result = receive_message(Drop_partitions_with_environment_context_result) return result.success unless result.success.nil? raise result.o1 unless result.o1.nil? raise result.o2 unless result.o2.nil? - raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'drop_partition_with_environment_context failed: unknown result') + raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'drop_partitions_with_environment_context failed: unknown result') end def drop_partition_by_name(db_name, tbl_name, part_name, deleteData) @@ -2367,30 +2367,30 @@ module ThriftHiveMetastore write_result(result, oprot, 'append_partition_by_name_with_environment_context', seqid) end - def process_drop_partition(seqid, iprot, oprot) - args = read_args(iprot, Drop_partition_args) - result = Drop_partition_result.new() + def process_drop_partitions(seqid, iprot, oprot) + args = read_args(iprot, Drop_partitions_args) + result = Drop_partitions_result.new() begin - result.success = @handler.drop_partition(args.db_name, args.tbl_name, args.part_vals, args.deleteData) + result.success = @handler.drop_partitions(args.db_name, args.tbl_name, args.part_vals, args.deleteData) rescue ::NoSuchObjectException => o1 result.o1 = o1 rescue ::MetaException => o2 result.o2 = o2 end - write_result(result, oprot, 'drop_partition', seqid) + write_result(result, oprot, 'drop_partitions', seqid) end - def process_drop_partition_with_environment_context(seqid, iprot, oprot) - args = read_args(iprot, Drop_partition_with_environment_context_args) - result = Drop_partition_with_environment_context_result.new() + def process_drop_partitions_with_environment_context(seqid, iprot, oprot) + args = read_args(iprot, Drop_partitions_with_environment_context_args) + result = Drop_partitions_with_environment_context_result.new() begin - result.success = @handler.drop_partition_with_environment_context(args.db_name, args.tbl_name, args.part_vals, args.deleteData, args.environment_context) + result.success = @handler.drop_partitions_with_environment_context(args.db_name, args.tbl_name, args.part_vals, args.deleteData, args.environment_context) rescue ::NoSuchObjectException => o1 result.o1 = o1 rescue ::MetaException => o2 result.o2 = o2 end - write_result(result, oprot, 'drop_partition_with_environment_context', seqid) + write_result(result, oprot, 'drop_partitions_with_environment_context', seqid) end def process_drop_partition_by_name(seqid, iprot, oprot) @@ -4632,7 +4632,7 @@ module ThriftHiveMetastore ::Thrift::Struct.generate_accessors self end - class Drop_partition_args + class Drop_partitions_args include ::Thrift::Struct, ::Thrift::Struct_Union DB_NAME = 1 TBL_NAME = 2 @@ -4654,14 +4654,14 @@ module ThriftHiveMetastore ::Thrift::Struct.generate_accessors self end - class Drop_partition_result + class Drop_partitions_result include ::Thrift::Struct, ::Thrift::Struct_Union SUCCESS = 0 O1 = 1 O2 = 2 FIELDS = { - SUCCESS => {:type => ::Thrift::Types::BOOL, :name => 'success'}, + SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Partition}}, O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::NoSuchObjectException}, O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::MetaException} } @@ -4674,7 +4674,7 @@ module ThriftHiveMetastore ::Thrift::Struct.generate_accessors self end - class Drop_partition_with_environment_context_args + class Drop_partitions_with_environment_context_args include ::Thrift::Struct, ::Thrift::Struct_Union DB_NAME = 1 TBL_NAME = 2 @@ -4698,14 +4698,14 @@ module ThriftHiveMetastore ::Thrift::Struct.generate_accessors self end - class Drop_partition_with_environment_context_result + class Drop_partitions_with_environment_context_result include ::Thrift::Struct, ::Thrift::Struct_Union SUCCESS = 0 O1 = 1 O2 = 2 FIELDS = { - SUCCESS => {:type => ::Thrift::Types::BOOL, :name => 'success'}, + SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Partition}}, O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::NoSuchObjectException}, O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::MetaException} } diff --git metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java index 9ae6d7a..36b87be 100644 --- metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java +++ metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java @@ -24,6 +24,7 @@ import static org.apache.hadoop.hive.metastore.MetaStoreUtils.validateName; import java.io.IOException; +import java.net.URI; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.AbstractMap; @@ -55,6 +56,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; @@ -2222,64 +2224,112 @@ public Partition exchange_partition(Map partitionSpecs, return new Partition(); } - private boolean drop_partition_common(RawStore ms, String db_name, String tbl_name, - List part_vals, final boolean deleteData, final EnvironmentContext envContext) + private List drop_partitions_common(RawStore ms, String db_name, String tbl_name, + List part_vals, boolean deleteData, boolean ifExists, EnvironmentContext envContext) throws MetaException, NoSuchObjectException, IOException, InvalidObjectException, InvalidInputException { boolean success = false; - Path partPath = null; Table tbl = null; - Partition part = null; - boolean isArchived = false; - Path archiveParentDir = null; + List parts = null; + + Path bulkRemove = null; + List> paths = new ArrayList>(); try { ms.openTransaction(); - part = ms.getPartition(db_name, tbl_name, part_vals); tbl = get_table(db_name, tbl_name); - firePreEvent(new PreDropPartitionEvent(tbl, part, deleteData, this)); - - if (part == null) { - throw new NoSuchObjectException("Partition doesn't exist. " - + part_vals); + boolean deletePath = deleteData && !isExternal(tbl); + + parts = ms.getPartitions(db_name, tbl_name, part_vals); + if (parts.isEmpty() && !ifExists) { + throw new NoSuchObjectException("Partition doesn't exist. " + part_vals); + } + if (deletePath && !MetaStoreUtils.isView(tbl) && isAllStandardPath(tbl, parts)) { + String tblPath = tbl.getSd().getLocation(); + List partialKeys = tbl.getPartitionKeys().subList(0, part_vals.size()); + Path parentPath = new Path(tblPath, Warehouse.makePartName(partialKeys, part_vals)); + if (wh.isWritable(parentPath)) { + verifyIsWritablePath(parentPath, true); // check writable for all children + bulkRemove = parentPath; + } } - - isArchived = MetaStoreUtils.isArchived(part); - if (isArchived) { - archiveParentDir = MetaStoreUtils.getOriginalLocation(part); - verifyIsWritablePath(archiveParentDir); + for (Partition part : parts) { + firePreEvent(new PreDropPartitionEvent(tbl, part, deleteData, this)); } - if (!ms.dropPartition(db_name, tbl_name, part_vals)) { - throw new MetaException("Unable to drop partition"); + if (deletePath && bulkRemove == null) { + for (Partition part : parts) { + boolean isArchived = MetaStoreUtils.isArchived(part); + Path path = null; + if (isArchived) { + path = MetaStoreUtils.getOriginalLocation(part); + } else if (part.getSd() != null && part.getSd().getLocation() != null) { + path = new Path(part.getSd().getLocation()); + } + if (path != null) { + verifyIsWritablePath(path); + paths.add(new ObjectPair(path, isArchived)); + } + } } - success = ms.commitTransaction(); - if ((part.getSd() != null) && (part.getSd().getLocation() != null)) { - partPath = new Path(part.getSd().getLocation()); - verifyIsWritablePath(partPath); + for (Partition part : parts) { + // copy values, which would be removed after drop + part.setValues(new ArrayList(part.getValues())); + if (!ms.dropPartition(db_name, tbl_name, part.getValues())) { + throw new MetaException("Unable to drop partition"); + } } + success = ms.commitTransaction(); } finally { if (!success) { ms.rollbackTransaction(); - } else if (deleteData && ((partPath != null) || (archiveParentDir != null))) { - if (tbl != null && !isExternal(tbl)) { - // Archived partitions have har:/to_har_file as their location. - // The original directory was saved in params - if (isArchived) { - assert (archiveParentDir != null); - wh.deleteDir(archiveParentDir, true); - } else { - assert (partPath != null); - wh.deleteDir(partPath, true); - deleteParentRecursive(partPath.getParent(), part_vals.size() - 1); + } else if (deleteData) { + // Archived partitions have har:/to_har_file as their location. + // The original directory was saved in params + for (ObjectPair pair : paths) { + Path path = pair.getFirst(); + boolean isArchived = pair.getSecond(); + wh.deleteDir(path, true); + if (!isArchived) { + deleteParentRecursive(path.getParent(), part_vals.size() - 1); } - // ok even if the data is not deleted } + if (bulkRemove != null) { + wh.deleteDir(bulkRemove, true); + deleteParentRecursive(bulkRemove.getParent(), part_vals.size() - 1); + } + // ok even if the data is not deleted } for (MetaStoreEventListener listener : listeners) { - DropPartitionEvent dropPartitionEvent = - new DropPartitionEvent(tbl, part, success, deleteData, this); - dropPartitionEvent.setEnvironmentContext(envContext); - listener.onDropPartition(dropPartitionEvent); + for (Partition part : parts) { + DropPartitionEvent dropPartitionEvent = + new DropPartitionEvent(tbl, part, success, deleteData, this); + dropPartitionEvent.setEnvironmentContext(envContext); + listener.onDropPartition(dropPartitionEvent); + } + } + } + return parts; + } + + private boolean isAllStandardPath(Table tbl, List partitions) throws MetaException { + for (Partition partition : partitions) { + if (MetaStoreUtils.isArchived(partition)) { + return false; + } + } + URI tablePath = new Path(tbl.getSd().getLocation()).toUri(); + for (Partition partition : partitions) { + if (partition.getSd() == null || partition.getSd().getLocation() == null) { + continue; + } + URI partLoc = new Path(partition.getSd().getLocation()).toUri(); + URI relative = tablePath.relativize(partLoc); + if (relative == partLoc) { + return false; + } + String standardPath = Warehouse.makePartName(tbl.getPartitionKeys(), partition.getValues()); + if (!standardPath.equals(relative.getPath())) { + return false; } } return true; @@ -2293,10 +2343,10 @@ private void deleteParentRecursive(Path parent, int depth) throws IOException, M } @Override - public boolean drop_partition(final String db_name, final String tbl_name, + public List drop_partitions(final String db_name, final String tbl_name, final List part_vals, final boolean deleteData) throws NoSuchObjectException, MetaException, TException { - return drop_partition_with_environment_context(db_name, tbl_name, part_vals, deleteData, + return drop_partitions_with_environment_context(db_name, tbl_name, part_vals, deleteData, null); } @@ -2444,8 +2494,12 @@ public DropPartitionsResult drop_partitions_req( } private void verifyIsWritablePath(Path dir) throws MetaException { + verifyIsWritablePath(dir, false); + } + + private void verifyIsWritablePath(Path dir, boolean checkChildren) throws MetaException { try { - if (!wh.isWritable(dir.getParent())) { + if (!wh.isWritable(dir.getParent(), checkChildren)) { throw new MetaException("Table partition not deleted since " + dir.getParent() + " is not writable by " + hiveConf.getUser()); } @@ -2457,17 +2511,17 @@ private void verifyIsWritablePath(Path dir) throws MetaException { } @Override - public boolean drop_partition_with_environment_context(final String db_name, + public List drop_partitions_with_environment_context(final String db_name, final String tbl_name, final List part_vals, final boolean deleteData, final EnvironmentContext envContext) throws NoSuchObjectException, MetaException, TException { startPartitionFunction("drop_partition", db_name, tbl_name, part_vals); LOG.info("Partition values:" + part_vals); - boolean ret = false; + List ret = null; Exception ex = null; try { - ret = drop_partition_common(getMS(), db_name, tbl_name, part_vals, deleteData, envContext); + ret = drop_partitions_common(getMS(), db_name, tbl_name, part_vals, deleteData, true, envContext); } catch (IOException e) { ex = e; throw new MetaException(e.getMessage()); @@ -2475,7 +2529,7 @@ public boolean drop_partition_with_environment_context(final String db_name, ex = e; rethrowException(e); } finally { - endFunction("drop_partition", ret, ex, tbl_name); + endFunction("drop_partitions", ret != null, ex, tbl_name); } return ret; @@ -3162,7 +3216,9 @@ private boolean drop_partition_by_name_core(final RawStore ms, final String db_n throw new NoSuchObjectException(e.getMessage()); } - return drop_partition_common(ms, db_name, tbl_name, partVals, deleteData, envContext); + List partitions = + drop_partitions_common(ms, db_name, tbl_name, partVals, deleteData, false, envContext); + return !partitions.isEmpty(); } @Override diff --git metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java index a94a7a37..0dc38f5 100644 --- metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java +++ metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java @@ -714,7 +714,7 @@ public boolean dropPartition(String dbName, String tableName, String partName, b /** * @param db_name * @param tbl_name - * @param part_vals + * @param part_vals full spec of a partition * @param deleteData * delete the underlying data or just delete the table in metadata * @return true or false @@ -728,13 +728,31 @@ 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 tbl = getTable(db_name, tbl_name); + String partName = Warehouse.makePartName(tbl.getPartitionKeys(), part_vals); + return dropPartition(db_name, tbl_name, partName, 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, + Table tbl = getTable(db_name, tbl_name); + String partName = Warehouse.makePartName(tbl.getPartitionKeys(), part_vals); + return client.drop_partition_by_name_with_environment_context(db_name, tbl_name, partName, deleteData, + envContext); + } + + @Override + public List dropPartitions(String db_name, String tbl_name, + List part_vals, boolean deleteData) throws NoSuchObjectException, + MetaException, TException { + return dropPartitions(db_name, tbl_name, part_vals, deleteData, null); + } + + public List dropPartitions(String db_name, String tbl_name, List part_vals, + boolean deleteData, EnvironmentContext envContext) throws NoSuchObjectException, + MetaException, TException { + return client.drop_partitions_with_environment_context(db_name, tbl_name, part_vals, deleteData, envContext); } diff --git metastore/src/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java metastore/src/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java index cbdba30..d11052d 100644 --- metastore/src/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java +++ metastore/src/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java @@ -629,6 +629,11 @@ boolean dropPartition(String db_name, String tbl_name, boolean dropPartition(String db_name, String tbl_name, String name, boolean deleteData) throws NoSuchObjectException, MetaException, TException; + + List dropPartitions(String db_name, String tbl_name, + List part_vals, boolean deleteData) throws NoSuchObjectException, + MetaException, TException; + /** * updates a partition to new partition * diff --git metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java index b9cf701..aee4cba 100644 --- metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java +++ metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java @@ -1571,6 +1571,17 @@ private boolean dropPartitionCommon(MPartition part) throws NoSuchObjectExceptio return getPartitionsInternal(dbName, tableName, maxParts, true, true); } + @Override + public List getPartitions(String dbName, String tableName, List partialSpec) + throws MetaException, NoSuchObjectException { + List partitions = new ArrayList(); + for (Object partition : + getPartitionPsQueryResults(dbName, tableName, partialSpec, (short)-1, null)) { + partitions.add(convertToPart((MPartition) partition)); + } + return partitions; + } + protected List getPartitionsInternal( String dbName, String tblName, final int maxParts, boolean allowSql, boolean allowJdo) throws MetaException, NoSuchObjectException { diff --git metastore/src/java/org/apache/hadoop/hive/metastore/RawStore.java metastore/src/java/org/apache/hadoop/hive/metastore/RawStore.java index 0fdafa2..6a67dd9 100644 --- metastore/src/java/org/apache/hadoop/hive/metastore/RawStore.java +++ metastore/src/java/org/apache/hadoop/hive/metastore/RawStore.java @@ -143,6 +143,9 @@ public abstract boolean dropPartition(String dbName, String tableName, public abstract List getPartitions(String dbName, String tableName, int max) throws MetaException, NoSuchObjectException; + public abstract List getPartitions(String dbName, + String tableName, List partialSpec) throws MetaException, NoSuchObjectException; + public abstract void alterTable(String dbname, String name, Table newTable) throws InvalidObjectException, MetaException; diff --git metastore/src/java/org/apache/hadoop/hive/metastore/Warehouse.java metastore/src/java/org/apache/hadoop/hive/metastore/Warehouse.java index 613b709..ae9c1be 100755 --- metastore/src/java/org/apache/hadoop/hive/metastore/Warehouse.java +++ metastore/src/java/org/apache/hadoop/hive/metastore/Warehouse.java @@ -44,6 +44,7 @@ import org.apache.hadoop.fs.FileSystem; import org.apache.hadoop.fs.Path; import org.apache.hadoop.fs.permission.FsAction; +import org.apache.hadoop.fs.permission.FsPermission; import org.apache.hadoop.hive.common.FileUtils; import org.apache.hadoop.hive.common.HiveStatsUtils; import org.apache.hadoop.hive.common.JavaUtils; @@ -237,6 +238,10 @@ public boolean isEmpty(Path path) throws IOException, MetaException { } public boolean isWritable(Path path) throws IOException { + return isWritable(path, false); + } + + public boolean isWritable(Path path, boolean checkChildren) throws IOException { if (!storageAuthCheck) { // no checks for non-secure hadoop installations return true; @@ -244,9 +249,11 @@ public boolean isWritable(Path path) throws IOException { if (path == null) { //what??!! return false; } - final FileStatus stat; + FileStatus[] stats; try { - stat = getFs(path).getFileStatus(path); + FileSystem fs = getFs(path); + stats = checkChildren ? fs.globStatus(new Path(path, "*")) + : new FileStatus[] {fs.getFileStatus(path)}; } catch (FileNotFoundException fnfe){ // File named by path doesn't exist; nothing to validate. return true; @@ -262,23 +269,30 @@ public boolean isWritable(Path path) throws IOException { throw new IOException(le); } String user = ShimLoader.getHadoopShims().getShortUserName(ugi); + String[] groups = ugi.getGroupNames(); //check whether owner can delete - if (stat.getOwner().equals(user) && - stat.getPermission().getUserAction().implies(FsAction.WRITE)) { - return true; - } - //check whether group of the user can delete - if (stat.getPermission().getGroupAction().implies(FsAction.WRITE)) { - String[] groups = ugi.getGroupNames(); - if (ArrayUtils.contains(groups, stat.getGroup())) { - return true; + for (FileStatus stat : stats) { + if (!stat.isDir()) { + continue; } + FsPermission permission = stat.getPermission(); + if (stat.getOwner().equals(user) && + permission.getUserAction().implies(FsAction.WRITE)) { + continue; + } + //check whether group of the user can delete + if (permission.getGroupAction().implies(FsAction.WRITE)) { + if (ArrayUtils.contains(groups, stat.getGroup())) { + continue; + } + } + //check whether others can delete (uncommon case!!) + if (permission.getOtherAction().implies(FsAction.WRITE)) { + continue; + } + return false; } - //check whether others can delete (uncommon case!!) - if (stat.getPermission().getOtherAction().implies(FsAction.WRITE)) { - return true; - } - return false; + return true; } /* // NOTE: This is for generating the internal path name for partitions. Users diff --git metastore/src/test/org/apache/hadoop/hive/metastore/DummyRawStoreControlledCommit.java metastore/src/test/org/apache/hadoop/hive/metastore/DummyRawStoreControlledCommit.java index 6b5e79d..74481a2 100644 --- metastore/src/test/org/apache/hadoop/hive/metastore/DummyRawStoreControlledCommit.java +++ metastore/src/test/org/apache/hadoop/hive/metastore/DummyRawStoreControlledCommit.java @@ -210,6 +210,12 @@ public boolean dropPartition(String dbName, String tableName, List partV } @Override + public List getPartitions(String dbName, String tableName, List partialSpec) + throws MetaException, NoSuchObjectException { + return objectStore.getPartitions(dbName, tableName, partialSpec); + } + + @Override public void alterTable(String dbName, String name, Table newTable) throws InvalidObjectException, MetaException { objectStore.alterTable(dbName, name, newTable); diff --git metastore/src/test/org/apache/hadoop/hive/metastore/DummyRawStoreForJdoConnection.java metastore/src/test/org/apache/hadoop/hive/metastore/DummyRawStoreForJdoConnection.java index 981c5ff..bcadc61 100644 --- metastore/src/test/org/apache/hadoop/hive/metastore/DummyRawStoreForJdoConnection.java +++ metastore/src/test/org/apache/hadoop/hive/metastore/DummyRawStoreForJdoConnection.java @@ -212,6 +212,12 @@ public boolean dropPartition(String dbName, String tableName, List part_ } @Override + public List getPartitions(String dbName, String tableName, List partialSpec) + throws MetaException, NoSuchObjectException { + return null; + } + + @Override public void alterTable(String dbname, String name, Table newTable) throws InvalidObjectException, MetaException { diff --git ql/src/java/org/apache/hadoop/hive/ql/exec/DDLTask.java ql/src/java/org/apache/hadoop/hive/ql/exec/DDLTask.java index cd017d8..db64971 100644 --- ql/src/java/org/apache/hadoop/hive/ql/exec/DDLTask.java +++ ql/src/java/org/apache/hadoop/hive/ql/exec/DDLTask.java @@ -3594,7 +3594,7 @@ private void dropTableOrPartitions(Hive db, DropTableDesc dropTbl) throws HiveEx // drop table is idempotent } - if (dropTbl.getPartSpecs() == null) { + if (dropTbl.getPartSpecs() == null && dropTbl.getSimpleSpecs() == null) { dropTable(db, tbl, dropTbl); } else { dropPartitions(db, tbl, dropTbl); @@ -3603,8 +3603,19 @@ private void dropTableOrPartitions(Hive db, DropTableDesc dropTbl) throws HiveEx private void dropPartitions(Hive db, Table tbl, DropTableDesc dropTbl) throws HiveException { // ifExists is currently verified in DDLSemanticAnalyzer - List droppedParts = db.dropPartitions(dropTbl.getTableName(), - dropTbl.getPartSpecs(), true, dropTbl.getIgnoreProtection(), true); + List droppedParts; + List> simpleSpecs = dropTbl.getSimpleSpecs(); + if (simpleSpecs != null) { + droppedParts = new ArrayList(); + for (Map spec : simpleSpecs) { + List dropped = + db.dropPartitions(tbl.getDbName(), tbl.getTableName(), toPartValues(tbl, spec), true); + droppedParts.addAll(dropped); + } + } else { + droppedParts = db.dropPartitions(dropTbl.getTableName(), dropTbl.getPartSpecs(), + true, dropTbl.getIgnoreProtection(), true); + } for (Partition partition : droppedParts) { console.printInfo("Dropped the partition " + partition.getName()); // We have already locked the table, don't lock the partitions. @@ -3612,6 +3623,22 @@ private void dropPartitions(Hive db, Table tbl, DropTableDesc dropTbl) throws Hi }; } + private List toPartValues(Table tbl, Map spec) throws HiveException { + List values = new ArrayList(); + for (FieldSchema field : tbl.getPartitionKeys()) { + String value = spec.get(field.getName()); + if (value == null) { + break; + } + values.add(value); + } + if (spec.size() != values.size()) { + // should not happen because it's checked in DDLSemanticAnalyzer + throw new HiveException(spec + " is not continuous partition keys"); + } + return values; + } + private void dropTable(Hive db, Table tbl, DropTableDesc dropTbl) throws HiveException { // This is a true DROP TABLE if (tbl != null) { diff --git ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java index e387b8f..d432e16 100644 --- ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java +++ ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java @@ -1693,7 +1693,29 @@ public boolean dropPartition(String tblName, List part_vals, boolean del public boolean dropPartition(String db_name, String tbl_name, List part_vals, boolean deleteData) throws HiveException { try { - return getMSC().dropPartition(db_name, tbl_name, part_vals, deleteData); + Table tbl = getTable(db_name, tbl_name); + String partName = Warehouse.makePartName(tbl.getPartitionKeys(), part_vals); + return getMSC().dropPartition(db_name, tbl_name, partName, deleteData); + } catch (NoSuchObjectException e) { + throw new HiveException("Partition or table doesn't exist.", e); + } catch (Exception e) { + throw new HiveException("Unknown error. Please check logs.", e); + } + } + + public List dropPartitions(String tblName, List part_vals, boolean deleteData) + throws HiveException { + Table t = newTable(tblName); + return dropPartitions(t.getDbName(), t.getTableName(), part_vals, deleteData); + } + + public List dropPartitions(String db_name, String tbl_name, + List part_vals, boolean deleteData) throws HiveException { + try { + Table tbl = getTable(db_name, tbl_name); + List tParts = + getMSC().dropPartitions(db_name, tbl_name, part_vals, deleteData); + return convertFromMetastore(tbl, tParts, null); } catch (NoSuchObjectException e) { throw new HiveException("Partition or table doesn't exist.", e); } catch (Exception e) { 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 05cde3e..a20da8f 100644 --- ql/src/java/org/apache/hadoop/hive/ql/parse/DDLSemanticAnalyzer.java +++ ql/src/java/org/apache/hadoop/hive/ql/parse/DDLSemanticAnalyzer.java @@ -2590,21 +2590,32 @@ private void analyzeAlterTableDropParts(String[] qualified, ASTNode ast, boolean // popular case but that's kinda hacky. Let's not do it for now. boolean canGroupExprs = ifExists; - Table tab = getTable(qualified); - Map> partSpecs = - getFullPartitionSpecs(ast, tab, canGroupExprs); - if (partSpecs.isEmpty()) return; // nothing to do + List> specs = getFullPartitionSpecs(ast); + if (specs.isEmpty()) { + return; // nothing to do + } + Table tab = getTable(qualified); validateAlterTableType(tab, AlterTableTypes.DROPPARTITION, expectView); ReadEntity re = new ReadEntity(tab); re.noLockNeeded(); inputs.add(re); + String tblName = getDotName(qualified); + boolean ignoreProtection = ast.getFirstChildWithType(HiveParser.TOK_IGNOREPROTECTION) != null; - addTableDropPartsOutputs(tab, partSpecs.values(), !ifExists, ignoreProtection); - DropTableDesc dropTblDesc = - new DropTableDesc(getDotName(qualified), partSpecs, expectView, ignoreProtection); + DropTableDesc dropTblDesc; + List> simpleSpecs = toSimpleSpecs(specs, tab.getPartitionKeys()); + if (simpleSpecs != null) { + addTableDropPartsOutputs(tab, simpleSpecs, !ifExists, ignoreProtection); + dropTblDesc = new DropTableDesc(tblName, simpleSpecs, expectView, ignoreProtection); + } else { + Map> partSpecs = + toExprSpecs(specs, tab, canGroupExprs); + addTableDropPartsOutputs(tab, partSpecs.values(), !ifExists, ignoreProtection); + dropTblDesc = new DropTableDesc(tblName, partSpecs, expectView, ignoreProtection); + } rootTasks.add(TaskFactory.get(new DDLWork(getInputs(), getOutputs(), dropTblDesc), conf)); } @@ -2917,12 +2928,57 @@ private void analyzeMetastoreCheck(CommonTree ast) throws SemanticException { * with the comparator operator into the output list. * * @param ast Tree to extract partitions from. - * @param tab Table. - * @param result Map of partitions by prefix length. Most of the time prefix length will - * be the same for all partition specs, so we can just OR the expressions. */ - private Map> getFullPartitionSpecs( - CommonTree ast, Table tab, boolean canGroupExprs) throws SemanticException { + private List> getFullPartitionSpecs(ASTNode ast) + throws SemanticException { + List> specs = new ArrayList>(); + for (int index = 0; index < ast.getChildCount(); index++) { + Tree partSpecTree = ast.getChild(index); + if (partSpecTree.getType() != HiveParser.TOK_PARTSPEC) { + continue; + } + Map spec = new LinkedHashMap(); + for (int i = 0; i < partSpecTree.getChildCount(); ++i) { + CommonTree partSpecSingleKey = (CommonTree) partSpecTree.getChild(i); + assert (partSpecSingleKey.getType() == HiveParser.TOK_PARTVAL); + String key = partSpecSingleKey.getChild(0).getText().toLowerCase(); + String operator = partSpecSingleKey.getChild(1).getText(); + String val = stripQuotes(partSpecSingleKey.getChild(2).getText()); + spec.put(key, new String[] {operator, val}); + } + specs.add(spec); + } + return specs; + } + + // partial spec only with string type and equal operator + private List> toSimpleSpecs( + List> specs, List partCols) throws SemanticException { + List> simpleSpecs = new ArrayList>(); + for (Map spec : specs) { + Map simpleSpec = new HashMap(); + for (FieldSchema partCol : partCols) { + String[] value = spec.get(partCol.getName()); + if (value == null) { + break; + } + if (!value[0].equals("=") || !partCol.getType().equals(serdeConstants.STRING_TYPE_NAME)) { + return null; + } + simpleSpec.put(partCol.getName(), value[1]); + } + if (spec.size() != simpleSpec.size()) { + return null; + } + simpleSpecs.add(simpleSpec); + } + return simpleSpecs; + } + + // result Map of partitions by prefix length. Most of the time prefix length will + // be the same for all partition specs, so we can just OR the expressions. + private Map> toExprSpecs( + List> specs, Table tab, boolean canGroupExprs) throws SemanticException { Map colTypes = new HashMap(); for (FieldSchema fs : tab.getPartitionKeys()) { colTypes.put(fs.getName().toLowerCase(), fs.getType()); @@ -2930,17 +2986,12 @@ private void analyzeMetastoreCheck(CommonTree ast) throws SemanticException { Map> result = new HashMap>(); - for (int childIndex = 0; childIndex < ast.getChildCount(); childIndex++) { - Tree partSpecTree = ast.getChild(childIndex); - if (partSpecTree.getType() != HiveParser.TOK_PARTSPEC) continue; + for (Map spec : specs) { ExprNodeGenericFuncDesc expr = null; - HashSet names = new HashSet(partSpecTree.getChildCount()); - for (int i = 0; i < partSpecTree.getChildCount(); ++i) { - CommonTree partSpecSingleKey = (CommonTree) partSpecTree.getChild(i); - assert (partSpecSingleKey.getType() == HiveParser.TOK_PARTVAL); - String key = partSpecSingleKey.getChild(0).getText().toLowerCase(); - String operator = partSpecSingleKey.getChild(1).getText(); - String val = stripQuotes(partSpecSingleKey.getChild(2).getText()); + for (Map.Entry entry : spec.entrySet()) { + String key = entry.getKey(); + String operator = entry.getValue()[0]; + String val = entry.getValue()[1]; String type = colTypes.get(key); if (type == null) { @@ -2956,11 +3007,12 @@ private void analyzeMetastoreCheck(CommonTree ast) throws SemanticException { operator, column, new ExprNodeConstantDesc(pti, converter.convert(val))); // If it's multi-expr filter (e.g. a='5', b='2012-01-02'), AND with previous exprs. expr = (expr == null) ? op : makeBinaryPredicate("and", expr, op); - names.add(key); } - if (expr == null) continue; + if (expr == null) { + continue; + } // We got the expr for one full partition spec. Determine the prefix length. - int prefixLength = calculatePartPrefix(tab, names); + int prefixLength = calculatePartPrefix(tab, spec.keySet()); List orExpr = result.get(prefixLength); // We have to tell apart partitions resulting from spec with different prefix lengths. // So, if we already have smth for the same prefix length, we can OR the two. @@ -2990,7 +3042,7 @@ private static ExprNodeGenericFuncDesc makeBinaryPredicate( * @param tbl Table * @param partSpecKeys Keys present in drop partition spec. */ - private int calculatePartPrefix(Table tbl, HashSet partSpecKeys) { + private int calculatePartPrefix(Table tbl, Set partSpecKeys) { int partPrefixToDrop = 0; for (FieldSchema fs : tbl.getPartCols()) { if (!partSpecKeys.contains(fs.getName())) break; @@ -3086,6 +3138,22 @@ private void addTablePartsOutputs(Table table, List> partSpe } } + private void addTableDropPartsOutputs(Table tab, + List> simpleSpecs, boolean throwIfNonExistent, + boolean ignoreProtection) throws SemanticException { + for (Map spec : simpleSpecs) { + List parts; + try { + parts = db.getPartitions(tab, spec); + } catch (HiveException e) { + throw new SemanticException( + ErrorMsg.INVALID_PARTITION.getMsg(spec.toString()), e); + } + String source = "with spec " + spec.toString(); + addToPartsOutputs(parts, source, throwIfNonExistent, ignoreProtection); + } + } + /** * Add the table partitions to be modified in the output, so that it is available for the * pre-execution hook. If the partition does not exist, throw an error if @@ -3109,25 +3177,27 @@ private void addTableDropPartsOutputs(Table tab, throw new SemanticException( "Unexpected unknown partitions for " + partSpec.getExprString()); } + String source = "with expr " + partSpec.getExprString(); + addToPartsOutputs(parts, source, throwIfNonExistent, ignoreProtection); + } + } + } - // TODO: ifExists could be moved to metastore. In fact it already supports that. Check it - // for now since we get parts for output anyway, so we can get the error message - // earlier... If we get rid of output, we can get rid of this. - if (parts.isEmpty()) { - if (throwIfNonExistent) { - throw new SemanticException( - ErrorMsg.INVALID_PARTITION.getMsg(partSpec.getExprString())); - } - } - for (Partition p : parts) { - // TODO: same thing, metastore already checks this but check here if we can. - if (!ignoreProtection && !p.canDrop()) { - throw new SemanticException( - ErrorMsg.DROP_COMMAND_NOT_ALLOWED_FOR_PARTITION.getMsg(p.getCompleteName())); - } - outputs.add(new WriteEntity(p, WriteEntity.WriteType.DDL_EXCLUSIVE)); - } + private void addToPartsOutputs(List parts, String source, + boolean throwIfNonExistent, boolean ignoreProtection) throws SemanticException { + // TODO: ifExists could be moved to metastore. In fact it already supports that. Check it + // for now since we get parts for output anyway, so we can get the error message + // earlier... If we get rid of output, we can get rid of this. + if (parts.isEmpty() && throwIfNonExistent) { + throw new SemanticException(ErrorMsg.INVALID_PARTITION.getMsg(source)); + } + for (Partition p : parts) { + // TODO: same thing, metastore already checks this but check here if we can. + if (!ignoreProtection && !p.canDrop()) { + throw new SemanticException( + ErrorMsg.DROP_COMMAND_NOT_ALLOWED_FOR_PARTITION.getMsg(p.getCompleteName())); } + outputs.add(new WriteEntity(p, WriteEntity.WriteType.DDL_EXCLUSIVE)); } } diff --git ql/src/java/org/apache/hadoop/hive/ql/plan/DropTableDesc.java ql/src/java/org/apache/hadoop/hive/ql/plan/DropTableDesc.java index ba30e1f..4314ebc 100644 --- ql/src/java/org/apache/hadoop/hive/ql/plan/DropTableDesc.java +++ ql/src/java/org/apache/hadoop/hive/ql/plan/DropTableDesc.java @@ -46,10 +46,16 @@ public int getPrefixLength() { private ExprNodeGenericFuncDesc partSpec; // TODO: see if we can get rid of this... used in one place to distinguish archived parts private int prefixLength; + + @Override + public String toString() { + return partSpec.getExprString(); + } } String tableName; ArrayList partSpecs; + List> simpleSpecs; boolean expectView; boolean ifExists; boolean ignoreProtection; @@ -68,6 +74,15 @@ public DropTableDesc(String tableName, boolean expectView, boolean ifExists) { this.ignoreProtection = false; } + public DropTableDesc(String tableName, List> simpleSpecs, + boolean expectView, boolean ignoreProtection) { + this.tableName = tableName; + this.simpleSpecs = simpleSpecs; + this.partSpecs = null; + this.expectView = expectView; + this.ignoreProtection = false; + } + public DropTableDesc(String tableName, Map> partSpecs, boolean expectView, boolean ignoreProtection) { this.tableName = tableName; @@ -98,6 +113,15 @@ public void setTableName(String tableName) { this.tableName = tableName; } + public List> getSimpleSpecs() { + return simpleSpecs; + } + + @Explain(displayName = "partition spec") + public String getSimpleSpecsExplain() { + return simpleSpecs == null ? null : simpleSpecs.toString(); + } + /** * @return the partSpecs */ @@ -105,6 +129,11 @@ public void setTableName(String tableName) { return partSpecs; } + @Explain(displayName = "partition expr") + public String getExprSpecsExplain() { + return partSpecs == null ? null : partSpecs.toString(); + } + /** * @return whether or not protection will be ignored for the partition */ diff --git ql/src/test/queries/clientpositive/drop_partitions_partialspec.q ql/src/test/queries/clientpositive/drop_partitions_partialspec.q new file mode 100644 index 0000000..d412377 --- /dev/null +++ ql/src/test/queries/clientpositive/drop_partitions_partialspec.q @@ -0,0 +1,16 @@ +create table part (key string, value string) partitioned by (ds string, hr string); +alter table part add partition (ds='2008-04-08', hr='11'); +alter table part add partition (ds='2008-04-08', hr='12'); +alter table part add partition (ds='2008-04-09', hr='11'); +alter table part add partition (ds='2008-04-09', hr='12'); + +show partitions part; + +explain +alter table part drop partition (ds='2008-04-09'); +alter table part drop partition (ds='2008-04-09'); + +show partitions part; + +-- does not throw exception for partial spec +alter table part drop partition (ds='2008-04-09'); diff --git ql/src/test/results/clientnegative/drop_partition_failure.q.out ql/src/test/results/clientnegative/drop_partition_failure.q.out index 67f0a08..91cc249 100644 --- ql/src/test/results/clientnegative/drop_partition_failure.q.out +++ ql/src/test/results/clientnegative/drop_partition_failure.q.out @@ -36,4 +36,4 @@ POSTHOOK: Input: default@mp b=1/c=1 b=1/c=2 b=2/c=2 -FAILED: SemanticException [Error 10006]: Partition not found (b = '3') +FAILED: SemanticException [Error 10006]: Partition not found with spec {b=3} diff --git ql/src/test/results/clientnegative/drop_partition_filter_failure.q.out ql/src/test/results/clientnegative/drop_partition_filter_failure.q.out index b1bf8d4..7ff7d3a 100644 --- ql/src/test/results/clientnegative/drop_partition_filter_failure.q.out +++ ql/src/test/results/clientnegative/drop_partition_filter_failure.q.out @@ -20,4 +20,4 @@ POSTHOOK: query: show partitions ptestfilter1 POSTHOOK: type: SHOWPARTITIONS POSTHOOK: Input: default@ptestfilter1 c=US/d=1 -FAILED: SemanticException [Error 10006]: Partition not found ((c = 'US') and (d < '1')) +FAILED: SemanticException [Error 10006]: Partition not found with expr ((c = 'US') and (d < '1')) diff --git ql/src/test/results/clientpositive/drop_multi_partitions.q.out ql/src/test/results/clientpositive/drop_multi_partitions.q.out index f723635..6e85e6e 100644 --- ql/src/test/results/clientpositive/drop_multi_partitions.q.out +++ ql/src/test/results/clientpositive/drop_multi_partitions.q.out @@ -67,6 +67,7 @@ STAGE PLANS: Stage: Stage-0 Drop Table Operator: Drop Table + partition spec: [{b=1}] table: dmp.mp PREHOOK: query: alter table dmp.mp drop partition (b='1') diff --git ql/src/test/results/clientpositive/drop_partitions_partialspec.q.out ql/src/test/results/clientpositive/drop_partitions_partialspec.q.out new file mode 100644 index 0000000..9201f02 --- /dev/null +++ ql/src/test/results/clientpositive/drop_partitions_partialspec.q.out @@ -0,0 +1,88 @@ +PREHOOK: query: create table part (key string, value string) partitioned by (ds string, hr string) +PREHOOK: type: CREATETABLE +PREHOOK: Output: database:default +PREHOOK: Output: default@part +POSTHOOK: query: create table part (key string, value string) partitioned by (ds string, hr string) +POSTHOOK: type: CREATETABLE +POSTHOOK: Output: database:default +POSTHOOK: Output: default@part +PREHOOK: query: alter table part add partition (ds='2008-04-08', hr='11') +PREHOOK: type: ALTERTABLE_ADDPARTS +PREHOOK: Output: default@part +POSTHOOK: query: alter table part add partition (ds='2008-04-08', hr='11') +POSTHOOK: type: ALTERTABLE_ADDPARTS +POSTHOOK: Output: default@part +POSTHOOK: Output: default@part@ds=2008-04-08/hr=11 +PREHOOK: query: alter table part add partition (ds='2008-04-08', hr='12') +PREHOOK: type: ALTERTABLE_ADDPARTS +PREHOOK: Output: default@part +POSTHOOK: query: alter table part add partition (ds='2008-04-08', hr='12') +POSTHOOK: type: ALTERTABLE_ADDPARTS +POSTHOOK: Output: default@part +POSTHOOK: Output: default@part@ds=2008-04-08/hr=12 +PREHOOK: query: alter table part add partition (ds='2008-04-09', hr='11') +PREHOOK: type: ALTERTABLE_ADDPARTS +PREHOOK: Output: default@part +POSTHOOK: query: alter table part add partition (ds='2008-04-09', hr='11') +POSTHOOK: type: ALTERTABLE_ADDPARTS +POSTHOOK: Output: default@part +POSTHOOK: Output: default@part@ds=2008-04-09/hr=11 +PREHOOK: query: alter table part add partition (ds='2008-04-09', hr='12') +PREHOOK: type: ALTERTABLE_ADDPARTS +PREHOOK: Output: default@part +POSTHOOK: query: alter table part add partition (ds='2008-04-09', hr='12') +POSTHOOK: type: ALTERTABLE_ADDPARTS +POSTHOOK: Output: default@part +POSTHOOK: Output: default@part@ds=2008-04-09/hr=12 +PREHOOK: query: show partitions part +PREHOOK: type: SHOWPARTITIONS +PREHOOK: Input: default@part +POSTHOOK: query: show partitions part +POSTHOOK: type: SHOWPARTITIONS +POSTHOOK: Input: default@part +ds=2008-04-08/hr=11 +ds=2008-04-08/hr=12 +ds=2008-04-09/hr=11 +ds=2008-04-09/hr=12 +PREHOOK: query: explain +alter table part drop partition (ds='2008-04-09') +PREHOOK: type: ALTERTABLE_DROPPARTS +POSTHOOK: query: explain +alter table part drop partition (ds='2008-04-09') +POSTHOOK: type: ALTERTABLE_DROPPARTS +STAGE DEPENDENCIES: + Stage-0 is a root stage + +STAGE PLANS: + Stage: Stage-0 + Drop Table Operator: + Drop Table + partition spec: [{ds=2008-04-09}] + table: default.part + +PREHOOK: query: alter table part drop partition (ds='2008-04-09') +PREHOOK: type: ALTERTABLE_DROPPARTS +PREHOOK: Input: default@part +PREHOOK: Output: default@part@ds=2008-04-09/hr=11 +PREHOOK: Output: default@part@ds=2008-04-09/hr=12 +POSTHOOK: query: alter table part drop partition (ds='2008-04-09') +POSTHOOK: type: ALTERTABLE_DROPPARTS +POSTHOOK: Input: default@part +POSTHOOK: Output: default@part@ds=2008-04-09/hr=11 +POSTHOOK: Output: default@part@ds=2008-04-09/hr=12 +PREHOOK: query: show partitions part +PREHOOK: type: SHOWPARTITIONS +PREHOOK: Input: default@part +POSTHOOK: query: show partitions part +POSTHOOK: type: SHOWPARTITIONS +POSTHOOK: Input: default@part +ds=2008-04-08/hr=11 +ds=2008-04-08/hr=12 +PREHOOK: query: -- does not throw exception for partial spec +alter table part drop partition (ds='2008-04-09') +PREHOOK: type: ALTERTABLE_DROPPARTS +PREHOOK: Input: default@part +POSTHOOK: query: -- does not throw exception for partial spec +alter table part drop partition (ds='2008-04-09') +POSTHOOK: type: ALTERTABLE_DROPPARTS +POSTHOOK: Input: default@part