diff --git hcatalog/core/src/main/java/org/apache/hcatalog/cli/SemanticAnalysis/HCatSemanticAnalyzer.java hcatalog/core/src/main/java/org/apache/hcatalog/cli/SemanticAnalysis/HCatSemanticAnalyzer.java index d348b9b..4621d0b 100644 --- hcatalog/core/src/main/java/org/apache/hcatalog/cli/SemanticAnalysis/HCatSemanticAnalyzer.java +++ hcatalog/core/src/main/java/org/apache/hcatalog/cli/SemanticAnalysis/HCatSemanticAnalyzer.java @@ -19,7 +19,9 @@ package org.apache.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; @@ -308,25 +310,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 eef1b80..213a767 100755 --- metastore/if/hive_metastore.thrift +++ metastore/if/hive_metastore.thrift @@ -763,10 +763,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 9567874..134d83b 100644 --- metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp +++ metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp @@ -7268,7 +7268,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; @@ -7344,9 +7344,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); @@ -7377,9 +7377,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))); @@ -7410,7 +7410,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; @@ -7431,8 +7431,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 _size497; + ::apache::thrift::protocol::TType _etype500; + xfer += iprot->readListBegin(_etype500, _size497); + this->success.resize(_size497); + uint32_t _i501; + for (_i501 = 0; _i501 < _size497; ++_i501) + { + xfer += this->success[_i501].read(iprot); + } + xfer += iprot->readListEnd(); + } this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -7466,15 +7478,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 _iter502; + for (_iter502 = this->success.begin(); _iter502 != this->success.end(); ++_iter502) + { + xfer += (*_iter502).write(oprot); + } + xfer += oprot->writeListEnd(); + } xfer += oprot->writeFieldEnd(); } else if (this->__isset.o1) { xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1); @@ -7490,7 +7510,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; @@ -7511,8 +7531,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 _size503; + ::apache::thrift::protocol::TType _etype506; + xfer += iprot->readListBegin(_etype506, _size503); + (*(this->success)).resize(_size503); + uint32_t _i507; + for (_i507 = 0; _i507 < _size503; ++_i507) + { + xfer += (*(this->success))[_i507].read(iprot); + } + xfer += iprot->readListEnd(); + } this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -7546,7 +7578,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; @@ -7586,14 +7618,14 @@ uint32_t ThriftHiveMetastore_drop_partition_with_environment_context_args::read( if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size497; - ::apache::thrift::protocol::TType _etype500; - xfer += iprot->readListBegin(_etype500, _size497); - this->part_vals.resize(_size497); - uint32_t _i501; - for (_i501 = 0; _i501 < _size497; ++_i501) + uint32_t _size508; + ::apache::thrift::protocol::TType _etype511; + xfer += iprot->readListBegin(_etype511, _size508); + this->part_vals.resize(_size508); + uint32_t _i512; + for (_i512 = 0; _i512 < _size508; ++_i512) { - xfer += iprot->readString(this->part_vals[_i501]); + xfer += iprot->readString(this->part_vals[_i512]); } xfer += iprot->readListEnd(); } @@ -7630,9 +7662,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); @@ -7645,10 +7677,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 _iter502; - for (_iter502 = this->part_vals.begin(); _iter502 != this->part_vals.end(); ++_iter502) + std::vector ::const_iterator _iter513; + for (_iter513 = this->part_vals.begin(); _iter513 != this->part_vals.end(); ++_iter513) { - xfer += oprot->writeString((*_iter502)); + xfer += oprot->writeString((*_iter513)); } xfer += oprot->writeListEnd(); } @@ -7667,9 +7699,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))); @@ -7682,10 +7714,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 _iter503; - for (_iter503 = (*(this->part_vals)).begin(); _iter503 != (*(this->part_vals)).end(); ++_iter503) + std::vector ::const_iterator _iter514; + for (_iter514 = (*(this->part_vals)).begin(); _iter514 != (*(this->part_vals)).end(); ++_iter514) { - xfer += oprot->writeString((*_iter503)); + xfer += oprot->writeString((*_iter514)); } xfer += oprot->writeListEnd(); } @@ -7704,7 +7736,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; @@ -7725,8 +7757,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 _size515; + ::apache::thrift::protocol::TType _etype518; + xfer += iprot->readListBegin(_etype518, _size515); + this->success.resize(_size515); + uint32_t _i519; + for (_i519 = 0; _i519 < _size515; ++_i519) + { + xfer += this->success[_i519].read(iprot); + } + xfer += iprot->readListEnd(); + } this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -7760,15 +7804,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 _iter520; + for (_iter520 = this->success.begin(); _iter520 != this->success.end(); ++_iter520) + { + xfer += (*_iter520).write(oprot); + } + xfer += oprot->writeListEnd(); + } xfer += oprot->writeFieldEnd(); } else if (this->__isset.o1) { xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1); @@ -7784,7 +7836,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; @@ -7805,8 +7857,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 _size521; + ::apache::thrift::protocol::TType _etype524; + xfer += iprot->readListBegin(_etype524, _size521); + (*(this->success)).resize(_size521); + uint32_t _i525; + for (_i525 = 0; _i525 < _size521; ++_i525) + { + xfer += (*(this->success))[_i525].read(iprot); + } + xfer += iprot->readListEnd(); + } this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -8598,14 +8662,14 @@ uint32_t ThriftHiveMetastore_get_partition_args::read(::apache::thrift::protocol if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size504; - ::apache::thrift::protocol::TType _etype507; - xfer += iprot->readListBegin(_etype507, _size504); - this->part_vals.resize(_size504); - uint32_t _i508; - for (_i508 = 0; _i508 < _size504; ++_i508) + uint32_t _size526; + ::apache::thrift::protocol::TType _etype529; + xfer += iprot->readListBegin(_etype529, _size526); + this->part_vals.resize(_size526); + uint32_t _i530; + for (_i530 = 0; _i530 < _size526; ++_i530) { - xfer += iprot->readString(this->part_vals[_i508]); + xfer += iprot->readString(this->part_vals[_i530]); } xfer += iprot->readListEnd(); } @@ -8641,10 +8705,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 _iter509; - for (_iter509 = this->part_vals.begin(); _iter509 != this->part_vals.end(); ++_iter509) + std::vector ::const_iterator _iter531; + for (_iter531 = this->part_vals.begin(); _iter531 != this->part_vals.end(); ++_iter531) { - xfer += oprot->writeString((*_iter509)); + xfer += oprot->writeString((*_iter531)); } xfer += oprot->writeListEnd(); } @@ -8670,10 +8734,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 _iter510; - for (_iter510 = (*(this->part_vals)).begin(); _iter510 != (*(this->part_vals)).end(); ++_iter510) + std::vector ::const_iterator _iter532; + for (_iter532 = (*(this->part_vals)).begin(); _iter532 != (*(this->part_vals)).end(); ++_iter532) { - xfer += oprot->writeString((*_iter510)); + xfer += oprot->writeString((*_iter532)); } xfer += oprot->writeListEnd(); } @@ -8844,17 +8908,17 @@ uint32_t ThriftHiveMetastore_exchange_partition_args::read(::apache::thrift::pro if (ftype == ::apache::thrift::protocol::T_MAP) { { this->partitionSpecs.clear(); - uint32_t _size511; - ::apache::thrift::protocol::TType _ktype512; - ::apache::thrift::protocol::TType _vtype513; - xfer += iprot->readMapBegin(_ktype512, _vtype513, _size511); - uint32_t _i515; - for (_i515 = 0; _i515 < _size511; ++_i515) + uint32_t _size533; + ::apache::thrift::protocol::TType _ktype534; + ::apache::thrift::protocol::TType _vtype535; + xfer += iprot->readMapBegin(_ktype534, _vtype535, _size533); + uint32_t _i537; + for (_i537 = 0; _i537 < _size533; ++_i537) { - std::string _key516; - xfer += iprot->readString(_key516); - std::string& _val517 = this->partitionSpecs[_key516]; - xfer += iprot->readString(_val517); + std::string _key538; + xfer += iprot->readString(_key538); + std::string& _val539 = this->partitionSpecs[_key538]; + xfer += iprot->readString(_val539); } xfer += iprot->readMapEnd(); } @@ -8914,11 +8978,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 _iter518; - for (_iter518 = this->partitionSpecs.begin(); _iter518 != this->partitionSpecs.end(); ++_iter518) + std::map ::const_iterator _iter540; + for (_iter540 = this->partitionSpecs.begin(); _iter540 != this->partitionSpecs.end(); ++_iter540) { - xfer += oprot->writeString(_iter518->first); - xfer += oprot->writeString(_iter518->second); + xfer += oprot->writeString(_iter540->first); + xfer += oprot->writeString(_iter540->second); } xfer += oprot->writeMapEnd(); } @@ -8952,11 +9016,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 _iter519; - for (_iter519 = (*(this->partitionSpecs)).begin(); _iter519 != (*(this->partitionSpecs)).end(); ++_iter519) + std::map ::const_iterator _iter541; + for (_iter541 = (*(this->partitionSpecs)).begin(); _iter541 != (*(this->partitionSpecs)).end(); ++_iter541) { - xfer += oprot->writeString(_iter519->first); - xfer += oprot->writeString(_iter519->second); + xfer += oprot->writeString(_iter541->first); + xfer += oprot->writeString(_iter541->second); } xfer += oprot->writeMapEnd(); } @@ -9199,14 +9263,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 _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(); } @@ -9227,14 +9291,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 _size525; - ::apache::thrift::protocol::TType _etype528; - xfer += iprot->readListBegin(_etype528, _size525); - this->group_names.resize(_size525); - uint32_t _i529; - for (_i529 = 0; _i529 < _size525; ++_i529) + uint32_t _size547; + ::apache::thrift::protocol::TType _etype550; + xfer += iprot->readListBegin(_etype550, _size547); + this->group_names.resize(_size547); + uint32_t _i551; + for (_i551 = 0; _i551 < _size547; ++_i551) { - xfer += iprot->readString(this->group_names[_i529]); + xfer += iprot->readString(this->group_names[_i551]); } xfer += iprot->readListEnd(); } @@ -9270,10 +9334,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 _iter530; - for (_iter530 = this->part_vals.begin(); _iter530 != this->part_vals.end(); ++_iter530) + std::vector ::const_iterator _iter552; + for (_iter552 = this->part_vals.begin(); _iter552 != this->part_vals.end(); ++_iter552) { - xfer += oprot->writeString((*_iter530)); + xfer += oprot->writeString((*_iter552)); } xfer += oprot->writeListEnd(); } @@ -9286,10 +9350,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 _iter531; - for (_iter531 = this->group_names.begin(); _iter531 != this->group_names.end(); ++_iter531) + std::vector ::const_iterator _iter553; + for (_iter553 = this->group_names.begin(); _iter553 != this->group_names.end(); ++_iter553) { - xfer += oprot->writeString((*_iter531)); + xfer += oprot->writeString((*_iter553)); } xfer += oprot->writeListEnd(); } @@ -9315,10 +9379,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 _iter532; - for (_iter532 = (*(this->part_vals)).begin(); _iter532 != (*(this->part_vals)).end(); ++_iter532) + std::vector ::const_iterator _iter554; + for (_iter554 = (*(this->part_vals)).begin(); _iter554 != (*(this->part_vals)).end(); ++_iter554) { - xfer += oprot->writeString((*_iter532)); + xfer += oprot->writeString((*_iter554)); } xfer += oprot->writeListEnd(); } @@ -9331,10 +9395,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 _iter533; - for (_iter533 = (*(this->group_names)).begin(); _iter533 != (*(this->group_names)).end(); ++_iter533) + std::vector ::const_iterator _iter555; + for (_iter555 = (*(this->group_names)).begin(); _iter555 != (*(this->group_names)).end(); ++_iter555) { - xfer += oprot->writeString((*_iter533)); + xfer += oprot->writeString((*_iter555)); } xfer += oprot->writeListEnd(); } @@ -9837,14 +9901,14 @@ uint32_t ThriftHiveMetastore_get_partitions_result::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size534; - ::apache::thrift::protocol::TType _etype537; - xfer += iprot->readListBegin(_etype537, _size534); - this->success.resize(_size534); - uint32_t _i538; - for (_i538 = 0; _i538 < _size534; ++_i538) + 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) { - xfer += this->success[_i538].read(iprot); + xfer += this->success[_i560].read(iprot); } xfer += iprot->readListEnd(); } @@ -9891,10 +9955,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 _iter539; - for (_iter539 = this->success.begin(); _iter539 != this->success.end(); ++_iter539) + std::vector ::const_iterator _iter561; + for (_iter561 = this->success.begin(); _iter561 != this->success.end(); ++_iter561) { - xfer += (*_iter539).write(oprot); + xfer += (*_iter561).write(oprot); } xfer += oprot->writeListEnd(); } @@ -9937,14 +10001,14 @@ uint32_t ThriftHiveMetastore_get_partitions_presult::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size540; - ::apache::thrift::protocol::TType _etype543; - xfer += iprot->readListBegin(_etype543, _size540); - (*(this->success)).resize(_size540); - uint32_t _i544; - for (_i544 = 0; _i544 < _size540; ++_i544) + uint32_t _size562; + ::apache::thrift::protocol::TType _etype565; + xfer += iprot->readListBegin(_etype565, _size562); + (*(this->success)).resize(_size562); + uint32_t _i566; + for (_i566 = 0; _i566 < _size562; ++_i566) { - xfer += (*(this->success))[_i544].read(iprot); + xfer += (*(this->success))[_i566].read(iprot); } xfer += iprot->readListEnd(); } @@ -10037,14 +10101,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 _size545; - ::apache::thrift::protocol::TType _etype548; - xfer += iprot->readListBegin(_etype548, _size545); - this->group_names.resize(_size545); - uint32_t _i549; - for (_i549 = 0; _i549 < _size545; ++_i549) + uint32_t _size567; + ::apache::thrift::protocol::TType _etype570; + xfer += iprot->readListBegin(_etype570, _size567); + this->group_names.resize(_size567); + uint32_t _i571; + for (_i571 = 0; _i571 < _size567; ++_i571) { - xfer += iprot->readString(this->group_names[_i549]); + xfer += iprot->readString(this->group_names[_i571]); } xfer += iprot->readListEnd(); } @@ -10088,10 +10152,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 _iter550; - for (_iter550 = this->group_names.begin(); _iter550 != this->group_names.end(); ++_iter550) + std::vector ::const_iterator _iter572; + for (_iter572 = this->group_names.begin(); _iter572 != this->group_names.end(); ++_iter572) { - xfer += oprot->writeString((*_iter550)); + xfer += oprot->writeString((*_iter572)); } xfer += oprot->writeListEnd(); } @@ -10125,10 +10189,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 _iter551; - for (_iter551 = (*(this->group_names)).begin(); _iter551 != (*(this->group_names)).end(); ++_iter551) + std::vector ::const_iterator _iter573; + for (_iter573 = (*(this->group_names)).begin(); _iter573 != (*(this->group_names)).end(); ++_iter573) { - xfer += oprot->writeString((*_iter551)); + xfer += oprot->writeString((*_iter573)); } xfer += oprot->writeListEnd(); } @@ -10163,14 +10227,14 @@ uint32_t ThriftHiveMetastore_get_partitions_with_auth_result::read(::apache::thr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size552; - ::apache::thrift::protocol::TType _etype555; - xfer += iprot->readListBegin(_etype555, _size552); - this->success.resize(_size552); - uint32_t _i556; - for (_i556 = 0; _i556 < _size552; ++_i556) + 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) { - xfer += this->success[_i556].read(iprot); + xfer += this->success[_i578].read(iprot); } xfer += iprot->readListEnd(); } @@ -10217,10 +10281,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 _iter557; - for (_iter557 = this->success.begin(); _iter557 != this->success.end(); ++_iter557) + std::vector ::const_iterator _iter579; + for (_iter579 = this->success.begin(); _iter579 != this->success.end(); ++_iter579) { - xfer += (*_iter557).write(oprot); + xfer += (*_iter579).write(oprot); } xfer += oprot->writeListEnd(); } @@ -10263,14 +10327,14 @@ uint32_t ThriftHiveMetastore_get_partitions_with_auth_presult::read(::apache::th if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size558; - ::apache::thrift::protocol::TType _etype561; - xfer += iprot->readListBegin(_etype561, _size558); - (*(this->success)).resize(_size558); - uint32_t _i562; - for (_i562 = 0; _i562 < _size558; ++_i562) + uint32_t _size580; + ::apache::thrift::protocol::TType _etype583; + xfer += iprot->readListBegin(_etype583, _size580); + (*(this->success)).resize(_size580); + uint32_t _i584; + for (_i584 = 0; _i584 < _size580; ++_i584) { - xfer += (*(this->success))[_i562].read(iprot); + xfer += (*(this->success))[_i584].read(iprot); } xfer += iprot->readListEnd(); } @@ -10429,14 +10493,14 @@ uint32_t ThriftHiveMetastore_get_partition_names_result::read(::apache::thrift:: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size563; - ::apache::thrift::protocol::TType _etype566; - xfer += iprot->readListBegin(_etype566, _size563); - this->success.resize(_size563); - uint32_t _i567; - for (_i567 = 0; _i567 < _size563; ++_i567) + 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) { - xfer += iprot->readString(this->success[_i567]); + xfer += iprot->readString(this->success[_i589]); } xfer += iprot->readListEnd(); } @@ -10475,10 +10539,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 _iter568; - for (_iter568 = this->success.begin(); _iter568 != this->success.end(); ++_iter568) + std::vector ::const_iterator _iter590; + for (_iter590 = this->success.begin(); _iter590 != this->success.end(); ++_iter590) { - xfer += oprot->writeString((*_iter568)); + xfer += oprot->writeString((*_iter590)); } xfer += oprot->writeListEnd(); } @@ -10517,14 +10581,14 @@ uint32_t ThriftHiveMetastore_get_partition_names_presult::read(::apache::thrift: if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size569; - ::apache::thrift::protocol::TType _etype572; - xfer += iprot->readListBegin(_etype572, _size569); - (*(this->success)).resize(_size569); - uint32_t _i573; - for (_i573 = 0; _i573 < _size569; ++_i573) + uint32_t _size591; + ::apache::thrift::protocol::TType _etype594; + xfer += iprot->readListBegin(_etype594, _size591); + (*(this->success)).resize(_size591); + uint32_t _i595; + for (_i595 = 0; _i595 < _size591; ++_i595) { - xfer += iprot->readString((*(this->success))[_i573]); + xfer += iprot->readString((*(this->success))[_i595]); } xfer += iprot->readListEnd(); } @@ -10593,14 +10657,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 _size574; - ::apache::thrift::protocol::TType _etype577; - xfer += iprot->readListBegin(_etype577, _size574); - this->part_vals.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->part_vals.resize(_size596); + uint32_t _i600; + for (_i600 = 0; _i600 < _size596; ++_i600) { - xfer += iprot->readString(this->part_vals[_i578]); + xfer += iprot->readString(this->part_vals[_i600]); } xfer += iprot->readListEnd(); } @@ -10644,10 +10708,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 _iter579; - for (_iter579 = this->part_vals.begin(); _iter579 != this->part_vals.end(); ++_iter579) + std::vector ::const_iterator _iter601; + for (_iter601 = this->part_vals.begin(); _iter601 != this->part_vals.end(); ++_iter601) { - xfer += oprot->writeString((*_iter579)); + xfer += oprot->writeString((*_iter601)); } xfer += oprot->writeListEnd(); } @@ -10677,10 +10741,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 _iter580; - for (_iter580 = (*(this->part_vals)).begin(); _iter580 != (*(this->part_vals)).end(); ++_iter580) + std::vector ::const_iterator _iter602; + for (_iter602 = (*(this->part_vals)).begin(); _iter602 != (*(this->part_vals)).end(); ++_iter602) { - xfer += oprot->writeString((*_iter580)); + xfer += oprot->writeString((*_iter602)); } xfer += oprot->writeListEnd(); } @@ -10719,14 +10783,14 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_result::read(::apache::thrift::pr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size581; - ::apache::thrift::protocol::TType _etype584; - xfer += iprot->readListBegin(_etype584, _size581); - this->success.resize(_size581); - uint32_t _i585; - for (_i585 = 0; _i585 < _size581; ++_i585) + 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) { - xfer += this->success[_i585].read(iprot); + xfer += this->success[_i607].read(iprot); } xfer += iprot->readListEnd(); } @@ -10773,10 +10837,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 _iter586; - for (_iter586 = this->success.begin(); _iter586 != this->success.end(); ++_iter586) + std::vector ::const_iterator _iter608; + for (_iter608 = this->success.begin(); _iter608 != this->success.end(); ++_iter608) { - xfer += (*_iter586).write(oprot); + xfer += (*_iter608).write(oprot); } xfer += oprot->writeListEnd(); } @@ -10819,14 +10883,14 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_presult::read(::apache::thrift::p if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size587; - ::apache::thrift::protocol::TType _etype590; - xfer += iprot->readListBegin(_etype590, _size587); - (*(this->success)).resize(_size587); - uint32_t _i591; - for (_i591 = 0; _i591 < _size587; ++_i591) + uint32_t _size609; + ::apache::thrift::protocol::TType _etype612; + xfer += iprot->readListBegin(_etype612, _size609); + (*(this->success)).resize(_size609); + uint32_t _i613; + for (_i613 = 0; _i613 < _size609; ++_i613) { - xfer += (*(this->success))[_i591].read(iprot); + xfer += (*(this->success))[_i613].read(iprot); } xfer += iprot->readListEnd(); } @@ -10903,14 +10967,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 _size592; - ::apache::thrift::protocol::TType _etype595; - xfer += iprot->readListBegin(_etype595, _size592); - this->part_vals.resize(_size592); - uint32_t _i596; - for (_i596 = 0; _i596 < _size592; ++_i596) + uint32_t _size614; + ::apache::thrift::protocol::TType _etype617; + xfer += iprot->readListBegin(_etype617, _size614); + this->part_vals.resize(_size614); + uint32_t _i618; + for (_i618 = 0; _i618 < _size614; ++_i618) { - xfer += iprot->readString(this->part_vals[_i596]); + xfer += iprot->readString(this->part_vals[_i618]); } xfer += iprot->readListEnd(); } @@ -10939,14 +11003,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 _size597; - ::apache::thrift::protocol::TType _etype600; - xfer += iprot->readListBegin(_etype600, _size597); - this->group_names.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->group_names.resize(_size619); + uint32_t _i623; + for (_i623 = 0; _i623 < _size619; ++_i623) { - xfer += iprot->readString(this->group_names[_i601]); + xfer += iprot->readString(this->group_names[_i623]); } xfer += iprot->readListEnd(); } @@ -10982,10 +11046,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 _iter602; - for (_iter602 = this->part_vals.begin(); _iter602 != this->part_vals.end(); ++_iter602) + std::vector ::const_iterator _iter624; + for (_iter624 = this->part_vals.begin(); _iter624 != this->part_vals.end(); ++_iter624) { - xfer += oprot->writeString((*_iter602)); + xfer += oprot->writeString((*_iter624)); } xfer += oprot->writeListEnd(); } @@ -11002,10 +11066,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 _iter603; - for (_iter603 = this->group_names.begin(); _iter603 != this->group_names.end(); ++_iter603) + std::vector ::const_iterator _iter625; + for (_iter625 = this->group_names.begin(); _iter625 != this->group_names.end(); ++_iter625) { - xfer += oprot->writeString((*_iter603)); + xfer += oprot->writeString((*_iter625)); } xfer += oprot->writeListEnd(); } @@ -11031,10 +11095,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 _iter604; - for (_iter604 = (*(this->part_vals)).begin(); _iter604 != (*(this->part_vals)).end(); ++_iter604) + std::vector ::const_iterator _iter626; + for (_iter626 = (*(this->part_vals)).begin(); _iter626 != (*(this->part_vals)).end(); ++_iter626) { - xfer += oprot->writeString((*_iter604)); + xfer += oprot->writeString((*_iter626)); } xfer += oprot->writeListEnd(); } @@ -11051,10 +11115,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 _iter605; - for (_iter605 = (*(this->group_names)).begin(); _iter605 != (*(this->group_names)).end(); ++_iter605) + std::vector ::const_iterator _iter627; + for (_iter627 = (*(this->group_names)).begin(); _iter627 != (*(this->group_names)).end(); ++_iter627) { - xfer += oprot->writeString((*_iter605)); + xfer += oprot->writeString((*_iter627)); } xfer += oprot->writeListEnd(); } @@ -11089,14 +11153,14 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_result::read(::apache:: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size606; - ::apache::thrift::protocol::TType _etype609; - xfer += iprot->readListBegin(_etype609, _size606); - this->success.resize(_size606); - uint32_t _i610; - for (_i610 = 0; _i610 < _size606; ++_i610) + 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) { - xfer += this->success[_i610].read(iprot); + xfer += this->success[_i632].read(iprot); } xfer += iprot->readListEnd(); } @@ -11143,10 +11207,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 _iter611; - for (_iter611 = this->success.begin(); _iter611 != this->success.end(); ++_iter611) + std::vector ::const_iterator _iter633; + for (_iter633 = this->success.begin(); _iter633 != this->success.end(); ++_iter633) { - xfer += (*_iter611).write(oprot); + xfer += (*_iter633).write(oprot); } xfer += oprot->writeListEnd(); } @@ -11189,14 +11253,14 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_presult::read(::apache: if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size612; - ::apache::thrift::protocol::TType _etype615; - xfer += iprot->readListBegin(_etype615, _size612); - (*(this->success)).resize(_size612); - uint32_t _i616; - for (_i616 = 0; _i616 < _size612; ++_i616) + uint32_t _size634; + ::apache::thrift::protocol::TType _etype637; + xfer += iprot->readListBegin(_etype637, _size634); + (*(this->success)).resize(_size634); + uint32_t _i638; + for (_i638 = 0; _i638 < _size634; ++_i638) { - xfer += (*(this->success))[_i616].read(iprot); + xfer += (*(this->success))[_i638].read(iprot); } xfer += iprot->readListEnd(); } @@ -11273,14 +11337,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 _size617; - ::apache::thrift::protocol::TType _etype620; - xfer += iprot->readListBegin(_etype620, _size617); - this->part_vals.resize(_size617); - uint32_t _i621; - for (_i621 = 0; _i621 < _size617; ++_i621) + uint32_t _size639; + ::apache::thrift::protocol::TType _etype642; + xfer += iprot->readListBegin(_etype642, _size639); + this->part_vals.resize(_size639); + uint32_t _i643; + for (_i643 = 0; _i643 < _size639; ++_i643) { - xfer += iprot->readString(this->part_vals[_i621]); + xfer += iprot->readString(this->part_vals[_i643]); } xfer += iprot->readListEnd(); } @@ -11324,10 +11388,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 _iter622; - for (_iter622 = this->part_vals.begin(); _iter622 != this->part_vals.end(); ++_iter622) + std::vector ::const_iterator _iter644; + for (_iter644 = this->part_vals.begin(); _iter644 != this->part_vals.end(); ++_iter644) { - xfer += oprot->writeString((*_iter622)); + xfer += oprot->writeString((*_iter644)); } xfer += oprot->writeListEnd(); } @@ -11357,10 +11421,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 _iter623; - for (_iter623 = (*(this->part_vals)).begin(); _iter623 != (*(this->part_vals)).end(); ++_iter623) + std::vector ::const_iterator _iter645; + for (_iter645 = (*(this->part_vals)).begin(); _iter645 != (*(this->part_vals)).end(); ++_iter645) { - xfer += oprot->writeString((*_iter623)); + xfer += oprot->writeString((*_iter645)); } xfer += oprot->writeListEnd(); } @@ -11399,14 +11463,14 @@ uint32_t ThriftHiveMetastore_get_partition_names_ps_result::read(::apache::thrif if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size624; - ::apache::thrift::protocol::TType _etype627; - xfer += iprot->readListBegin(_etype627, _size624); - this->success.resize(_size624); - uint32_t _i628; - for (_i628 = 0; _i628 < _size624; ++_i628) + 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) { - xfer += iprot->readString(this->success[_i628]); + xfer += iprot->readString(this->success[_i650]); } xfer += iprot->readListEnd(); } @@ -11453,10 +11517,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 _iter629; - for (_iter629 = this->success.begin(); _iter629 != this->success.end(); ++_iter629) + std::vector ::const_iterator _iter651; + for (_iter651 = this->success.begin(); _iter651 != this->success.end(); ++_iter651) { - xfer += oprot->writeString((*_iter629)); + xfer += oprot->writeString((*_iter651)); } xfer += oprot->writeListEnd(); } @@ -11499,14 +11563,14 @@ uint32_t ThriftHiveMetastore_get_partition_names_ps_presult::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size630; - ::apache::thrift::protocol::TType _etype633; - xfer += iprot->readListBegin(_etype633, _size630); - (*(this->success)).resize(_size630); - uint32_t _i634; - for (_i634 = 0; _i634 < _size630; ++_i634) + uint32_t _size652; + ::apache::thrift::protocol::TType _etype655; + xfer += iprot->readListBegin(_etype655, _size652); + (*(this->success)).resize(_size652); + uint32_t _i656; + for (_i656 = 0; _i656 < _size652; ++_i656) { - xfer += iprot->readString((*(this->success))[_i634]); + xfer += iprot->readString((*(this->success))[_i656]); } xfer += iprot->readListEnd(); } @@ -11681,14 +11745,14 @@ uint32_t ThriftHiveMetastore_get_partitions_by_filter_result::read(::apache::thr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size635; - ::apache::thrift::protocol::TType _etype638; - xfer += iprot->readListBegin(_etype638, _size635); - this->success.resize(_size635); - uint32_t _i639; - for (_i639 = 0; _i639 < _size635; ++_i639) + 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) { - xfer += this->success[_i639].read(iprot); + xfer += this->success[_i661].read(iprot); } xfer += iprot->readListEnd(); } @@ -11735,10 +11799,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 _iter640; - for (_iter640 = this->success.begin(); _iter640 != this->success.end(); ++_iter640) + std::vector ::const_iterator _iter662; + for (_iter662 = this->success.begin(); _iter662 != this->success.end(); ++_iter662) { - xfer += (*_iter640).write(oprot); + xfer += (*_iter662).write(oprot); } xfer += oprot->writeListEnd(); } @@ -11781,14 +11845,14 @@ uint32_t ThriftHiveMetastore_get_partitions_by_filter_presult::read(::apache::th if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size641; - ::apache::thrift::protocol::TType _etype644; - xfer += iprot->readListBegin(_etype644, _size641); - (*(this->success)).resize(_size641); - uint32_t _i645; - for (_i645 = 0; _i645 < _size641; ++_i645) + uint32_t _size663; + ::apache::thrift::protocol::TType _etype666; + xfer += iprot->readListBegin(_etype666, _size663); + (*(this->success)).resize(_size663); + uint32_t _i667; + for (_i667 = 0; _i667 < _size663; ++_i667) { - xfer += (*(this->success))[_i645].read(iprot); + xfer += (*(this->success))[_i667].read(iprot); } xfer += iprot->readListEnd(); } @@ -12067,14 +12131,14 @@ uint32_t ThriftHiveMetastore_get_partitions_by_names_args::read(::apache::thrift if (ftype == ::apache::thrift::protocol::T_LIST) { { this->names.clear(); - uint32_t _size646; - ::apache::thrift::protocol::TType _etype649; - xfer += iprot->readListBegin(_etype649, _size646); - this->names.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->names.resize(_size668); + uint32_t _i672; + for (_i672 = 0; _i672 < _size668; ++_i672) { - xfer += iprot->readString(this->names[_i650]); + xfer += iprot->readString(this->names[_i672]); } xfer += iprot->readListEnd(); } @@ -12110,10 +12174,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 _iter651; - for (_iter651 = this->names.begin(); _iter651 != this->names.end(); ++_iter651) + std::vector ::const_iterator _iter673; + for (_iter673 = this->names.begin(); _iter673 != this->names.end(); ++_iter673) { - xfer += oprot->writeString((*_iter651)); + xfer += oprot->writeString((*_iter673)); } xfer += oprot->writeListEnd(); } @@ -12139,10 +12203,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 _iter652; - for (_iter652 = (*(this->names)).begin(); _iter652 != (*(this->names)).end(); ++_iter652) + std::vector ::const_iterator _iter674; + for (_iter674 = (*(this->names)).begin(); _iter674 != (*(this->names)).end(); ++_iter674) { - xfer += oprot->writeString((*_iter652)); + xfer += oprot->writeString((*_iter674)); } xfer += oprot->writeListEnd(); } @@ -12177,14 +12241,14 @@ uint32_t ThriftHiveMetastore_get_partitions_by_names_result::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size653; - ::apache::thrift::protocol::TType _etype656; - xfer += iprot->readListBegin(_etype656, _size653); - this->success.resize(_size653); - uint32_t _i657; - for (_i657 = 0; _i657 < _size653; ++_i657) + 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) { - xfer += this->success[_i657].read(iprot); + xfer += this->success[_i679].read(iprot); } xfer += iprot->readListEnd(); } @@ -12231,10 +12295,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 _iter658; - for (_iter658 = this->success.begin(); _iter658 != this->success.end(); ++_iter658) + std::vector ::const_iterator _iter680; + for (_iter680 = this->success.begin(); _iter680 != this->success.end(); ++_iter680) { - xfer += (*_iter658).write(oprot); + xfer += (*_iter680).write(oprot); } xfer += oprot->writeListEnd(); } @@ -12277,14 +12341,14 @@ uint32_t ThriftHiveMetastore_get_partitions_by_names_presult::read(::apache::thr if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size659; - ::apache::thrift::protocol::TType _etype662; - xfer += iprot->readListBegin(_etype662, _size659); - (*(this->success)).resize(_size659); - uint32_t _i663; - for (_i663 = 0; _i663 < _size659; ++_i663) + uint32_t _size681; + ::apache::thrift::protocol::TType _etype684; + xfer += iprot->readListBegin(_etype684, _size681); + (*(this->success)).resize(_size681); + uint32_t _i685; + for (_i685 = 0; _i685 < _size681; ++_i685) { - xfer += (*(this->success))[_i663].read(iprot); + xfer += (*(this->success))[_i685].read(iprot); } xfer += iprot->readListEnd(); } @@ -12575,14 +12639,14 @@ uint32_t ThriftHiveMetastore_alter_partitions_args::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->new_parts.clear(); - uint32_t _size664; - ::apache::thrift::protocol::TType _etype667; - xfer += iprot->readListBegin(_etype667, _size664); - this->new_parts.resize(_size664); - uint32_t _i668; - for (_i668 = 0; _i668 < _size664; ++_i668) + uint32_t _size686; + ::apache::thrift::protocol::TType _etype689; + xfer += iprot->readListBegin(_etype689, _size686); + this->new_parts.resize(_size686); + uint32_t _i690; + for (_i690 = 0; _i690 < _size686; ++_i690) { - xfer += this->new_parts[_i668].read(iprot); + xfer += this->new_parts[_i690].read(iprot); } xfer += iprot->readListEnd(); } @@ -12618,10 +12682,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 _iter669; - for (_iter669 = this->new_parts.begin(); _iter669 != this->new_parts.end(); ++_iter669) + std::vector ::const_iterator _iter691; + for (_iter691 = this->new_parts.begin(); _iter691 != this->new_parts.end(); ++_iter691) { - xfer += (*_iter669).write(oprot); + xfer += (*_iter691).write(oprot); } xfer += oprot->writeListEnd(); } @@ -12647,10 +12711,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 _iter670; - for (_iter670 = (*(this->new_parts)).begin(); _iter670 != (*(this->new_parts)).end(); ++_iter670) + std::vector ::const_iterator _iter692; + for (_iter692 = (*(this->new_parts)).begin(); _iter692 != (*(this->new_parts)).end(); ++_iter692) { - xfer += (*_iter670).write(oprot); + xfer += (*_iter692).write(oprot); } xfer += oprot->writeListEnd(); } @@ -13047,14 +13111,14 @@ uint32_t ThriftHiveMetastore_rename_partition_args::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size671; - ::apache::thrift::protocol::TType _etype674; - xfer += iprot->readListBegin(_etype674, _size671); - this->part_vals.resize(_size671); - uint32_t _i675; - for (_i675 = 0; _i675 < _size671; ++_i675) + uint32_t _size693; + ::apache::thrift::protocol::TType _etype696; + xfer += iprot->readListBegin(_etype696, _size693); + this->part_vals.resize(_size693); + uint32_t _i697; + for (_i697 = 0; _i697 < _size693; ++_i697) { - xfer += iprot->readString(this->part_vals[_i675]); + xfer += iprot->readString(this->part_vals[_i697]); } xfer += iprot->readListEnd(); } @@ -13098,10 +13162,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 _iter676; - for (_iter676 = this->part_vals.begin(); _iter676 != this->part_vals.end(); ++_iter676) + std::vector ::const_iterator _iter698; + for (_iter698 = this->part_vals.begin(); _iter698 != this->part_vals.end(); ++_iter698) { - xfer += oprot->writeString((*_iter676)); + xfer += oprot->writeString((*_iter698)); } xfer += oprot->writeListEnd(); } @@ -13131,10 +13195,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 _iter677; - for (_iter677 = (*(this->part_vals)).begin(); _iter677 != (*(this->part_vals)).end(); ++_iter677) + std::vector ::const_iterator _iter699; + for (_iter699 = (*(this->part_vals)).begin(); _iter699 != (*(this->part_vals)).end(); ++_iter699) { - xfer += oprot->writeString((*_iter677)); + xfer += oprot->writeString((*_iter699)); } xfer += oprot->writeListEnd(); } @@ -13289,14 +13353,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 _size678; - ::apache::thrift::protocol::TType _etype681; - xfer += iprot->readListBegin(_etype681, _size678); - this->part_vals.resize(_size678); - uint32_t _i682; - for (_i682 = 0; _i682 < _size678; ++_i682) + uint32_t _size700; + ::apache::thrift::protocol::TType _etype703; + xfer += iprot->readListBegin(_etype703, _size700); + this->part_vals.resize(_size700); + uint32_t _i704; + for (_i704 = 0; _i704 < _size700; ++_i704) { - xfer += iprot->readString(this->part_vals[_i682]); + xfer += iprot->readString(this->part_vals[_i704]); } xfer += iprot->readListEnd(); } @@ -13332,10 +13396,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 _iter683; - for (_iter683 = this->part_vals.begin(); _iter683 != this->part_vals.end(); ++_iter683) + std::vector ::const_iterator _iter705; + for (_iter705 = this->part_vals.begin(); _iter705 != this->part_vals.end(); ++_iter705) { - xfer += oprot->writeString((*_iter683)); + xfer += oprot->writeString((*_iter705)); } xfer += oprot->writeListEnd(); } @@ -13357,10 +13421,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 _iter684; - for (_iter684 = (*(this->part_vals)).begin(); _iter684 != (*(this->part_vals)).end(); ++_iter684) + std::vector ::const_iterator _iter706; + for (_iter706 = (*(this->part_vals)).begin(); _iter706 != (*(this->part_vals)).end(); ++_iter706) { - xfer += oprot->writeString((*_iter684)); + xfer += oprot->writeString((*_iter706)); } xfer += oprot->writeListEnd(); } @@ -13779,14 +13843,14 @@ uint32_t ThriftHiveMetastore_partition_name_to_vals_result::read(::apache::thrif if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size685; - ::apache::thrift::protocol::TType _etype688; - xfer += iprot->readListBegin(_etype688, _size685); - this->success.resize(_size685); - uint32_t _i689; - for (_i689 = 0; _i689 < _size685; ++_i689) + 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) { - xfer += iprot->readString(this->success[_i689]); + xfer += iprot->readString(this->success[_i711]); } xfer += iprot->readListEnd(); } @@ -13825,10 +13889,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 _iter690; - for (_iter690 = this->success.begin(); _iter690 != this->success.end(); ++_iter690) + std::vector ::const_iterator _iter712; + for (_iter712 = this->success.begin(); _iter712 != this->success.end(); ++_iter712) { - xfer += oprot->writeString((*_iter690)); + xfer += oprot->writeString((*_iter712)); } xfer += oprot->writeListEnd(); } @@ -13867,14 +13931,14 @@ uint32_t ThriftHiveMetastore_partition_name_to_vals_presult::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - 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) + uint32_t _size713; + ::apache::thrift::protocol::TType _etype716; + xfer += iprot->readListBegin(_etype716, _size713); + (*(this->success)).resize(_size713); + uint32_t _i717; + for (_i717 = 0; _i717 < _size713; ++_i717) { - xfer += iprot->readString((*(this->success))[_i695]); + xfer += iprot->readString((*(this->success))[_i717]); } xfer += iprot->readListEnd(); } @@ -13993,17 +14057,17 @@ uint32_t ThriftHiveMetastore_partition_name_to_spec_result::read(::apache::thrif if (ftype == ::apache::thrift::protocol::T_MAP) { { this->success.clear(); - uint32_t _size696; - ::apache::thrift::protocol::TType _ktype697; - ::apache::thrift::protocol::TType _vtype698; - xfer += iprot->readMapBegin(_ktype697, _vtype698, _size696); - uint32_t _i700; - for (_i700 = 0; _i700 < _size696; ++_i700) + uint32_t _size718; + ::apache::thrift::protocol::TType _ktype719; + ::apache::thrift::protocol::TType _vtype720; + xfer += iprot->readMapBegin(_ktype719, _vtype720, _size718); + uint32_t _i722; + for (_i722 = 0; _i722 < _size718; ++_i722) { - std::string _key701; - xfer += iprot->readString(_key701); - std::string& _val702 = this->success[_key701]; - xfer += iprot->readString(_val702); + std::string _key723; + xfer += iprot->readString(_key723); + std::string& _val724 = this->success[_key723]; + xfer += iprot->readString(_val724); } xfer += iprot->readMapEnd(); } @@ -14042,11 +14106,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 _iter703; - for (_iter703 = this->success.begin(); _iter703 != this->success.end(); ++_iter703) + std::map ::const_iterator _iter725; + for (_iter725 = this->success.begin(); _iter725 != this->success.end(); ++_iter725) { - xfer += oprot->writeString(_iter703->first); - xfer += oprot->writeString(_iter703->second); + xfer += oprot->writeString(_iter725->first); + xfer += oprot->writeString(_iter725->second); } xfer += oprot->writeMapEnd(); } @@ -14085,17 +14149,17 @@ uint32_t ThriftHiveMetastore_partition_name_to_spec_presult::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_MAP) { { (*(this->success)).clear(); - uint32_t _size704; - ::apache::thrift::protocol::TType _ktype705; - ::apache::thrift::protocol::TType _vtype706; - xfer += iprot->readMapBegin(_ktype705, _vtype706, _size704); - uint32_t _i708; - for (_i708 = 0; _i708 < _size704; ++_i708) + uint32_t _size726; + ::apache::thrift::protocol::TType _ktype727; + ::apache::thrift::protocol::TType _vtype728; + xfer += iprot->readMapBegin(_ktype727, _vtype728, _size726); + uint32_t _i730; + for (_i730 = 0; _i730 < _size726; ++_i730) { - std::string _key709; - xfer += iprot->readString(_key709); - std::string& _val710 = (*(this->success))[_key709]; - xfer += iprot->readString(_val710); + std::string _key731; + xfer += iprot->readString(_key731); + std::string& _val732 = (*(this->success))[_key731]; + xfer += iprot->readString(_val732); } xfer += iprot->readMapEnd(); } @@ -14164,17 +14228,17 @@ uint32_t ThriftHiveMetastore_markPartitionForEvent_args::read(::apache::thrift:: if (ftype == ::apache::thrift::protocol::T_MAP) { { this->part_vals.clear(); - uint32_t _size711; - ::apache::thrift::protocol::TType _ktype712; - ::apache::thrift::protocol::TType _vtype713; - xfer += iprot->readMapBegin(_ktype712, _vtype713, _size711); - uint32_t _i715; - for (_i715 = 0; _i715 < _size711; ++_i715) + uint32_t _size733; + ::apache::thrift::protocol::TType _ktype734; + ::apache::thrift::protocol::TType _vtype735; + xfer += iprot->readMapBegin(_ktype734, _vtype735, _size733); + uint32_t _i737; + for (_i737 = 0; _i737 < _size733; ++_i737) { - std::string _key716; - xfer += iprot->readString(_key716); - std::string& _val717 = this->part_vals[_key716]; - xfer += iprot->readString(_val717); + std::string _key738; + xfer += iprot->readString(_key738); + std::string& _val739 = this->part_vals[_key738]; + xfer += iprot->readString(_val739); } xfer += iprot->readMapEnd(); } @@ -14185,9 +14249,9 @@ uint32_t ThriftHiveMetastore_markPartitionForEvent_args::read(::apache::thrift:: break; case 4: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast718; - xfer += iprot->readI32(ecast718); - this->eventType = (PartitionEventType::type)ecast718; + int32_t ecast740; + xfer += iprot->readI32(ecast740); + this->eventType = (PartitionEventType::type)ecast740; this->__isset.eventType = true; } else { xfer += iprot->skip(ftype); @@ -14220,11 +14284,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 _iter719; - for (_iter719 = this->part_vals.begin(); _iter719 != this->part_vals.end(); ++_iter719) + std::map ::const_iterator _iter741; + for (_iter741 = this->part_vals.begin(); _iter741 != this->part_vals.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(); } @@ -14254,11 +14318,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 _iter720; - for (_iter720 = (*(this->part_vals)).begin(); _iter720 != (*(this->part_vals)).end(); ++_iter720) + std::map ::const_iterator _iter742; + for (_iter742 = (*(this->part_vals)).begin(); _iter742 != (*(this->part_vals)).end(); ++_iter742) { - xfer += oprot->writeString(_iter720->first); - xfer += oprot->writeString(_iter720->second); + xfer += oprot->writeString(_iter742->first); + xfer += oprot->writeString(_iter742->second); } xfer += oprot->writeMapEnd(); } @@ -14509,17 +14573,17 @@ uint32_t ThriftHiveMetastore_isPartitionMarkedForEvent_args::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_MAP) { { this->part_vals.clear(); - uint32_t _size721; - ::apache::thrift::protocol::TType _ktype722; - ::apache::thrift::protocol::TType _vtype723; - xfer += iprot->readMapBegin(_ktype722, _vtype723, _size721); - uint32_t _i725; - for (_i725 = 0; _i725 < _size721; ++_i725) + uint32_t _size743; + ::apache::thrift::protocol::TType _ktype744; + ::apache::thrift::protocol::TType _vtype745; + xfer += iprot->readMapBegin(_ktype744, _vtype745, _size743); + uint32_t _i747; + for (_i747 = 0; _i747 < _size743; ++_i747) { - std::string _key726; - xfer += iprot->readString(_key726); - std::string& _val727 = this->part_vals[_key726]; - xfer += iprot->readString(_val727); + std::string _key748; + xfer += iprot->readString(_key748); + std::string& _val749 = this->part_vals[_key748]; + xfer += iprot->readString(_val749); } xfer += iprot->readMapEnd(); } @@ -14530,9 +14594,9 @@ uint32_t ThriftHiveMetastore_isPartitionMarkedForEvent_args::read(::apache::thri break; case 4: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast728; - xfer += iprot->readI32(ecast728); - this->eventType = (PartitionEventType::type)ecast728; + int32_t ecast750; + xfer += iprot->readI32(ecast750); + this->eventType = (PartitionEventType::type)ecast750; this->__isset.eventType = true; } else { xfer += iprot->skip(ftype); @@ -14565,11 +14629,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 _iter729; - for (_iter729 = this->part_vals.begin(); _iter729 != this->part_vals.end(); ++_iter729) + std::map ::const_iterator _iter751; + for (_iter751 = this->part_vals.begin(); _iter751 != this->part_vals.end(); ++_iter751) { - xfer += oprot->writeString(_iter729->first); - xfer += oprot->writeString(_iter729->second); + xfer += oprot->writeString(_iter751->first); + xfer += oprot->writeString(_iter751->second); } xfer += oprot->writeMapEnd(); } @@ -14599,11 +14663,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 _iter730; - for (_iter730 = (*(this->part_vals)).begin(); _iter730 != (*(this->part_vals)).end(); ++_iter730) + std::map ::const_iterator _iter752; + for (_iter752 = (*(this->part_vals)).begin(); _iter752 != (*(this->part_vals)).end(); ++_iter752) { - xfer += oprot->writeString(_iter730->first); - xfer += oprot->writeString(_iter730->second); + xfer += oprot->writeString(_iter752->first); + xfer += oprot->writeString(_iter752->second); } xfer += oprot->writeMapEnd(); } @@ -15908,14 +15972,14 @@ uint32_t ThriftHiveMetastore_get_indexes_result::read(::apache::thrift::protocol if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size731; - ::apache::thrift::protocol::TType _etype734; - xfer += iprot->readListBegin(_etype734, _size731); - this->success.resize(_size731); - uint32_t _i735; - for (_i735 = 0; _i735 < _size731; ++_i735) + 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) { - xfer += this->success[_i735].read(iprot); + xfer += this->success[_i757].read(iprot); } xfer += iprot->readListEnd(); } @@ -15962,10 +16026,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 _iter736; - for (_iter736 = this->success.begin(); _iter736 != this->success.end(); ++_iter736) + std::vector ::const_iterator _iter758; + for (_iter758 = this->success.begin(); _iter758 != this->success.end(); ++_iter758) { - xfer += (*_iter736).write(oprot); + xfer += (*_iter758).write(oprot); } xfer += oprot->writeListEnd(); } @@ -16008,14 +16072,14 @@ uint32_t ThriftHiveMetastore_get_indexes_presult::read(::apache::thrift::protoco if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size737; - ::apache::thrift::protocol::TType _etype740; - xfer += iprot->readListBegin(_etype740, _size737); - (*(this->success)).resize(_size737); - uint32_t _i741; - for (_i741 = 0; _i741 < _size737; ++_i741) + uint32_t _size759; + ::apache::thrift::protocol::TType _etype762; + xfer += iprot->readListBegin(_etype762, _size759); + (*(this->success)).resize(_size759); + uint32_t _i763; + for (_i763 = 0; _i763 < _size759; ++_i763) { - xfer += (*(this->success))[_i741].read(iprot); + xfer += (*(this->success))[_i763].read(iprot); } xfer += iprot->readListEnd(); } @@ -16174,14 +16238,14 @@ uint32_t ThriftHiveMetastore_get_index_names_result::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size742; - ::apache::thrift::protocol::TType _etype745; - xfer += iprot->readListBegin(_etype745, _size742); - this->success.resize(_size742); - uint32_t _i746; - for (_i746 = 0; _i746 < _size742; ++_i746) + uint32_t _size764; + ::apache::thrift::protocol::TType _etype767; + xfer += iprot->readListBegin(_etype767, _size764); + this->success.resize(_size764); + uint32_t _i768; + for (_i768 = 0; _i768 < _size764; ++_i768) { - xfer += iprot->readString(this->success[_i746]); + xfer += iprot->readString(this->success[_i768]); } xfer += iprot->readListEnd(); } @@ -16220,10 +16284,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 _iter747; - for (_iter747 = this->success.begin(); _iter747 != this->success.end(); ++_iter747) + std::vector ::const_iterator _iter769; + for (_iter769 = this->success.begin(); _iter769 != this->success.end(); ++_iter769) { - xfer += oprot->writeString((*_iter747)); + xfer += oprot->writeString((*_iter769)); } xfer += oprot->writeListEnd(); } @@ -16262,14 +16326,14 @@ uint32_t ThriftHiveMetastore_get_index_names_presult::read(::apache::thrift::pro if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size748; - ::apache::thrift::protocol::TType _etype751; - xfer += iprot->readListBegin(_etype751, _size748); - (*(this->success)).resize(_size748); - uint32_t _i752; - for (_i752 = 0; _i752 < _size748; ++_i752) + uint32_t _size770; + ::apache::thrift::protocol::TType _etype773; + xfer += iprot->readListBegin(_etype773, _size770); + (*(this->success)).resize(_size770); + uint32_t _i774; + for (_i774 = 0; _i774 < _size770; ++_i774) { - xfer += iprot->readString((*(this->success))[_i752]); + xfer += iprot->readString((*(this->success))[_i774]); } xfer += iprot->readListEnd(); } @@ -19054,14 +19118,14 @@ uint32_t ThriftHiveMetastore_get_functions_result::read(::apache::thrift::protoc 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 += iprot->readString(this->success[_i757]); + xfer += iprot->readString(this->success[_i779]); } xfer += iprot->readListEnd(); } @@ -19100,10 +19164,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 _iter758; - for (_iter758 = this->success.begin(); _iter758 != this->success.end(); ++_iter758) + std::vector ::const_iterator _iter780; + for (_iter780 = this->success.begin(); _iter780 != this->success.end(); ++_iter780) { - xfer += oprot->writeString((*_iter758)); + xfer += oprot->writeString((*_iter780)); } xfer += oprot->writeListEnd(); } @@ -19142,14 +19206,14 @@ uint32_t ThriftHiveMetastore_get_functions_presult::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size759; - ::apache::thrift::protocol::TType _etype762; - xfer += iprot->readListBegin(_etype762, _size759); - (*(this->success)).resize(_size759); - uint32_t _i763; - for (_i763 = 0; _i763 < _size759; ++_i763) + uint32_t _size781; + ::apache::thrift::protocol::TType _etype784; + xfer += iprot->readListBegin(_etype784, _size781); + (*(this->success)).resize(_size781); + uint32_t _i785; + for (_i785 = 0; _i785 < _size781; ++_i785) { - xfer += iprot->readString((*(this->success))[_i763]); + xfer += iprot->readString((*(this->success))[_i785]); } xfer += iprot->readListEnd(); } @@ -19829,14 +19893,14 @@ uint32_t ThriftHiveMetastore_get_role_names_result::read(::apache::thrift::proto 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(); } @@ -19875,10 +19939,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 _iter769; - for (_iter769 = this->success.begin(); _iter769 != this->success.end(); ++_iter769) + std::vector ::const_iterator _iter791; + for (_iter791 = this->success.begin(); _iter791 != this->success.end(); ++_iter791) { - xfer += oprot->writeString((*_iter769)); + xfer += oprot->writeString((*_iter791)); } xfer += oprot->writeListEnd(); } @@ -19917,14 +19981,14 @@ uint32_t ThriftHiveMetastore_get_role_names_presult::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size770; - ::apache::thrift::protocol::TType _etype773; - xfer += iprot->readListBegin(_etype773, _size770); - (*(this->success)).resize(_size770); - uint32_t _i774; - for (_i774 = 0; _i774 < _size770; ++_i774) + uint32_t _size792; + ::apache::thrift::protocol::TType _etype795; + xfer += iprot->readListBegin(_etype795, _size792); + (*(this->success)).resize(_size792); + uint32_t _i796; + for (_i796 = 0; _i796 < _size792; ++_i796) { - xfer += iprot->readString((*(this->success))[_i774]); + xfer += iprot->readString((*(this->success))[_i796]); } xfer += iprot->readListEnd(); } @@ -19991,9 +20055,9 @@ uint32_t ThriftHiveMetastore_grant_role_args::read(::apache::thrift::protocol::T break; case 3: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast775; - xfer += iprot->readI32(ecast775); - this->principal_type = (PrincipalType::type)ecast775; + int32_t ecast797; + xfer += iprot->readI32(ecast797); + this->principal_type = (PrincipalType::type)ecast797; this->__isset.principal_type = true; } else { xfer += iprot->skip(ftype); @@ -20009,9 +20073,9 @@ uint32_t ThriftHiveMetastore_grant_role_args::read(::apache::thrift::protocol::T break; case 5: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast776; - xfer += iprot->readI32(ecast776); - this->grantorType = (PrincipalType::type)ecast776; + int32_t ecast798; + xfer += iprot->readI32(ecast798); + this->grantorType = (PrincipalType::type)ecast798; this->__isset.grantorType = true; } else { xfer += iprot->skip(ftype); @@ -20257,9 +20321,9 @@ uint32_t ThriftHiveMetastore_revoke_role_args::read(::apache::thrift::protocol:: break; case 3: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast777; - xfer += iprot->readI32(ecast777); - this->principal_type = (PrincipalType::type)ecast777; + int32_t ecast799; + xfer += iprot->readI32(ecast799); + this->principal_type = (PrincipalType::type)ecast799; this->__isset.principal_type = true; } else { xfer += iprot->skip(ftype); @@ -20465,9 +20529,9 @@ uint32_t ThriftHiveMetastore_list_roles_args::read(::apache::thrift::protocol::T break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast778; - xfer += iprot->readI32(ecast778); - this->principal_type = (PrincipalType::type)ecast778; + int32_t ecast800; + xfer += iprot->readI32(ecast800); + this->principal_type = (PrincipalType::type)ecast800; this->__isset.principal_type = true; } else { xfer += iprot->skip(ftype); @@ -20543,14 +20607,14 @@ uint32_t ThriftHiveMetastore_list_roles_result::read(::apache::thrift::protocol: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size779; - ::apache::thrift::protocol::TType _etype782; - xfer += iprot->readListBegin(_etype782, _size779); - this->success.resize(_size779); - uint32_t _i783; - for (_i783 = 0; _i783 < _size779; ++_i783) + 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) { - xfer += this->success[_i783].read(iprot); + xfer += this->success[_i805].read(iprot); } xfer += iprot->readListEnd(); } @@ -20589,10 +20653,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 _iter784; - for (_iter784 = this->success.begin(); _iter784 != this->success.end(); ++_iter784) + std::vector ::const_iterator _iter806; + for (_iter806 = this->success.begin(); _iter806 != this->success.end(); ++_iter806) { - xfer += (*_iter784).write(oprot); + xfer += (*_iter806).write(oprot); } xfer += oprot->writeListEnd(); } @@ -20631,14 +20695,14 @@ uint32_t ThriftHiveMetastore_list_roles_presult::read(::apache::thrift::protocol if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size785; - ::apache::thrift::protocol::TType _etype788; - xfer += iprot->readListBegin(_etype788, _size785); - (*(this->success)).resize(_size785); - uint32_t _i789; - for (_i789 = 0; _i789 < _size785; ++_i789) + uint32_t _size807; + ::apache::thrift::protocol::TType _etype810; + xfer += iprot->readListBegin(_etype810, _size807); + (*(this->success)).resize(_size807); + uint32_t _i811; + for (_i811 = 0; _i811 < _size807; ++_i811) { - xfer += (*(this->success))[_i789].read(iprot); + xfer += (*(this->success))[_i811].read(iprot); } xfer += iprot->readListEnd(); } @@ -21071,14 +21135,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 _size790; - ::apache::thrift::protocol::TType _etype793; - xfer += iprot->readListBegin(_etype793, _size790); - this->group_names.resize(_size790); - uint32_t _i794; - for (_i794 = 0; _i794 < _size790; ++_i794) + uint32_t _size812; + ::apache::thrift::protocol::TType _etype815; + xfer += iprot->readListBegin(_etype815, _size812); + this->group_names.resize(_size812); + uint32_t _i816; + for (_i816 = 0; _i816 < _size812; ++_i816) { - xfer += iprot->readString(this->group_names[_i794]); + xfer += iprot->readString(this->group_names[_i816]); } xfer += iprot->readListEnd(); } @@ -21114,10 +21178,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 _iter795; - for (_iter795 = this->group_names.begin(); _iter795 != this->group_names.end(); ++_iter795) + std::vector ::const_iterator _iter817; + for (_iter817 = this->group_names.begin(); _iter817 != this->group_names.end(); ++_iter817) { - xfer += oprot->writeString((*_iter795)); + xfer += oprot->writeString((*_iter817)); } xfer += oprot->writeListEnd(); } @@ -21143,10 +21207,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 _iter796; - for (_iter796 = (*(this->group_names)).begin(); _iter796 != (*(this->group_names)).end(); ++_iter796) + std::vector ::const_iterator _iter818; + for (_iter818 = (*(this->group_names)).begin(); _iter818 != (*(this->group_names)).end(); ++_iter818) { - xfer += oprot->writeString((*_iter796)); + xfer += oprot->writeString((*_iter818)); } xfer += oprot->writeListEnd(); } @@ -21303,9 +21367,9 @@ uint32_t ThriftHiveMetastore_list_privileges_args::read(::apache::thrift::protoc break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast797; - xfer += iprot->readI32(ecast797); - this->principal_type = (PrincipalType::type)ecast797; + int32_t ecast819; + xfer += iprot->readI32(ecast819); + this->principal_type = (PrincipalType::type)ecast819; this->__isset.principal_type = true; } else { xfer += iprot->skip(ftype); @@ -21397,14 +21461,14 @@ uint32_t ThriftHiveMetastore_list_privileges_result::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size798; - ::apache::thrift::protocol::TType _etype801; - xfer += iprot->readListBegin(_etype801, _size798); - this->success.resize(_size798); - uint32_t _i802; - for (_i802 = 0; _i802 < _size798; ++_i802) + 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) { - xfer += this->success[_i802].read(iprot); + xfer += this->success[_i824].read(iprot); } xfer += iprot->readListEnd(); } @@ -21443,10 +21507,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 _iter803; - for (_iter803 = this->success.begin(); _iter803 != this->success.end(); ++_iter803) + std::vector ::const_iterator _iter825; + for (_iter825 = this->success.begin(); _iter825 != this->success.end(); ++_iter825) { - xfer += (*_iter803).write(oprot); + xfer += (*_iter825).write(oprot); } xfer += oprot->writeListEnd(); } @@ -21485,14 +21549,14 @@ uint32_t ThriftHiveMetastore_list_privileges_presult::read(::apache::thrift::pro if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size804; - ::apache::thrift::protocol::TType _etype807; - xfer += iprot->readListBegin(_etype807, _size804); - (*(this->success)).resize(_size804); - uint32_t _i808; - for (_i808 = 0; _i808 < _size804; ++_i808) + uint32_t _size826; + ::apache::thrift::protocol::TType _etype829; + xfer += iprot->readListBegin(_etype829, _size826); + (*(this->success)).resize(_size826); + uint32_t _i830; + for (_i830 = 0; _i830 < _size826; ++_i830) { - xfer += (*(this->success))[_i808].read(iprot); + xfer += (*(this->success))[_i830].read(iprot); } xfer += iprot->readListEnd(); } @@ -21917,14 +21981,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 _size809; - ::apache::thrift::protocol::TType _etype812; - xfer += iprot->readListBegin(_etype812, _size809); - this->group_names.resize(_size809); - uint32_t _i813; - for (_i813 = 0; _i813 < _size809; ++_i813) + uint32_t _size831; + ::apache::thrift::protocol::TType _etype834; + xfer += iprot->readListBegin(_etype834, _size831); + this->group_names.resize(_size831); + uint32_t _i835; + for (_i835 = 0; _i835 < _size831; ++_i835) { - xfer += iprot->readString(this->group_names[_i813]); + xfer += iprot->readString(this->group_names[_i835]); } xfer += iprot->readListEnd(); } @@ -21956,10 +22020,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 _iter814; - for (_iter814 = this->group_names.begin(); _iter814 != this->group_names.end(); ++_iter814) + std::vector ::const_iterator _iter836; + for (_iter836 = this->group_names.begin(); _iter836 != this->group_names.end(); ++_iter836) { - xfer += oprot->writeString((*_iter814)); + xfer += oprot->writeString((*_iter836)); } xfer += oprot->writeListEnd(); } @@ -21981,10 +22045,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 _iter815; - for (_iter815 = (*(this->group_names)).begin(); _iter815 != (*(this->group_names)).end(); ++_iter815) + std::vector ::const_iterator _iter837; + for (_iter837 = (*(this->group_names)).begin(); _iter837 != (*(this->group_names)).end(); ++_iter837) { - xfer += oprot->writeString((*_iter815)); + xfer += oprot->writeString((*_iter837)); } xfer += oprot->writeListEnd(); } @@ -22019,14 +22083,14 @@ uint32_t ThriftHiveMetastore_set_ugi_result::read(::apache::thrift::protocol::TP if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size816; - ::apache::thrift::protocol::TType _etype819; - xfer += iprot->readListBegin(_etype819, _size816); - this->success.resize(_size816); - uint32_t _i820; - for (_i820 = 0; _i820 < _size816; ++_i820) + 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) { - xfer += iprot->readString(this->success[_i820]); + xfer += iprot->readString(this->success[_i842]); } xfer += iprot->readListEnd(); } @@ -22065,10 +22129,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 _iter821; - for (_iter821 = this->success.begin(); _iter821 != this->success.end(); ++_iter821) + std::vector ::const_iterator _iter843; + for (_iter843 = this->success.begin(); _iter843 != this->success.end(); ++_iter843) { - xfer += oprot->writeString((*_iter821)); + xfer += oprot->writeString((*_iter843)); } xfer += oprot->writeListEnd(); } @@ -22107,14 +22171,14 @@ uint32_t ThriftHiveMetastore_set_ugi_presult::read(::apache::thrift::protocol::T if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size822; - ::apache::thrift::protocol::TType _etype825; - xfer += iprot->readListBegin(_etype825, _size822); - (*(this->success)).resize(_size822); - uint32_t _i826; - for (_i826 = 0; _i826 < _size822; ++_i826) + uint32_t _size844; + ::apache::thrift::protocol::TType _etype847; + xfer += iprot->readListBegin(_etype847, _size844); + (*(this->success)).resize(_size844); + uint32_t _i848; + for (_i848 = 0; _i848 < _size844; ++_i848) { - xfer += iprot->readString((*(this->success))[_i826]); + xfer += iprot->readString((*(this->success))[_i848]); } xfer += iprot->readListEnd(); } @@ -26910,18 +26974,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; @@ -26933,7 +26997,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; @@ -26953,20 +27017,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; @@ -26974,21 +27038,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; @@ -27001,7 +27065,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; @@ -27021,20 +27085,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; @@ -27042,7 +27106,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) @@ -33676,30 +33740,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; @@ -33709,11 +33773,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(); @@ -33722,44 +33786,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; @@ -33769,11 +33833,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(); @@ -33782,17 +33846,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 2a1b4d7..0184344 100644 --- metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h +++ metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h @@ -47,8 +47,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; @@ -248,13 +248,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; @@ -4788,28 +4786,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; @@ -4827,7 +4825,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; @@ -4839,11 +4837,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; @@ -4851,11 +4849,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; @@ -4866,28 +4864,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; } @@ -4899,7 +4897,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; @@ -4909,56 +4907,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; @@ -4966,7 +4964,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; @@ -4988,7 +4986,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; @@ -5002,11 +5000,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; @@ -5014,11 +5012,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; @@ -5030,28 +5028,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; } @@ -5063,7 +5061,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; @@ -5073,35 +5071,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); @@ -15299,12 +15297,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(); @@ -15568,8 +15566,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); @@ -15679,8 +15677,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; @@ -16086,22 +16084,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 b18009c..2576f8a 100644 --- metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore_server.skeleton.cpp +++ metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore_server.skeleton.cpp @@ -177,14 +177,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 4f051af..00e30e1 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 @@ -100,9 +100,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; @@ -318,9 +318,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; @@ -1437,26 +1437,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; } @@ -1466,30 +1466,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; } @@ -1499,7 +1499,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 @@ -4773,19 +4773,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; @@ -4794,8 +4794,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); @@ -4804,30 +4804,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; @@ -4837,8 +4837,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); @@ -4848,13 +4848,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(); } } @@ -7570,8 +7570,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) { @@ -8513,24 +8512,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) { @@ -43793,8 +43791,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); @@ -43803,8 +43801,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 @@ -43895,13 +43893,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, @@ -43918,7 +43916,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; @@ -43936,8 +43934,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 @@ -44133,12 +44131,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; @@ -44208,13 +44206,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) { @@ -44273,7 +44271,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:"); @@ -44330,15 +44328,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) @@ -44399,7 +44397,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); @@ -44434,16 +44432,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()) { @@ -44480,7 +44478,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)) { @@ -44513,20 +44511,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 @@ -44595,32 +44593,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; } @@ -44628,9 +44624,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); } @@ -44639,38 +44640,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() { @@ -44725,7 +44741,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((Boolean)value); + setSuccess((List)value); } break; @@ -44751,7 +44767,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(); @@ -44784,21 +44800,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; } @@ -44827,7 +44843,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); @@ -44845,13 +44861,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) { @@ -44900,11 +44916,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:"); @@ -44941,23 +44961,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) @@ -44968,8 +44986,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 _list556 = iprot.readListBegin(); + struct.success = new ArrayList(_list556.size); + for (int _i557 = 0; _i557 < _list556.size; ++_i557) + { + Partition _elem558; // required + _elem558 = new Partition(); + _elem558.read(iprot); + struct.success.add(_elem558); + } + iprot.readListEnd(); + } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -45002,13 +45031,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 _iter559 : struct.success) + { + _iter559.write(oprot); + } + oprot.writeListEnd(); + } oprot.writeFieldEnd(); } if (struct.o1 != null) { @@ -45027,16 +45063,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()) { @@ -45050,7 +45086,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 _iter560 : struct.success) + { + _iter560.write(oprot); + } + } } if (struct.isSetO1()) { struct.o1.write(oprot); @@ -45061,11 +45103,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 _list561 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list561.size); + for (int _i562 = 0; _i562 < _list561.size; ++_i562) + { + Partition _elem563; // required + _elem563 = new Partition(); + _elem563.read(iprot); + struct.success.add(_elem563); + } + } struct.setSuccessIsSet(true); } if (incoming.get(1)) { @@ -45083,8 +45135,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); @@ -45094,8 +45146,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 @@ -45192,13 +45244,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, @@ -45217,7 +45269,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; @@ -45238,8 +45290,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 @@ -45472,12 +45524,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; @@ -45561,13 +45613,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) { @@ -45636,7 +45688,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:"); @@ -45704,15 +45756,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) @@ -45741,13 +45793,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 _list556 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list556.size); - for (int _i557 = 0; _i557 < _list556.size; ++_i557) + org.apache.thrift.protocol.TList _list564 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list564.size); + for (int _i565 = 0; _i565 < _list564.size; ++_i565) { - String _elem558; // required - _elem558 = iprot.readString(); - struct.part_vals.add(_elem558); + String _elem566; // required + _elem566 = iprot.readString(); + struct.part_vals.add(_elem566); } iprot.readListEnd(); } @@ -45782,7 +45834,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); @@ -45800,9 +45852,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 _iter559 : struct.part_vals) + for (String _iter567 : struct.part_vals) { - oprot.writeString(_iter559); + oprot.writeString(_iter567); } oprot.writeListEnd(); } @@ -45822,16 +45874,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()) { @@ -45859,9 +45911,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 _iter560 : struct.part_vals) + for (String _iter568 : struct.part_vals) { - oprot.writeString(_iter560); + oprot.writeString(_iter568); } } } @@ -45874,7 +45926,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)) { @@ -45887,13 +45939,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_with_ } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list561 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list561.size); - for (int _i562 = 0; _i562 < _list561.size; ++_i562) + org.apache.thrift.protocol.TList _list569 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list569.size); + for (int _i570 = 0; _i570 < _list569.size; ++_i570) { - String _elem563; // required - _elem563 = iprot.readString(); - struct.part_vals.add(_elem563); + String _elem571; // required + _elem571 = iprot.readString(); + struct.part_vals.add(_elem571); } } struct.setPart_valsIsSet(true); @@ -45912,20 +45964,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 @@ -45994,32 +46046,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; } @@ -46027,9 +46077,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); } @@ -46038,38 +46093,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() { @@ -46124,7 +46194,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((Boolean)value); + setSuccess((List)value); } break; @@ -46150,7 +46220,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(); @@ -46183,21 +46253,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; } @@ -46226,7 +46296,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); @@ -46244,13 +46314,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) { @@ -46299,11 +46369,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:"); @@ -46340,23 +46414,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) @@ -46367,8 +46439,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 _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); @@ -46401,13 +46484,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 _iter575 : struct.success) + { + _iter575.write(oprot); + } + oprot.writeListEnd(); + } oprot.writeFieldEnd(); } if (struct.o1 != null) { @@ -46426,16 +46516,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()) { @@ -46449,7 +46539,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 _iter576 : struct.success) + { + _iter576.write(oprot); + } + } } if (struct.isSetO1()) { struct.o1.write(oprot); @@ -46460,11 +46556,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 _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)) { @@ -50498,13 +50604,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 _list564 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list564.size); - for (int _i565 = 0; _i565 < _list564.size; ++_i565) + org.apache.thrift.protocol.TList _list580 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list580.size); + for (int _i581 = 0; _i581 < _list580.size; ++_i581) { - String _elem566; // required - _elem566 = iprot.readString(); - struct.part_vals.add(_elem566); + String _elem582; // required + _elem582 = iprot.readString(); + struct.part_vals.add(_elem582); } iprot.readListEnd(); } @@ -50540,9 +50646,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 _iter567 : struct.part_vals) + for (String _iter583 : struct.part_vals) { - oprot.writeString(_iter567); + oprot.writeString(_iter583); } oprot.writeListEnd(); } @@ -50585,9 +50691,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 _iter568 : struct.part_vals) + for (String _iter584 : struct.part_vals) { - oprot.writeString(_iter568); + oprot.writeString(_iter584); } } } @@ -50607,13 +50713,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_args s } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list569 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list569.size); - for (int _i570 = 0; _i570 < _list569.size; ++_i570) + 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 _elem571; // required - _elem571 = iprot.readString(); - struct.part_vals.add(_elem571); + String _elem587; // required + _elem587 = iprot.readString(); + struct.part_vals.add(_elem587); } } struct.setPart_valsIsSet(true); @@ -51842,15 +51948,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 _map572 = iprot.readMapBegin(); - struct.partitionSpecs = new HashMap(2*_map572.size); - for (int _i573 = 0; _i573 < _map572.size; ++_i573) + org.apache.thrift.protocol.TMap _map588 = iprot.readMapBegin(); + struct.partitionSpecs = new HashMap(2*_map588.size); + for (int _i589 = 0; _i589 < _map588.size; ++_i589) { - String _key574; // required - String _val575; // required - _key574 = iprot.readString(); - _val575 = iprot.readString(); - struct.partitionSpecs.put(_key574, _val575); + String _key590; // required + String _val591; // required + _key590 = iprot.readString(); + _val591 = iprot.readString(); + struct.partitionSpecs.put(_key590, _val591); } iprot.readMapEnd(); } @@ -51908,10 +52014,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 _iter576 : struct.partitionSpecs.entrySet()) + for (Map.Entry _iter592 : struct.partitionSpecs.entrySet()) { - oprot.writeString(_iter576.getKey()); - oprot.writeString(_iter576.getValue()); + oprot.writeString(_iter592.getKey()); + oprot.writeString(_iter592.getValue()); } oprot.writeMapEnd(); } @@ -51974,10 +52080,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, exchange_partition_ if (struct.isSetPartitionSpecs()) { { oprot.writeI32(struct.partitionSpecs.size()); - for (Map.Entry _iter577 : struct.partitionSpecs.entrySet()) + for (Map.Entry _iter593 : struct.partitionSpecs.entrySet()) { - oprot.writeString(_iter577.getKey()); - oprot.writeString(_iter577.getValue()); + oprot.writeString(_iter593.getKey()); + oprot.writeString(_iter593.getValue()); } } } @@ -52001,15 +52107,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 _map578 = 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*_map578.size); - for (int _i579 = 0; _i579 < _map578.size; ++_i579) + 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) { - String _key580; // required - String _val581; // required - _key580 = iprot.readString(); - _val581 = iprot.readString(); - struct.partitionSpecs.put(_key580, _val581); + String _key596; // required + String _val597; // required + _key596 = iprot.readString(); + _val597 = iprot.readString(); + struct.partitionSpecs.put(_key596, _val597); } } struct.setPartitionSpecsIsSet(true); @@ -53497,13 +53603,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 _list582 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list582.size); - for (int _i583 = 0; _i583 < _list582.size; ++_i583) + org.apache.thrift.protocol.TList _list598 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list598.size); + for (int _i599 = 0; _i599 < _list598.size; ++_i599) { - String _elem584; // required - _elem584 = iprot.readString(); - struct.part_vals.add(_elem584); + String _elem600; // required + _elem600 = iprot.readString(); + struct.part_vals.add(_elem600); } iprot.readListEnd(); } @@ -53523,13 +53629,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 _list585 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list585.size); - for (int _i586 = 0; _i586 < _list585.size; ++_i586) + org.apache.thrift.protocol.TList _list601 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list601.size); + for (int _i602 = 0; _i602 < _list601.size; ++_i602) { - String _elem587; // required - _elem587 = iprot.readString(); - struct.group_names.add(_elem587); + String _elem603; // required + _elem603 = iprot.readString(); + struct.group_names.add(_elem603); } iprot.readListEnd(); } @@ -53565,9 +53671,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 _iter588 : struct.part_vals) + for (String _iter604 : struct.part_vals) { - oprot.writeString(_iter588); + oprot.writeString(_iter604); } oprot.writeListEnd(); } @@ -53582,9 +53688,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 _iter589 : struct.group_names) + for (String _iter605 : struct.group_names) { - oprot.writeString(_iter589); + oprot.writeString(_iter605); } oprot.writeListEnd(); } @@ -53633,9 +53739,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 _iter590 : struct.part_vals) + for (String _iter606 : struct.part_vals) { - oprot.writeString(_iter590); + oprot.writeString(_iter606); } } } @@ -53645,9 +53751,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 _iter591 : struct.group_names) + for (String _iter607 : struct.group_names) { - oprot.writeString(_iter591); + oprot.writeString(_iter607); } } } @@ -53667,13 +53773,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_with_a } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list592 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list592.size); - for (int _i593 = 0; _i593 < _list592.size; ++_i593) + 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) { - String _elem594; // required - _elem594 = iprot.readString(); - struct.part_vals.add(_elem594); + String _elem610; // required + _elem610 = iprot.readString(); + struct.part_vals.add(_elem610); } } struct.setPart_valsIsSet(true); @@ -53684,13 +53790,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_with_a } if (incoming.get(4)) { { - org.apache.thrift.protocol.TList _list595 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list595.size); - for (int _i596 = 0; _i596 < _list595.size; ++_i596) + org.apache.thrift.protocol.TList _list611 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list611.size); + for (int _i612 = 0; _i612 < _list611.size; ++_i612) { - String _elem597; // required - _elem597 = iprot.readString(); - struct.group_names.add(_elem597); + String _elem613; // required + _elem613 = iprot.readString(); + struct.group_names.add(_elem613); } } struct.setGroup_namesIsSet(true); @@ -56459,14 +56565,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 _list598 = iprot.readListBegin(); - struct.success = new ArrayList(_list598.size); - for (int _i599 = 0; _i599 < _list598.size; ++_i599) + org.apache.thrift.protocol.TList _list614 = iprot.readListBegin(); + struct.success = new ArrayList(_list614.size); + for (int _i615 = 0; _i615 < _list614.size; ++_i615) { - Partition _elem600; // required - _elem600 = new Partition(); - _elem600.read(iprot); - struct.success.add(_elem600); + Partition _elem616; // required + _elem616 = new Partition(); + _elem616.read(iprot); + struct.success.add(_elem616); } iprot.readListEnd(); } @@ -56510,9 +56616,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 _iter601 : struct.success) + for (Partition _iter617 : struct.success) { - _iter601.write(oprot); + _iter617.write(oprot); } oprot.writeListEnd(); } @@ -56559,9 +56665,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_resu if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter602 : struct.success) + for (Partition _iter618 : struct.success) { - _iter602.write(oprot); + _iter618.write(oprot); } } } @@ -56579,14 +56685,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 _list603 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list603.size); - for (int _i604 = 0; _i604 < _list603.size; ++_i604) + org.apache.thrift.protocol.TList _list619 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list619.size); + for (int _i620 = 0; _i620 < _list619.size; ++_i620) { - Partition _elem605; // required - _elem605 = new Partition(); - _elem605.read(iprot); - struct.success.add(_elem605); + Partition _elem621; // required + _elem621 = new Partition(); + _elem621.read(iprot); + struct.success.add(_elem621); } } struct.setSuccessIsSet(true); @@ -57279,13 +57385,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 _list606 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list606.size); - for (int _i607 = 0; _i607 < _list606.size; ++_i607) + org.apache.thrift.protocol.TList _list622 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list622.size); + for (int _i623 = 0; _i623 < _list622.size; ++_i623) { - String _elem608; // required - _elem608 = iprot.readString(); - struct.group_names.add(_elem608); + String _elem624; // required + _elem624 = iprot.readString(); + struct.group_names.add(_elem624); } iprot.readListEnd(); } @@ -57329,9 +57435,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 _iter609 : struct.group_names) + for (String _iter625 : struct.group_names) { - oprot.writeString(_iter609); + oprot.writeString(_iter625); } oprot.writeListEnd(); } @@ -57386,9 +57492,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 _iter610 : struct.group_names) + for (String _iter626 : struct.group_names) { - oprot.writeString(_iter610); + oprot.writeString(_iter626); } } } @@ -57416,13 +57522,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_with_ } 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); @@ -57909,14 +58015,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 _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(); } @@ -57960,9 +58066,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 _iter617 : struct.success) + for (Partition _iter633 : struct.success) { - _iter617.write(oprot); + _iter633.write(oprot); } oprot.writeListEnd(); } @@ -58009,9 +58115,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_with if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter618 : struct.success) + for (Partition _iter634 : struct.success) { - _iter618.write(oprot); + _iter634.write(oprot); } } } @@ -58029,14 +58135,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 _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); @@ -59018,13 +59124,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 _list622 = iprot.readListBegin(); - struct.success = new ArrayList(_list622.size); - for (int _i623 = 0; _i623 < _list622.size; ++_i623) + org.apache.thrift.protocol.TList _list638 = iprot.readListBegin(); + struct.success = new ArrayList(_list638.size); + for (int _i639 = 0; _i639 < _list638.size; ++_i639) { - String _elem624; // required - _elem624 = iprot.readString(); - struct.success.add(_elem624); + String _elem640; // required + _elem640 = iprot.readString(); + struct.success.add(_elem640); } iprot.readListEnd(); } @@ -59059,9 +59165,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 _iter625 : struct.success) + for (String _iter641 : struct.success) { - oprot.writeString(_iter625); + oprot.writeString(_iter641); } oprot.writeListEnd(); } @@ -59100,9 +59206,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_names if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter626 : struct.success) + for (String _iter642 : struct.success) { - oprot.writeString(_iter626); + oprot.writeString(_iter642); } } } @@ -59117,13 +59223,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 _list627 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = 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.success = new ArrayList(_list643.size); + for (int _i644 = 0; _i644 < _list643.size; ++_i644) { - String _elem629; // required - _elem629 = iprot.readString(); - struct.success.add(_elem629); + String _elem645; // required + _elem645 = iprot.readString(); + struct.success.add(_elem645); } } struct.setSuccessIsSet(true); @@ -59714,13 +59820,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 _list630 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list630.size); - for (int _i631 = 0; _i631 < _list630.size; ++_i631) + org.apache.thrift.protocol.TList _list646 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list646.size); + for (int _i647 = 0; _i647 < _list646.size; ++_i647) { - String _elem632; // required - _elem632 = iprot.readString(); - struct.part_vals.add(_elem632); + String _elem648; // required + _elem648 = iprot.readString(); + struct.part_vals.add(_elem648); } iprot.readListEnd(); } @@ -59764,9 +59870,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 _iter633 : struct.part_vals) + for (String _iter649 : struct.part_vals) { - oprot.writeString(_iter633); + oprot.writeString(_iter649); } oprot.writeListEnd(); } @@ -59815,9 +59921,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 _iter634 : struct.part_vals) + for (String _iter650 : struct.part_vals) { - oprot.writeString(_iter634); + oprot.writeString(_iter650); } } } @@ -59840,13 +59946,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_ar } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list635 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list635.size); - for (int _i636 = 0; _i636 < _list635.size; ++_i636) + 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) { - String _elem637; // required - _elem637 = iprot.readString(); - struct.part_vals.add(_elem637); + String _elem653; // required + _elem653 = iprot.readString(); + struct.part_vals.add(_elem653); } } struct.setPart_valsIsSet(true); @@ -60337,14 +60443,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 _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) { - Partition _elem640; // required - _elem640 = new Partition(); - _elem640.read(iprot); - struct.success.add(_elem640); + Partition _elem656; // required + _elem656 = new Partition(); + _elem656.read(iprot); + struct.success.add(_elem656); } iprot.readListEnd(); } @@ -60388,9 +60494,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 _iter641 : struct.success) + for (Partition _iter657 : struct.success) { - _iter641.write(oprot); + _iter657.write(oprot); } oprot.writeListEnd(); } @@ -60437,9 +60543,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_r if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter642 : struct.success) + for (Partition _iter658 : struct.success) { - _iter642.write(oprot); + _iter658.write(oprot); } } } @@ -60457,14 +60563,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 _list643 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, 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.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list659.size); + for (int _i660 = 0; _i660 < _list659.size; ++_i660) { - Partition _elem645; // required - _elem645 = new Partition(); - _elem645.read(iprot); - struct.success.add(_elem645); + Partition _elem661; // required + _elem661 = new Partition(); + _elem661.read(iprot); + struct.success.add(_elem661); } } struct.setSuccessIsSet(true); @@ -61242,13 +61348,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 _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(); } @@ -61276,13 +61382,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 _list649 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list649.size); - for (int _i650 = 0; _i650 < _list649.size; ++_i650) + org.apache.thrift.protocol.TList _list665 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list665.size); + for (int _i666 = 0; _i666 < _list665.size; ++_i666) { - String _elem651; // required - _elem651 = iprot.readString(); - struct.group_names.add(_elem651); + String _elem667; // required + _elem667 = iprot.readString(); + struct.group_names.add(_elem667); } iprot.readListEnd(); } @@ -61318,9 +61424,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 _iter652 : struct.part_vals) + for (String _iter668 : struct.part_vals) { - oprot.writeString(_iter652); + oprot.writeString(_iter668); } oprot.writeListEnd(); } @@ -61338,9 +61444,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 _iter653 : struct.group_names) + for (String _iter669 : struct.group_names) { - oprot.writeString(_iter653); + oprot.writeString(_iter669); } oprot.writeListEnd(); } @@ -61392,9 +61498,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 _iter654 : struct.part_vals) + for (String _iter670 : struct.part_vals) { - oprot.writeString(_iter654); + oprot.writeString(_iter670); } } } @@ -61407,9 +61513,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 _iter655 : struct.group_names) + for (String _iter671 : struct.group_names) { - oprot.writeString(_iter655); + oprot.writeString(_iter671); } } } @@ -61429,13 +61535,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_wi } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list656 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list656.size); - for (int _i657 = 0; _i657 < _list656.size; ++_i657) + 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) { - String _elem658; // required - _elem658 = iprot.readString(); - struct.part_vals.add(_elem658); + String _elem674; // required + _elem674 = iprot.readString(); + struct.part_vals.add(_elem674); } } struct.setPart_valsIsSet(true); @@ -61450,13 +61556,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_wi } if (incoming.get(5)) { { - org.apache.thrift.protocol.TList _list659 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = 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.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list675.size); + for (int _i676 = 0; _i676 < _list675.size; ++_i676) { - String _elem661; // required - _elem661 = iprot.readString(); - struct.group_names.add(_elem661); + String _elem677; // required + _elem677 = iprot.readString(); + struct.group_names.add(_elem677); } } struct.setGroup_namesIsSet(true); @@ -61943,14 +62049,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 _list662 = iprot.readListBegin(); - struct.success = new ArrayList(_list662.size); - for (int _i663 = 0; _i663 < _list662.size; ++_i663) + org.apache.thrift.protocol.TList _list678 = iprot.readListBegin(); + struct.success = new ArrayList(_list678.size); + for (int _i679 = 0; _i679 < _list678.size; ++_i679) { - Partition _elem664; // required - _elem664 = new Partition(); - _elem664.read(iprot); - struct.success.add(_elem664); + Partition _elem680; // required + _elem680 = new Partition(); + _elem680.read(iprot); + struct.success.add(_elem680); } iprot.readListEnd(); } @@ -61994,9 +62100,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 _iter665 : struct.success) + for (Partition _iter681 : struct.success) { - _iter665.write(oprot); + _iter681.write(oprot); } oprot.writeListEnd(); } @@ -62043,9 +62149,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_w if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter666 : struct.success) + for (Partition _iter682 : struct.success) { - _iter666.write(oprot); + _iter682.write(oprot); } } } @@ -62063,14 +62169,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 _list667 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list667.size); - for (int _i668 = 0; _i668 < _list667.size; ++_i668) + 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) { - Partition _elem669; // required - _elem669 = new Partition(); - _elem669.read(iprot); - struct.success.add(_elem669); + Partition _elem685; // required + _elem685 = new Partition(); + _elem685.read(iprot); + struct.success.add(_elem685); } } struct.setSuccessIsSet(true); @@ -62666,13 +62772,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 _list670 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list670.size); - for (int _i671 = 0; _i671 < _list670.size; ++_i671) + org.apache.thrift.protocol.TList _list686 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list686.size); + for (int _i687 = 0; _i687 < _list686.size; ++_i687) { - String _elem672; // required - _elem672 = iprot.readString(); - struct.part_vals.add(_elem672); + String _elem688; // required + _elem688 = iprot.readString(); + struct.part_vals.add(_elem688); } iprot.readListEnd(); } @@ -62716,9 +62822,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 _iter673 : struct.part_vals) + for (String _iter689 : struct.part_vals) { - oprot.writeString(_iter673); + oprot.writeString(_iter689); } oprot.writeListEnd(); } @@ -62767,9 +62873,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 _iter674 : struct.part_vals) + for (String _iter690 : struct.part_vals) { - oprot.writeString(_iter674); + oprot.writeString(_iter690); } } } @@ -62792,13 +62898,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_names_ } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list675 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = 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.part_vals = new ArrayList(_list691.size); + for (int _i692 = 0; _i692 < _list691.size; ++_i692) { - String _elem677; // required - _elem677 = iprot.readString(); - struct.part_vals.add(_elem677); + String _elem693; // required + _elem693 = iprot.readString(); + struct.part_vals.add(_elem693); } } struct.setPart_valsIsSet(true); @@ -63289,13 +63395,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 _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) { - String _elem680; // required - _elem680 = iprot.readString(); - struct.success.add(_elem680); + String _elem696; // required + _elem696 = iprot.readString(); + struct.success.add(_elem696); } iprot.readListEnd(); } @@ -63339,9 +63445,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 _iter681 : struct.success) + for (String _iter697 : struct.success) { - oprot.writeString(_iter681); + oprot.writeString(_iter697); } oprot.writeListEnd(); } @@ -63388,9 +63494,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_names if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter682 : struct.success) + for (String _iter698 : struct.success) { - oprot.writeString(_iter682); + oprot.writeString(_iter698); } } } @@ -63408,13 +63514,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 _list683 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, 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.STRING, iprot.readI32()); + struct.success = new ArrayList(_list699.size); + for (int _i700 = 0; _i700 < _list699.size; ++_i700) { - String _elem685; // required - _elem685 = iprot.readString(); - struct.success.add(_elem685); + String _elem701; // required + _elem701 = iprot.readString(); + struct.success.add(_elem701); } } struct.setSuccessIsSet(true); @@ -64581,14 +64687,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 _list686 = iprot.readListBegin(); - struct.success = new ArrayList(_list686.size); - for (int _i687 = 0; _i687 < _list686.size; ++_i687) + org.apache.thrift.protocol.TList _list702 = iprot.readListBegin(); + struct.success = new ArrayList(_list702.size); + for (int _i703 = 0; _i703 < _list702.size; ++_i703) { - Partition _elem688; // required - _elem688 = new Partition(); - _elem688.read(iprot); - struct.success.add(_elem688); + Partition _elem704; // required + _elem704 = new Partition(); + _elem704.read(iprot); + struct.success.add(_elem704); } iprot.readListEnd(); } @@ -64632,9 +64738,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 _iter689 : struct.success) + for (Partition _iter705 : struct.success) { - _iter689.write(oprot); + _iter705.write(oprot); } oprot.writeListEnd(); } @@ -64681,9 +64787,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_f if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter690 : struct.success) + for (Partition _iter706 : struct.success) { - _iter690.write(oprot); + _iter706.write(oprot); } } } @@ -64701,14 +64807,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 _list691 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = 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.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list707.size); + for (int _i708 = 0; _i708 < _list707.size; ++_i708) { - Partition _elem693; // required - _elem693 = new Partition(); - _elem693.read(iprot); - struct.success.add(_elem693); + Partition _elem709; // required + _elem709 = new Partition(); + _elem709.read(iprot); + struct.success.add(_elem709); } } struct.setSuccessIsSet(true); @@ -66159,13 +66265,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 _list694 = iprot.readListBegin(); - struct.names = new ArrayList(_list694.size); - for (int _i695 = 0; _i695 < _list694.size; ++_i695) + org.apache.thrift.protocol.TList _list710 = iprot.readListBegin(); + struct.names = new ArrayList(_list710.size); + for (int _i711 = 0; _i711 < _list710.size; ++_i711) { - String _elem696; // required - _elem696 = iprot.readString(); - struct.names.add(_elem696); + String _elem712; // required + _elem712 = iprot.readString(); + struct.names.add(_elem712); } iprot.readListEnd(); } @@ -66201,9 +66307,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 _iter697 : struct.names) + for (String _iter713 : struct.names) { - oprot.writeString(_iter697); + oprot.writeString(_iter713); } oprot.writeListEnd(); } @@ -66246,9 +66352,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_n if (struct.isSetNames()) { { oprot.writeI32(struct.names.size()); - for (String _iter698 : struct.names) + for (String _iter714 : struct.names) { - oprot.writeString(_iter698); + oprot.writeString(_iter714); } } } @@ -66268,13 +66374,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_na } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list699 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.names = 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.names = new ArrayList(_list715.size); + for (int _i716 = 0; _i716 < _list715.size; ++_i716) { - String _elem701; // required - _elem701 = iprot.readString(); - struct.names.add(_elem701); + String _elem717; // required + _elem717 = iprot.readString(); + struct.names.add(_elem717); } } struct.setNamesIsSet(true); @@ -66761,14 +66867,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 _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(); } @@ -66812,9 +66918,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(); } @@ -66861,9 +66967,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_n if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter706 : struct.success) + for (Partition _iter722 : struct.success) { - _iter706.write(oprot); + _iter722.write(oprot); } } } @@ -66881,14 +66987,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 _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); @@ -68438,14 +68544,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 _list710 = iprot.readListBegin(); - struct.new_parts = new ArrayList(_list710.size); - for (int _i711 = 0; _i711 < _list710.size; ++_i711) + org.apache.thrift.protocol.TList _list726 = iprot.readListBegin(); + struct.new_parts = new ArrayList(_list726.size); + for (int _i727 = 0; _i727 < _list726.size; ++_i727) { - Partition _elem712; // required - _elem712 = new Partition(); - _elem712.read(iprot); - struct.new_parts.add(_elem712); + Partition _elem728; // required + _elem728 = new Partition(); + _elem728.read(iprot); + struct.new_parts.add(_elem728); } iprot.readListEnd(); } @@ -68481,9 +68587,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 _iter713 : struct.new_parts) + for (Partition _iter729 : struct.new_parts) { - _iter713.write(oprot); + _iter729.write(oprot); } oprot.writeListEnd(); } @@ -68526,9 +68632,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 _iter714 : struct.new_parts) + for (Partition _iter730 : struct.new_parts) { - _iter714.write(oprot); + _iter730.write(oprot); } } } @@ -68548,14 +68654,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, alter_partitions_arg } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list715 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.new_parts = 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.STRUCT, iprot.readI32()); + struct.new_parts = new ArrayList(_list731.size); + for (int _i732 = 0; _i732 < _list731.size; ++_i732) { - Partition _elem717; // required - _elem717 = new Partition(); - _elem717.read(iprot); - struct.new_parts.add(_elem717); + Partition _elem733; // required + _elem733 = new Partition(); + _elem733.read(iprot); + struct.new_parts.add(_elem733); } } struct.setNew_partsIsSet(true); @@ -70754,13 +70860,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 _list718 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list718.size); - for (int _i719 = 0; _i719 < _list718.size; ++_i719) + org.apache.thrift.protocol.TList _list734 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list734.size); + for (int _i735 = 0; _i735 < _list734.size; ++_i735) { - String _elem720; // required - _elem720 = iprot.readString(); - struct.part_vals.add(_elem720); + String _elem736; // required + _elem736 = iprot.readString(); + struct.part_vals.add(_elem736); } iprot.readListEnd(); } @@ -70805,9 +70911,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 _iter721 : struct.part_vals) + for (String _iter737 : struct.part_vals) { - oprot.writeString(_iter721); + oprot.writeString(_iter737); } oprot.writeListEnd(); } @@ -70858,9 +70964,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 _iter722 : struct.part_vals) + for (String _iter738 : struct.part_vals) { - oprot.writeString(_iter722); + oprot.writeString(_iter738); } } } @@ -70883,13 +70989,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, rename_partition_arg } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list723 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = 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.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list739.size); + for (int _i740 = 0; _i740 < _list739.size; ++_i740) { - String _elem725; // required - _elem725 = iprot.readString(); - struct.part_vals.add(_elem725); + String _elem741; // required + _elem741 = iprot.readString(); + struct.part_vals.add(_elem741); } } struct.setPart_valsIsSet(true); @@ -71766,13 +71872,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 _list726 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list726.size); - for (int _i727 = 0; _i727 < _list726.size; ++_i727) + org.apache.thrift.protocol.TList _list742 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list742.size); + for (int _i743 = 0; _i743 < _list742.size; ++_i743) { - String _elem728; // required - _elem728 = iprot.readString(); - struct.part_vals.add(_elem728); + String _elem744; // required + _elem744 = iprot.readString(); + struct.part_vals.add(_elem744); } iprot.readListEnd(); } @@ -71806,9 +71912,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 _iter729 : struct.part_vals) + for (String _iter745 : struct.part_vals) { - oprot.writeString(_iter729); + oprot.writeString(_iter745); } oprot.writeListEnd(); } @@ -71845,9 +71951,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 _iter730 : struct.part_vals) + for (String _iter746 : struct.part_vals) { - oprot.writeString(_iter730); + oprot.writeString(_iter746); } } } @@ -71862,13 +71968,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 _list731 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = 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.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list747.size); + for (int _i748 = 0; _i748 < _list747.size; ++_i748) { - String _elem733; // required - _elem733 = iprot.readString(); - struct.part_vals.add(_elem733); + String _elem749; // required + _elem749 = iprot.readString(); + struct.part_vals.add(_elem749); } } struct.setPart_valsIsSet(true); @@ -74026,13 +74132,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 _list734 = iprot.readListBegin(); - struct.success = new ArrayList(_list734.size); - for (int _i735 = 0; _i735 < _list734.size; ++_i735) + org.apache.thrift.protocol.TList _list750 = iprot.readListBegin(); + struct.success = new ArrayList(_list750.size); + for (int _i751 = 0; _i751 < _list750.size; ++_i751) { - String _elem736; // required - _elem736 = iprot.readString(); - struct.success.add(_elem736); + String _elem752; // required + _elem752 = iprot.readString(); + struct.success.add(_elem752); } iprot.readListEnd(); } @@ -74067,9 +74173,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 _iter737 : struct.success) + for (String _iter753 : struct.success) { - oprot.writeString(_iter737); + oprot.writeString(_iter753); } oprot.writeListEnd(); } @@ -74108,9 +74214,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, partition_name_to_v if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter738 : struct.success) + for (String _iter754 : struct.success) { - oprot.writeString(_iter738); + oprot.writeString(_iter754); } } } @@ -74125,13 +74231,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 _list739 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = 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.success = new ArrayList(_list755.size); + for (int _i756 = 0; _i756 < _list755.size; ++_i756) { - String _elem741; // required - _elem741 = iprot.readString(); - struct.success.add(_elem741); + String _elem757; // required + _elem757 = iprot.readString(); + struct.success.add(_elem757); } } struct.setSuccessIsSet(true); @@ -74905,15 +75011,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 _map742 = iprot.readMapBegin(); - struct.success = new HashMap(2*_map742.size); - for (int _i743 = 0; _i743 < _map742.size; ++_i743) + org.apache.thrift.protocol.TMap _map758 = iprot.readMapBegin(); + struct.success = new HashMap(2*_map758.size); + for (int _i759 = 0; _i759 < _map758.size; ++_i759) { - String _key744; // required - String _val745; // required - _key744 = iprot.readString(); - _val745 = iprot.readString(); - struct.success.put(_key744, _val745); + String _key760; // required + String _val761; // required + _key760 = iprot.readString(); + _val761 = iprot.readString(); + struct.success.put(_key760, _val761); } iprot.readMapEnd(); } @@ -74948,10 +75054,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 _iter746 : struct.success.entrySet()) + for (Map.Entry _iter762 : struct.success.entrySet()) { - oprot.writeString(_iter746.getKey()); - oprot.writeString(_iter746.getValue()); + oprot.writeString(_iter762.getKey()); + oprot.writeString(_iter762.getValue()); } oprot.writeMapEnd(); } @@ -74990,10 +75096,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 _iter747 : struct.success.entrySet()) + for (Map.Entry _iter763 : struct.success.entrySet()) { - oprot.writeString(_iter747.getKey()); - oprot.writeString(_iter747.getValue()); + oprot.writeString(_iter763.getKey()); + oprot.writeString(_iter763.getValue()); } } } @@ -75008,15 +75114,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 _map748 = 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*_map748.size); - for (int _i749 = 0; _i749 < _map748.size; ++_i749) + 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) { - String _key750; // required - String _val751; // required - _key750 = iprot.readString(); - _val751 = iprot.readString(); - struct.success.put(_key750, _val751); + String _key766; // required + String _val767; // required + _key766 = iprot.readString(); + _val767 = iprot.readString(); + struct.success.put(_key766, _val767); } } struct.setSuccessIsSet(true); @@ -75622,15 +75728,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 _map752 = iprot.readMapBegin(); - struct.part_vals = new HashMap(2*_map752.size); - for (int _i753 = 0; _i753 < _map752.size; ++_i753) + org.apache.thrift.protocol.TMap _map768 = iprot.readMapBegin(); + struct.part_vals = new HashMap(2*_map768.size); + for (int _i769 = 0; _i769 < _map768.size; ++_i769) { - String _key754; // required - String _val755; // required - _key754 = iprot.readString(); - _val755 = iprot.readString(); - struct.part_vals.put(_key754, _val755); + String _key770; // required + String _val771; // required + _key770 = iprot.readString(); + _val771 = iprot.readString(); + struct.part_vals.put(_key770, _val771); } iprot.readMapEnd(); } @@ -75674,10 +75780,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 _iter756 : struct.part_vals.entrySet()) + for (Map.Entry _iter772 : struct.part_vals.entrySet()) { - oprot.writeString(_iter756.getKey()); - oprot.writeString(_iter756.getValue()); + oprot.writeString(_iter772.getKey()); + oprot.writeString(_iter772.getValue()); } oprot.writeMapEnd(); } @@ -75728,10 +75834,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, markPartitionForEve if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (Map.Entry _iter757 : struct.part_vals.entrySet()) + for (Map.Entry _iter773 : struct.part_vals.entrySet()) { - oprot.writeString(_iter757.getKey()); - oprot.writeString(_iter757.getValue()); + oprot.writeString(_iter773.getKey()); + oprot.writeString(_iter773.getValue()); } } } @@ -75754,15 +75860,15 @@ public void read(org.apache.thrift.protocol.TProtocol prot, markPartitionForEven } if (incoming.get(2)) { { - org.apache.thrift.protocol.TMap _map758 = 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*_map758.size); - for (int _i759 = 0; _i759 < _map758.size; ++_i759) + 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) { - String _key760; // required - String _val761; // required - _key760 = iprot.readString(); - _val761 = iprot.readString(); - struct.part_vals.put(_key760, _val761); + String _key776; // required + String _val777; // required + _key776 = iprot.readString(); + _val777 = iprot.readString(); + struct.part_vals.put(_key776, _val777); } } struct.setPart_valsIsSet(true); @@ -77257,15 +77363,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 _map762 = iprot.readMapBegin(); - struct.part_vals = new HashMap(2*_map762.size); - for (int _i763 = 0; _i763 < _map762.size; ++_i763) + org.apache.thrift.protocol.TMap _map778 = iprot.readMapBegin(); + struct.part_vals = new HashMap(2*_map778.size); + for (int _i779 = 0; _i779 < _map778.size; ++_i779) { - String _key764; // required - String _val765; // required - _key764 = iprot.readString(); - _val765 = iprot.readString(); - struct.part_vals.put(_key764, _val765); + String _key780; // required + String _val781; // required + _key780 = iprot.readString(); + _val781 = iprot.readString(); + struct.part_vals.put(_key780, _val781); } iprot.readMapEnd(); } @@ -77309,10 +77415,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 _iter766 : struct.part_vals.entrySet()) + for (Map.Entry _iter782 : struct.part_vals.entrySet()) { - oprot.writeString(_iter766.getKey()); - oprot.writeString(_iter766.getValue()); + oprot.writeString(_iter782.getKey()); + oprot.writeString(_iter782.getValue()); } oprot.writeMapEnd(); } @@ -77363,10 +77469,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, isPartitionMarkedFo if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (Map.Entry _iter767 : struct.part_vals.entrySet()) + for (Map.Entry _iter783 : struct.part_vals.entrySet()) { - oprot.writeString(_iter767.getKey()); - oprot.writeString(_iter767.getValue()); + oprot.writeString(_iter783.getKey()); + oprot.writeString(_iter783.getValue()); } } } @@ -77389,15 +77495,15 @@ public void read(org.apache.thrift.protocol.TProtocol prot, isPartitionMarkedFor } if (incoming.get(2)) { { - org.apache.thrift.protocol.TMap _map768 = 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*_map768.size); - for (int _i769 = 0; _i769 < _map768.size; ++_i769) + 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) { - 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); } } struct.setPart_valsIsSet(true); @@ -84121,14 +84227,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 _list772 = iprot.readListBegin(); - struct.success = new ArrayList(_list772.size); - for (int _i773 = 0; _i773 < _list772.size; ++_i773) + org.apache.thrift.protocol.TList _list788 = iprot.readListBegin(); + struct.success = new ArrayList(_list788.size); + for (int _i789 = 0; _i789 < _list788.size; ++_i789) { - Index _elem774; // required - _elem774 = new Index(); - _elem774.read(iprot); - struct.success.add(_elem774); + Index _elem790; // required + _elem790 = new Index(); + _elem790.read(iprot); + struct.success.add(_elem790); } iprot.readListEnd(); } @@ -84172,9 +84278,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 _iter775 : struct.success) + for (Index _iter791 : struct.success) { - _iter775.write(oprot); + _iter791.write(oprot); } oprot.writeListEnd(); } @@ -84221,9 +84327,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_indexes_result if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Index _iter776 : struct.success) + for (Index _iter792 : struct.success) { - _iter776.write(oprot); + _iter792.write(oprot); } } } @@ -84241,14 +84347,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 _list777 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list777.size); - for (int _i778 = 0; _i778 < _list777.size; ++_i778) + 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) { - Index _elem779; // required - _elem779 = new Index(); - _elem779.read(iprot); - struct.success.add(_elem779); + Index _elem795; // required + _elem795 = new Index(); + _elem795.read(iprot); + struct.success.add(_elem795); } } struct.setSuccessIsSet(true); @@ -85230,13 +85336,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 _list780 = iprot.readListBegin(); - struct.success = new ArrayList(_list780.size); - for (int _i781 = 0; _i781 < _list780.size; ++_i781) + org.apache.thrift.protocol.TList _list796 = iprot.readListBegin(); + struct.success = new ArrayList(_list796.size); + for (int _i797 = 0; _i797 < _list796.size; ++_i797) { - String _elem782; // required - _elem782 = iprot.readString(); - struct.success.add(_elem782); + String _elem798; // required + _elem798 = iprot.readString(); + struct.success.add(_elem798); } iprot.readListEnd(); } @@ -85271,9 +85377,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 _iter783 : struct.success) + for (String _iter799 : struct.success) { - oprot.writeString(_iter783); + oprot.writeString(_iter799); } oprot.writeListEnd(); } @@ -85312,9 +85418,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_index_names_res if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter784 : struct.success) + for (String _iter800 : struct.success) { - oprot.writeString(_iter784); + oprot.writeString(_iter800); } } } @@ -85329,13 +85435,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 _list785 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list785.size); - for (int _i786 = 0; _i786 < _list785.size; ++_i786) + 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) { - String _elem787; // required - _elem787 = iprot.readString(); - struct.success.add(_elem787); + String _elem803; // required + _elem803 = iprot.readString(); + struct.success.add(_elem803); } } struct.setSuccessIsSet(true); @@ -98990,13 +99096,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 _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) { - String _elem790; // required - _elem790 = iprot.readString(); - struct.success.add(_elem790); + String _elem806; // required + _elem806 = iprot.readString(); + struct.success.add(_elem806); } iprot.readListEnd(); } @@ -99031,9 +99137,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 _iter791 : struct.success) + for (String _iter807 : struct.success) { - oprot.writeString(_iter791); + oprot.writeString(_iter807); } oprot.writeListEnd(); } @@ -99072,9 +99178,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_functions_resul if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter792 : struct.success) + for (String _iter808 : struct.success) { - oprot.writeString(_iter792); + oprot.writeString(_iter808); } } } @@ -99089,13 +99195,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 _list793 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, 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.STRING, iprot.readI32()); + struct.success = new ArrayList(_list809.size); + for (int _i810 = 0; _i810 < _list809.size; ++_i810) { - String _elem795; // required - _elem795 = iprot.readString(); - struct.success.add(_elem795); + String _elem811; // required + _elem811 = iprot.readString(); + struct.success.add(_elem811); } } struct.setSuccessIsSet(true); @@ -102438,13 +102544,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 _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(); } @@ -102479,9 +102585,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 _iter799 : struct.success) + for (String _iter815 : struct.success) { - oprot.writeString(_iter799); + oprot.writeString(_iter815); } oprot.writeListEnd(); } @@ -102520,9 +102626,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_role_names_resu if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter800 : struct.success) + for (String _iter816 : struct.success) { - oprot.writeString(_iter800); + oprot.writeString(_iter816); } } } @@ -102537,13 +102643,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 _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); @@ -105834,14 +105940,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 _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) { - Role _elem806; // required - _elem806 = new Role(); - _elem806.read(iprot); - struct.success.add(_elem806); + Role _elem822; // required + _elem822 = new Role(); + _elem822.read(iprot); + struct.success.add(_elem822); } iprot.readListEnd(); } @@ -105876,9 +105982,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 _iter807 : struct.success) + for (Role _iter823 : struct.success) { - _iter807.write(oprot); + _iter823.write(oprot); } oprot.writeListEnd(); } @@ -105917,9 +106023,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, list_roles_result s if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Role _iter808 : struct.success) + for (Role _iter824 : struct.success) { - _iter808.write(oprot); + _iter824.write(oprot); } } } @@ -105934,14 +106040,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 _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) + 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) { - Role _elem811; // required - _elem811 = new Role(); - _elem811.read(iprot); - struct.success.add(_elem811); + Role _elem827; // required + _elem827 = new Role(); + _elem827.read(iprot); + struct.success.add(_elem827); } } struct.setSuccessIsSet(true); @@ -108117,13 +108223,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 _list812 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list812.size); - for (int _i813 = 0; _i813 < _list812.size; ++_i813) + org.apache.thrift.protocol.TList _list828 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list828.size); + for (int _i829 = 0; _i829 < _list828.size; ++_i829) { - String _elem814; // required - _elem814 = iprot.readString(); - struct.group_names.add(_elem814); + String _elem830; // required + _elem830 = iprot.readString(); + struct.group_names.add(_elem830); } iprot.readListEnd(); } @@ -108159,9 +108265,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 _iter815 : struct.group_names) + for (String _iter831 : struct.group_names) { - oprot.writeString(_iter815); + oprot.writeString(_iter831); } oprot.writeListEnd(); } @@ -108204,9 +108310,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 _iter816 : struct.group_names) + for (String _iter832 : struct.group_names) { - oprot.writeString(_iter816); + oprot.writeString(_iter832); } } } @@ -108227,13 +108333,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_privilege_set_ar } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list817 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = 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.group_names = new ArrayList(_list833.size); + for (int _i834 = 0; _i834 < _list833.size; ++_i834) { - String _elem819; // required - _elem819 = iprot.readString(); - struct.group_names.add(_elem819); + String _elem835; // required + _elem835 = iprot.readString(); + struct.group_names.add(_elem835); } } struct.setGroup_namesIsSet(true); @@ -109691,14 +109797,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 _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) { - HiveObjectPrivilege _elem822; // required - _elem822 = new HiveObjectPrivilege(); - _elem822.read(iprot); - struct.success.add(_elem822); + HiveObjectPrivilege _elem838; // required + _elem838 = new HiveObjectPrivilege(); + _elem838.read(iprot); + struct.success.add(_elem838); } iprot.readListEnd(); } @@ -109733,9 +109839,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 _iter823 : struct.success) + for (HiveObjectPrivilege _iter839 : struct.success) { - _iter823.write(oprot); + _iter839.write(oprot); } oprot.writeListEnd(); } @@ -109774,9 +109880,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, list_privileges_res if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (HiveObjectPrivilege _iter824 : struct.success) + for (HiveObjectPrivilege _iter840 : struct.success) { - _iter824.write(oprot); + _iter840.write(oprot); } } } @@ -109791,14 +109897,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 _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) { - HiveObjectPrivilege _elem827; // required - _elem827 = new HiveObjectPrivilege(); - _elem827.read(iprot); - struct.success.add(_elem827); + HiveObjectPrivilege _elem843; // required + _elem843 = new HiveObjectPrivilege(); + _elem843.read(iprot); + struct.success.add(_elem843); } } struct.setSuccessIsSet(true); @@ -111871,13 +111977,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 _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(); } @@ -111908,9 +112014,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 _iter831 : struct.group_names) + for (String _iter847 : struct.group_names) { - oprot.writeString(_iter831); + oprot.writeString(_iter847); } oprot.writeListEnd(); } @@ -111947,9 +112053,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 _iter832 : struct.group_names) + for (String _iter848 : struct.group_names) { - oprot.writeString(_iter832); + oprot.writeString(_iter848); } } } @@ -111965,13 +112071,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, set_ugi_args struct) } if (incoming.get(1)) { { - 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); @@ -112377,13 +112483,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 _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) { - String _elem838; // required - _elem838 = iprot.readString(); - struct.success.add(_elem838); + String _elem854; // required + _elem854 = iprot.readString(); + struct.success.add(_elem854); } iprot.readListEnd(); } @@ -112418,9 +112524,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 _iter839 : struct.success) + for (String _iter855 : struct.success) { - oprot.writeString(_iter839); + oprot.writeString(_iter855); } oprot.writeListEnd(); } @@ -112459,9 +112565,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, set_ugi_result stru if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter840 : struct.success) + for (String _iter856 : struct.success) { - oprot.writeString(_iter840); + oprot.writeString(_iter856); } } } @@ -112476,13 +112582,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 _list841 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, 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.STRING, iprot.readI32()); + struct.success = new ArrayList(_list857.size); + for (int _i858 = 0; _i858 < _list857.size; ++_i858) { - String _elem843; // required - _elem843 = iprot.readString(); - struct.success.add(_elem843); + String _elem859; // required + _elem859 = iprot.readString(); + struct.success.add(_elem859); } } struct.setSuccessIsSet(true); diff --git metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php index c79624f..36cc90b 100644 --- metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php +++ metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php @@ -47,8 +47,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); @@ -1943,15 +1943,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; @@ -1959,21 +1959,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; @@ -1987,7 +1987,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(); } @@ -2000,18 +2000,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; @@ -2020,21 +2020,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; @@ -2048,7 +2048,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(); } @@ -2061,7 +2061,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) @@ -13368,7 +13368,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; @@ -13418,7 +13418,7 @@ class ThriftHiveMetastore_drop_partition_args { } public function getName() { - return 'ThriftHiveMetastore_drop_partition_args'; + return 'ThriftHiveMetastore_drop_partitions_args'; } public function read($input) @@ -13486,7 +13486,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); @@ -13526,7 +13526,7 @@ class ThriftHiveMetastore_drop_partition_args { } -class ThriftHiveMetastore_drop_partition_result { +class ThriftHiveMetastore_drop_partitions_result { static $_TSPEC; public $success = null; @@ -13538,7 +13538,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', @@ -13566,7 +13571,7 @@ class ThriftHiveMetastore_drop_partition_result { } public function getName() { - return 'ThriftHiveMetastore_drop_partition_result'; + return 'ThriftHiveMetastore_drop_partitions_result'; } public function read($input) @@ -13585,8 +13590,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(); + $_size493 = 0; + $_etype496 = 0; + $xfer += $input->readListBegin($_etype496, $_size493); + for ($_i497 = 0; $_i497 < $_size493; ++$_i497) + { + $elem498 = null; + $elem498 = new \metastore\Partition(); + $xfer += $elem498->read($input); + $this->success []= $elem498; + } + $xfer += $input->readListEnd(); } else { $xfer += $input->skip($ftype); } @@ -13619,10 +13635,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 $iter499) + { + $xfer += $iter499->write($output); + } + } + $output->writeListEnd(); + } $xfer += $output->writeFieldEnd(); } if ($this->o1 !== null) { @@ -13642,7 +13670,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; @@ -13701,7 +13729,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) @@ -13736,14 +13764,14 @@ class ThriftHiveMetastore_drop_partition_with_environment_context_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size493 = 0; - $_etype496 = 0; - $xfer += $input->readListBegin($_etype496, $_size493); - for ($_i497 = 0; $_i497 < $_size493; ++$_i497) + $_size500 = 0; + $_etype503 = 0; + $xfer += $input->readListBegin($_etype503, $_size500); + for ($_i504 = 0; $_i504 < $_size500; ++$_i504) { - $elem498 = null; - $xfer += $input->readString($elem498); - $this->part_vals []= $elem498; + $elem505 = null; + $xfer += $input->readString($elem505); + $this->part_vals []= $elem505; } $xfer += $input->readListEnd(); } else { @@ -13777,7 +13805,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); @@ -13796,9 +13824,9 @@ class ThriftHiveMetastore_drop_partition_with_environment_context_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter499) + foreach ($this->part_vals as $iter506) { - $xfer += $output->writeString($iter499); + $xfer += $output->writeString($iter506); } } $output->writeListEnd(); @@ -13825,7 +13853,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; @@ -13837,7 +13865,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', @@ -13865,7 +13898,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) @@ -13884,8 +13917,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(); + $_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); } @@ -13918,10 +13962,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 $iter513) + { + $xfer += $iter513->write($output); + } + } + $output->writeListEnd(); + } $xfer += $output->writeFieldEnd(); } if ($this->o1 !== null) { @@ -14737,14 +14793,14 @@ class ThriftHiveMetastore_get_partition_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size500 = 0; - $_etype503 = 0; - $xfer += $input->readListBegin($_etype503, $_size500); - for ($_i504 = 0; $_i504 < $_size500; ++$_i504) + $_size514 = 0; + $_etype517 = 0; + $xfer += $input->readListBegin($_etype517, $_size514); + for ($_i518 = 0; $_i518 < $_size514; ++$_i518) { - $elem505 = null; - $xfer += $input->readString($elem505); - $this->part_vals []= $elem505; + $elem519 = null; + $xfer += $input->readString($elem519); + $this->part_vals []= $elem519; } $xfer += $input->readListEnd(); } else { @@ -14782,9 +14838,9 @@ class ThriftHiveMetastore_get_partition_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter506) + foreach ($this->part_vals as $iter520) { - $xfer += $output->writeString($iter506); + $xfer += $output->writeString($iter520); } } $output->writeListEnd(); @@ -15002,17 +15058,17 @@ class ThriftHiveMetastore_exchange_partition_args { case 1: if ($ftype == TType::MAP) { $this->partitionSpecs = array(); - $_size507 = 0; - $_ktype508 = 0; - $_vtype509 = 0; - $xfer += $input->readMapBegin($_ktype508, $_vtype509, $_size507); - for ($_i511 = 0; $_i511 < $_size507; ++$_i511) + $_size521 = 0; + $_ktype522 = 0; + $_vtype523 = 0; + $xfer += $input->readMapBegin($_ktype522, $_vtype523, $_size521); + for ($_i525 = 0; $_i525 < $_size521; ++$_i525) { - $key512 = ''; - $val513 = ''; - $xfer += $input->readString($key512); - $xfer += $input->readString($val513); - $this->partitionSpecs[$key512] = $val513; + $key526 = ''; + $val527 = ''; + $xfer += $input->readString($key526); + $xfer += $input->readString($val527); + $this->partitionSpecs[$key526] = $val527; } $xfer += $input->readMapEnd(); } else { @@ -15068,10 +15124,10 @@ class ThriftHiveMetastore_exchange_partition_args { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->partitionSpecs)); { - foreach ($this->partitionSpecs as $kiter514 => $viter515) + foreach ($this->partitionSpecs as $kiter528 => $viter529) { - $xfer += $output->writeString($kiter514); - $xfer += $output->writeString($viter515); + $xfer += $output->writeString($kiter528); + $xfer += $output->writeString($viter529); } } $output->writeMapEnd(); @@ -15367,14 +15423,14 @@ class ThriftHiveMetastore_get_partition_with_auth_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size516 = 0; - $_etype519 = 0; - $xfer += $input->readListBegin($_etype519, $_size516); - for ($_i520 = 0; $_i520 < $_size516; ++$_i520) + $_size530 = 0; + $_etype533 = 0; + $xfer += $input->readListBegin($_etype533, $_size530); + for ($_i534 = 0; $_i534 < $_size530; ++$_i534) { - $elem521 = null; - $xfer += $input->readString($elem521); - $this->part_vals []= $elem521; + $elem535 = null; + $xfer += $input->readString($elem535); + $this->part_vals []= $elem535; } $xfer += $input->readListEnd(); } else { @@ -15391,14 +15447,14 @@ class ThriftHiveMetastore_get_partition_with_auth_args { case 5: if ($ftype == TType::LST) { $this->group_names = array(); - $_size522 = 0; - $_etype525 = 0; - $xfer += $input->readListBegin($_etype525, $_size522); - for ($_i526 = 0; $_i526 < $_size522; ++$_i526) + $_size536 = 0; + $_etype539 = 0; + $xfer += $input->readListBegin($_etype539, $_size536); + for ($_i540 = 0; $_i540 < $_size536; ++$_i540) { - $elem527 = null; - $xfer += $input->readString($elem527); - $this->group_names []= $elem527; + $elem541 = null; + $xfer += $input->readString($elem541); + $this->group_names []= $elem541; } $xfer += $input->readListEnd(); } else { @@ -15436,9 +15492,9 @@ class ThriftHiveMetastore_get_partition_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter528) + foreach ($this->part_vals as $iter542) { - $xfer += $output->writeString($iter528); + $xfer += $output->writeString($iter542); } } $output->writeListEnd(); @@ -15458,9 +15514,9 @@ class ThriftHiveMetastore_get_partition_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter529) + foreach ($this->group_names as $iter543) { - $xfer += $output->writeString($iter529); + $xfer += $output->writeString($iter543); } } $output->writeListEnd(); @@ -16006,15 +16062,15 @@ class ThriftHiveMetastore_get_partitions_result { case 0: if ($ftype == TType::LST) { $this->success = 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; - $elem535 = new \metastore\Partition(); - $xfer += $elem535->read($input); - $this->success []= $elem535; + $elem549 = null; + $elem549 = new \metastore\Partition(); + $xfer += $elem549->read($input); + $this->success []= $elem549; } $xfer += $input->readListEnd(); } else { @@ -16058,9 +16114,9 @@ class ThriftHiveMetastore_get_partitions_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter536) + foreach ($this->success as $iter550) { - $xfer += $iter536->write($output); + $xfer += $iter550->write($output); } } $output->writeListEnd(); @@ -16191,14 +16247,14 @@ class ThriftHiveMetastore_get_partitions_with_auth_args { case 5: if ($ftype == TType::LST) { $this->group_names = array(); - $_size537 = 0; - $_etype540 = 0; - $xfer += $input->readListBegin($_etype540, $_size537); - for ($_i541 = 0; $_i541 < $_size537; ++$_i541) + $_size551 = 0; + $_etype554 = 0; + $xfer += $input->readListBegin($_etype554, $_size551); + for ($_i555 = 0; $_i555 < $_size551; ++$_i555) { - $elem542 = null; - $xfer += $input->readString($elem542); - $this->group_names []= $elem542; + $elem556 = null; + $xfer += $input->readString($elem556); + $this->group_names []= $elem556; } $xfer += $input->readListEnd(); } else { @@ -16246,9 +16302,9 @@ class ThriftHiveMetastore_get_partitions_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(); @@ -16328,15 +16384,15 @@ class ThriftHiveMetastore_get_partitions_with_auth_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 { @@ -16380,9 +16436,9 @@ class ThriftHiveMetastore_get_partitions_with_auth_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(); @@ -16574,14 +16630,14 @@ class ThriftHiveMetastore_get_partition_names_result { case 0: if ($ftype == TType::LST) { $this->success = 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->success []= $elem556; + $elem570 = null; + $xfer += $input->readString($elem570); + $this->success []= $elem570; } $xfer += $input->readListEnd(); } else { @@ -16617,9 +16673,9 @@ class ThriftHiveMetastore_get_partition_names_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter557) + foreach ($this->success as $iter571) { - $xfer += $output->writeString($iter557); + $xfer += $output->writeString($iter571); } } $output->writeListEnd(); @@ -16723,14 +16779,14 @@ class ThriftHiveMetastore_get_partitions_ps_args { case 3: if ($ftype == TType::LST) { $this->part_vals = 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; - $xfer += $input->readString($elem563); - $this->part_vals []= $elem563; + $elem577 = null; + $xfer += $input->readString($elem577); + $this->part_vals []= $elem577; } $xfer += $input->readListEnd(); } else { @@ -16775,9 +16831,9 @@ class ThriftHiveMetastore_get_partitions_ps_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter564) + foreach ($this->part_vals as $iter578) { - $xfer += $output->writeString($iter564); + $xfer += $output->writeString($iter578); } } $output->writeListEnd(); @@ -16862,15 +16918,15 @@ class ThriftHiveMetastore_get_partitions_ps_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; - $elem570 = new \metastore\Partition(); - $xfer += $elem570->read($input); - $this->success []= $elem570; + $elem584 = null; + $elem584 = new \metastore\Partition(); + $xfer += $elem584->read($input); + $this->success []= $elem584; } $xfer += $input->readListEnd(); } else { @@ -16914,9 +16970,9 @@ class ThriftHiveMetastore_get_partitions_ps_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter571) + foreach ($this->success as $iter585) { - $xfer += $iter571->write($output); + $xfer += $iter585->write($output); } } $output->writeListEnd(); @@ -17045,14 +17101,14 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_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 { @@ -17076,14 +17132,14 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { case 6: if ($ftype == TType::LST) { $this->group_names = array(); - $_size578 = 0; - $_etype581 = 0; - $xfer += $input->readListBegin($_etype581, $_size578); - for ($_i582 = 0; $_i582 < $_size578; ++$_i582) + $_size592 = 0; + $_etype595 = 0; + $xfer += $input->readListBegin($_etype595, $_size592); + for ($_i596 = 0; $_i596 < $_size592; ++$_i596) { - $elem583 = null; - $xfer += $input->readString($elem583); - $this->group_names []= $elem583; + $elem597 = null; + $xfer += $input->readString($elem597); + $this->group_names []= $elem597; } $xfer += $input->readListEnd(); } else { @@ -17121,9 +17177,9 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter584) + foreach ($this->part_vals as $iter598) { - $xfer += $output->writeString($iter584); + $xfer += $output->writeString($iter598); } } $output->writeListEnd(); @@ -17148,9 +17204,9 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter585) + foreach ($this->group_names as $iter599) { - $xfer += $output->writeString($iter585); + $xfer += $output->writeString($iter599); } } $output->writeListEnd(); @@ -17230,15 +17286,15 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_result { case 0: if ($ftype == TType::LST) { $this->success = 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; - $elem591 = new \metastore\Partition(); - $xfer += $elem591->read($input); - $this->success []= $elem591; + $elem605 = null; + $elem605 = new \metastore\Partition(); + $xfer += $elem605->read($input); + $this->success []= $elem605; } $xfer += $input->readListEnd(); } else { @@ -17282,9 +17338,9 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter592) + foreach ($this->success as $iter606) { - $xfer += $iter592->write($output); + $xfer += $iter606->write($output); } } $output->writeListEnd(); @@ -17393,14 +17449,14 @@ class ThriftHiveMetastore_get_partition_names_ps_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size593 = 0; - $_etype596 = 0; - $xfer += $input->readListBegin($_etype596, $_size593); - for ($_i597 = 0; $_i597 < $_size593; ++$_i597) + $_size607 = 0; + $_etype610 = 0; + $xfer += $input->readListBegin($_etype610, $_size607); + for ($_i611 = 0; $_i611 < $_size607; ++$_i611) { - $elem598 = null; - $xfer += $input->readString($elem598); - $this->part_vals []= $elem598; + $elem612 = null; + $xfer += $input->readString($elem612); + $this->part_vals []= $elem612; } $xfer += $input->readListEnd(); } else { @@ -17445,9 +17501,9 @@ class ThriftHiveMetastore_get_partition_names_ps_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter599) + foreach ($this->part_vals as $iter613) { - $xfer += $output->writeString($iter599); + $xfer += $output->writeString($iter613); } } $output->writeListEnd(); @@ -17531,14 +17587,14 @@ class ThriftHiveMetastore_get_partition_names_ps_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; - $xfer += $input->readString($elem605); - $this->success []= $elem605; + $elem619 = null; + $xfer += $input->readString($elem619); + $this->success []= $elem619; } $xfer += $input->readListEnd(); } else { @@ -17582,9 +17638,9 @@ class ThriftHiveMetastore_get_partition_names_ps_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter606) + foreach ($this->success as $iter620) { - $xfer += $output->writeString($iter606); + $xfer += $output->writeString($iter620); } } $output->writeListEnd(); @@ -17806,15 +17862,15 @@ class ThriftHiveMetastore_get_partitions_by_filter_result { case 0: if ($ftype == TType::LST) { $this->success = 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; - $elem612 = new \metastore\Partition(); - $xfer += $elem612->read($input); - $this->success []= $elem612; + $elem626 = null; + $elem626 = new \metastore\Partition(); + $xfer += $elem626->read($input); + $this->success []= $elem626; } $xfer += $input->readListEnd(); } else { @@ -17858,9 +17914,9 @@ class ThriftHiveMetastore_get_partitions_by_filter_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter613) + foreach ($this->success as $iter627) { - $xfer += $iter613->write($output); + $xfer += $iter627->write($output); } } $output->writeListEnd(); @@ -18159,14 +18215,14 @@ class ThriftHiveMetastore_get_partitions_by_names_args { case 3: if ($ftype == TType::LST) { $this->names = 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->names []= $elem619; + $elem633 = null; + $xfer += $input->readString($elem633); + $this->names []= $elem633; } $xfer += $input->readListEnd(); } else { @@ -18204,9 +18260,9 @@ class ThriftHiveMetastore_get_partitions_by_names_args { { $output->writeListBegin(TType::STRING, count($this->names)); { - foreach ($this->names as $iter620) + foreach ($this->names as $iter634) { - $xfer += $output->writeString($iter620); + $xfer += $output->writeString($iter634); } } $output->writeListEnd(); @@ -18286,15 +18342,15 @@ class ThriftHiveMetastore_get_partitions_by_names_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 { @@ -18338,9 +18394,9 @@ class ThriftHiveMetastore_get_partitions_by_names_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(); @@ -18655,15 +18711,15 @@ class ThriftHiveMetastore_alter_partitions_args { case 3: if ($ftype == TType::LST) { $this->new_parts = 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; - $elem633 = new \metastore\Partition(); - $xfer += $elem633->read($input); - $this->new_parts []= $elem633; + $elem647 = null; + $elem647 = new \metastore\Partition(); + $xfer += $elem647->read($input); + $this->new_parts []= $elem647; } $xfer += $input->readListEnd(); } else { @@ -18701,9 +18757,9 @@ class ThriftHiveMetastore_alter_partitions_args { { $output->writeListBegin(TType::STRUCT, count($this->new_parts)); { - foreach ($this->new_parts as $iter634) + foreach ($this->new_parts as $iter648) { - $xfer += $iter634->write($output); + $xfer += $iter648->write($output); } } $output->writeListEnd(); @@ -19137,14 +19193,14 @@ class ThriftHiveMetastore_rename_partition_args { case 3: if ($ftype == TType::LST) { $this->part_vals = 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; - $xfer += $input->readString($elem640); - $this->part_vals []= $elem640; + $elem654 = null; + $xfer += $input->readString($elem654); + $this->part_vals []= $elem654; } $xfer += $input->readListEnd(); } else { @@ -19190,9 +19246,9 @@ class ThriftHiveMetastore_rename_partition_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter641) + foreach ($this->part_vals as $iter655) { - $xfer += $output->writeString($iter641); + $xfer += $output->writeString($iter655); } } $output->writeListEnd(); @@ -19365,14 +19421,14 @@ class ThriftHiveMetastore_partition_name_has_valid_characters_args { case 1: if ($ftype == TType::LST) { $this->part_vals = 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; - $xfer += $input->readString($elem647); - $this->part_vals []= $elem647; + $elem661 = null; + $xfer += $input->readString($elem661); + $this->part_vals []= $elem661; } $xfer += $input->readListEnd(); } else { @@ -19407,9 +19463,9 @@ class ThriftHiveMetastore_partition_name_has_valid_characters_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter648) + foreach ($this->part_vals as $iter662) { - $xfer += $output->writeString($iter648); + $xfer += $output->writeString($iter662); } } $output->writeListEnd(); @@ -19836,14 +19892,14 @@ class ThriftHiveMetastore_partition_name_to_vals_result { case 0: if ($ftype == TType::LST) { $this->success = 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->success []= $elem654; + $elem668 = null; + $xfer += $input->readString($elem668); + $this->success []= $elem668; } $xfer += $input->readListEnd(); } else { @@ -19879,9 +19935,9 @@ class ThriftHiveMetastore_partition_name_to_vals_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter655) + foreach ($this->success as $iter669) { - $xfer += $output->writeString($iter655); + $xfer += $output->writeString($iter669); } } $output->writeListEnd(); @@ -20032,17 +20088,17 @@ class ThriftHiveMetastore_partition_name_to_spec_result { case 0: if ($ftype == TType::MAP) { $this->success = array(); - $_size656 = 0; - $_ktype657 = 0; - $_vtype658 = 0; - $xfer += $input->readMapBegin($_ktype657, $_vtype658, $_size656); - for ($_i660 = 0; $_i660 < $_size656; ++$_i660) + $_size670 = 0; + $_ktype671 = 0; + $_vtype672 = 0; + $xfer += $input->readMapBegin($_ktype671, $_vtype672, $_size670); + for ($_i674 = 0; $_i674 < $_size670; ++$_i674) { - $key661 = ''; - $val662 = ''; - $xfer += $input->readString($key661); - $xfer += $input->readString($val662); - $this->success[$key661] = $val662; + $key675 = ''; + $val676 = ''; + $xfer += $input->readString($key675); + $xfer += $input->readString($val676); + $this->success[$key675] = $val676; } $xfer += $input->readMapEnd(); } else { @@ -20078,10 +20134,10 @@ class ThriftHiveMetastore_partition_name_to_spec_result { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->success)); { - foreach ($this->success as $kiter663 => $viter664) + foreach ($this->success as $kiter677 => $viter678) { - $xfer += $output->writeString($kiter663); - $xfer += $output->writeString($viter664); + $xfer += $output->writeString($kiter677); + $xfer += $output->writeString($viter678); } } $output->writeMapEnd(); @@ -20189,17 +20245,17 @@ class ThriftHiveMetastore_markPartitionForEvent_args { case 3: if ($ftype == TType::MAP) { $this->part_vals = array(); - $_size665 = 0; - $_ktype666 = 0; - $_vtype667 = 0; - $xfer += $input->readMapBegin($_ktype666, $_vtype667, $_size665); - for ($_i669 = 0; $_i669 < $_size665; ++$_i669) + $_size679 = 0; + $_ktype680 = 0; + $_vtype681 = 0; + $xfer += $input->readMapBegin($_ktype680, $_vtype681, $_size679); + for ($_i683 = 0; $_i683 < $_size679; ++$_i683) { - $key670 = ''; - $val671 = ''; - $xfer += $input->readString($key670); - $xfer += $input->readString($val671); - $this->part_vals[$key670] = $val671; + $key684 = ''; + $val685 = ''; + $xfer += $input->readString($key684); + $xfer += $input->readString($val685); + $this->part_vals[$key684] = $val685; } $xfer += $input->readMapEnd(); } else { @@ -20244,10 +20300,10 @@ class ThriftHiveMetastore_markPartitionForEvent_args { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $kiter672 => $viter673) + foreach ($this->part_vals as $kiter686 => $viter687) { - $xfer += $output->writeString($kiter672); - $xfer += $output->writeString($viter673); + $xfer += $output->writeString($kiter686); + $xfer += $output->writeString($viter687); } } $output->writeMapEnd(); @@ -20539,17 +20595,17 @@ class ThriftHiveMetastore_isPartitionMarkedForEvent_args { case 3: if ($ftype == TType::MAP) { $this->part_vals = array(); - $_size674 = 0; - $_ktype675 = 0; - $_vtype676 = 0; - $xfer += $input->readMapBegin($_ktype675, $_vtype676, $_size674); - for ($_i678 = 0; $_i678 < $_size674; ++$_i678) + $_size688 = 0; + $_ktype689 = 0; + $_vtype690 = 0; + $xfer += $input->readMapBegin($_ktype689, $_vtype690, $_size688); + for ($_i692 = 0; $_i692 < $_size688; ++$_i692) { - $key679 = ''; - $val680 = ''; - $xfer += $input->readString($key679); - $xfer += $input->readString($val680); - $this->part_vals[$key679] = $val680; + $key693 = ''; + $val694 = ''; + $xfer += $input->readString($key693); + $xfer += $input->readString($val694); + $this->part_vals[$key693] = $val694; } $xfer += $input->readMapEnd(); } else { @@ -20594,10 +20650,10 @@ class ThriftHiveMetastore_isPartitionMarkedForEvent_args { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $kiter681 => $viter682) + foreach ($this->part_vals as $kiter695 => $viter696) { - $xfer += $output->writeString($kiter681); - $xfer += $output->writeString($viter682); + $xfer += $output->writeString($kiter695); + $xfer += $output->writeString($viter696); } } $output->writeMapEnd(); @@ -21957,15 +22013,15 @@ class ThriftHiveMetastore_get_indexes_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size683 = 0; - $_etype686 = 0; - $xfer += $input->readListBegin($_etype686, $_size683); - for ($_i687 = 0; $_i687 < $_size683; ++$_i687) + $_size697 = 0; + $_etype700 = 0; + $xfer += $input->readListBegin($_etype700, $_size697); + for ($_i701 = 0; $_i701 < $_size697; ++$_i701) { - $elem688 = null; - $elem688 = new \metastore\Index(); - $xfer += $elem688->read($input); - $this->success []= $elem688; + $elem702 = null; + $elem702 = new \metastore\Index(); + $xfer += $elem702->read($input); + $this->success []= $elem702; } $xfer += $input->readListEnd(); } else { @@ -22009,9 +22065,9 @@ class ThriftHiveMetastore_get_indexes_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter689) + foreach ($this->success as $iter703) { - $xfer += $iter689->write($output); + $xfer += $iter703->write($output); } } $output->writeListEnd(); @@ -22203,14 +22259,14 @@ class ThriftHiveMetastore_get_index_names_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size690 = 0; - $_etype693 = 0; - $xfer += $input->readListBegin($_etype693, $_size690); - for ($_i694 = 0; $_i694 < $_size690; ++$_i694) + $_size704 = 0; + $_etype707 = 0; + $xfer += $input->readListBegin($_etype707, $_size704); + for ($_i708 = 0; $_i708 < $_size704; ++$_i708) { - $elem695 = null; - $xfer += $input->readString($elem695); - $this->success []= $elem695; + $elem709 = null; + $xfer += $input->readString($elem709); + $this->success []= $elem709; } $xfer += $input->readListEnd(); } else { @@ -22246,9 +22302,9 @@ class ThriftHiveMetastore_get_index_names_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter696) + foreach ($this->success as $iter710) { - $xfer += $output->writeString($iter696); + $xfer += $output->writeString($iter710); } } $output->writeListEnd(); @@ -25041,14 +25097,14 @@ class ThriftHiveMetastore_get_functions_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; - $xfer += $input->readString($elem702); - $this->success []= $elem702; + $elem716 = null; + $xfer += $input->readString($elem716); + $this->success []= $elem716; } $xfer += $input->readListEnd(); } else { @@ -25084,9 +25140,9 @@ class ThriftHiveMetastore_get_functions_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter703) + foreach ($this->success as $iter717) { - $xfer += $output->writeString($iter703); + $xfer += $output->writeString($iter717); } } $output->writeListEnd(); @@ -25761,14 +25817,14 @@ class ThriftHiveMetastore_get_role_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 { @@ -25804,9 +25860,9 @@ class ThriftHiveMetastore_get_role_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(); @@ -26446,15 +26502,15 @@ class ThriftHiveMetastore_list_roles_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; - $elem716 = new \metastore\Role(); - $xfer += $elem716->read($input); - $this->success []= $elem716; + $elem730 = null; + $elem730 = new \metastore\Role(); + $xfer += $elem730->read($input); + $this->success []= $elem730; } $xfer += $input->readListEnd(); } else { @@ -26490,9 +26546,9 @@ class ThriftHiveMetastore_list_roles_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter717) + foreach ($this->success as $iter731) { - $xfer += $iter717->write($output); + $xfer += $iter731->write($output); } } $output->writeListEnd(); @@ -26942,14 +26998,14 @@ class ThriftHiveMetastore_get_privilege_set_args { case 3: if ($ftype == TType::LST) { $this->group_names = 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->group_names []= $elem723; + $elem737 = null; + $xfer += $input->readString($elem737); + $this->group_names []= $elem737; } $xfer += $input->readListEnd(); } else { @@ -26990,9 +27046,9 @@ class ThriftHiveMetastore_get_privilege_set_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter724) + foreach ($this->group_names as $iter738) { - $xfer += $output->writeString($iter724); + $xfer += $output->writeString($iter738); } } $output->writeListEnd(); @@ -27279,15 +27335,15 @@ class ThriftHiveMetastore_list_privileges_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\HiveObjectPrivilege(); - $xfer += $elem730->read($input); - $this->success []= $elem730; + $elem744 = null; + $elem744 = new \metastore\HiveObjectPrivilege(); + $xfer += $elem744->read($input); + $this->success []= $elem744; } $xfer += $input->readListEnd(); } else { @@ -27323,9 +27379,9 @@ class ThriftHiveMetastore_list_privileges_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(); @@ -27748,14 +27804,14 @@ class ThriftHiveMetastore_set_ugi_args { case 2: 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 { @@ -27788,9 +27844,9 @@ class ThriftHiveMetastore_set_ugi_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(); @@ -27860,14 +27916,14 @@ class ThriftHiveMetastore_set_ugi_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; - $xfer += $input->readString($elem744); - $this->success []= $elem744; + $elem758 = null; + $xfer += $input->readString($elem758); + $this->success []= $elem758; } $xfer += $input->readListEnd(); } else { @@ -27903,9 +27959,9 @@ class ThriftHiveMetastore_set_ugi_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter745) + foreach ($this->success as $iter759) { - $xfer += $output->writeString($iter745); + $xfer += $output->writeString($iter759); } } $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 fdedb57..836cbd7 --- metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote +++ metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote @@ -54,8 +54,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)' @@ -367,17 +367,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 23679be..a6caf73 100644 --- metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py +++ metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py @@ -267,7 +267,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 @@ -277,7 +277,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 @@ -2028,7 +2028,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 @@ -2036,12 +2036,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 @@ -2050,14 +2050,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: @@ -2066,9 +2066,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 @@ -2077,12 +2077,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 @@ -2092,14 +2092,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: @@ -2108,7 +2108,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): """ @@ -4800,8 +4800,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 @@ -5416,34 +5416,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() @@ -11687,7 +11687,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class drop_partition_args: +class drop_partitions_args: """ Attributes: - db_name @@ -11753,7 +11753,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) @@ -11791,7 +11791,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class drop_partition_result: +class drop_partitions_result: """ Attributes: - success @@ -11800,7 +11800,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 ) @@ -11820,8 +11820,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 = [] + (_etype493, _size490) = iprot.readListBegin() + for _i494 in xrange(_size490): + _elem495 = Partition() + _elem495.read(iprot) + self.success.append(_elem495) + iprot.readListEnd() else: iprot.skip(ftype) elif fid == 1: @@ -11845,10 +11851,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 iter496 in self.success: + iter496.write(oprot) + oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) @@ -11876,7 +11885,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 @@ -11924,10 +11933,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype493, _size490) = iprot.readListBegin() - for _i494 in xrange(_size490): - _elem495 = iprot.readString(); - self.part_vals.append(_elem495) + (_etype500, _size497) = iprot.readListBegin() + for _i501 in xrange(_size497): + _elem502 = iprot.readString(); + self.part_vals.append(_elem502) iprot.readListEnd() else: iprot.skip(ftype) @@ -11951,7 +11960,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) @@ -11963,8 +11972,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 iter496 in self.part_vals: - oprot.writeString(iter496) + for iter503 in self.part_vals: + oprot.writeString(iter503) oprot.writeListEnd() oprot.writeFieldEnd() if self.deleteData is not None: @@ -11993,7 +12002,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 @@ -12002,7 +12011,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 ) @@ -12022,8 +12031,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: @@ -12047,10 +12062,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 iter510 in self.success: + iter510.write(oprot) + oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) @@ -12642,10 +12660,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype500, _size497) = iprot.readListBegin() - for _i501 in xrange(_size497): - _elem502 = iprot.readString(); - self.part_vals.append(_elem502) + (_etype514, _size511) = iprot.readListBegin() + for _i515 in xrange(_size511): + _elem516 = iprot.readString(); + self.part_vals.append(_elem516) iprot.readListEnd() else: iprot.skip(ftype) @@ -12670,8 +12688,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 iter503 in self.part_vals: - oprot.writeString(iter503) + for iter517 in self.part_vals: + oprot.writeString(iter517) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -12816,11 +12834,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.MAP: self.partitionSpecs = {} - (_ktype505, _vtype506, _size504 ) = iprot.readMapBegin() - for _i508 in xrange(_size504): - _key509 = iprot.readString(); - _val510 = iprot.readString(); - self.partitionSpecs[_key509] = _val510 + (_ktype519, _vtype520, _size518 ) = iprot.readMapBegin() + for _i522 in xrange(_size518): + _key523 = iprot.readString(); + _val524 = iprot.readString(); + self.partitionSpecs[_key523] = _val524 iprot.readMapEnd() else: iprot.skip(ftype) @@ -12857,9 +12875,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 kiter511,viter512 in self.partitionSpecs.items(): - oprot.writeString(kiter511) - oprot.writeString(viter512) + for kiter525,viter526 in self.partitionSpecs.items(): + oprot.writeString(kiter525) + oprot.writeString(viter526) oprot.writeMapEnd() oprot.writeFieldEnd() if self.source_db is not None: @@ -13056,10 +13074,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype516, _size513) = iprot.readListBegin() - for _i517 in xrange(_size513): - _elem518 = iprot.readString(); - self.part_vals.append(_elem518) + (_etype530, _size527) = iprot.readListBegin() + for _i531 in xrange(_size527): + _elem532 = iprot.readString(); + self.part_vals.append(_elem532) iprot.readListEnd() else: iprot.skip(ftype) @@ -13071,10 +13089,10 @@ def read(self, iprot): elif fid == 5: if ftype == TType.LIST: self.group_names = [] - (_etype522, _size519) = iprot.readListBegin() - for _i523 in xrange(_size519): - _elem524 = iprot.readString(); - self.group_names.append(_elem524) + (_etype536, _size533) = iprot.readListBegin() + for _i537 in xrange(_size533): + _elem538 = iprot.readString(); + self.group_names.append(_elem538) iprot.readListEnd() else: iprot.skip(ftype) @@ -13099,8 +13117,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 iter525 in self.part_vals: - oprot.writeString(iter525) + for iter539 in self.part_vals: + oprot.writeString(iter539) oprot.writeListEnd() oprot.writeFieldEnd() if self.user_name is not None: @@ -13110,8 +13128,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 iter526 in self.group_names: - oprot.writeString(iter526) + for iter540 in self.group_names: + oprot.writeString(iter540) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -13503,11 +13521,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype530, _size527) = iprot.readListBegin() - for _i531 in xrange(_size527): - _elem532 = Partition() - _elem532.read(iprot) - self.success.append(_elem532) + (_etype544, _size541) = iprot.readListBegin() + for _i545 in xrange(_size541): + _elem546 = Partition() + _elem546.read(iprot) + self.success.append(_elem546) iprot.readListEnd() else: iprot.skip(ftype) @@ -13536,8 +13554,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 iter533 in self.success: - iter533.write(oprot) + for iter547 in self.success: + iter547.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -13624,10 +13642,10 @@ def read(self, iprot): elif fid == 5: if ftype == TType.LIST: self.group_names = [] - (_etype537, _size534) = iprot.readListBegin() - for _i538 in xrange(_size534): - _elem539 = iprot.readString(); - self.group_names.append(_elem539) + (_etype551, _size548) = iprot.readListBegin() + for _i552 in xrange(_size548): + _elem553 = iprot.readString(); + self.group_names.append(_elem553) iprot.readListEnd() else: iprot.skip(ftype) @@ -13660,8 +13678,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() @@ -13713,11 +13731,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) @@ -13746,8 +13764,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: @@ -13888,10 +13906,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype551, _size548) = iprot.readListBegin() - for _i552 in xrange(_size548): - _elem553 = iprot.readString(); - self.success.append(_elem553) + (_etype565, _size562) = iprot.readListBegin() + for _i566 in xrange(_size562): + _elem567 = iprot.readString(); + self.success.append(_elem567) iprot.readListEnd() else: iprot.skip(ftype) @@ -13914,8 +13932,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 iter554 in self.success: - oprot.writeString(iter554) + for iter568 in self.success: + oprot.writeString(iter568) oprot.writeListEnd() oprot.writeFieldEnd() if self.o2 is not None: @@ -13985,10 +14003,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype558, _size555) = iprot.readListBegin() - for _i559 in xrange(_size555): - _elem560 = iprot.readString(); - self.part_vals.append(_elem560) + (_etype572, _size569) = iprot.readListBegin() + for _i573 in xrange(_size569): + _elem574 = iprot.readString(); + self.part_vals.append(_elem574) iprot.readListEnd() else: iprot.skip(ftype) @@ -14018,8 +14036,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 iter561 in self.part_vals: - oprot.writeString(iter561) + for iter575 in self.part_vals: + oprot.writeString(iter575) oprot.writeListEnd() oprot.writeFieldEnd() if self.max_parts is not None: @@ -14075,11 +14093,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype565, _size562) = iprot.readListBegin() - for _i566 in xrange(_size562): - _elem567 = Partition() - _elem567.read(iprot) - self.success.append(_elem567) + (_etype579, _size576) = iprot.readListBegin() + for _i580 in xrange(_size576): + _elem581 = Partition() + _elem581.read(iprot) + self.success.append(_elem581) iprot.readListEnd() else: iprot.skip(ftype) @@ -14108,8 +14126,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 iter568 in self.success: - iter568.write(oprot) + for iter582 in self.success: + iter582.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -14189,10 +14207,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) @@ -14209,10 +14227,10 @@ def read(self, iprot): elif fid == 6: if ftype == TType.LIST: self.group_names = [] - (_etype578, _size575) = iprot.readListBegin() - for _i579 in xrange(_size575): - _elem580 = iprot.readString(); - self.group_names.append(_elem580) + (_etype592, _size589) = iprot.readListBegin() + for _i593 in xrange(_size589): + _elem594 = iprot.readString(); + self.group_names.append(_elem594) iprot.readListEnd() else: iprot.skip(ftype) @@ -14237,8 +14255,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 iter581 in self.part_vals: - oprot.writeString(iter581) + for iter595 in self.part_vals: + oprot.writeString(iter595) oprot.writeListEnd() oprot.writeFieldEnd() if self.max_parts is not None: @@ -14252,8 +14270,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 iter582 in self.group_names: - oprot.writeString(iter582) + for iter596 in self.group_names: + oprot.writeString(iter596) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -14305,11 +14323,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype586, _size583) = iprot.readListBegin() - for _i587 in xrange(_size583): - _elem588 = Partition() - _elem588.read(iprot) - self.success.append(_elem588) + (_etype600, _size597) = iprot.readListBegin() + for _i601 in xrange(_size597): + _elem602 = Partition() + _elem602.read(iprot) + self.success.append(_elem602) iprot.readListEnd() else: iprot.skip(ftype) @@ -14338,8 +14356,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 iter589 in self.success: - iter589.write(oprot) + for iter603 in self.success: + iter603.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -14413,10 +14431,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype593, _size590) = iprot.readListBegin() - for _i594 in xrange(_size590): - _elem595 = iprot.readString(); - self.part_vals.append(_elem595) + (_etype607, _size604) = iprot.readListBegin() + for _i608 in xrange(_size604): + _elem609 = iprot.readString(); + self.part_vals.append(_elem609) iprot.readListEnd() else: iprot.skip(ftype) @@ -14446,8 +14464,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 iter596 in self.part_vals: - oprot.writeString(iter596) + for iter610 in self.part_vals: + oprot.writeString(iter610) oprot.writeListEnd() oprot.writeFieldEnd() if self.max_parts is not None: @@ -14503,10 +14521,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype600, _size597) = iprot.readListBegin() - for _i601 in xrange(_size597): - _elem602 = iprot.readString(); - self.success.append(_elem602) + (_etype614, _size611) = iprot.readListBegin() + for _i615 in xrange(_size611): + _elem616 = iprot.readString(); + self.success.append(_elem616) iprot.readListEnd() else: iprot.skip(ftype) @@ -14535,8 +14553,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 iter603 in self.success: - oprot.writeString(iter603) + for iter617 in self.success: + oprot.writeString(iter617) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -14692,11 +14710,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype607, _size604) = iprot.readListBegin() - for _i608 in xrange(_size604): - _elem609 = Partition() - _elem609.read(iprot) - self.success.append(_elem609) + (_etype621, _size618) = iprot.readListBegin() + for _i622 in xrange(_size618): + _elem623 = Partition() + _elem623.read(iprot) + self.success.append(_elem623) iprot.readListEnd() else: iprot.skip(ftype) @@ -14725,8 +14743,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 iter610 in self.success: - iter610.write(oprot) + for iter624 in self.success: + iter624.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -14944,10 +14962,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.names = [] - (_etype614, _size611) = iprot.readListBegin() - for _i615 in xrange(_size611): - _elem616 = iprot.readString(); - self.names.append(_elem616) + (_etype628, _size625) = iprot.readListBegin() + for _i629 in xrange(_size625): + _elem630 = iprot.readString(); + self.names.append(_elem630) iprot.readListEnd() else: iprot.skip(ftype) @@ -14972,8 +14990,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 iter617 in self.names: - oprot.writeString(iter617) + for iter631 in self.names: + oprot.writeString(iter631) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -15025,11 +15043,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) @@ -15058,8 +15076,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: @@ -15289,11 +15307,11 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.new_parts = [] - (_etype628, _size625) = iprot.readListBegin() - for _i629 in xrange(_size625): - _elem630 = Partition() - _elem630.read(iprot) - self.new_parts.append(_elem630) + (_etype642, _size639) = iprot.readListBegin() + for _i643 in xrange(_size639): + _elem644 = Partition() + _elem644.read(iprot) + self.new_parts.append(_elem644) iprot.readListEnd() else: iprot.skip(ftype) @@ -15318,8 +15336,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 iter631 in self.new_parts: - iter631.write(oprot) + for iter645 in self.new_parts: + iter645.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -15631,10 +15649,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype635, _size632) = iprot.readListBegin() - for _i636 in xrange(_size632): - _elem637 = iprot.readString(); - self.part_vals.append(_elem637) + (_etype649, _size646) = iprot.readListBegin() + for _i650 in xrange(_size646): + _elem651 = iprot.readString(); + self.part_vals.append(_elem651) iprot.readListEnd() else: iprot.skip(ftype) @@ -15665,8 +15683,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 iter638 in self.part_vals: - oprot.writeString(iter638) + for iter652 in self.part_vals: + oprot.writeString(iter652) oprot.writeListEnd() oprot.writeFieldEnd() if self.new_part is not None: @@ -15794,10 +15812,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.part_vals = [] - (_etype642, _size639) = iprot.readListBegin() - for _i643 in xrange(_size639): - _elem644 = iprot.readString(); - self.part_vals.append(_elem644) + (_etype656, _size653) = iprot.readListBegin() + for _i657 in xrange(_size653): + _elem658 = iprot.readString(); + self.part_vals.append(_elem658) iprot.readListEnd() else: iprot.skip(ftype) @@ -15819,8 +15837,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 iter645 in self.part_vals: - oprot.writeString(iter645) + for iter659 in self.part_vals: + oprot.writeString(iter659) oprot.writeListEnd() oprot.writeFieldEnd() if self.throw_exception is not None: @@ -16149,10 +16167,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype649, _size646) = iprot.readListBegin() - for _i650 in xrange(_size646): - _elem651 = iprot.readString(); - self.success.append(_elem651) + (_etype663, _size660) = iprot.readListBegin() + for _i664 in xrange(_size660): + _elem665 = iprot.readString(); + self.success.append(_elem665) iprot.readListEnd() else: iprot.skip(ftype) @@ -16175,8 +16193,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 iter652 in self.success: - oprot.writeString(iter652) + for iter666 in self.success: + oprot.writeString(iter666) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -16289,11 +16307,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.MAP: self.success = {} - (_ktype654, _vtype655, _size653 ) = iprot.readMapBegin() - for _i657 in xrange(_size653): - _key658 = iprot.readString(); - _val659 = iprot.readString(); - self.success[_key658] = _val659 + (_ktype668, _vtype669, _size667 ) = iprot.readMapBegin() + for _i671 in xrange(_size667): + _key672 = iprot.readString(); + _val673 = iprot.readString(); + self.success[_key672] = _val673 iprot.readMapEnd() else: iprot.skip(ftype) @@ -16316,9 +16334,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 kiter660,viter661 in self.success.items(): - oprot.writeString(kiter660) - oprot.writeString(viter661) + for kiter674,viter675 in self.success.items(): + oprot.writeString(kiter674) + oprot.writeString(viter675) oprot.writeMapEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -16388,11 +16406,11 @@ def read(self, iprot): elif fid == 3: if ftype == TType.MAP: self.part_vals = {} - (_ktype663, _vtype664, _size662 ) = iprot.readMapBegin() - for _i666 in xrange(_size662): - _key667 = iprot.readString(); - _val668 = iprot.readString(); - self.part_vals[_key667] = _val668 + (_ktype677, _vtype678, _size676 ) = iprot.readMapBegin() + for _i680 in xrange(_size676): + _key681 = iprot.readString(); + _val682 = iprot.readString(); + self.part_vals[_key681] = _val682 iprot.readMapEnd() else: iprot.skip(ftype) @@ -16422,9 +16440,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 kiter669,viter670 in self.part_vals.items(): - oprot.writeString(kiter669) - oprot.writeString(viter670) + for kiter683,viter684 in self.part_vals.items(): + oprot.writeString(kiter683) + oprot.writeString(viter684) oprot.writeMapEnd() oprot.writeFieldEnd() if self.eventType is not None: @@ -16620,11 +16638,11 @@ def read(self, iprot): elif fid == 3: if ftype == TType.MAP: self.part_vals = {} - (_ktype672, _vtype673, _size671 ) = iprot.readMapBegin() - for _i675 in xrange(_size671): - _key676 = iprot.readString(); - _val677 = iprot.readString(); - self.part_vals[_key676] = _val677 + (_ktype686, _vtype687, _size685 ) = iprot.readMapBegin() + for _i689 in xrange(_size685): + _key690 = iprot.readString(); + _val691 = iprot.readString(); + self.part_vals[_key690] = _val691 iprot.readMapEnd() else: iprot.skip(ftype) @@ -16654,9 +16672,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 kiter678,viter679 in self.part_vals.items(): - oprot.writeString(kiter678) - oprot.writeString(viter679) + for kiter692,viter693 in self.part_vals.items(): + oprot.writeString(kiter692) + oprot.writeString(viter693) oprot.writeMapEnd() oprot.writeFieldEnd() if self.eventType is not None: @@ -17628,11 +17646,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype683, _size680) = iprot.readListBegin() - for _i684 in xrange(_size680): - _elem685 = Index() - _elem685.read(iprot) - self.success.append(_elem685) + (_etype697, _size694) = iprot.readListBegin() + for _i698 in xrange(_size694): + _elem699 = Index() + _elem699.read(iprot) + self.success.append(_elem699) iprot.readListEnd() else: iprot.skip(ftype) @@ -17661,8 +17679,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 iter686 in self.success: - iter686.write(oprot) + for iter700 in self.success: + iter700.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -17803,10 +17821,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype690, _size687) = iprot.readListBegin() - for _i691 in xrange(_size687): - _elem692 = iprot.readString(); - self.success.append(_elem692) + (_etype704, _size701) = iprot.readListBegin() + for _i705 in xrange(_size701): + _elem706 = iprot.readString(); + self.success.append(_elem706) iprot.readListEnd() else: iprot.skip(ftype) @@ -17829,8 +17847,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 iter693 in self.success: - oprot.writeString(iter693) + for iter707 in self.success: + oprot.writeString(iter707) oprot.writeListEnd() oprot.writeFieldEnd() if self.o2 is not None: @@ -19865,10 +19883,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype697, _size694) = iprot.readListBegin() - for _i698 in xrange(_size694): - _elem699 = iprot.readString(); - self.success.append(_elem699) + (_etype711, _size708) = iprot.readListBegin() + for _i712 in xrange(_size708): + _elem713 = iprot.readString(); + self.success.append(_elem713) iprot.readListEnd() else: iprot.skip(ftype) @@ -19891,8 +19909,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 iter700 in self.success: - oprot.writeString(iter700) + for iter714 in self.success: + oprot.writeString(iter714) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -20410,10 +20428,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) @@ -20436,8 +20454,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.o1 is not None: @@ -20910,11 +20928,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype711, _size708) = iprot.readListBegin() - for _i712 in xrange(_size708): - _elem713 = Role() - _elem713.read(iprot) - self.success.append(_elem713) + (_etype725, _size722) = iprot.readListBegin() + for _i726 in xrange(_size722): + _elem727 = Role() + _elem727.read(iprot) + self.success.append(_elem727) iprot.readListEnd() else: iprot.skip(ftype) @@ -20937,8 +20955,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 iter714 in self.success: - iter714.write(oprot) + for iter728 in self.success: + iter728.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -21274,10 +21292,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.group_names = [] - (_etype718, _size715) = iprot.readListBegin() - for _i719 in xrange(_size715): - _elem720 = iprot.readString(); - self.group_names.append(_elem720) + (_etype732, _size729) = iprot.readListBegin() + for _i733 in xrange(_size729): + _elem734 = iprot.readString(); + self.group_names.append(_elem734) iprot.readListEnd() else: iprot.skip(ftype) @@ -21302,8 +21320,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 iter721 in self.group_names: - oprot.writeString(iter721) + for iter735 in self.group_names: + oprot.writeString(iter735) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -21510,11 +21528,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype725, _size722) = iprot.readListBegin() - for _i726 in xrange(_size722): - _elem727 = HiveObjectPrivilege() - _elem727.read(iprot) - self.success.append(_elem727) + (_etype739, _size736) = iprot.readListBegin() + for _i740 in xrange(_size736): + _elem741 = HiveObjectPrivilege() + _elem741.read(iprot) + self.success.append(_elem741) iprot.readListEnd() else: iprot.skip(ftype) @@ -21537,8 +21555,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: @@ -21863,10 +21881,10 @@ def read(self, iprot): elif fid == 2: 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) @@ -21887,8 +21905,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 iter735 in self.group_names: - oprot.writeString(iter735) + for iter749 in self.group_names: + oprot.writeString(iter749) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -21937,10 +21955,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype739, _size736) = iprot.readListBegin() - for _i740 in xrange(_size736): - _elem741 = iprot.readString(); - self.success.append(_elem741) + (_etype753, _size750) = iprot.readListBegin() + for _i754 in xrange(_size750): + _elem755 = iprot.readString(); + self.success.append(_elem755) iprot.readListEnd() else: iprot.skip(ftype) @@ -21963,8 +21981,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 iter742 in self.success: - oprot.writeString(iter742) + for iter756 in self.success: + oprot.writeString(iter756) 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 56c23e6..e9ac60a 100644 --- metastore/src/gen/thrift/gen-rb/thrift_hive_metastore.rb +++ metastore/src/gen/thrift/gen-rb/thrift_hive_metastore.rb @@ -544,38 +544,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) @@ -2246,30 +2246,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) @@ -4391,7 +4391,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 @@ -4413,14 +4413,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} } @@ -4433,7 +4433,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 @@ -4457,14 +4457,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 18e62d8..3ca72ba 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; @@ -52,6 +53,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; @@ -2191,64 +2193,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; @@ -2262,10 +2312,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); } @@ -2413,8 +2463,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()); } @@ -2426,17 +2480,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()); @@ -2444,7 +2498,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; @@ -3138,7 +3192,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 664dccd..075638d 100644 --- metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java +++ metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java @@ -34,12 +34,10 @@ import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; -import java.util.HashSet; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; import java.util.Random; -import java.util.Set; import javax.security.auth.login.LoginException; @@ -47,7 +45,6 @@ import org.apache.commons.logging.LogFactory; import org.apache.hadoop.hive.common.ObjectPair; import org.apache.hadoop.hive.common.ValidTxnList; -import org.apache.hadoop.hive.common.ValidTxnListImpl; import org.apache.hadoop.hive.conf.HiveConf; import org.apache.hadoop.hive.conf.HiveConf.ConfVars; import org.apache.hadoop.hive.metastore.api.AbortTxnRequest; @@ -68,7 +65,6 @@ import org.apache.hadoop.hive.metastore.api.FieldSchema; import org.apache.hadoop.hive.metastore.api.Function; import org.apache.hadoop.hive.metastore.api.GetOpenTxnsInfoResponse; -import org.apache.hadoop.hive.metastore.api.GetOpenTxnsResponse; import org.apache.hadoop.hive.metastore.api.GetPrincipalsInRoleRequest; import org.apache.hadoop.hive.metastore.api.GetPrincipalsInRoleResponse; import org.apache.hadoop.hive.metastore.api.GetRoleGrantsForPrincipalRequest; @@ -109,7 +105,6 @@ import org.apache.hadoop.hive.metastore.api.TableStatsRequest; import org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore; import org.apache.hadoop.hive.metastore.api.TxnAbortedException; -import org.apache.hadoop.hive.metastore.api.TxnInfo; import org.apache.hadoop.hive.metastore.api.TxnOpenException; import org.apache.hadoop.hive.metastore.api.Type; import org.apache.hadoop.hive.metastore.api.UnknownDBException; @@ -664,7 +659,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 @@ -678,13 +673,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 0c2209b..bd6eb14 100644 --- metastore/src/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java +++ metastore/src/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java @@ -21,7 +21,6 @@ import org.apache.hadoop.hive.common.ValidTxnList; import org.apache.hadoop.hive.metastore.api.CompactionType; import org.apache.hadoop.hive.metastore.api.GetOpenTxnsInfoResponse; -import org.apache.hadoop.hive.metastore.api.GetOpenTxnsResponse; import org.apache.hadoop.hive.metastore.api.HeartbeatTxnRangeResponse; import org.apache.hadoop.hive.metastore.api.LockRequest; import org.apache.hadoop.hive.metastore.api.LockResponse; @@ -41,13 +40,10 @@ import org.apache.hadoop.hive.metastore.api.AlreadyExistsException; import org.apache.hadoop.hive.metastore.api.ColumnStatistics; import org.apache.hadoop.hive.metastore.api.ColumnStatisticsObj; -import org.apache.hadoop.hive.metastore.api.CompactionType; import org.apache.hadoop.hive.metastore.api.ConfigValSecurityException; import org.apache.hadoop.hive.metastore.api.Database; import org.apache.hadoop.hive.metastore.api.FieldSchema; import org.apache.hadoop.hive.metastore.api.Function; -import org.apache.hadoop.hive.metastore.api.GetOpenTxnsInfoResponse; -import org.apache.hadoop.hive.metastore.api.GetOpenTxnsResponse; import org.apache.hadoop.hive.metastore.api.GetPrincipalsInRoleRequest; import org.apache.hadoop.hive.metastore.api.GetPrincipalsInRoleResponse; import org.apache.hadoop.hive.metastore.api.GetRoleGrantsForPrincipalRequest; @@ -59,28 +55,18 @@ import org.apache.hadoop.hive.metastore.api.InvalidObjectException; import org.apache.hadoop.hive.metastore.api.InvalidOperationException; import org.apache.hadoop.hive.metastore.api.InvalidPartitionException; -import org.apache.hadoop.hive.metastore.api.LockRequest; -import org.apache.hadoop.hive.metastore.api.LockResponse; import org.apache.hadoop.hive.metastore.api.MetaException; -import org.apache.hadoop.hive.metastore.api.NoSuchLockException; import org.apache.hadoop.hive.metastore.api.NoSuchObjectException; -import org.apache.hadoop.hive.metastore.api.NoSuchTxnException; -import org.apache.hadoop.hive.metastore.api.OpenTxnsResponse; import org.apache.hadoop.hive.metastore.api.Partition; import org.apache.hadoop.hive.metastore.api.PartitionEventType; import org.apache.hadoop.hive.metastore.api.PrincipalPrivilegeSet; import org.apache.hadoop.hive.metastore.api.PrincipalType; import org.apache.hadoop.hive.metastore.api.PrivilegeBag; import org.apache.hadoop.hive.metastore.api.Role; -import org.apache.hadoop.hive.metastore.api.ShowCompactResponse; -import org.apache.hadoop.hive.metastore.api.ShowLocksResponse; import org.apache.hadoop.hive.metastore.api.Table; -import org.apache.hadoop.hive.metastore.api.TxnAbortedException; -import org.apache.hadoop.hive.metastore.api.TxnOpenException; import org.apache.hadoop.hive.metastore.api.UnknownDBException; import org.apache.hadoop.hive.metastore.api.UnknownPartitionException; import org.apache.hadoop.hive.metastore.api.UnknownTableException; -import org.apache.thrift.TException; /** * TODO Unnecessary when the server sides for both dbstore and filestore are @@ -618,7 +604,15 @@ public void alterDatabase(String name, Database db) * @see org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore.Iface#drop_partition(java.lang.String, * java.lang.String, java.util.List, boolean) */ - public boolean dropPartition(String db_name, String tbl_name, + boolean dropPartition(String db_name, String tbl_name, + List part_vals, boolean deleteData) throws NoSuchObjectException, + MetaException, TException; + + 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; @@ -626,9 +620,6 @@ public boolean dropPartition(String db_name, String tbl_name, List> partExprs, boolean deleteData, boolean ignoreProtection, boolean ifExists) throws NoSuchObjectException, MetaException, TException; - public boolean dropPartition(String db_name, String tbl_name, - String name, 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 6a0eabe..7214eed 100644 --- metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java +++ metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java @@ -1544,6 +1544,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 e0de0e0..75bb992 100644 --- metastore/src/java/org/apache/hadoop/hive/metastore/RawStore.java +++ metastore/src/java/org/apache/hadoop/hive/metastore/RawStore.java @@ -140,6 +140,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 f731dab..b039221 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; @@ -51,7 +52,6 @@ import org.apache.hadoop.hive.metastore.api.Database; import org.apache.hadoop.hive.metastore.api.FieldSchema; import org.apache.hadoop.hive.metastore.api.MetaException; -import org.apache.hadoop.hive.metastore.api.Partition; import org.apache.hadoop.hive.metastore.api.SkewedInfo; import org.apache.hadoop.hive.metastore.api.StorageDescriptor; import org.apache.hadoop.hive.metastore.api.Table; @@ -237,6 +237,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 +248,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 +268,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 5c00aa1..40a10e6 100644 --- metastore/src/test/org/apache/hadoop/hive/metastore/DummyRawStoreControlledCommit.java +++ metastore/src/test/org/apache/hadoop/hive/metastore/DummyRawStoreControlledCommit.java @@ -206,6 +206,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 5025b83..461d41d 100644 --- metastore/src/test/org/apache/hadoop/hive/metastore/DummyRawStoreForJdoConnection.java +++ metastore/src/test/org/apache/hadoop/hive/metastore/DummyRawStoreForJdoConnection.java @@ -208,6 +208,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 5cb030c..5577511 100644 --- ql/src/java/org/apache/hadoop/hive/ql/exec/DDLTask.java +++ ql/src/java/org/apache/hadoop/hive/ql/exec/DDLTask.java @@ -3846,7 +3846,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); @@ -3855,8 +3855,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. @@ -3864,6 +3875,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 e6cb70f..ddee757 100644 --- ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java +++ ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java @@ -1665,7 +1665,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 a40a88d..28e89c1 100644 --- ql/src/java/org/apache/hadoop/hive/ql/parse/DDLSemanticAnalyzer.java +++ ql/src/java/org/apache/hadoop/hive/ql/parse/DDLSemanticAnalyzer.java @@ -2565,19 +2565,28 @@ private void analyzeAlterTableDropParts(ASTNode ast, boolean expectView) boolean canGroupExprs = ifExists; String tblName = getUnescapedName((ASTNode) ast.getChild(0)); - Table tab = getTable(tblName, true); - 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(tblName, true); validateAlterTableType(tab, AlterTableTypes.DROPPARTITION, expectView); inputs.add(new ReadEntity(tab)); boolean ignoreProtection = ast.getFirstChildWithType(HiveParser.TOK_IGNOREPROTECTION) != null; - addTableDropPartsOutputs(tab, partSpecs.values(), !ifExists, ignoreProtection); - DropTableDesc dropTblDesc = - new DropTableDesc(tblName, 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)); } @@ -2899,30 +2908,70 @@ 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 { - Map colTypes = new HashMap(); - for (FieldSchema fs : tab.getPartitionKeys()) { - colTypes.put(fs.getName().toLowerCase(), fs.getType()); - } - - Map> result = - new HashMap>(); + private List> getFullPartitionSpecs(CommonTree ast) + throws SemanticException { + List> specs = new ArrayList>(); for (int childIndex = 1; childIndex < ast.getChildCount(); childIndex++) { Tree partSpecTree = ast.getChild(childIndex); - if (partSpecTree.getType() != HiveParser.TOK_PARTSPEC) continue; - ExprNodeGenericFuncDesc expr = null; - HashSet names = new HashSet(partSpecTree.getChildCount()); + 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()); + } + + Map> result = + new HashMap>(); + for (Map spec : specs) { + ExprNodeGenericFuncDesc expr = null; + 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) { @@ -2935,11 +2984,12 @@ private void analyzeMetastoreCheck(CommonTree ast) throws SemanticException { operator, column, new ExprNodeConstantDesc(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. @@ -2969,7 +3019,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; @@ -3065,6 +3115,22 @@ private void addTablePartsOutputs(String tblName, List> part } } + 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 @@ -3088,25 +3154,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.DELETE)); - } + 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.DELETE)); } } 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 cde0abb..c6bd7dd 100644 --- ql/src/test/results/clientnegative/drop_partition_failure.q.out +++ ql/src/test/results/clientnegative/drop_partition_failure.q.out @@ -35,4 +35,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 c4f533b..e0e312a 100644 --- ql/src/test/results/clientnegative/drop_partition_filter_failure.q.out +++ ql/src/test/results/clientnegative/drop_partition_filter_failure.q.out @@ -19,4 +19,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 eae57f3..aea37d2 100644 --- ql/src/test/results/clientpositive/drop_multi_partitions.q.out +++ ql/src/test/results/clientpositive/drop_multi_partitions.q.out @@ -57,6 +57,7 @@ STAGE PLANS: Stage: Stage-0 Drop Table Operator: Drop Table + partition spec: [{b=1}] table: mp PREHOOK: query: alter table 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..a57004e --- /dev/null +++ ql/src/test/results/clientpositive/drop_partitions_partialspec.q.out @@ -0,0 +1,87 @@ +PREHOOK: query: create table part (key string, value string) partitioned by (ds string, hr string) +PREHOOK: type: CREATETABLE +PREHOOK: Output: database:default +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: 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