diff --git metastore/scripts/upgrade/derby/058-HIVE-19417.derby.sql metastore/scripts/upgrade/derby/058-HIVE-19417.derby.sql new file mode 100644 index 0000000000..a6eba1ac49 --- /dev/null +++ metastore/scripts/upgrade/derby/058-HIVE-19417.derby.sql @@ -0,0 +1,20 @@ +CREATE TABLE "APP"."UPD_TXNS" ( + "UPDATE_ID" BIGINT NOT NULL, + "CREATION_TIME" timestamp DEFAULT CURRENT_TIMESTAMP NOT NULL, + "COMMIT_SEQID" BIGINT NOT NULL, + "DB_NAME" VARCHAR(128) NOT NULL, + "TBL_NAME" VARCHAR(256) NOT NULL, + "TBL_ID" BIGINT NOT NULL, + "STATE" CHAR(1) NOT NULL, + "WRITE_ID" BIGINT NOT NULL, + "WRITEID_LIST" CLOB +); + +ALTER TABLE "APP"."UPD_TXNS" ADD CONSTRAINT "UPD_TXNS_PK" PRIMARY KEY ("UPDATE_ID"); + +ALTER TABLE "APP"."UPD_TXNS" ADD CONSTRAINT "UPD_TXNS_FK1" FOREIGN KEY ("TBL_ID") REFERENCES "APP"."TBLS" ("TBL_ID") ON DELETE NO ACTION ON UPDATE NO ACTION; + +-- Modify table stats related tables +ALTER TABLE TBLS ADD UPDATE_ID bigint default 0; +ALTER TABLE PARTITIONS ADD UPDATE_ID bigint default 0; + diff --git standalone-metastore/src/gen/thrift/gen-cpp/hive_metastore_types.cpp standalone-metastore/src/gen/thrift/gen-cpp/hive_metastore_types.cpp index af975fce1b..3eecffb177 100644 --- standalone-metastore/src/gen/thrift/gen-cpp/hive_metastore_types.cpp +++ standalone-metastore/src/gen/thrift/gen-cpp/hive_metastore_types.cpp @@ -215,6 +215,18 @@ const char* _kSchemaVersionStateNames[] = { }; const std::map _SchemaVersionState_VALUES_TO_NAMES(::apache::thrift::TEnumIterator(8, _kSchemaVersionStateValues, _kSchemaVersionStateNames), ::apache::thrift::TEnumIterator(-1, NULL, NULL)); +int _kIsolationLevelComplianceValues[] = { + IsolationLevelCompliance::YES, + IsolationLevelCompliance::NO, + IsolationLevelCompliance::UNKNOWN +}; +const char* _kIsolationLevelComplianceNames[] = { + "YES", + "NO", + "UNKNOWN" +}; +const std::map _IsolationLevelCompliance_VALUES_TO_NAMES(::apache::thrift::TEnumIterator(3, _kIsolationLevelComplianceValues, _kIsolationLevelComplianceNames), ::apache::thrift::TEnumIterator(-1, NULL, NULL)); + int _kFunctionTypeValues[] = { FunctionType::JAVA }; @@ -6309,6 +6321,21 @@ void Table::__set_ownerType(const PrincipalType::type val) { __isset.ownerType = true; } +void Table::__set_writeId(const int64_t val) { + this->writeId = val; +__isset.writeId = true; +} + +void Table::__set_validWriteIdList(const std::string& val) { + this->validWriteIdList = val; +__isset.validWriteIdList = true; +} + +void Table::__set_isStatsCompliant(const IsolationLevelCompliance::type val) { + this->isStatsCompliant = val; +__isset.isStatsCompliant = true; +} + uint32_t Table::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); @@ -6503,6 +6530,32 @@ uint32_t Table::read(::apache::thrift::protocol::TProtocol* iprot) { xfer += iprot->skip(ftype); } break; + case 19: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->writeId); + this->__isset.writeId = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 20: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->validWriteIdList); + this->__isset.validWriteIdList = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 21: + if (ftype == ::apache::thrift::protocol::T_I32) { + int32_t ecast247; + xfer += iprot->readI32(ecast247); + this->isStatsCompliant = (IsolationLevelCompliance::type)ecast247; + this->__isset.isStatsCompliant = true; + } else { + xfer += iprot->skip(ftype); + } + break; default: xfer += iprot->skip(ftype); break; @@ -6551,10 +6604,10 @@ uint32_t Table::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("partitionKeys", ::apache::thrift::protocol::T_LIST, 8); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->partitionKeys.size())); - std::vector ::const_iterator _iter247; - for (_iter247 = this->partitionKeys.begin(); _iter247 != this->partitionKeys.end(); ++_iter247) + std::vector ::const_iterator _iter248; + for (_iter248 = this->partitionKeys.begin(); _iter248 != this->partitionKeys.end(); ++_iter248) { - xfer += (*_iter247).write(oprot); + xfer += (*_iter248).write(oprot); } xfer += oprot->writeListEnd(); } @@ -6563,11 +6616,11 @@ uint32_t Table::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("parameters", ::apache::thrift::protocol::T_MAP, 9); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->parameters.size())); - std::map ::const_iterator _iter248; - for (_iter248 = this->parameters.begin(); _iter248 != this->parameters.end(); ++_iter248) + std::map ::const_iterator _iter249; + for (_iter249 = this->parameters.begin(); _iter249 != this->parameters.end(); ++_iter249) { - xfer += oprot->writeString(_iter248->first); - xfer += oprot->writeString(_iter248->second); + xfer += oprot->writeString(_iter249->first); + xfer += oprot->writeString(_iter249->second); } xfer += oprot->writeMapEnd(); } @@ -6615,6 +6668,21 @@ uint32_t Table::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeI32((int32_t)this->ownerType); xfer += oprot->writeFieldEnd(); } + if (this->__isset.writeId) { + xfer += oprot->writeFieldBegin("writeId", ::apache::thrift::protocol::T_I64, 19); + xfer += oprot->writeI64(this->writeId); + xfer += oprot->writeFieldEnd(); + } + if (this->__isset.validWriteIdList) { + xfer += oprot->writeFieldBegin("validWriteIdList", ::apache::thrift::protocol::T_STRING, 20); + xfer += oprot->writeString(this->validWriteIdList); + xfer += oprot->writeFieldEnd(); + } + if (this->__isset.isStatsCompliant) { + xfer += oprot->writeFieldBegin("isStatsCompliant", ::apache::thrift::protocol::T_I32, 21); + xfer += oprot->writeI32((int32_t)this->isStatsCompliant); + xfer += oprot->writeFieldEnd(); + } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); return xfer; @@ -6640,31 +6708,13 @@ void swap(Table &a, Table &b) { swap(a.creationMetadata, b.creationMetadata); swap(a.catName, b.catName); swap(a.ownerType, b.ownerType); + swap(a.writeId, b.writeId); + swap(a.validWriteIdList, b.validWriteIdList); + swap(a.isStatsCompliant, b.isStatsCompliant); swap(a.__isset, b.__isset); } -Table::Table(const Table& other249) { - tableName = other249.tableName; - dbName = other249.dbName; - owner = other249.owner; - createTime = other249.createTime; - lastAccessTime = other249.lastAccessTime; - retention = other249.retention; - sd = other249.sd; - partitionKeys = other249.partitionKeys; - parameters = other249.parameters; - viewOriginalText = other249.viewOriginalText; - viewExpandedText = other249.viewExpandedText; - tableType = other249.tableType; - privileges = other249.privileges; - temporary = other249.temporary; - rewriteEnabled = other249.rewriteEnabled; - creationMetadata = other249.creationMetadata; - catName = other249.catName; - ownerType = other249.ownerType; - __isset = other249.__isset; -} -Table& Table::operator=(const Table& other250) { +Table::Table(const Table& other250) { tableName = other250.tableName; dbName = other250.dbName; owner = other250.owner; @@ -6683,7 +6733,34 @@ Table& Table::operator=(const Table& other250) { creationMetadata = other250.creationMetadata; catName = other250.catName; ownerType = other250.ownerType; + writeId = other250.writeId; + validWriteIdList = other250.validWriteIdList; + isStatsCompliant = other250.isStatsCompliant; __isset = other250.__isset; +} +Table& Table::operator=(const Table& other251) { + tableName = other251.tableName; + dbName = other251.dbName; + owner = other251.owner; + createTime = other251.createTime; + lastAccessTime = other251.lastAccessTime; + retention = other251.retention; + sd = other251.sd; + partitionKeys = other251.partitionKeys; + parameters = other251.parameters; + viewOriginalText = other251.viewOriginalText; + viewExpandedText = other251.viewExpandedText; + tableType = other251.tableType; + privileges = other251.privileges; + temporary = other251.temporary; + rewriteEnabled = other251.rewriteEnabled; + creationMetadata = other251.creationMetadata; + catName = other251.catName; + ownerType = other251.ownerType; + writeId = other251.writeId; + validWriteIdList = other251.validWriteIdList; + isStatsCompliant = other251.isStatsCompliant; + __isset = other251.__isset; return *this; } void Table::printTo(std::ostream& out) const { @@ -6707,6 +6784,9 @@ void Table::printTo(std::ostream& out) const { out << ", " << "creationMetadata="; (__isset.creationMetadata ? (out << to_string(creationMetadata)) : (out << "")); out << ", " << "catName="; (__isset.catName ? (out << to_string(catName)) : (out << "")); out << ", " << "ownerType="; (__isset.ownerType ? (out << to_string(ownerType)) : (out << "")); + out << ", " << "writeId="; (__isset.writeId ? (out << to_string(writeId)) : (out << "")); + out << ", " << "validWriteIdList="; (__isset.validWriteIdList ? (out << to_string(validWriteIdList)) : (out << "")); + out << ", " << "isStatsCompliant="; (__isset.isStatsCompliant ? (out << to_string(isStatsCompliant)) : (out << "")); out << ")"; } @@ -6753,6 +6833,21 @@ void Partition::__set_catName(const std::string& val) { __isset.catName = true; } +void Partition::__set_writeId(const int64_t val) { + this->writeId = val; +__isset.writeId = true; +} + +void Partition::__set_validWriteIdList(const std::string& val) { + this->validWriteIdList = val; +__isset.validWriteIdList = true; +} + +void Partition::__set_isStatsCompliant(const IsolationLevelCompliance::type val) { + this->isStatsCompliant = val; +__isset.isStatsCompliant = true; +} + uint32_t Partition::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); @@ -6778,14 +6873,14 @@ uint32_t Partition::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->values.clear(); - uint32_t _size251; - ::apache::thrift::protocol::TType _etype254; - xfer += iprot->readListBegin(_etype254, _size251); - this->values.resize(_size251); - uint32_t _i255; - for (_i255 = 0; _i255 < _size251; ++_i255) + uint32_t _size252; + ::apache::thrift::protocol::TType _etype255; + xfer += iprot->readListBegin(_etype255, _size252); + this->values.resize(_size252); + uint32_t _i256; + for (_i256 = 0; _i256 < _size252; ++_i256) { - xfer += iprot->readString(this->values[_i255]); + xfer += iprot->readString(this->values[_i256]); } xfer += iprot->readListEnd(); } @@ -6838,17 +6933,17 @@ uint32_t Partition::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_MAP) { { this->parameters.clear(); - uint32_t _size256; - ::apache::thrift::protocol::TType _ktype257; - ::apache::thrift::protocol::TType _vtype258; - xfer += iprot->readMapBegin(_ktype257, _vtype258, _size256); - uint32_t _i260; - for (_i260 = 0; _i260 < _size256; ++_i260) + uint32_t _size257; + ::apache::thrift::protocol::TType _ktype258; + ::apache::thrift::protocol::TType _vtype259; + xfer += iprot->readMapBegin(_ktype258, _vtype259, _size257); + uint32_t _i261; + for (_i261 = 0; _i261 < _size257; ++_i261) { - std::string _key261; - xfer += iprot->readString(_key261); - std::string& _val262 = this->parameters[_key261]; - xfer += iprot->readString(_val262); + std::string _key262; + xfer += iprot->readString(_key262); + std::string& _val263 = this->parameters[_key262]; + xfer += iprot->readString(_val263); } xfer += iprot->readMapEnd(); } @@ -6873,6 +6968,32 @@ uint32_t Partition::read(::apache::thrift::protocol::TProtocol* iprot) { xfer += iprot->skip(ftype); } break; + case 10: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->writeId); + this->__isset.writeId = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 11: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->validWriteIdList); + this->__isset.validWriteIdList = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 12: + if (ftype == ::apache::thrift::protocol::T_I32) { + int32_t ecast264; + xfer += iprot->readI32(ecast264); + this->isStatsCompliant = (IsolationLevelCompliance::type)ecast264; + this->__isset.isStatsCompliant = true; + } else { + xfer += iprot->skip(ftype); + } + break; default: xfer += iprot->skip(ftype); break; @@ -6893,10 +7014,10 @@ uint32_t Partition::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("values", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->values.size())); - std::vector ::const_iterator _iter263; - for (_iter263 = this->values.begin(); _iter263 != this->values.end(); ++_iter263) + std::vector ::const_iterator _iter265; + for (_iter265 = this->values.begin(); _iter265 != this->values.end(); ++_iter265) { - xfer += oprot->writeString((*_iter263)); + xfer += oprot->writeString((*_iter265)); } xfer += oprot->writeListEnd(); } @@ -6925,11 +7046,11 @@ uint32_t Partition::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("parameters", ::apache::thrift::protocol::T_MAP, 7); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->parameters.size())); - std::map ::const_iterator _iter264; - for (_iter264 = this->parameters.begin(); _iter264 != this->parameters.end(); ++_iter264) + std::map ::const_iterator _iter266; + for (_iter266 = this->parameters.begin(); _iter266 != this->parameters.end(); ++_iter266) { - xfer += oprot->writeString(_iter264->first); - xfer += oprot->writeString(_iter264->second); + xfer += oprot->writeString(_iter266->first); + xfer += oprot->writeString(_iter266->second); } xfer += oprot->writeMapEnd(); } @@ -6945,6 +7066,21 @@ uint32_t Partition::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeString(this->catName); xfer += oprot->writeFieldEnd(); } + if (this->__isset.writeId) { + xfer += oprot->writeFieldBegin("writeId", ::apache::thrift::protocol::T_I64, 10); + xfer += oprot->writeI64(this->writeId); + xfer += oprot->writeFieldEnd(); + } + if (this->__isset.validWriteIdList) { + xfer += oprot->writeFieldBegin("validWriteIdList", ::apache::thrift::protocol::T_STRING, 11); + xfer += oprot->writeString(this->validWriteIdList); + xfer += oprot->writeFieldEnd(); + } + if (this->__isset.isStatsCompliant) { + xfer += oprot->writeFieldBegin("isStatsCompliant", ::apache::thrift::protocol::T_I32, 12); + xfer += oprot->writeI32((int32_t)this->isStatsCompliant); + xfer += oprot->writeFieldEnd(); + } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); return xfer; @@ -6961,32 +7097,41 @@ void swap(Partition &a, Partition &b) { swap(a.parameters, b.parameters); swap(a.privileges, b.privileges); swap(a.catName, b.catName); + swap(a.writeId, b.writeId); + swap(a.validWriteIdList, b.validWriteIdList); + swap(a.isStatsCompliant, b.isStatsCompliant); swap(a.__isset, b.__isset); } -Partition::Partition(const Partition& other265) { - values = other265.values; - dbName = other265.dbName; - tableName = other265.tableName; - createTime = other265.createTime; - lastAccessTime = other265.lastAccessTime; - sd = other265.sd; - parameters = other265.parameters; - privileges = other265.privileges; - catName = other265.catName; - __isset = other265.__isset; -} -Partition& Partition::operator=(const Partition& other266) { - values = other266.values; - dbName = other266.dbName; - tableName = other266.tableName; - createTime = other266.createTime; - lastAccessTime = other266.lastAccessTime; - sd = other266.sd; - parameters = other266.parameters; - privileges = other266.privileges; - catName = other266.catName; - __isset = other266.__isset; +Partition::Partition(const Partition& other267) { + values = other267.values; + dbName = other267.dbName; + tableName = other267.tableName; + createTime = other267.createTime; + lastAccessTime = other267.lastAccessTime; + sd = other267.sd; + parameters = other267.parameters; + privileges = other267.privileges; + catName = other267.catName; + writeId = other267.writeId; + validWriteIdList = other267.validWriteIdList; + isStatsCompliant = other267.isStatsCompliant; + __isset = other267.__isset; +} +Partition& Partition::operator=(const Partition& other268) { + values = other268.values; + dbName = other268.dbName; + tableName = other268.tableName; + createTime = other268.createTime; + lastAccessTime = other268.lastAccessTime; + sd = other268.sd; + parameters = other268.parameters; + privileges = other268.privileges; + catName = other268.catName; + writeId = other268.writeId; + validWriteIdList = other268.validWriteIdList; + isStatsCompliant = other268.isStatsCompliant; + __isset = other268.__isset; return *this; } void Partition::printTo(std::ostream& out) const { @@ -7001,6 +7146,9 @@ void Partition::printTo(std::ostream& out) const { out << ", " << "parameters=" << to_string(parameters); out << ", " << "privileges="; (__isset.privileges ? (out << to_string(privileges)) : (out << "")); out << ", " << "catName="; (__isset.catName ? (out << to_string(catName)) : (out << "")); + out << ", " << "writeId="; (__isset.writeId ? (out << to_string(writeId)) : (out << "")); + out << ", " << "validWriteIdList="; (__isset.validWriteIdList ? (out << to_string(validWriteIdList)) : (out << "")); + out << ", " << "isStatsCompliant="; (__isset.isStatsCompliant ? (out << to_string(isStatsCompliant)) : (out << "")); out << ")"; } @@ -7059,14 +7207,14 @@ uint32_t PartitionWithoutSD::read(::apache::thrift::protocol::TProtocol* iprot) if (ftype == ::apache::thrift::protocol::T_LIST) { { this->values.clear(); - uint32_t _size267; - ::apache::thrift::protocol::TType _etype270; - xfer += iprot->readListBegin(_etype270, _size267); - this->values.resize(_size267); - uint32_t _i271; - for (_i271 = 0; _i271 < _size267; ++_i271) + uint32_t _size269; + ::apache::thrift::protocol::TType _etype272; + xfer += iprot->readListBegin(_etype272, _size269); + this->values.resize(_size269); + uint32_t _i273; + for (_i273 = 0; _i273 < _size269; ++_i273) { - xfer += iprot->readString(this->values[_i271]); + xfer += iprot->readString(this->values[_i273]); } xfer += iprot->readListEnd(); } @@ -7103,17 +7251,17 @@ uint32_t PartitionWithoutSD::read(::apache::thrift::protocol::TProtocol* iprot) if (ftype == ::apache::thrift::protocol::T_MAP) { { this->parameters.clear(); - uint32_t _size272; - ::apache::thrift::protocol::TType _ktype273; - ::apache::thrift::protocol::TType _vtype274; - xfer += iprot->readMapBegin(_ktype273, _vtype274, _size272); - uint32_t _i276; - for (_i276 = 0; _i276 < _size272; ++_i276) + uint32_t _size274; + ::apache::thrift::protocol::TType _ktype275; + ::apache::thrift::protocol::TType _vtype276; + xfer += iprot->readMapBegin(_ktype275, _vtype276, _size274); + uint32_t _i278; + for (_i278 = 0; _i278 < _size274; ++_i278) { - std::string _key277; - xfer += iprot->readString(_key277); - std::string& _val278 = this->parameters[_key277]; - xfer += iprot->readString(_val278); + std::string _key279; + xfer += iprot->readString(_key279); + std::string& _val280 = this->parameters[_key279]; + xfer += iprot->readString(_val280); } xfer += iprot->readMapEnd(); } @@ -7150,10 +7298,10 @@ uint32_t PartitionWithoutSD::write(::apache::thrift::protocol::TProtocol* oprot) xfer += oprot->writeFieldBegin("values", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->values.size())); - std::vector ::const_iterator _iter279; - for (_iter279 = this->values.begin(); _iter279 != this->values.end(); ++_iter279) + std::vector ::const_iterator _iter281; + for (_iter281 = this->values.begin(); _iter281 != this->values.end(); ++_iter281) { - xfer += oprot->writeString((*_iter279)); + xfer += oprot->writeString((*_iter281)); } xfer += oprot->writeListEnd(); } @@ -7174,11 +7322,11 @@ uint32_t PartitionWithoutSD::write(::apache::thrift::protocol::TProtocol* oprot) xfer += oprot->writeFieldBegin("parameters", ::apache::thrift::protocol::T_MAP, 5); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->parameters.size())); - std::map ::const_iterator _iter280; - for (_iter280 = this->parameters.begin(); _iter280 != this->parameters.end(); ++_iter280) + std::map ::const_iterator _iter282; + for (_iter282 = this->parameters.begin(); _iter282 != this->parameters.end(); ++_iter282) { - xfer += oprot->writeString(_iter280->first); - xfer += oprot->writeString(_iter280->second); + xfer += oprot->writeString(_iter282->first); + xfer += oprot->writeString(_iter282->second); } xfer += oprot->writeMapEnd(); } @@ -7205,23 +7353,23 @@ void swap(PartitionWithoutSD &a, PartitionWithoutSD &b) { swap(a.__isset, b.__isset); } -PartitionWithoutSD::PartitionWithoutSD(const PartitionWithoutSD& other281) { - values = other281.values; - createTime = other281.createTime; - lastAccessTime = other281.lastAccessTime; - relativePath = other281.relativePath; - parameters = other281.parameters; - privileges = other281.privileges; - __isset = other281.__isset; -} -PartitionWithoutSD& PartitionWithoutSD::operator=(const PartitionWithoutSD& other282) { - values = other282.values; - createTime = other282.createTime; - lastAccessTime = other282.lastAccessTime; - relativePath = other282.relativePath; - parameters = other282.parameters; - privileges = other282.privileges; - __isset = other282.__isset; +PartitionWithoutSD::PartitionWithoutSD(const PartitionWithoutSD& other283) { + values = other283.values; + createTime = other283.createTime; + lastAccessTime = other283.lastAccessTime; + relativePath = other283.relativePath; + parameters = other283.parameters; + privileges = other283.privileges; + __isset = other283.__isset; +} +PartitionWithoutSD& PartitionWithoutSD::operator=(const PartitionWithoutSD& other284) { + values = other284.values; + createTime = other284.createTime; + lastAccessTime = other284.lastAccessTime; + relativePath = other284.relativePath; + parameters = other284.parameters; + privileges = other284.privileges; + __isset = other284.__isset; return *this; } void PartitionWithoutSD::printTo(std::ostream& out) const { @@ -7274,14 +7422,14 @@ uint32_t PartitionSpecWithSharedSD::read(::apache::thrift::protocol::TProtocol* if (ftype == ::apache::thrift::protocol::T_LIST) { { this->partitions.clear(); - uint32_t _size283; - ::apache::thrift::protocol::TType _etype286; - xfer += iprot->readListBegin(_etype286, _size283); - this->partitions.resize(_size283); - uint32_t _i287; - for (_i287 = 0; _i287 < _size283; ++_i287) + uint32_t _size285; + ::apache::thrift::protocol::TType _etype288; + xfer += iprot->readListBegin(_etype288, _size285); + this->partitions.resize(_size285); + uint32_t _i289; + for (_i289 = 0; _i289 < _size285; ++_i289) { - xfer += this->partitions[_i287].read(iprot); + xfer += this->partitions[_i289].read(iprot); } xfer += iprot->readListEnd(); } @@ -7318,10 +7466,10 @@ uint32_t PartitionSpecWithSharedSD::write(::apache::thrift::protocol::TProtocol* xfer += oprot->writeFieldBegin("partitions", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->partitions.size())); - std::vector ::const_iterator _iter288; - for (_iter288 = this->partitions.begin(); _iter288 != this->partitions.end(); ++_iter288) + std::vector ::const_iterator _iter290; + for (_iter290 = this->partitions.begin(); _iter290 != this->partitions.end(); ++_iter290) { - xfer += (*_iter288).write(oprot); + xfer += (*_iter290).write(oprot); } xfer += oprot->writeListEnd(); } @@ -7343,15 +7491,15 @@ void swap(PartitionSpecWithSharedSD &a, PartitionSpecWithSharedSD &b) { swap(a.__isset, b.__isset); } -PartitionSpecWithSharedSD::PartitionSpecWithSharedSD(const PartitionSpecWithSharedSD& other289) { - partitions = other289.partitions; - sd = other289.sd; - __isset = other289.__isset; +PartitionSpecWithSharedSD::PartitionSpecWithSharedSD(const PartitionSpecWithSharedSD& other291) { + partitions = other291.partitions; + sd = other291.sd; + __isset = other291.__isset; } -PartitionSpecWithSharedSD& PartitionSpecWithSharedSD::operator=(const PartitionSpecWithSharedSD& other290) { - partitions = other290.partitions; - sd = other290.sd; - __isset = other290.__isset; +PartitionSpecWithSharedSD& PartitionSpecWithSharedSD::operator=(const PartitionSpecWithSharedSD& other292) { + partitions = other292.partitions; + sd = other292.sd; + __isset = other292.__isset; return *this; } void PartitionSpecWithSharedSD::printTo(std::ostream& out) const { @@ -7396,14 +7544,14 @@ uint32_t PartitionListComposingSpec::read(::apache::thrift::protocol::TProtocol* if (ftype == ::apache::thrift::protocol::T_LIST) { { this->partitions.clear(); - uint32_t _size291; - ::apache::thrift::protocol::TType _etype294; - xfer += iprot->readListBegin(_etype294, _size291); - this->partitions.resize(_size291); - uint32_t _i295; - for (_i295 = 0; _i295 < _size291; ++_i295) + uint32_t _size293; + ::apache::thrift::protocol::TType _etype296; + xfer += iprot->readListBegin(_etype296, _size293); + this->partitions.resize(_size293); + uint32_t _i297; + for (_i297 = 0; _i297 < _size293; ++_i297) { - xfer += this->partitions[_i295].read(iprot); + xfer += this->partitions[_i297].read(iprot); } xfer += iprot->readListEnd(); } @@ -7432,10 +7580,10 @@ uint32_t PartitionListComposingSpec::write(::apache::thrift::protocol::TProtocol xfer += oprot->writeFieldBegin("partitions", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->partitions.size())); - std::vector ::const_iterator _iter296; - for (_iter296 = this->partitions.begin(); _iter296 != this->partitions.end(); ++_iter296) + std::vector ::const_iterator _iter298; + for (_iter298 = this->partitions.begin(); _iter298 != this->partitions.end(); ++_iter298) { - xfer += (*_iter296).write(oprot); + xfer += (*_iter298).write(oprot); } xfer += oprot->writeListEnd(); } @@ -7452,13 +7600,13 @@ void swap(PartitionListComposingSpec &a, PartitionListComposingSpec &b) { swap(a.__isset, b.__isset); } -PartitionListComposingSpec::PartitionListComposingSpec(const PartitionListComposingSpec& other297) { - partitions = other297.partitions; - __isset = other297.__isset; +PartitionListComposingSpec::PartitionListComposingSpec(const PartitionListComposingSpec& other299) { + partitions = other299.partitions; + __isset = other299.__isset; } -PartitionListComposingSpec& PartitionListComposingSpec::operator=(const PartitionListComposingSpec& other298) { - partitions = other298.partitions; - __isset = other298.__isset; +PartitionListComposingSpec& PartitionListComposingSpec::operator=(const PartitionListComposingSpec& other300) { + partitions = other300.partitions; + __isset = other300.__isset; return *this; } void PartitionListComposingSpec::printTo(std::ostream& out) const { @@ -7500,6 +7648,21 @@ void PartitionSpec::__set_catName(const std::string& val) { __isset.catName = true; } +void PartitionSpec::__set_writeId(const int64_t val) { + this->writeId = val; +__isset.writeId = true; +} + +void PartitionSpec::__set_validWriteIdList(const std::string& val) { + this->validWriteIdList = val; +__isset.validWriteIdList = true; +} + +void PartitionSpec::__set_isStatsCompliant(const IsolationLevelCompliance::type val) { + this->isStatsCompliant = val; +__isset.isStatsCompliant = true; +} + uint32_t PartitionSpec::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); @@ -7569,6 +7732,32 @@ uint32_t PartitionSpec::read(::apache::thrift::protocol::TProtocol* iprot) { xfer += iprot->skip(ftype); } break; + case 7: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->writeId); + this->__isset.writeId = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 8: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->validWriteIdList); + this->__isset.validWriteIdList = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 9: + if (ftype == ::apache::thrift::protocol::T_I32) { + int32_t ecast301; + xfer += iprot->readI32(ecast301); + this->isStatsCompliant = (IsolationLevelCompliance::type)ecast301; + this->__isset.isStatsCompliant = true; + } else { + xfer += iprot->skip(ftype); + } + break; default: xfer += iprot->skip(ftype); break; @@ -7613,6 +7802,21 @@ uint32_t PartitionSpec::write(::apache::thrift::protocol::TProtocol* oprot) cons xfer += oprot->writeString(this->catName); xfer += oprot->writeFieldEnd(); } + if (this->__isset.writeId) { + xfer += oprot->writeFieldBegin("writeId", ::apache::thrift::protocol::T_I64, 7); + xfer += oprot->writeI64(this->writeId); + xfer += oprot->writeFieldEnd(); + } + if (this->__isset.validWriteIdList) { + xfer += oprot->writeFieldBegin("validWriteIdList", ::apache::thrift::protocol::T_STRING, 8); + xfer += oprot->writeString(this->validWriteIdList); + xfer += oprot->writeFieldEnd(); + } + if (this->__isset.isStatsCompliant) { + xfer += oprot->writeFieldBegin("isStatsCompliant", ::apache::thrift::protocol::T_I32, 9); + xfer += oprot->writeI32((int32_t)this->isStatsCompliant); + xfer += oprot->writeFieldEnd(); + } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); return xfer; @@ -7626,26 +7830,35 @@ void swap(PartitionSpec &a, PartitionSpec &b) { swap(a.sharedSDPartitionSpec, b.sharedSDPartitionSpec); swap(a.partitionList, b.partitionList); swap(a.catName, b.catName); + swap(a.writeId, b.writeId); + swap(a.validWriteIdList, b.validWriteIdList); + swap(a.isStatsCompliant, b.isStatsCompliant); swap(a.__isset, b.__isset); } -PartitionSpec::PartitionSpec(const PartitionSpec& other299) { - dbName = other299.dbName; - tableName = other299.tableName; - rootPath = other299.rootPath; - sharedSDPartitionSpec = other299.sharedSDPartitionSpec; - partitionList = other299.partitionList; - catName = other299.catName; - __isset = other299.__isset; +PartitionSpec::PartitionSpec(const PartitionSpec& other302) { + dbName = other302.dbName; + tableName = other302.tableName; + rootPath = other302.rootPath; + sharedSDPartitionSpec = other302.sharedSDPartitionSpec; + partitionList = other302.partitionList; + catName = other302.catName; + writeId = other302.writeId; + validWriteIdList = other302.validWriteIdList; + isStatsCompliant = other302.isStatsCompliant; + __isset = other302.__isset; } -PartitionSpec& PartitionSpec::operator=(const PartitionSpec& other300) { - dbName = other300.dbName; - tableName = other300.tableName; - rootPath = other300.rootPath; - sharedSDPartitionSpec = other300.sharedSDPartitionSpec; - partitionList = other300.partitionList; - catName = other300.catName; - __isset = other300.__isset; +PartitionSpec& PartitionSpec::operator=(const PartitionSpec& other303) { + dbName = other303.dbName; + tableName = other303.tableName; + rootPath = other303.rootPath; + sharedSDPartitionSpec = other303.sharedSDPartitionSpec; + partitionList = other303.partitionList; + catName = other303.catName; + writeId = other303.writeId; + validWriteIdList = other303.validWriteIdList; + isStatsCompliant = other303.isStatsCompliant; + __isset = other303.__isset; return *this; } void PartitionSpec::printTo(std::ostream& out) const { @@ -7657,6 +7870,9 @@ void PartitionSpec::printTo(std::ostream& out) const { out << ", " << "sharedSDPartitionSpec="; (__isset.sharedSDPartitionSpec ? (out << to_string(sharedSDPartitionSpec)) : (out << "")); out << ", " << "partitionList="; (__isset.partitionList ? (out << to_string(partitionList)) : (out << "")); out << ", " << "catName="; (__isset.catName ? (out << to_string(catName)) : (out << "")); + out << ", " << "writeId="; (__isset.writeId ? (out << to_string(writeId)) : (out << "")); + out << ", " << "validWriteIdList="; (__isset.validWriteIdList ? (out << to_string(validWriteIdList)) : (out << "")); + out << ", " << "isStatsCompliant="; (__isset.isStatsCompliant ? (out << to_string(isStatsCompliant)) : (out << "")); out << ")"; } @@ -7792,19 +8008,19 @@ void swap(BooleanColumnStatsData &a, BooleanColumnStatsData &b) { swap(a.__isset, b.__isset); } -BooleanColumnStatsData::BooleanColumnStatsData(const BooleanColumnStatsData& other301) { - numTrues = other301.numTrues; - numFalses = other301.numFalses; - numNulls = other301.numNulls; - bitVectors = other301.bitVectors; - __isset = other301.__isset; +BooleanColumnStatsData::BooleanColumnStatsData(const BooleanColumnStatsData& other304) { + numTrues = other304.numTrues; + numFalses = other304.numFalses; + numNulls = other304.numNulls; + bitVectors = other304.bitVectors; + __isset = other304.__isset; } -BooleanColumnStatsData& BooleanColumnStatsData::operator=(const BooleanColumnStatsData& other302) { - numTrues = other302.numTrues; - numFalses = other302.numFalses; - numNulls = other302.numNulls; - bitVectors = other302.bitVectors; - __isset = other302.__isset; +BooleanColumnStatsData& BooleanColumnStatsData::operator=(const BooleanColumnStatsData& other305) { + numTrues = other305.numTrues; + numFalses = other305.numFalses; + numNulls = other305.numNulls; + bitVectors = other305.bitVectors; + __isset = other305.__isset; return *this; } void BooleanColumnStatsData::printTo(std::ostream& out) const { @@ -7967,21 +8183,21 @@ void swap(DoubleColumnStatsData &a, DoubleColumnStatsData &b) { swap(a.__isset, b.__isset); } -DoubleColumnStatsData::DoubleColumnStatsData(const DoubleColumnStatsData& other303) { - lowValue = other303.lowValue; - highValue = other303.highValue; - numNulls = other303.numNulls; - numDVs = other303.numDVs; - bitVectors = other303.bitVectors; - __isset = other303.__isset; +DoubleColumnStatsData::DoubleColumnStatsData(const DoubleColumnStatsData& other306) { + lowValue = other306.lowValue; + highValue = other306.highValue; + numNulls = other306.numNulls; + numDVs = other306.numDVs; + bitVectors = other306.bitVectors; + __isset = other306.__isset; } -DoubleColumnStatsData& DoubleColumnStatsData::operator=(const DoubleColumnStatsData& other304) { - lowValue = other304.lowValue; - highValue = other304.highValue; - numNulls = other304.numNulls; - numDVs = other304.numDVs; - bitVectors = other304.bitVectors; - __isset = other304.__isset; +DoubleColumnStatsData& DoubleColumnStatsData::operator=(const DoubleColumnStatsData& other307) { + lowValue = other307.lowValue; + highValue = other307.highValue; + numNulls = other307.numNulls; + numDVs = other307.numDVs; + bitVectors = other307.bitVectors; + __isset = other307.__isset; return *this; } void DoubleColumnStatsData::printTo(std::ostream& out) const { @@ -8145,21 +8361,21 @@ void swap(LongColumnStatsData &a, LongColumnStatsData &b) { swap(a.__isset, b.__isset); } -LongColumnStatsData::LongColumnStatsData(const LongColumnStatsData& other305) { - lowValue = other305.lowValue; - highValue = other305.highValue; - numNulls = other305.numNulls; - numDVs = other305.numDVs; - bitVectors = other305.bitVectors; - __isset = other305.__isset; +LongColumnStatsData::LongColumnStatsData(const LongColumnStatsData& other308) { + lowValue = other308.lowValue; + highValue = other308.highValue; + numNulls = other308.numNulls; + numDVs = other308.numDVs; + bitVectors = other308.bitVectors; + __isset = other308.__isset; } -LongColumnStatsData& LongColumnStatsData::operator=(const LongColumnStatsData& other306) { - lowValue = other306.lowValue; - highValue = other306.highValue; - numNulls = other306.numNulls; - numDVs = other306.numDVs; - bitVectors = other306.bitVectors; - __isset = other306.__isset; +LongColumnStatsData& LongColumnStatsData::operator=(const LongColumnStatsData& other309) { + lowValue = other309.lowValue; + highValue = other309.highValue; + numNulls = other309.numNulls; + numDVs = other309.numDVs; + bitVectors = other309.bitVectors; + __isset = other309.__isset; return *this; } void LongColumnStatsData::printTo(std::ostream& out) const { @@ -8325,21 +8541,21 @@ void swap(StringColumnStatsData &a, StringColumnStatsData &b) { swap(a.__isset, b.__isset); } -StringColumnStatsData::StringColumnStatsData(const StringColumnStatsData& other307) { - maxColLen = other307.maxColLen; - avgColLen = other307.avgColLen; - numNulls = other307.numNulls; - numDVs = other307.numDVs; - bitVectors = other307.bitVectors; - __isset = other307.__isset; +StringColumnStatsData::StringColumnStatsData(const StringColumnStatsData& other310) { + maxColLen = other310.maxColLen; + avgColLen = other310.avgColLen; + numNulls = other310.numNulls; + numDVs = other310.numDVs; + bitVectors = other310.bitVectors; + __isset = other310.__isset; } -StringColumnStatsData& StringColumnStatsData::operator=(const StringColumnStatsData& other308) { - maxColLen = other308.maxColLen; - avgColLen = other308.avgColLen; - numNulls = other308.numNulls; - numDVs = other308.numDVs; - bitVectors = other308.bitVectors; - __isset = other308.__isset; +StringColumnStatsData& StringColumnStatsData::operator=(const StringColumnStatsData& other311) { + maxColLen = other311.maxColLen; + avgColLen = other311.avgColLen; + numNulls = other311.numNulls; + numDVs = other311.numDVs; + bitVectors = other311.bitVectors; + __isset = other311.__isset; return *this; } void StringColumnStatsData::printTo(std::ostream& out) const { @@ -8485,19 +8701,19 @@ void swap(BinaryColumnStatsData &a, BinaryColumnStatsData &b) { swap(a.__isset, b.__isset); } -BinaryColumnStatsData::BinaryColumnStatsData(const BinaryColumnStatsData& other309) { - maxColLen = other309.maxColLen; - avgColLen = other309.avgColLen; - numNulls = other309.numNulls; - bitVectors = other309.bitVectors; - __isset = other309.__isset; +BinaryColumnStatsData::BinaryColumnStatsData(const BinaryColumnStatsData& other312) { + maxColLen = other312.maxColLen; + avgColLen = other312.avgColLen; + numNulls = other312.numNulls; + bitVectors = other312.bitVectors; + __isset = other312.__isset; } -BinaryColumnStatsData& BinaryColumnStatsData::operator=(const BinaryColumnStatsData& other310) { - maxColLen = other310.maxColLen; - avgColLen = other310.avgColLen; - numNulls = other310.numNulls; - bitVectors = other310.bitVectors; - __isset = other310.__isset; +BinaryColumnStatsData& BinaryColumnStatsData::operator=(const BinaryColumnStatsData& other313) { + maxColLen = other313.maxColLen; + avgColLen = other313.avgColLen; + numNulls = other313.numNulls; + bitVectors = other313.bitVectors; + __isset = other313.__isset; return *this; } void BinaryColumnStatsData::printTo(std::ostream& out) const { @@ -8602,13 +8818,13 @@ void swap(Decimal &a, Decimal &b) { swap(a.unscaled, b.unscaled); } -Decimal::Decimal(const Decimal& other311) { - scale = other311.scale; - unscaled = other311.unscaled; +Decimal::Decimal(const Decimal& other314) { + scale = other314.scale; + unscaled = other314.unscaled; } -Decimal& Decimal::operator=(const Decimal& other312) { - scale = other312.scale; - unscaled = other312.unscaled; +Decimal& Decimal::operator=(const Decimal& other315) { + scale = other315.scale; + unscaled = other315.unscaled; return *this; } void Decimal::printTo(std::ostream& out) const { @@ -8769,21 +8985,21 @@ void swap(DecimalColumnStatsData &a, DecimalColumnStatsData &b) { swap(a.__isset, b.__isset); } -DecimalColumnStatsData::DecimalColumnStatsData(const DecimalColumnStatsData& other313) { - lowValue = other313.lowValue; - highValue = other313.highValue; - numNulls = other313.numNulls; - numDVs = other313.numDVs; - bitVectors = other313.bitVectors; - __isset = other313.__isset; +DecimalColumnStatsData::DecimalColumnStatsData(const DecimalColumnStatsData& other316) { + lowValue = other316.lowValue; + highValue = other316.highValue; + numNulls = other316.numNulls; + numDVs = other316.numDVs; + bitVectors = other316.bitVectors; + __isset = other316.__isset; } -DecimalColumnStatsData& DecimalColumnStatsData::operator=(const DecimalColumnStatsData& other314) { - lowValue = other314.lowValue; - highValue = other314.highValue; - numNulls = other314.numNulls; - numDVs = other314.numDVs; - bitVectors = other314.bitVectors; - __isset = other314.__isset; +DecimalColumnStatsData& DecimalColumnStatsData::operator=(const DecimalColumnStatsData& other317) { + lowValue = other317.lowValue; + highValue = other317.highValue; + numNulls = other317.numNulls; + numDVs = other317.numDVs; + bitVectors = other317.bitVectors; + __isset = other317.__isset; return *this; } void DecimalColumnStatsData::printTo(std::ostream& out) const { @@ -8869,11 +9085,11 @@ void swap(Date &a, Date &b) { swap(a.daysSinceEpoch, b.daysSinceEpoch); } -Date::Date(const Date& other315) { - daysSinceEpoch = other315.daysSinceEpoch; +Date::Date(const Date& other318) { + daysSinceEpoch = other318.daysSinceEpoch; } -Date& Date::operator=(const Date& other316) { - daysSinceEpoch = other316.daysSinceEpoch; +Date& Date::operator=(const Date& other319) { + daysSinceEpoch = other319.daysSinceEpoch; return *this; } void Date::printTo(std::ostream& out) const { @@ -9033,21 +9249,21 @@ void swap(DateColumnStatsData &a, DateColumnStatsData &b) { swap(a.__isset, b.__isset); } -DateColumnStatsData::DateColumnStatsData(const DateColumnStatsData& other317) { - lowValue = other317.lowValue; - highValue = other317.highValue; - numNulls = other317.numNulls; - numDVs = other317.numDVs; - bitVectors = other317.bitVectors; - __isset = other317.__isset; +DateColumnStatsData::DateColumnStatsData(const DateColumnStatsData& other320) { + lowValue = other320.lowValue; + highValue = other320.highValue; + numNulls = other320.numNulls; + numDVs = other320.numDVs; + bitVectors = other320.bitVectors; + __isset = other320.__isset; } -DateColumnStatsData& DateColumnStatsData::operator=(const DateColumnStatsData& other318) { - lowValue = other318.lowValue; - highValue = other318.highValue; - numNulls = other318.numNulls; - numDVs = other318.numDVs; - bitVectors = other318.bitVectors; - __isset = other318.__isset; +DateColumnStatsData& DateColumnStatsData::operator=(const DateColumnStatsData& other321) { + lowValue = other321.lowValue; + highValue = other321.highValue; + numNulls = other321.numNulls; + numDVs = other321.numDVs; + bitVectors = other321.bitVectors; + __isset = other321.__isset; return *this; } void DateColumnStatsData::printTo(std::ostream& out) const { @@ -9233,25 +9449,25 @@ void swap(ColumnStatisticsData &a, ColumnStatisticsData &b) { swap(a.__isset, b.__isset); } -ColumnStatisticsData::ColumnStatisticsData(const ColumnStatisticsData& other319) { - booleanStats = other319.booleanStats; - longStats = other319.longStats; - doubleStats = other319.doubleStats; - stringStats = other319.stringStats; - binaryStats = other319.binaryStats; - decimalStats = other319.decimalStats; - dateStats = other319.dateStats; - __isset = other319.__isset; -} -ColumnStatisticsData& ColumnStatisticsData::operator=(const ColumnStatisticsData& other320) { - booleanStats = other320.booleanStats; - longStats = other320.longStats; - doubleStats = other320.doubleStats; - stringStats = other320.stringStats; - binaryStats = other320.binaryStats; - decimalStats = other320.decimalStats; - dateStats = other320.dateStats; - __isset = other320.__isset; +ColumnStatisticsData::ColumnStatisticsData(const ColumnStatisticsData& other322) { + booleanStats = other322.booleanStats; + longStats = other322.longStats; + doubleStats = other322.doubleStats; + stringStats = other322.stringStats; + binaryStats = other322.binaryStats; + decimalStats = other322.decimalStats; + dateStats = other322.dateStats; + __isset = other322.__isset; +} +ColumnStatisticsData& ColumnStatisticsData::operator=(const ColumnStatisticsData& other323) { + booleanStats = other323.booleanStats; + longStats = other323.longStats; + doubleStats = other323.doubleStats; + stringStats = other323.stringStats; + binaryStats = other323.binaryStats; + decimalStats = other323.decimalStats; + dateStats = other323.dateStats; + __isset = other323.__isset; return *this; } void ColumnStatisticsData::printTo(std::ostream& out) const { @@ -9379,15 +9595,15 @@ void swap(ColumnStatisticsObj &a, ColumnStatisticsObj &b) { swap(a.statsData, b.statsData); } -ColumnStatisticsObj::ColumnStatisticsObj(const ColumnStatisticsObj& other321) { - colName = other321.colName; - colType = other321.colType; - statsData = other321.statsData; +ColumnStatisticsObj::ColumnStatisticsObj(const ColumnStatisticsObj& other324) { + colName = other324.colName; + colType = other324.colType; + statsData = other324.statsData; } -ColumnStatisticsObj& ColumnStatisticsObj::operator=(const ColumnStatisticsObj& other322) { - colName = other322.colName; - colType = other322.colType; - statsData = other322.statsData; +ColumnStatisticsObj& ColumnStatisticsObj::operator=(const ColumnStatisticsObj& other325) { + colName = other325.colName; + colType = other325.colType; + statsData = other325.statsData; return *this; } void ColumnStatisticsObj::printTo(std::ostream& out) const { @@ -9569,23 +9785,23 @@ void swap(ColumnStatisticsDesc &a, ColumnStatisticsDesc &b) { swap(a.__isset, b.__isset); } -ColumnStatisticsDesc::ColumnStatisticsDesc(const ColumnStatisticsDesc& other323) { - isTblLevel = other323.isTblLevel; - dbName = other323.dbName; - tableName = other323.tableName; - partName = other323.partName; - lastAnalyzed = other323.lastAnalyzed; - catName = other323.catName; - __isset = other323.__isset; -} -ColumnStatisticsDesc& ColumnStatisticsDesc::operator=(const ColumnStatisticsDesc& other324) { - isTblLevel = other324.isTblLevel; - dbName = other324.dbName; - tableName = other324.tableName; - partName = other324.partName; - lastAnalyzed = other324.lastAnalyzed; - catName = other324.catName; - __isset = other324.__isset; +ColumnStatisticsDesc::ColumnStatisticsDesc(const ColumnStatisticsDesc& other326) { + isTblLevel = other326.isTblLevel; + dbName = other326.dbName; + tableName = other326.tableName; + partName = other326.partName; + lastAnalyzed = other326.lastAnalyzed; + catName = other326.catName; + __isset = other326.__isset; +} +ColumnStatisticsDesc& ColumnStatisticsDesc::operator=(const ColumnStatisticsDesc& other327) { + isTblLevel = other327.isTblLevel; + dbName = other327.dbName; + tableName = other327.tableName; + partName = other327.partName; + lastAnalyzed = other327.lastAnalyzed; + catName = other327.catName; + __isset = other327.__isset; return *this; } void ColumnStatisticsDesc::printTo(std::ostream& out) const { @@ -9613,6 +9829,21 @@ void ColumnStatistics::__set_statsObj(const std::vector & v this->statsObj = val; } +void ColumnStatistics::__set_writeId(const int64_t val) { + this->writeId = val; +__isset.writeId = true; +} + +void ColumnStatistics::__set_validWriteIdList(const std::string& val) { + this->validWriteIdList = val; +__isset.validWriteIdList = true; +} + +void ColumnStatistics::__set_isStatsCompliant(const IsolationLevelCompliance::type val) { + this->isStatsCompliant = val; +__isset.isStatsCompliant = true; +} + uint32_t ColumnStatistics::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); @@ -9648,14 +9879,14 @@ uint32_t ColumnStatistics::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->statsObj.clear(); - uint32_t _size325; - ::apache::thrift::protocol::TType _etype328; - xfer += iprot->readListBegin(_etype328, _size325); - this->statsObj.resize(_size325); - uint32_t _i329; - for (_i329 = 0; _i329 < _size325; ++_i329) + uint32_t _size328; + ::apache::thrift::protocol::TType _etype331; + xfer += iprot->readListBegin(_etype331, _size328); + this->statsObj.resize(_size328); + uint32_t _i332; + for (_i332 = 0; _i332 < _size328; ++_i332) { - xfer += this->statsObj[_i329].read(iprot); + xfer += this->statsObj[_i332].read(iprot); } xfer += iprot->readListEnd(); } @@ -9664,6 +9895,32 @@ uint32_t ColumnStatistics::read(::apache::thrift::protocol::TProtocol* iprot) { xfer += iprot->skip(ftype); } break; + case 3: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->writeId); + this->__isset.writeId = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->validWriteIdList); + this->__isset.validWriteIdList = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 5: + if (ftype == ::apache::thrift::protocol::T_I32) { + int32_t ecast333; + xfer += iprot->readI32(ecast333); + this->isStatsCompliant = (IsolationLevelCompliance::type)ecast333; + this->__isset.isStatsCompliant = true; + } else { + xfer += iprot->skip(ftype); + } + break; default: xfer += iprot->skip(ftype); break; @@ -9692,15 +9949,30 @@ uint32_t ColumnStatistics::write(::apache::thrift::protocol::TProtocol* oprot) c xfer += oprot->writeFieldBegin("statsObj", ::apache::thrift::protocol::T_LIST, 2); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->statsObj.size())); - std::vector ::const_iterator _iter330; - for (_iter330 = this->statsObj.begin(); _iter330 != this->statsObj.end(); ++_iter330) + std::vector ::const_iterator _iter334; + for (_iter334 = this->statsObj.begin(); _iter334 != this->statsObj.end(); ++_iter334) { - xfer += (*_iter330).write(oprot); + xfer += (*_iter334).write(oprot); } xfer += oprot->writeListEnd(); } xfer += oprot->writeFieldEnd(); + if (this->__isset.writeId) { + xfer += oprot->writeFieldBegin("writeId", ::apache::thrift::protocol::T_I64, 3); + xfer += oprot->writeI64(this->writeId); + xfer += oprot->writeFieldEnd(); + } + if (this->__isset.validWriteIdList) { + xfer += oprot->writeFieldBegin("validWriteIdList", ::apache::thrift::protocol::T_STRING, 4); + xfer += oprot->writeString(this->validWriteIdList); + xfer += oprot->writeFieldEnd(); + } + if (this->__isset.isStatsCompliant) { + xfer += oprot->writeFieldBegin("isStatsCompliant", ::apache::thrift::protocol::T_I32, 5); + xfer += oprot->writeI32((int32_t)this->isStatsCompliant); + xfer += oprot->writeFieldEnd(); + } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); return xfer; @@ -9710,15 +9982,27 @@ void swap(ColumnStatistics &a, ColumnStatistics &b) { using ::std::swap; swap(a.statsDesc, b.statsDesc); swap(a.statsObj, b.statsObj); + swap(a.writeId, b.writeId); + swap(a.validWriteIdList, b.validWriteIdList); + swap(a.isStatsCompliant, b.isStatsCompliant); + swap(a.__isset, b.__isset); } -ColumnStatistics::ColumnStatistics(const ColumnStatistics& other331) { - statsDesc = other331.statsDesc; - statsObj = other331.statsObj; -} -ColumnStatistics& ColumnStatistics::operator=(const ColumnStatistics& other332) { - statsDesc = other332.statsDesc; - statsObj = other332.statsObj; +ColumnStatistics::ColumnStatistics(const ColumnStatistics& other335) { + statsDesc = other335.statsDesc; + statsObj = other335.statsObj; + writeId = other335.writeId; + validWriteIdList = other335.validWriteIdList; + isStatsCompliant = other335.isStatsCompliant; + __isset = other335.__isset; +} +ColumnStatistics& ColumnStatistics::operator=(const ColumnStatistics& other336) { + statsDesc = other336.statsDesc; + statsObj = other336.statsObj; + writeId = other336.writeId; + validWriteIdList = other336.validWriteIdList; + isStatsCompliant = other336.isStatsCompliant; + __isset = other336.__isset; return *this; } void ColumnStatistics::printTo(std::ostream& out) const { @@ -9726,6 +10010,9 @@ void ColumnStatistics::printTo(std::ostream& out) const { out << "ColumnStatistics("; out << "statsDesc=" << to_string(statsDesc); out << ", " << "statsObj=" << to_string(statsObj); + out << ", " << "writeId="; (__isset.writeId ? (out << to_string(writeId)) : (out << "")); + out << ", " << "validWriteIdList="; (__isset.validWriteIdList ? (out << to_string(validWriteIdList)) : (out << "")); + out << ", " << "isStatsCompliant="; (__isset.isStatsCompliant ? (out << to_string(isStatsCompliant)) : (out << "")); out << ")"; } @@ -9742,6 +10029,11 @@ void AggrStats::__set_partsFound(const int64_t val) { this->partsFound = val; } +void AggrStats::__set_isStatsCompliant(const IsolationLevelCompliance::type val) { + this->isStatsCompliant = val; +__isset.isStatsCompliant = true; +} + uint32_t AggrStats::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); @@ -9769,14 +10061,14 @@ uint32_t AggrStats::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->colStats.clear(); - uint32_t _size333; - ::apache::thrift::protocol::TType _etype336; - xfer += iprot->readListBegin(_etype336, _size333); - this->colStats.resize(_size333); - uint32_t _i337; - for (_i337 = 0; _i337 < _size333; ++_i337) + uint32_t _size337; + ::apache::thrift::protocol::TType _etype340; + xfer += iprot->readListBegin(_etype340, _size337); + this->colStats.resize(_size337); + uint32_t _i341; + for (_i341 = 0; _i341 < _size337; ++_i341) { - xfer += this->colStats[_i337].read(iprot); + xfer += this->colStats[_i341].read(iprot); } xfer += iprot->readListEnd(); } @@ -9793,6 +10085,16 @@ uint32_t AggrStats::read(::apache::thrift::protocol::TProtocol* iprot) { xfer += iprot->skip(ftype); } break; + case 3: + if (ftype == ::apache::thrift::protocol::T_I32) { + int32_t ecast342; + xfer += iprot->readI32(ecast342); + this->isStatsCompliant = (IsolationLevelCompliance::type)ecast342; + this->__isset.isStatsCompliant = true; + } else { + xfer += iprot->skip(ftype); + } + break; default: xfer += iprot->skip(ftype); break; @@ -9817,10 +10119,10 @@ uint32_t AggrStats::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("colStats", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->colStats.size())); - std::vector ::const_iterator _iter338; - for (_iter338 = this->colStats.begin(); _iter338 != this->colStats.end(); ++_iter338) + std::vector ::const_iterator _iter343; + for (_iter343 = this->colStats.begin(); _iter343 != this->colStats.end(); ++_iter343) { - xfer += (*_iter338).write(oprot); + xfer += (*_iter343).write(oprot); } xfer += oprot->writeListEnd(); } @@ -9830,6 +10132,11 @@ uint32_t AggrStats::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeI64(this->partsFound); xfer += oprot->writeFieldEnd(); + if (this->__isset.isStatsCompliant) { + xfer += oprot->writeFieldBegin("isStatsCompliant", ::apache::thrift::protocol::T_I32, 3); + xfer += oprot->writeI32((int32_t)this->isStatsCompliant); + xfer += oprot->writeFieldEnd(); + } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); return xfer; @@ -9839,15 +10146,21 @@ void swap(AggrStats &a, AggrStats &b) { using ::std::swap; swap(a.colStats, b.colStats); swap(a.partsFound, b.partsFound); + swap(a.isStatsCompliant, b.isStatsCompliant); + swap(a.__isset, b.__isset); } -AggrStats::AggrStats(const AggrStats& other339) { - colStats = other339.colStats; - partsFound = other339.partsFound; +AggrStats::AggrStats(const AggrStats& other344) { + colStats = other344.colStats; + partsFound = other344.partsFound; + isStatsCompliant = other344.isStatsCompliant; + __isset = other344.__isset; } -AggrStats& AggrStats::operator=(const AggrStats& other340) { - colStats = other340.colStats; - partsFound = other340.partsFound; +AggrStats& AggrStats::operator=(const AggrStats& other345) { + colStats = other345.colStats; + partsFound = other345.partsFound; + isStatsCompliant = other345.isStatsCompliant; + __isset = other345.__isset; return *this; } void AggrStats::printTo(std::ostream& out) const { @@ -9855,6 +10168,7 @@ void AggrStats::printTo(std::ostream& out) const { out << "AggrStats("; out << "colStats=" << to_string(colStats); out << ", " << "partsFound=" << to_string(partsFound); + out << ", " << "isStatsCompliant="; (__isset.isStatsCompliant ? (out << to_string(isStatsCompliant)) : (out << "")); out << ")"; } @@ -9872,6 +10186,16 @@ void SetPartitionsStatsRequest::__set_needMerge(const bool val) { __isset.needMerge = true; } +void SetPartitionsStatsRequest::__set_writeId(const int64_t val) { + this->writeId = val; +__isset.writeId = true; +} + +void SetPartitionsStatsRequest::__set_validWriteIdList(const std::string& val) { + this->validWriteIdList = val; +__isset.validWriteIdList = true; +} + uint32_t SetPartitionsStatsRequest::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); @@ -9898,14 +10222,14 @@ uint32_t SetPartitionsStatsRequest::read(::apache::thrift::protocol::TProtocol* if (ftype == ::apache::thrift::protocol::T_LIST) { { this->colStats.clear(); - uint32_t _size341; - ::apache::thrift::protocol::TType _etype344; - xfer += iprot->readListBegin(_etype344, _size341); - this->colStats.resize(_size341); - uint32_t _i345; - for (_i345 = 0; _i345 < _size341; ++_i345) + uint32_t _size346; + ::apache::thrift::protocol::TType _etype349; + xfer += iprot->readListBegin(_etype349, _size346); + this->colStats.resize(_size346); + uint32_t _i350; + for (_i350 = 0; _i350 < _size346; ++_i350) { - xfer += this->colStats[_i345].read(iprot); + xfer += this->colStats[_i350].read(iprot); } xfer += iprot->readListEnd(); } @@ -9922,6 +10246,22 @@ uint32_t SetPartitionsStatsRequest::read(::apache::thrift::protocol::TProtocol* xfer += iprot->skip(ftype); } break; + case 3: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->writeId); + this->__isset.writeId = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->validWriteIdList); + this->__isset.validWriteIdList = true; + } else { + xfer += iprot->skip(ftype); + } + break; default: xfer += iprot->skip(ftype); break; @@ -9944,10 +10284,10 @@ uint32_t SetPartitionsStatsRequest::write(::apache::thrift::protocol::TProtocol* xfer += oprot->writeFieldBegin("colStats", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->colStats.size())); - std::vector ::const_iterator _iter346; - for (_iter346 = this->colStats.begin(); _iter346 != this->colStats.end(); ++_iter346) + std::vector ::const_iterator _iter351; + for (_iter351 = this->colStats.begin(); _iter351 != this->colStats.end(); ++_iter351) { - xfer += (*_iter346).write(oprot); + xfer += (*_iter351).write(oprot); } xfer += oprot->writeListEnd(); } @@ -9958,6 +10298,16 @@ uint32_t SetPartitionsStatsRequest::write(::apache::thrift::protocol::TProtocol* xfer += oprot->writeBool(this->needMerge); xfer += oprot->writeFieldEnd(); } + if (this->__isset.writeId) { + xfer += oprot->writeFieldBegin("writeId", ::apache::thrift::protocol::T_I64, 3); + xfer += oprot->writeI64(this->writeId); + xfer += oprot->writeFieldEnd(); + } + if (this->__isset.validWriteIdList) { + xfer += oprot->writeFieldBegin("validWriteIdList", ::apache::thrift::protocol::T_STRING, 4); + xfer += oprot->writeString(this->validWriteIdList); + xfer += oprot->writeFieldEnd(); + } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); return xfer; @@ -9967,18 +10317,24 @@ void swap(SetPartitionsStatsRequest &a, SetPartitionsStatsRequest &b) { using ::std::swap; swap(a.colStats, b.colStats); swap(a.needMerge, b.needMerge); + swap(a.writeId, b.writeId); + swap(a.validWriteIdList, b.validWriteIdList); swap(a.__isset, b.__isset); } -SetPartitionsStatsRequest::SetPartitionsStatsRequest(const SetPartitionsStatsRequest& other347) { - colStats = other347.colStats; - needMerge = other347.needMerge; - __isset = other347.__isset; +SetPartitionsStatsRequest::SetPartitionsStatsRequest(const SetPartitionsStatsRequest& other352) { + colStats = other352.colStats; + needMerge = other352.needMerge; + writeId = other352.writeId; + validWriteIdList = other352.validWriteIdList; + __isset = other352.__isset; } -SetPartitionsStatsRequest& SetPartitionsStatsRequest::operator=(const SetPartitionsStatsRequest& other348) { - colStats = other348.colStats; - needMerge = other348.needMerge; - __isset = other348.__isset; +SetPartitionsStatsRequest& SetPartitionsStatsRequest::operator=(const SetPartitionsStatsRequest& other353) { + colStats = other353.colStats; + needMerge = other353.needMerge; + writeId = other353.writeId; + validWriteIdList = other353.validWriteIdList; + __isset = other353.__isset; return *this; } void SetPartitionsStatsRequest::printTo(std::ostream& out) const { @@ -9986,6 +10342,8 @@ void SetPartitionsStatsRequest::printTo(std::ostream& out) const { out << "SetPartitionsStatsRequest("; out << "colStats=" << to_string(colStats); out << ", " << "needMerge="; (__isset.needMerge ? (out << to_string(needMerge)) : (out << "")); + out << ", " << "writeId="; (__isset.writeId ? (out << to_string(writeId)) : (out << "")); + out << ", " << "validWriteIdList="; (__isset.validWriteIdList ? (out << to_string(validWriteIdList)) : (out << "")); out << ")"; } @@ -10027,14 +10385,14 @@ uint32_t Schema::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->fieldSchemas.clear(); - uint32_t _size349; - ::apache::thrift::protocol::TType _etype352; - xfer += iprot->readListBegin(_etype352, _size349); - this->fieldSchemas.resize(_size349); - uint32_t _i353; - for (_i353 = 0; _i353 < _size349; ++_i353) + uint32_t _size354; + ::apache::thrift::protocol::TType _etype357; + xfer += iprot->readListBegin(_etype357, _size354); + this->fieldSchemas.resize(_size354); + uint32_t _i358; + for (_i358 = 0; _i358 < _size354; ++_i358) { - xfer += this->fieldSchemas[_i353].read(iprot); + xfer += this->fieldSchemas[_i358].read(iprot); } xfer += iprot->readListEnd(); } @@ -10047,17 +10405,17 @@ uint32_t Schema::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_MAP) { { this->properties.clear(); - uint32_t _size354; - ::apache::thrift::protocol::TType _ktype355; - ::apache::thrift::protocol::TType _vtype356; - xfer += iprot->readMapBegin(_ktype355, _vtype356, _size354); - uint32_t _i358; - for (_i358 = 0; _i358 < _size354; ++_i358) + uint32_t _size359; + ::apache::thrift::protocol::TType _ktype360; + ::apache::thrift::protocol::TType _vtype361; + xfer += iprot->readMapBegin(_ktype360, _vtype361, _size359); + uint32_t _i363; + for (_i363 = 0; _i363 < _size359; ++_i363) { - std::string _key359; - xfer += iprot->readString(_key359); - std::string& _val360 = this->properties[_key359]; - xfer += iprot->readString(_val360); + std::string _key364; + xfer += iprot->readString(_key364); + std::string& _val365 = this->properties[_key364]; + xfer += iprot->readString(_val365); } xfer += iprot->readMapEnd(); } @@ -10086,10 +10444,10 @@ uint32_t Schema::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("fieldSchemas", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->fieldSchemas.size())); - std::vector ::const_iterator _iter361; - for (_iter361 = this->fieldSchemas.begin(); _iter361 != this->fieldSchemas.end(); ++_iter361) + std::vector ::const_iterator _iter366; + for (_iter366 = this->fieldSchemas.begin(); _iter366 != this->fieldSchemas.end(); ++_iter366) { - xfer += (*_iter361).write(oprot); + xfer += (*_iter366).write(oprot); } xfer += oprot->writeListEnd(); } @@ -10098,11 +10456,11 @@ uint32_t Schema::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("properties", ::apache::thrift::protocol::T_MAP, 2); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->properties.size())); - std::map ::const_iterator _iter362; - for (_iter362 = this->properties.begin(); _iter362 != this->properties.end(); ++_iter362) + std::map ::const_iterator _iter367; + for (_iter367 = this->properties.begin(); _iter367 != this->properties.end(); ++_iter367) { - xfer += oprot->writeString(_iter362->first); - xfer += oprot->writeString(_iter362->second); + xfer += oprot->writeString(_iter367->first); + xfer += oprot->writeString(_iter367->second); } xfer += oprot->writeMapEnd(); } @@ -10120,15 +10478,15 @@ void swap(Schema &a, Schema &b) { swap(a.__isset, b.__isset); } -Schema::Schema(const Schema& other363) { - fieldSchemas = other363.fieldSchemas; - properties = other363.properties; - __isset = other363.__isset; +Schema::Schema(const Schema& other368) { + fieldSchemas = other368.fieldSchemas; + properties = other368.properties; + __isset = other368.__isset; } -Schema& Schema::operator=(const Schema& other364) { - fieldSchemas = other364.fieldSchemas; - properties = other364.properties; - __isset = other364.__isset; +Schema& Schema::operator=(const Schema& other369) { + fieldSchemas = other369.fieldSchemas; + properties = other369.properties; + __isset = other369.__isset; return *this; } void Schema::printTo(std::ostream& out) const { @@ -10173,17 +10531,17 @@ uint32_t EnvironmentContext::read(::apache::thrift::protocol::TProtocol* iprot) if (ftype == ::apache::thrift::protocol::T_MAP) { { this->properties.clear(); - uint32_t _size365; - ::apache::thrift::protocol::TType _ktype366; - ::apache::thrift::protocol::TType _vtype367; - xfer += iprot->readMapBegin(_ktype366, _vtype367, _size365); - uint32_t _i369; - for (_i369 = 0; _i369 < _size365; ++_i369) + uint32_t _size370; + ::apache::thrift::protocol::TType _ktype371; + ::apache::thrift::protocol::TType _vtype372; + xfer += iprot->readMapBegin(_ktype371, _vtype372, _size370); + uint32_t _i374; + for (_i374 = 0; _i374 < _size370; ++_i374) { - std::string _key370; - xfer += iprot->readString(_key370); - std::string& _val371 = this->properties[_key370]; - xfer += iprot->readString(_val371); + std::string _key375; + xfer += iprot->readString(_key375); + std::string& _val376 = this->properties[_key375]; + xfer += iprot->readString(_val376); } xfer += iprot->readMapEnd(); } @@ -10212,11 +10570,11 @@ uint32_t EnvironmentContext::write(::apache::thrift::protocol::TProtocol* oprot) xfer += oprot->writeFieldBegin("properties", ::apache::thrift::protocol::T_MAP, 1); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->properties.size())); - std::map ::const_iterator _iter372; - for (_iter372 = this->properties.begin(); _iter372 != this->properties.end(); ++_iter372) + std::map ::const_iterator _iter377; + for (_iter377 = this->properties.begin(); _iter377 != this->properties.end(); ++_iter377) { - xfer += oprot->writeString(_iter372->first); - xfer += oprot->writeString(_iter372->second); + xfer += oprot->writeString(_iter377->first); + xfer += oprot->writeString(_iter377->second); } xfer += oprot->writeMapEnd(); } @@ -10233,13 +10591,13 @@ void swap(EnvironmentContext &a, EnvironmentContext &b) { swap(a.__isset, b.__isset); } -EnvironmentContext::EnvironmentContext(const EnvironmentContext& other373) { - properties = other373.properties; - __isset = other373.__isset; +EnvironmentContext::EnvironmentContext(const EnvironmentContext& other378) { + properties = other378.properties; + __isset = other378.__isset; } -EnvironmentContext& EnvironmentContext::operator=(const EnvironmentContext& other374) { - properties = other374.properties; - __isset = other374.__isset; +EnvironmentContext& EnvironmentContext::operator=(const EnvironmentContext& other379) { + properties = other379.properties; + __isset = other379.__isset; return *this; } void EnvironmentContext::printTo(std::ostream& out) const { @@ -10361,17 +10719,17 @@ void swap(PrimaryKeysRequest &a, PrimaryKeysRequest &b) { swap(a.__isset, b.__isset); } -PrimaryKeysRequest::PrimaryKeysRequest(const PrimaryKeysRequest& other375) { - db_name = other375.db_name; - tbl_name = other375.tbl_name; - catName = other375.catName; - __isset = other375.__isset; +PrimaryKeysRequest::PrimaryKeysRequest(const PrimaryKeysRequest& other380) { + db_name = other380.db_name; + tbl_name = other380.tbl_name; + catName = other380.catName; + __isset = other380.__isset; } -PrimaryKeysRequest& PrimaryKeysRequest::operator=(const PrimaryKeysRequest& other376) { - db_name = other376.db_name; - tbl_name = other376.tbl_name; - catName = other376.catName; - __isset = other376.__isset; +PrimaryKeysRequest& PrimaryKeysRequest::operator=(const PrimaryKeysRequest& other381) { + db_name = other381.db_name; + tbl_name = other381.tbl_name; + catName = other381.catName; + __isset = other381.__isset; return *this; } void PrimaryKeysRequest::printTo(std::ostream& out) const { @@ -10418,14 +10776,14 @@ uint32_t PrimaryKeysResponse::read(::apache::thrift::protocol::TProtocol* iprot) if (ftype == ::apache::thrift::protocol::T_LIST) { { this->primaryKeys.clear(); - uint32_t _size377; - ::apache::thrift::protocol::TType _etype380; - xfer += iprot->readListBegin(_etype380, _size377); - this->primaryKeys.resize(_size377); - uint32_t _i381; - for (_i381 = 0; _i381 < _size377; ++_i381) + uint32_t _size382; + ::apache::thrift::protocol::TType _etype385; + xfer += iprot->readListBegin(_etype385, _size382); + this->primaryKeys.resize(_size382); + uint32_t _i386; + for (_i386 = 0; _i386 < _size382; ++_i386) { - xfer += this->primaryKeys[_i381].read(iprot); + xfer += this->primaryKeys[_i386].read(iprot); } xfer += iprot->readListEnd(); } @@ -10456,10 +10814,10 @@ uint32_t PrimaryKeysResponse::write(::apache::thrift::protocol::TProtocol* oprot xfer += oprot->writeFieldBegin("primaryKeys", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->primaryKeys.size())); - std::vector ::const_iterator _iter382; - for (_iter382 = this->primaryKeys.begin(); _iter382 != this->primaryKeys.end(); ++_iter382) + std::vector ::const_iterator _iter387; + for (_iter387 = this->primaryKeys.begin(); _iter387 != this->primaryKeys.end(); ++_iter387) { - xfer += (*_iter382).write(oprot); + xfer += (*_iter387).write(oprot); } xfer += oprot->writeListEnd(); } @@ -10475,11 +10833,11 @@ void swap(PrimaryKeysResponse &a, PrimaryKeysResponse &b) { swap(a.primaryKeys, b.primaryKeys); } -PrimaryKeysResponse::PrimaryKeysResponse(const PrimaryKeysResponse& other383) { - primaryKeys = other383.primaryKeys; +PrimaryKeysResponse::PrimaryKeysResponse(const PrimaryKeysResponse& other388) { + primaryKeys = other388.primaryKeys; } -PrimaryKeysResponse& PrimaryKeysResponse::operator=(const PrimaryKeysResponse& other384) { - primaryKeys = other384.primaryKeys; +PrimaryKeysResponse& PrimaryKeysResponse::operator=(const PrimaryKeysResponse& other389) { + primaryKeys = other389.primaryKeys; return *this; } void PrimaryKeysResponse::printTo(std::ostream& out) const { @@ -10629,21 +10987,21 @@ void swap(ForeignKeysRequest &a, ForeignKeysRequest &b) { swap(a.__isset, b.__isset); } -ForeignKeysRequest::ForeignKeysRequest(const ForeignKeysRequest& other385) { - parent_db_name = other385.parent_db_name; - parent_tbl_name = other385.parent_tbl_name; - foreign_db_name = other385.foreign_db_name; - foreign_tbl_name = other385.foreign_tbl_name; - catName = other385.catName; - __isset = other385.__isset; -} -ForeignKeysRequest& ForeignKeysRequest::operator=(const ForeignKeysRequest& other386) { - parent_db_name = other386.parent_db_name; - parent_tbl_name = other386.parent_tbl_name; - foreign_db_name = other386.foreign_db_name; - foreign_tbl_name = other386.foreign_tbl_name; - catName = other386.catName; - __isset = other386.__isset; +ForeignKeysRequest::ForeignKeysRequest(const ForeignKeysRequest& other390) { + parent_db_name = other390.parent_db_name; + parent_tbl_name = other390.parent_tbl_name; + foreign_db_name = other390.foreign_db_name; + foreign_tbl_name = other390.foreign_tbl_name; + catName = other390.catName; + __isset = other390.__isset; +} +ForeignKeysRequest& ForeignKeysRequest::operator=(const ForeignKeysRequest& other391) { + parent_db_name = other391.parent_db_name; + parent_tbl_name = other391.parent_tbl_name; + foreign_db_name = other391.foreign_db_name; + foreign_tbl_name = other391.foreign_tbl_name; + catName = other391.catName; + __isset = other391.__isset; return *this; } void ForeignKeysRequest::printTo(std::ostream& out) const { @@ -10692,14 +11050,14 @@ uint32_t ForeignKeysResponse::read(::apache::thrift::protocol::TProtocol* iprot) if (ftype == ::apache::thrift::protocol::T_LIST) { { this->foreignKeys.clear(); - uint32_t _size387; - ::apache::thrift::protocol::TType _etype390; - xfer += iprot->readListBegin(_etype390, _size387); - this->foreignKeys.resize(_size387); - uint32_t _i391; - for (_i391 = 0; _i391 < _size387; ++_i391) + uint32_t _size392; + ::apache::thrift::protocol::TType _etype395; + xfer += iprot->readListBegin(_etype395, _size392); + this->foreignKeys.resize(_size392); + uint32_t _i396; + for (_i396 = 0; _i396 < _size392; ++_i396) { - xfer += this->foreignKeys[_i391].read(iprot); + xfer += this->foreignKeys[_i396].read(iprot); } xfer += iprot->readListEnd(); } @@ -10730,10 +11088,10 @@ uint32_t ForeignKeysResponse::write(::apache::thrift::protocol::TProtocol* oprot xfer += oprot->writeFieldBegin("foreignKeys", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->foreignKeys.size())); - std::vector ::const_iterator _iter392; - for (_iter392 = this->foreignKeys.begin(); _iter392 != this->foreignKeys.end(); ++_iter392) + std::vector ::const_iterator _iter397; + for (_iter397 = this->foreignKeys.begin(); _iter397 != this->foreignKeys.end(); ++_iter397) { - xfer += (*_iter392).write(oprot); + xfer += (*_iter397).write(oprot); } xfer += oprot->writeListEnd(); } @@ -10749,11 +11107,11 @@ void swap(ForeignKeysResponse &a, ForeignKeysResponse &b) { swap(a.foreignKeys, b.foreignKeys); } -ForeignKeysResponse::ForeignKeysResponse(const ForeignKeysResponse& other393) { - foreignKeys = other393.foreignKeys; +ForeignKeysResponse::ForeignKeysResponse(const ForeignKeysResponse& other398) { + foreignKeys = other398.foreignKeys; } -ForeignKeysResponse& ForeignKeysResponse::operator=(const ForeignKeysResponse& other394) { - foreignKeys = other394.foreignKeys; +ForeignKeysResponse& ForeignKeysResponse::operator=(const ForeignKeysResponse& other399) { + foreignKeys = other399.foreignKeys; return *this; } void ForeignKeysResponse::printTo(std::ostream& out) const { @@ -10875,15 +11233,15 @@ void swap(UniqueConstraintsRequest &a, UniqueConstraintsRequest &b) { swap(a.tbl_name, b.tbl_name); } -UniqueConstraintsRequest::UniqueConstraintsRequest(const UniqueConstraintsRequest& other395) { - catName = other395.catName; - db_name = other395.db_name; - tbl_name = other395.tbl_name; +UniqueConstraintsRequest::UniqueConstraintsRequest(const UniqueConstraintsRequest& other400) { + catName = other400.catName; + db_name = other400.db_name; + tbl_name = other400.tbl_name; } -UniqueConstraintsRequest& UniqueConstraintsRequest::operator=(const UniqueConstraintsRequest& other396) { - catName = other396.catName; - db_name = other396.db_name; - tbl_name = other396.tbl_name; +UniqueConstraintsRequest& UniqueConstraintsRequest::operator=(const UniqueConstraintsRequest& other401) { + catName = other401.catName; + db_name = other401.db_name; + tbl_name = other401.tbl_name; return *this; } void UniqueConstraintsRequest::printTo(std::ostream& out) const { @@ -10930,14 +11288,14 @@ uint32_t UniqueConstraintsResponse::read(::apache::thrift::protocol::TProtocol* if (ftype == ::apache::thrift::protocol::T_LIST) { { this->uniqueConstraints.clear(); - uint32_t _size397; - ::apache::thrift::protocol::TType _etype400; - xfer += iprot->readListBegin(_etype400, _size397); - this->uniqueConstraints.resize(_size397); - uint32_t _i401; - for (_i401 = 0; _i401 < _size397; ++_i401) + uint32_t _size402; + ::apache::thrift::protocol::TType _etype405; + xfer += iprot->readListBegin(_etype405, _size402); + this->uniqueConstraints.resize(_size402); + uint32_t _i406; + for (_i406 = 0; _i406 < _size402; ++_i406) { - xfer += this->uniqueConstraints[_i401].read(iprot); + xfer += this->uniqueConstraints[_i406].read(iprot); } xfer += iprot->readListEnd(); } @@ -10968,10 +11326,10 @@ uint32_t UniqueConstraintsResponse::write(::apache::thrift::protocol::TProtocol* xfer += oprot->writeFieldBegin("uniqueConstraints", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->uniqueConstraints.size())); - std::vector ::const_iterator _iter402; - for (_iter402 = this->uniqueConstraints.begin(); _iter402 != this->uniqueConstraints.end(); ++_iter402) + std::vector ::const_iterator _iter407; + for (_iter407 = this->uniqueConstraints.begin(); _iter407 != this->uniqueConstraints.end(); ++_iter407) { - xfer += (*_iter402).write(oprot); + xfer += (*_iter407).write(oprot); } xfer += oprot->writeListEnd(); } @@ -10987,11 +11345,11 @@ void swap(UniqueConstraintsResponse &a, UniqueConstraintsResponse &b) { swap(a.uniqueConstraints, b.uniqueConstraints); } -UniqueConstraintsResponse::UniqueConstraintsResponse(const UniqueConstraintsResponse& other403) { - uniqueConstraints = other403.uniqueConstraints; +UniqueConstraintsResponse::UniqueConstraintsResponse(const UniqueConstraintsResponse& other408) { + uniqueConstraints = other408.uniqueConstraints; } -UniqueConstraintsResponse& UniqueConstraintsResponse::operator=(const UniqueConstraintsResponse& other404) { - uniqueConstraints = other404.uniqueConstraints; +UniqueConstraintsResponse& UniqueConstraintsResponse::operator=(const UniqueConstraintsResponse& other409) { + uniqueConstraints = other409.uniqueConstraints; return *this; } void UniqueConstraintsResponse::printTo(std::ostream& out) const { @@ -11113,15 +11471,15 @@ void swap(NotNullConstraintsRequest &a, NotNullConstraintsRequest &b) { swap(a.tbl_name, b.tbl_name); } -NotNullConstraintsRequest::NotNullConstraintsRequest(const NotNullConstraintsRequest& other405) { - catName = other405.catName; - db_name = other405.db_name; - tbl_name = other405.tbl_name; +NotNullConstraintsRequest::NotNullConstraintsRequest(const NotNullConstraintsRequest& other410) { + catName = other410.catName; + db_name = other410.db_name; + tbl_name = other410.tbl_name; } -NotNullConstraintsRequest& NotNullConstraintsRequest::operator=(const NotNullConstraintsRequest& other406) { - catName = other406.catName; - db_name = other406.db_name; - tbl_name = other406.tbl_name; +NotNullConstraintsRequest& NotNullConstraintsRequest::operator=(const NotNullConstraintsRequest& other411) { + catName = other411.catName; + db_name = other411.db_name; + tbl_name = other411.tbl_name; return *this; } void NotNullConstraintsRequest::printTo(std::ostream& out) const { @@ -11168,14 +11526,14 @@ uint32_t NotNullConstraintsResponse::read(::apache::thrift::protocol::TProtocol* if (ftype == ::apache::thrift::protocol::T_LIST) { { this->notNullConstraints.clear(); - uint32_t _size407; - ::apache::thrift::protocol::TType _etype410; - xfer += iprot->readListBegin(_etype410, _size407); - this->notNullConstraints.resize(_size407); - uint32_t _i411; - for (_i411 = 0; _i411 < _size407; ++_i411) + uint32_t _size412; + ::apache::thrift::protocol::TType _etype415; + xfer += iprot->readListBegin(_etype415, _size412); + this->notNullConstraints.resize(_size412); + uint32_t _i416; + for (_i416 = 0; _i416 < _size412; ++_i416) { - xfer += this->notNullConstraints[_i411].read(iprot); + xfer += this->notNullConstraints[_i416].read(iprot); } xfer += iprot->readListEnd(); } @@ -11206,10 +11564,10 @@ uint32_t NotNullConstraintsResponse::write(::apache::thrift::protocol::TProtocol xfer += oprot->writeFieldBegin("notNullConstraints", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->notNullConstraints.size())); - std::vector ::const_iterator _iter412; - for (_iter412 = this->notNullConstraints.begin(); _iter412 != this->notNullConstraints.end(); ++_iter412) + std::vector ::const_iterator _iter417; + for (_iter417 = this->notNullConstraints.begin(); _iter417 != this->notNullConstraints.end(); ++_iter417) { - xfer += (*_iter412).write(oprot); + xfer += (*_iter417).write(oprot); } xfer += oprot->writeListEnd(); } @@ -11225,11 +11583,11 @@ void swap(NotNullConstraintsResponse &a, NotNullConstraintsResponse &b) { swap(a.notNullConstraints, b.notNullConstraints); } -NotNullConstraintsResponse::NotNullConstraintsResponse(const NotNullConstraintsResponse& other413) { - notNullConstraints = other413.notNullConstraints; +NotNullConstraintsResponse::NotNullConstraintsResponse(const NotNullConstraintsResponse& other418) { + notNullConstraints = other418.notNullConstraints; } -NotNullConstraintsResponse& NotNullConstraintsResponse::operator=(const NotNullConstraintsResponse& other414) { - notNullConstraints = other414.notNullConstraints; +NotNullConstraintsResponse& NotNullConstraintsResponse::operator=(const NotNullConstraintsResponse& other419) { + notNullConstraints = other419.notNullConstraints; return *this; } void NotNullConstraintsResponse::printTo(std::ostream& out) const { @@ -11351,15 +11709,15 @@ void swap(DefaultConstraintsRequest &a, DefaultConstraintsRequest &b) { swap(a.tbl_name, b.tbl_name); } -DefaultConstraintsRequest::DefaultConstraintsRequest(const DefaultConstraintsRequest& other415) { - catName = other415.catName; - db_name = other415.db_name; - tbl_name = other415.tbl_name; +DefaultConstraintsRequest::DefaultConstraintsRequest(const DefaultConstraintsRequest& other420) { + catName = other420.catName; + db_name = other420.db_name; + tbl_name = other420.tbl_name; } -DefaultConstraintsRequest& DefaultConstraintsRequest::operator=(const DefaultConstraintsRequest& other416) { - catName = other416.catName; - db_name = other416.db_name; - tbl_name = other416.tbl_name; +DefaultConstraintsRequest& DefaultConstraintsRequest::operator=(const DefaultConstraintsRequest& other421) { + catName = other421.catName; + db_name = other421.db_name; + tbl_name = other421.tbl_name; return *this; } void DefaultConstraintsRequest::printTo(std::ostream& out) const { @@ -11406,14 +11764,14 @@ uint32_t DefaultConstraintsResponse::read(::apache::thrift::protocol::TProtocol* if (ftype == ::apache::thrift::protocol::T_LIST) { { this->defaultConstraints.clear(); - uint32_t _size417; - ::apache::thrift::protocol::TType _etype420; - xfer += iprot->readListBegin(_etype420, _size417); - this->defaultConstraints.resize(_size417); - uint32_t _i421; - for (_i421 = 0; _i421 < _size417; ++_i421) + uint32_t _size422; + ::apache::thrift::protocol::TType _etype425; + xfer += iprot->readListBegin(_etype425, _size422); + this->defaultConstraints.resize(_size422); + uint32_t _i426; + for (_i426 = 0; _i426 < _size422; ++_i426) { - xfer += this->defaultConstraints[_i421].read(iprot); + xfer += this->defaultConstraints[_i426].read(iprot); } xfer += iprot->readListEnd(); } @@ -11444,10 +11802,10 @@ uint32_t DefaultConstraintsResponse::write(::apache::thrift::protocol::TProtocol xfer += oprot->writeFieldBegin("defaultConstraints", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->defaultConstraints.size())); - std::vector ::const_iterator _iter422; - for (_iter422 = this->defaultConstraints.begin(); _iter422 != this->defaultConstraints.end(); ++_iter422) + std::vector ::const_iterator _iter427; + for (_iter427 = this->defaultConstraints.begin(); _iter427 != this->defaultConstraints.end(); ++_iter427) { - xfer += (*_iter422).write(oprot); + xfer += (*_iter427).write(oprot); } xfer += oprot->writeListEnd(); } @@ -11463,11 +11821,11 @@ void swap(DefaultConstraintsResponse &a, DefaultConstraintsResponse &b) { swap(a.defaultConstraints, b.defaultConstraints); } -DefaultConstraintsResponse::DefaultConstraintsResponse(const DefaultConstraintsResponse& other423) { - defaultConstraints = other423.defaultConstraints; +DefaultConstraintsResponse::DefaultConstraintsResponse(const DefaultConstraintsResponse& other428) { + defaultConstraints = other428.defaultConstraints; } -DefaultConstraintsResponse& DefaultConstraintsResponse::operator=(const DefaultConstraintsResponse& other424) { - defaultConstraints = other424.defaultConstraints; +DefaultConstraintsResponse& DefaultConstraintsResponse::operator=(const DefaultConstraintsResponse& other429) { + defaultConstraints = other429.defaultConstraints; return *this; } void DefaultConstraintsResponse::printTo(std::ostream& out) const { @@ -11589,15 +11947,15 @@ void swap(CheckConstraintsRequest &a, CheckConstraintsRequest &b) { swap(a.tbl_name, b.tbl_name); } -CheckConstraintsRequest::CheckConstraintsRequest(const CheckConstraintsRequest& other425) { - catName = other425.catName; - db_name = other425.db_name; - tbl_name = other425.tbl_name; +CheckConstraintsRequest::CheckConstraintsRequest(const CheckConstraintsRequest& other430) { + catName = other430.catName; + db_name = other430.db_name; + tbl_name = other430.tbl_name; } -CheckConstraintsRequest& CheckConstraintsRequest::operator=(const CheckConstraintsRequest& other426) { - catName = other426.catName; - db_name = other426.db_name; - tbl_name = other426.tbl_name; +CheckConstraintsRequest& CheckConstraintsRequest::operator=(const CheckConstraintsRequest& other431) { + catName = other431.catName; + db_name = other431.db_name; + tbl_name = other431.tbl_name; return *this; } void CheckConstraintsRequest::printTo(std::ostream& out) const { @@ -11644,14 +12002,14 @@ uint32_t CheckConstraintsResponse::read(::apache::thrift::protocol::TProtocol* i if (ftype == ::apache::thrift::protocol::T_LIST) { { this->checkConstraints.clear(); - uint32_t _size427; - ::apache::thrift::protocol::TType _etype430; - xfer += iprot->readListBegin(_etype430, _size427); - this->checkConstraints.resize(_size427); - uint32_t _i431; - for (_i431 = 0; _i431 < _size427; ++_i431) + uint32_t _size432; + ::apache::thrift::protocol::TType _etype435; + xfer += iprot->readListBegin(_etype435, _size432); + this->checkConstraints.resize(_size432); + uint32_t _i436; + for (_i436 = 0; _i436 < _size432; ++_i436) { - xfer += this->checkConstraints[_i431].read(iprot); + xfer += this->checkConstraints[_i436].read(iprot); } xfer += iprot->readListEnd(); } @@ -11682,10 +12040,10 @@ uint32_t CheckConstraintsResponse::write(::apache::thrift::protocol::TProtocol* xfer += oprot->writeFieldBegin("checkConstraints", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->checkConstraints.size())); - std::vector ::const_iterator _iter432; - for (_iter432 = this->checkConstraints.begin(); _iter432 != this->checkConstraints.end(); ++_iter432) + std::vector ::const_iterator _iter437; + for (_iter437 = this->checkConstraints.begin(); _iter437 != this->checkConstraints.end(); ++_iter437) { - xfer += (*_iter432).write(oprot); + xfer += (*_iter437).write(oprot); } xfer += oprot->writeListEnd(); } @@ -11701,11 +12059,11 @@ void swap(CheckConstraintsResponse &a, CheckConstraintsResponse &b) { swap(a.checkConstraints, b.checkConstraints); } -CheckConstraintsResponse::CheckConstraintsResponse(const CheckConstraintsResponse& other433) { - checkConstraints = other433.checkConstraints; +CheckConstraintsResponse::CheckConstraintsResponse(const CheckConstraintsResponse& other438) { + checkConstraints = other438.checkConstraints; } -CheckConstraintsResponse& CheckConstraintsResponse::operator=(const CheckConstraintsResponse& other434) { - checkConstraints = other434.checkConstraints; +CheckConstraintsResponse& CheckConstraintsResponse::operator=(const CheckConstraintsResponse& other439) { + checkConstraints = other439.checkConstraints; return *this; } void CheckConstraintsResponse::printTo(std::ostream& out) const { @@ -11847,19 +12205,19 @@ void swap(DropConstraintRequest &a, DropConstraintRequest &b) { swap(a.__isset, b.__isset); } -DropConstraintRequest::DropConstraintRequest(const DropConstraintRequest& other435) { - dbname = other435.dbname; - tablename = other435.tablename; - constraintname = other435.constraintname; - catName = other435.catName; - __isset = other435.__isset; +DropConstraintRequest::DropConstraintRequest(const DropConstraintRequest& other440) { + dbname = other440.dbname; + tablename = other440.tablename; + constraintname = other440.constraintname; + catName = other440.catName; + __isset = other440.__isset; } -DropConstraintRequest& DropConstraintRequest::operator=(const DropConstraintRequest& other436) { - dbname = other436.dbname; - tablename = other436.tablename; - constraintname = other436.constraintname; - catName = other436.catName; - __isset = other436.__isset; +DropConstraintRequest& DropConstraintRequest::operator=(const DropConstraintRequest& other441) { + dbname = other441.dbname; + tablename = other441.tablename; + constraintname = other441.constraintname; + catName = other441.catName; + __isset = other441.__isset; return *this; } void DropConstraintRequest::printTo(std::ostream& out) const { @@ -11907,14 +12265,14 @@ uint32_t AddPrimaryKeyRequest::read(::apache::thrift::protocol::TProtocol* iprot if (ftype == ::apache::thrift::protocol::T_LIST) { { this->primaryKeyCols.clear(); - uint32_t _size437; - ::apache::thrift::protocol::TType _etype440; - xfer += iprot->readListBegin(_etype440, _size437); - this->primaryKeyCols.resize(_size437); - uint32_t _i441; - for (_i441 = 0; _i441 < _size437; ++_i441) + uint32_t _size442; + ::apache::thrift::protocol::TType _etype445; + xfer += iprot->readListBegin(_etype445, _size442); + this->primaryKeyCols.resize(_size442); + uint32_t _i446; + for (_i446 = 0; _i446 < _size442; ++_i446) { - xfer += this->primaryKeyCols[_i441].read(iprot); + xfer += this->primaryKeyCols[_i446].read(iprot); } xfer += iprot->readListEnd(); } @@ -11945,10 +12303,10 @@ uint32_t AddPrimaryKeyRequest::write(::apache::thrift::protocol::TProtocol* opro xfer += oprot->writeFieldBegin("primaryKeyCols", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->primaryKeyCols.size())); - std::vector ::const_iterator _iter442; - for (_iter442 = this->primaryKeyCols.begin(); _iter442 != this->primaryKeyCols.end(); ++_iter442) + std::vector ::const_iterator _iter447; + for (_iter447 = this->primaryKeyCols.begin(); _iter447 != this->primaryKeyCols.end(); ++_iter447) { - xfer += (*_iter442).write(oprot); + xfer += (*_iter447).write(oprot); } xfer += oprot->writeListEnd(); } @@ -11964,11 +12322,11 @@ void swap(AddPrimaryKeyRequest &a, AddPrimaryKeyRequest &b) { swap(a.primaryKeyCols, b.primaryKeyCols); } -AddPrimaryKeyRequest::AddPrimaryKeyRequest(const AddPrimaryKeyRequest& other443) { - primaryKeyCols = other443.primaryKeyCols; +AddPrimaryKeyRequest::AddPrimaryKeyRequest(const AddPrimaryKeyRequest& other448) { + primaryKeyCols = other448.primaryKeyCols; } -AddPrimaryKeyRequest& AddPrimaryKeyRequest::operator=(const AddPrimaryKeyRequest& other444) { - primaryKeyCols = other444.primaryKeyCols; +AddPrimaryKeyRequest& AddPrimaryKeyRequest::operator=(const AddPrimaryKeyRequest& other449) { + primaryKeyCols = other449.primaryKeyCols; return *this; } void AddPrimaryKeyRequest::printTo(std::ostream& out) const { @@ -12013,14 +12371,14 @@ uint32_t AddForeignKeyRequest::read(::apache::thrift::protocol::TProtocol* iprot if (ftype == ::apache::thrift::protocol::T_LIST) { { this->foreignKeyCols.clear(); - uint32_t _size445; - ::apache::thrift::protocol::TType _etype448; - xfer += iprot->readListBegin(_etype448, _size445); - this->foreignKeyCols.resize(_size445); - uint32_t _i449; - for (_i449 = 0; _i449 < _size445; ++_i449) + uint32_t _size450; + ::apache::thrift::protocol::TType _etype453; + xfer += iprot->readListBegin(_etype453, _size450); + this->foreignKeyCols.resize(_size450); + uint32_t _i454; + for (_i454 = 0; _i454 < _size450; ++_i454) { - xfer += this->foreignKeyCols[_i449].read(iprot); + xfer += this->foreignKeyCols[_i454].read(iprot); } xfer += iprot->readListEnd(); } @@ -12051,10 +12409,10 @@ uint32_t AddForeignKeyRequest::write(::apache::thrift::protocol::TProtocol* opro xfer += oprot->writeFieldBegin("foreignKeyCols", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->foreignKeyCols.size())); - std::vector ::const_iterator _iter450; - for (_iter450 = this->foreignKeyCols.begin(); _iter450 != this->foreignKeyCols.end(); ++_iter450) + std::vector ::const_iterator _iter455; + for (_iter455 = this->foreignKeyCols.begin(); _iter455 != this->foreignKeyCols.end(); ++_iter455) { - xfer += (*_iter450).write(oprot); + xfer += (*_iter455).write(oprot); } xfer += oprot->writeListEnd(); } @@ -12070,11 +12428,11 @@ void swap(AddForeignKeyRequest &a, AddForeignKeyRequest &b) { swap(a.foreignKeyCols, b.foreignKeyCols); } -AddForeignKeyRequest::AddForeignKeyRequest(const AddForeignKeyRequest& other451) { - foreignKeyCols = other451.foreignKeyCols; +AddForeignKeyRequest::AddForeignKeyRequest(const AddForeignKeyRequest& other456) { + foreignKeyCols = other456.foreignKeyCols; } -AddForeignKeyRequest& AddForeignKeyRequest::operator=(const AddForeignKeyRequest& other452) { - foreignKeyCols = other452.foreignKeyCols; +AddForeignKeyRequest& AddForeignKeyRequest::operator=(const AddForeignKeyRequest& other457) { + foreignKeyCols = other457.foreignKeyCols; return *this; } void AddForeignKeyRequest::printTo(std::ostream& out) const { @@ -12119,14 +12477,14 @@ uint32_t AddUniqueConstraintRequest::read(::apache::thrift::protocol::TProtocol* if (ftype == ::apache::thrift::protocol::T_LIST) { { this->uniqueConstraintCols.clear(); - uint32_t _size453; - ::apache::thrift::protocol::TType _etype456; - xfer += iprot->readListBegin(_etype456, _size453); - this->uniqueConstraintCols.resize(_size453); - uint32_t _i457; - for (_i457 = 0; _i457 < _size453; ++_i457) + uint32_t _size458; + ::apache::thrift::protocol::TType _etype461; + xfer += iprot->readListBegin(_etype461, _size458); + this->uniqueConstraintCols.resize(_size458); + uint32_t _i462; + for (_i462 = 0; _i462 < _size458; ++_i462) { - xfer += this->uniqueConstraintCols[_i457].read(iprot); + xfer += this->uniqueConstraintCols[_i462].read(iprot); } xfer += iprot->readListEnd(); } @@ -12157,10 +12515,10 @@ uint32_t AddUniqueConstraintRequest::write(::apache::thrift::protocol::TProtocol xfer += oprot->writeFieldBegin("uniqueConstraintCols", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->uniqueConstraintCols.size())); - std::vector ::const_iterator _iter458; - for (_iter458 = this->uniqueConstraintCols.begin(); _iter458 != this->uniqueConstraintCols.end(); ++_iter458) + std::vector ::const_iterator _iter463; + for (_iter463 = this->uniqueConstraintCols.begin(); _iter463 != this->uniqueConstraintCols.end(); ++_iter463) { - xfer += (*_iter458).write(oprot); + xfer += (*_iter463).write(oprot); } xfer += oprot->writeListEnd(); } @@ -12176,11 +12534,11 @@ void swap(AddUniqueConstraintRequest &a, AddUniqueConstraintRequest &b) { swap(a.uniqueConstraintCols, b.uniqueConstraintCols); } -AddUniqueConstraintRequest::AddUniqueConstraintRequest(const AddUniqueConstraintRequest& other459) { - uniqueConstraintCols = other459.uniqueConstraintCols; +AddUniqueConstraintRequest::AddUniqueConstraintRequest(const AddUniqueConstraintRequest& other464) { + uniqueConstraintCols = other464.uniqueConstraintCols; } -AddUniqueConstraintRequest& AddUniqueConstraintRequest::operator=(const AddUniqueConstraintRequest& other460) { - uniqueConstraintCols = other460.uniqueConstraintCols; +AddUniqueConstraintRequest& AddUniqueConstraintRequest::operator=(const AddUniqueConstraintRequest& other465) { + uniqueConstraintCols = other465.uniqueConstraintCols; return *this; } void AddUniqueConstraintRequest::printTo(std::ostream& out) const { @@ -12225,14 +12583,14 @@ uint32_t AddNotNullConstraintRequest::read(::apache::thrift::protocol::TProtocol if (ftype == ::apache::thrift::protocol::T_LIST) { { this->notNullConstraintCols.clear(); - uint32_t _size461; - ::apache::thrift::protocol::TType _etype464; - xfer += iprot->readListBegin(_etype464, _size461); - this->notNullConstraintCols.resize(_size461); - uint32_t _i465; - for (_i465 = 0; _i465 < _size461; ++_i465) + uint32_t _size466; + ::apache::thrift::protocol::TType _etype469; + xfer += iprot->readListBegin(_etype469, _size466); + this->notNullConstraintCols.resize(_size466); + uint32_t _i470; + for (_i470 = 0; _i470 < _size466; ++_i470) { - xfer += this->notNullConstraintCols[_i465].read(iprot); + xfer += this->notNullConstraintCols[_i470].read(iprot); } xfer += iprot->readListEnd(); } @@ -12263,10 +12621,10 @@ uint32_t AddNotNullConstraintRequest::write(::apache::thrift::protocol::TProtoco xfer += oprot->writeFieldBegin("notNullConstraintCols", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->notNullConstraintCols.size())); - std::vector ::const_iterator _iter466; - for (_iter466 = this->notNullConstraintCols.begin(); _iter466 != this->notNullConstraintCols.end(); ++_iter466) + std::vector ::const_iterator _iter471; + for (_iter471 = this->notNullConstraintCols.begin(); _iter471 != this->notNullConstraintCols.end(); ++_iter471) { - xfer += (*_iter466).write(oprot); + xfer += (*_iter471).write(oprot); } xfer += oprot->writeListEnd(); } @@ -12282,11 +12640,11 @@ void swap(AddNotNullConstraintRequest &a, AddNotNullConstraintRequest &b) { swap(a.notNullConstraintCols, b.notNullConstraintCols); } -AddNotNullConstraintRequest::AddNotNullConstraintRequest(const AddNotNullConstraintRequest& other467) { - notNullConstraintCols = other467.notNullConstraintCols; +AddNotNullConstraintRequest::AddNotNullConstraintRequest(const AddNotNullConstraintRequest& other472) { + notNullConstraintCols = other472.notNullConstraintCols; } -AddNotNullConstraintRequest& AddNotNullConstraintRequest::operator=(const AddNotNullConstraintRequest& other468) { - notNullConstraintCols = other468.notNullConstraintCols; +AddNotNullConstraintRequest& AddNotNullConstraintRequest::operator=(const AddNotNullConstraintRequest& other473) { + notNullConstraintCols = other473.notNullConstraintCols; return *this; } void AddNotNullConstraintRequest::printTo(std::ostream& out) const { @@ -12331,14 +12689,14 @@ uint32_t AddDefaultConstraintRequest::read(::apache::thrift::protocol::TProtocol if (ftype == ::apache::thrift::protocol::T_LIST) { { this->defaultConstraintCols.clear(); - uint32_t _size469; - ::apache::thrift::protocol::TType _etype472; - xfer += iprot->readListBegin(_etype472, _size469); - this->defaultConstraintCols.resize(_size469); - uint32_t _i473; - for (_i473 = 0; _i473 < _size469; ++_i473) + uint32_t _size474; + ::apache::thrift::protocol::TType _etype477; + xfer += iprot->readListBegin(_etype477, _size474); + this->defaultConstraintCols.resize(_size474); + uint32_t _i478; + for (_i478 = 0; _i478 < _size474; ++_i478) { - xfer += this->defaultConstraintCols[_i473].read(iprot); + xfer += this->defaultConstraintCols[_i478].read(iprot); } xfer += iprot->readListEnd(); } @@ -12369,10 +12727,10 @@ uint32_t AddDefaultConstraintRequest::write(::apache::thrift::protocol::TProtoco xfer += oprot->writeFieldBegin("defaultConstraintCols", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->defaultConstraintCols.size())); - std::vector ::const_iterator _iter474; - for (_iter474 = this->defaultConstraintCols.begin(); _iter474 != this->defaultConstraintCols.end(); ++_iter474) + std::vector ::const_iterator _iter479; + for (_iter479 = this->defaultConstraintCols.begin(); _iter479 != this->defaultConstraintCols.end(); ++_iter479) { - xfer += (*_iter474).write(oprot); + xfer += (*_iter479).write(oprot); } xfer += oprot->writeListEnd(); } @@ -12388,11 +12746,11 @@ void swap(AddDefaultConstraintRequest &a, AddDefaultConstraintRequest &b) { swap(a.defaultConstraintCols, b.defaultConstraintCols); } -AddDefaultConstraintRequest::AddDefaultConstraintRequest(const AddDefaultConstraintRequest& other475) { - defaultConstraintCols = other475.defaultConstraintCols; +AddDefaultConstraintRequest::AddDefaultConstraintRequest(const AddDefaultConstraintRequest& other480) { + defaultConstraintCols = other480.defaultConstraintCols; } -AddDefaultConstraintRequest& AddDefaultConstraintRequest::operator=(const AddDefaultConstraintRequest& other476) { - defaultConstraintCols = other476.defaultConstraintCols; +AddDefaultConstraintRequest& AddDefaultConstraintRequest::operator=(const AddDefaultConstraintRequest& other481) { + defaultConstraintCols = other481.defaultConstraintCols; return *this; } void AddDefaultConstraintRequest::printTo(std::ostream& out) const { @@ -12437,14 +12795,14 @@ uint32_t AddCheckConstraintRequest::read(::apache::thrift::protocol::TProtocol* if (ftype == ::apache::thrift::protocol::T_LIST) { { this->checkConstraintCols.clear(); - uint32_t _size477; - ::apache::thrift::protocol::TType _etype480; - xfer += iprot->readListBegin(_etype480, _size477); - this->checkConstraintCols.resize(_size477); - uint32_t _i481; - for (_i481 = 0; _i481 < _size477; ++_i481) + uint32_t _size482; + ::apache::thrift::protocol::TType _etype485; + xfer += iprot->readListBegin(_etype485, _size482); + this->checkConstraintCols.resize(_size482); + uint32_t _i486; + for (_i486 = 0; _i486 < _size482; ++_i486) { - xfer += this->checkConstraintCols[_i481].read(iprot); + xfer += this->checkConstraintCols[_i486].read(iprot); } xfer += iprot->readListEnd(); } @@ -12475,10 +12833,10 @@ uint32_t AddCheckConstraintRequest::write(::apache::thrift::protocol::TProtocol* xfer += oprot->writeFieldBegin("checkConstraintCols", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->checkConstraintCols.size())); - std::vector ::const_iterator _iter482; - for (_iter482 = this->checkConstraintCols.begin(); _iter482 != this->checkConstraintCols.end(); ++_iter482) + std::vector ::const_iterator _iter487; + for (_iter487 = this->checkConstraintCols.begin(); _iter487 != this->checkConstraintCols.end(); ++_iter487) { - xfer += (*_iter482).write(oprot); + xfer += (*_iter487).write(oprot); } xfer += oprot->writeListEnd(); } @@ -12494,11 +12852,11 @@ void swap(AddCheckConstraintRequest &a, AddCheckConstraintRequest &b) { swap(a.checkConstraintCols, b.checkConstraintCols); } -AddCheckConstraintRequest::AddCheckConstraintRequest(const AddCheckConstraintRequest& other483) { - checkConstraintCols = other483.checkConstraintCols; +AddCheckConstraintRequest::AddCheckConstraintRequest(const AddCheckConstraintRequest& other488) { + checkConstraintCols = other488.checkConstraintCols; } -AddCheckConstraintRequest& AddCheckConstraintRequest::operator=(const AddCheckConstraintRequest& other484) { - checkConstraintCols = other484.checkConstraintCols; +AddCheckConstraintRequest& AddCheckConstraintRequest::operator=(const AddCheckConstraintRequest& other489) { + checkConstraintCols = other489.checkConstraintCols; return *this; } void AddCheckConstraintRequest::printTo(std::ostream& out) const { @@ -12548,14 +12906,14 @@ uint32_t PartitionsByExprResult::read(::apache::thrift::protocol::TProtocol* ipr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->partitions.clear(); - uint32_t _size485; - ::apache::thrift::protocol::TType _etype488; - xfer += iprot->readListBegin(_etype488, _size485); - this->partitions.resize(_size485); - uint32_t _i489; - for (_i489 = 0; _i489 < _size485; ++_i489) + uint32_t _size490; + ::apache::thrift::protocol::TType _etype493; + xfer += iprot->readListBegin(_etype493, _size490); + this->partitions.resize(_size490); + uint32_t _i494; + for (_i494 = 0; _i494 < _size490; ++_i494) { - xfer += this->partitions[_i489].read(iprot); + xfer += this->partitions[_i494].read(iprot); } xfer += iprot->readListEnd(); } @@ -12596,10 +12954,10 @@ uint32_t PartitionsByExprResult::write(::apache::thrift::protocol::TProtocol* op xfer += oprot->writeFieldBegin("partitions", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->partitions.size())); - std::vector ::const_iterator _iter490; - for (_iter490 = this->partitions.begin(); _iter490 != this->partitions.end(); ++_iter490) + std::vector ::const_iterator _iter495; + for (_iter495 = this->partitions.begin(); _iter495 != this->partitions.end(); ++_iter495) { - xfer += (*_iter490).write(oprot); + xfer += (*_iter495).write(oprot); } xfer += oprot->writeListEnd(); } @@ -12620,13 +12978,13 @@ void swap(PartitionsByExprResult &a, PartitionsByExprResult &b) { swap(a.hasUnknownPartitions, b.hasUnknownPartitions); } -PartitionsByExprResult::PartitionsByExprResult(const PartitionsByExprResult& other491) { - partitions = other491.partitions; - hasUnknownPartitions = other491.hasUnknownPartitions; +PartitionsByExprResult::PartitionsByExprResult(const PartitionsByExprResult& other496) { + partitions = other496.partitions; + hasUnknownPartitions = other496.hasUnknownPartitions; } -PartitionsByExprResult& PartitionsByExprResult::operator=(const PartitionsByExprResult& other492) { - partitions = other492.partitions; - hasUnknownPartitions = other492.hasUnknownPartitions; +PartitionsByExprResult& PartitionsByExprResult::operator=(const PartitionsByExprResult& other497) { + partitions = other497.partitions; + hasUnknownPartitions = other497.hasUnknownPartitions; return *this; } void PartitionsByExprResult::printTo(std::ostream& out) const { @@ -12807,23 +13165,23 @@ void swap(PartitionsByExprRequest &a, PartitionsByExprRequest &b) { swap(a.__isset, b.__isset); } -PartitionsByExprRequest::PartitionsByExprRequest(const PartitionsByExprRequest& other493) { - dbName = other493.dbName; - tblName = other493.tblName; - expr = other493.expr; - defaultPartitionName = other493.defaultPartitionName; - maxParts = other493.maxParts; - catName = other493.catName; - __isset = other493.__isset; -} -PartitionsByExprRequest& PartitionsByExprRequest::operator=(const PartitionsByExprRequest& other494) { - dbName = other494.dbName; - tblName = other494.tblName; - expr = other494.expr; - defaultPartitionName = other494.defaultPartitionName; - maxParts = other494.maxParts; - catName = other494.catName; - __isset = other494.__isset; +PartitionsByExprRequest::PartitionsByExprRequest(const PartitionsByExprRequest& other498) { + dbName = other498.dbName; + tblName = other498.tblName; + expr = other498.expr; + defaultPartitionName = other498.defaultPartitionName; + maxParts = other498.maxParts; + catName = other498.catName; + __isset = other498.__isset; +} +PartitionsByExprRequest& PartitionsByExprRequest::operator=(const PartitionsByExprRequest& other499) { + dbName = other499.dbName; + tblName = other499.tblName; + expr = other499.expr; + defaultPartitionName = other499.defaultPartitionName; + maxParts = other499.maxParts; + catName = other499.catName; + __isset = other499.__isset; return *this; } void PartitionsByExprRequest::printTo(std::ostream& out) const { @@ -12847,6 +13205,11 @@ void TableStatsResult::__set_tableStats(const std::vector & this->tableStats = val; } +void TableStatsResult::__set_isStatsCompliant(const IsolationLevelCompliance::type val) { + this->isStatsCompliant = val; +__isset.isStatsCompliant = true; +} + uint32_t TableStatsResult::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); @@ -12873,14 +13236,14 @@ uint32_t TableStatsResult::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->tableStats.clear(); - uint32_t _size495; - ::apache::thrift::protocol::TType _etype498; - xfer += iprot->readListBegin(_etype498, _size495); - this->tableStats.resize(_size495); - uint32_t _i499; - for (_i499 = 0; _i499 < _size495; ++_i499) + uint32_t _size500; + ::apache::thrift::protocol::TType _etype503; + xfer += iprot->readListBegin(_etype503, _size500); + this->tableStats.resize(_size500); + uint32_t _i504; + for (_i504 = 0; _i504 < _size500; ++_i504) { - xfer += this->tableStats[_i499].read(iprot); + xfer += this->tableStats[_i504].read(iprot); } xfer += iprot->readListEnd(); } @@ -12889,6 +13252,16 @@ uint32_t TableStatsResult::read(::apache::thrift::protocol::TProtocol* iprot) { xfer += iprot->skip(ftype); } break; + case 2: + if (ftype == ::apache::thrift::protocol::T_I32) { + int32_t ecast505; + xfer += iprot->readI32(ecast505); + this->isStatsCompliant = (IsolationLevelCompliance::type)ecast505; + this->__isset.isStatsCompliant = true; + } else { + xfer += iprot->skip(ftype); + } + break; default: xfer += iprot->skip(ftype); break; @@ -12911,15 +13284,20 @@ uint32_t TableStatsResult::write(::apache::thrift::protocol::TProtocol* oprot) c xfer += oprot->writeFieldBegin("tableStats", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->tableStats.size())); - std::vector ::const_iterator _iter500; - for (_iter500 = this->tableStats.begin(); _iter500 != this->tableStats.end(); ++_iter500) + std::vector ::const_iterator _iter506; + for (_iter506 = this->tableStats.begin(); _iter506 != this->tableStats.end(); ++_iter506) { - xfer += (*_iter500).write(oprot); + xfer += (*_iter506).write(oprot); } xfer += oprot->writeListEnd(); } xfer += oprot->writeFieldEnd(); + if (this->__isset.isStatsCompliant) { + xfer += oprot->writeFieldBegin("isStatsCompliant", ::apache::thrift::protocol::T_I32, 2); + xfer += oprot->writeI32((int32_t)this->isStatsCompliant); + xfer += oprot->writeFieldEnd(); + } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); return xfer; @@ -12928,19 +13306,26 @@ uint32_t TableStatsResult::write(::apache::thrift::protocol::TProtocol* oprot) c void swap(TableStatsResult &a, TableStatsResult &b) { using ::std::swap; swap(a.tableStats, b.tableStats); + swap(a.isStatsCompliant, b.isStatsCompliant); + swap(a.__isset, b.__isset); } -TableStatsResult::TableStatsResult(const TableStatsResult& other501) { - tableStats = other501.tableStats; +TableStatsResult::TableStatsResult(const TableStatsResult& other507) { + tableStats = other507.tableStats; + isStatsCompliant = other507.isStatsCompliant; + __isset = other507.__isset; } -TableStatsResult& TableStatsResult::operator=(const TableStatsResult& other502) { - tableStats = other502.tableStats; +TableStatsResult& TableStatsResult::operator=(const TableStatsResult& other508) { + tableStats = other508.tableStats; + isStatsCompliant = other508.isStatsCompliant; + __isset = other508.__isset; return *this; } void TableStatsResult::printTo(std::ostream& out) const { using ::apache::thrift::to_string; out << "TableStatsResult("; out << "tableStats=" << to_string(tableStats); + out << ", " << "isStatsCompliant="; (__isset.isStatsCompliant ? (out << to_string(isStatsCompliant)) : (out << "")); out << ")"; } @@ -12953,6 +13338,11 @@ void PartitionsStatsResult::__set_partStats(const std::mappartStats = val; } +void PartitionsStatsResult::__set_isStatsCompliant(const IsolationLevelCompliance::type val) { + this->isStatsCompliant = val; +__isset.isStatsCompliant = true; +} + uint32_t PartitionsStatsResult::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); @@ -12979,26 +13369,26 @@ uint32_t PartitionsStatsResult::read(::apache::thrift::protocol::TProtocol* ipro if (ftype == ::apache::thrift::protocol::T_MAP) { { this->partStats.clear(); - uint32_t _size503; - ::apache::thrift::protocol::TType _ktype504; - ::apache::thrift::protocol::TType _vtype505; - xfer += iprot->readMapBegin(_ktype504, _vtype505, _size503); - uint32_t _i507; - for (_i507 = 0; _i507 < _size503; ++_i507) + uint32_t _size509; + ::apache::thrift::protocol::TType _ktype510; + ::apache::thrift::protocol::TType _vtype511; + xfer += iprot->readMapBegin(_ktype510, _vtype511, _size509); + uint32_t _i513; + for (_i513 = 0; _i513 < _size509; ++_i513) { - std::string _key508; - xfer += iprot->readString(_key508); - std::vector & _val509 = this->partStats[_key508]; + std::string _key514; + xfer += iprot->readString(_key514); + std::vector & _val515 = this->partStats[_key514]; { - _val509.clear(); - uint32_t _size510; - ::apache::thrift::protocol::TType _etype513; - xfer += iprot->readListBegin(_etype513, _size510); - _val509.resize(_size510); - uint32_t _i514; - for (_i514 = 0; _i514 < _size510; ++_i514) + _val515.clear(); + uint32_t _size516; + ::apache::thrift::protocol::TType _etype519; + xfer += iprot->readListBegin(_etype519, _size516); + _val515.resize(_size516); + uint32_t _i520; + for (_i520 = 0; _i520 < _size516; ++_i520) { - xfer += _val509[_i514].read(iprot); + xfer += _val515[_i520].read(iprot); } xfer += iprot->readListEnd(); } @@ -13010,6 +13400,16 @@ uint32_t PartitionsStatsResult::read(::apache::thrift::protocol::TProtocol* ipro xfer += iprot->skip(ftype); } break; + case 2: + if (ftype == ::apache::thrift::protocol::T_I32) { + int32_t ecast521; + xfer += iprot->readI32(ecast521); + this->isStatsCompliant = (IsolationLevelCompliance::type)ecast521; + this->__isset.isStatsCompliant = true; + } else { + xfer += iprot->skip(ftype); + } + break; default: xfer += iprot->skip(ftype); break; @@ -13032,16 +13432,16 @@ uint32_t PartitionsStatsResult::write(::apache::thrift::protocol::TProtocol* opr xfer += oprot->writeFieldBegin("partStats", ::apache::thrift::protocol::T_MAP, 1); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_LIST, static_cast(this->partStats.size())); - std::map > ::const_iterator _iter515; - for (_iter515 = this->partStats.begin(); _iter515 != this->partStats.end(); ++_iter515) + std::map > ::const_iterator _iter522; + for (_iter522 = this->partStats.begin(); _iter522 != this->partStats.end(); ++_iter522) { - xfer += oprot->writeString(_iter515->first); + xfer += oprot->writeString(_iter522->first); { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(_iter515->second.size())); - std::vector ::const_iterator _iter516; - for (_iter516 = _iter515->second.begin(); _iter516 != _iter515->second.end(); ++_iter516) + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(_iter522->second.size())); + std::vector ::const_iterator _iter523; + for (_iter523 = _iter522->second.begin(); _iter523 != _iter522->second.end(); ++_iter523) { - xfer += (*_iter516).write(oprot); + xfer += (*_iter523).write(oprot); } xfer += oprot->writeListEnd(); } @@ -13050,6 +13450,11 @@ uint32_t PartitionsStatsResult::write(::apache::thrift::protocol::TProtocol* opr } xfer += oprot->writeFieldEnd(); + if (this->__isset.isStatsCompliant) { + xfer += oprot->writeFieldBegin("isStatsCompliant", ::apache::thrift::protocol::T_I32, 2); + xfer += oprot->writeI32((int32_t)this->isStatsCompliant); + xfer += oprot->writeFieldEnd(); + } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); return xfer; @@ -13058,19 +13463,26 @@ uint32_t PartitionsStatsResult::write(::apache::thrift::protocol::TProtocol* opr void swap(PartitionsStatsResult &a, PartitionsStatsResult &b) { using ::std::swap; swap(a.partStats, b.partStats); + swap(a.isStatsCompliant, b.isStatsCompliant); + swap(a.__isset, b.__isset); } -PartitionsStatsResult::PartitionsStatsResult(const PartitionsStatsResult& other517) { - partStats = other517.partStats; +PartitionsStatsResult::PartitionsStatsResult(const PartitionsStatsResult& other524) { + partStats = other524.partStats; + isStatsCompliant = other524.isStatsCompliant; + __isset = other524.__isset; } -PartitionsStatsResult& PartitionsStatsResult::operator=(const PartitionsStatsResult& other518) { - partStats = other518.partStats; +PartitionsStatsResult& PartitionsStatsResult::operator=(const PartitionsStatsResult& other525) { + partStats = other525.partStats; + isStatsCompliant = other525.isStatsCompliant; + __isset = other525.__isset; return *this; } void PartitionsStatsResult::printTo(std::ostream& out) const { using ::apache::thrift::to_string; out << "PartitionsStatsResult("; out << "partStats=" << to_string(partStats); + out << ", " << "isStatsCompliant="; (__isset.isStatsCompliant ? (out << to_string(isStatsCompliant)) : (out << "")); out << ")"; } @@ -13096,6 +13508,16 @@ void TableStatsRequest::__set_catName(const std::string& val) { __isset.catName = true; } +void TableStatsRequest::__set_writeId(const int64_t val) { + this->writeId = val; +__isset.writeId = true; +} + +void TableStatsRequest::__set_validWriteIdList(const std::string& val) { + this->validWriteIdList = val; +__isset.validWriteIdList = true; +} + uint32_t TableStatsRequest::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); @@ -13140,14 +13562,14 @@ uint32_t TableStatsRequest::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->colNames.clear(); - uint32_t _size519; - ::apache::thrift::protocol::TType _etype522; - xfer += iprot->readListBegin(_etype522, _size519); - this->colNames.resize(_size519); - uint32_t _i523; - for (_i523 = 0; _i523 < _size519; ++_i523) + uint32_t _size526; + ::apache::thrift::protocol::TType _etype529; + xfer += iprot->readListBegin(_etype529, _size526); + this->colNames.resize(_size526); + uint32_t _i530; + for (_i530 = 0; _i530 < _size526; ++_i530) { - xfer += iprot->readString(this->colNames[_i523]); + xfer += iprot->readString(this->colNames[_i530]); } xfer += iprot->readListEnd(); } @@ -13164,6 +13586,22 @@ uint32_t TableStatsRequest::read(::apache::thrift::protocol::TProtocol* iprot) { xfer += iprot->skip(ftype); } break; + case 5: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->writeId); + this->__isset.writeId = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 6: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->validWriteIdList); + this->__isset.validWriteIdList = true; + } else { + xfer += iprot->skip(ftype); + } + break; default: xfer += iprot->skip(ftype); break; @@ -13198,10 +13636,10 @@ uint32_t TableStatsRequest::write(::apache::thrift::protocol::TProtocol* oprot) xfer += oprot->writeFieldBegin("colNames", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->colNames.size())); - std::vector ::const_iterator _iter524; - for (_iter524 = this->colNames.begin(); _iter524 != this->colNames.end(); ++_iter524) + std::vector ::const_iterator _iter531; + for (_iter531 = this->colNames.begin(); _iter531 != this->colNames.end(); ++_iter531) { - xfer += oprot->writeString((*_iter524)); + xfer += oprot->writeString((*_iter531)); } xfer += oprot->writeListEnd(); } @@ -13212,6 +13650,16 @@ uint32_t TableStatsRequest::write(::apache::thrift::protocol::TProtocol* oprot) xfer += oprot->writeString(this->catName); xfer += oprot->writeFieldEnd(); } + if (this->__isset.writeId) { + xfer += oprot->writeFieldBegin("writeId", ::apache::thrift::protocol::T_I64, 5); + xfer += oprot->writeI64(this->writeId); + xfer += oprot->writeFieldEnd(); + } + if (this->__isset.validWriteIdList) { + xfer += oprot->writeFieldBegin("validWriteIdList", ::apache::thrift::protocol::T_STRING, 6); + xfer += oprot->writeString(this->validWriteIdList); + xfer += oprot->writeFieldEnd(); + } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); return xfer; @@ -13223,22 +13671,28 @@ void swap(TableStatsRequest &a, TableStatsRequest &b) { swap(a.tblName, b.tblName); swap(a.colNames, b.colNames); swap(a.catName, b.catName); + swap(a.writeId, b.writeId); + swap(a.validWriteIdList, b.validWriteIdList); swap(a.__isset, b.__isset); } -TableStatsRequest::TableStatsRequest(const TableStatsRequest& other525) { - dbName = other525.dbName; - tblName = other525.tblName; - colNames = other525.colNames; - catName = other525.catName; - __isset = other525.__isset; -} -TableStatsRequest& TableStatsRequest::operator=(const TableStatsRequest& other526) { - dbName = other526.dbName; - tblName = other526.tblName; - colNames = other526.colNames; - catName = other526.catName; - __isset = other526.__isset; +TableStatsRequest::TableStatsRequest(const TableStatsRequest& other532) { + dbName = other532.dbName; + tblName = other532.tblName; + colNames = other532.colNames; + catName = other532.catName; + writeId = other532.writeId; + validWriteIdList = other532.validWriteIdList; + __isset = other532.__isset; +} +TableStatsRequest& TableStatsRequest::operator=(const TableStatsRequest& other533) { + dbName = other533.dbName; + tblName = other533.tblName; + colNames = other533.colNames; + catName = other533.catName; + writeId = other533.writeId; + validWriteIdList = other533.validWriteIdList; + __isset = other533.__isset; return *this; } void TableStatsRequest::printTo(std::ostream& out) const { @@ -13248,6 +13702,8 @@ void TableStatsRequest::printTo(std::ostream& out) const { out << ", " << "tblName=" << to_string(tblName); out << ", " << "colNames=" << to_string(colNames); out << ", " << "catName="; (__isset.catName ? (out << to_string(catName)) : (out << "")); + out << ", " << "writeId="; (__isset.writeId ? (out << to_string(writeId)) : (out << "")); + out << ", " << "validWriteIdList="; (__isset.validWriteIdList ? (out << to_string(validWriteIdList)) : (out << "")); out << ")"; } @@ -13277,6 +13733,16 @@ void PartitionsStatsRequest::__set_catName(const std::string& val) { __isset.catName = true; } +void PartitionsStatsRequest::__set_writeId(const int64_t val) { + this->writeId = val; +__isset.writeId = true; +} + +void PartitionsStatsRequest::__set_validWriteIdList(const std::string& val) { + this->validWriteIdList = val; +__isset.validWriteIdList = true; +} + uint32_t PartitionsStatsRequest::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); @@ -13322,14 +13788,14 @@ uint32_t PartitionsStatsRequest::read(::apache::thrift::protocol::TProtocol* ipr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->colNames.clear(); - uint32_t _size527; - ::apache::thrift::protocol::TType _etype530; - xfer += iprot->readListBegin(_etype530, _size527); - this->colNames.resize(_size527); - uint32_t _i531; - for (_i531 = 0; _i531 < _size527; ++_i531) + uint32_t _size534; + ::apache::thrift::protocol::TType _etype537; + xfer += iprot->readListBegin(_etype537, _size534); + this->colNames.resize(_size534); + uint32_t _i538; + for (_i538 = 0; _i538 < _size534; ++_i538) { - xfer += iprot->readString(this->colNames[_i531]); + xfer += iprot->readString(this->colNames[_i538]); } xfer += iprot->readListEnd(); } @@ -13342,14 +13808,14 @@ uint32_t PartitionsStatsRequest::read(::apache::thrift::protocol::TProtocol* ipr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->partNames.clear(); - uint32_t _size532; - ::apache::thrift::protocol::TType _etype535; - xfer += iprot->readListBegin(_etype535, _size532); - this->partNames.resize(_size532); - uint32_t _i536; - for (_i536 = 0; _i536 < _size532; ++_i536) + uint32_t _size539; + ::apache::thrift::protocol::TType _etype542; + xfer += iprot->readListBegin(_etype542, _size539); + this->partNames.resize(_size539); + uint32_t _i543; + for (_i543 = 0; _i543 < _size539; ++_i543) { - xfer += iprot->readString(this->partNames[_i536]); + xfer += iprot->readString(this->partNames[_i543]); } xfer += iprot->readListEnd(); } @@ -13366,6 +13832,22 @@ uint32_t PartitionsStatsRequest::read(::apache::thrift::protocol::TProtocol* ipr xfer += iprot->skip(ftype); } break; + case 6: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->writeId); + this->__isset.writeId = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 7: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->validWriteIdList); + this->__isset.validWriteIdList = true; + } else { + xfer += iprot->skip(ftype); + } + break; default: xfer += iprot->skip(ftype); break; @@ -13402,10 +13884,10 @@ uint32_t PartitionsStatsRequest::write(::apache::thrift::protocol::TProtocol* op xfer += oprot->writeFieldBegin("colNames", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->colNames.size())); - std::vector ::const_iterator _iter537; - for (_iter537 = this->colNames.begin(); _iter537 != this->colNames.end(); ++_iter537) + std::vector ::const_iterator _iter544; + for (_iter544 = this->colNames.begin(); _iter544 != this->colNames.end(); ++_iter544) { - xfer += oprot->writeString((*_iter537)); + xfer += oprot->writeString((*_iter544)); } xfer += oprot->writeListEnd(); } @@ -13414,10 +13896,10 @@ uint32_t PartitionsStatsRequest::write(::apache::thrift::protocol::TProtocol* op xfer += oprot->writeFieldBegin("partNames", ::apache::thrift::protocol::T_LIST, 4); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->partNames.size())); - std::vector ::const_iterator _iter538; - for (_iter538 = this->partNames.begin(); _iter538 != this->partNames.end(); ++_iter538) + std::vector ::const_iterator _iter545; + for (_iter545 = this->partNames.begin(); _iter545 != this->partNames.end(); ++_iter545) { - xfer += oprot->writeString((*_iter538)); + xfer += oprot->writeString((*_iter545)); } xfer += oprot->writeListEnd(); } @@ -13428,6 +13910,16 @@ uint32_t PartitionsStatsRequest::write(::apache::thrift::protocol::TProtocol* op xfer += oprot->writeString(this->catName); xfer += oprot->writeFieldEnd(); } + if (this->__isset.writeId) { + xfer += oprot->writeFieldBegin("writeId", ::apache::thrift::protocol::T_I64, 6); + xfer += oprot->writeI64(this->writeId); + xfer += oprot->writeFieldEnd(); + } + if (this->__isset.validWriteIdList) { + xfer += oprot->writeFieldBegin("validWriteIdList", ::apache::thrift::protocol::T_STRING, 7); + xfer += oprot->writeString(this->validWriteIdList); + xfer += oprot->writeFieldEnd(); + } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); return xfer; @@ -13440,24 +13932,30 @@ void swap(PartitionsStatsRequest &a, PartitionsStatsRequest &b) { swap(a.colNames, b.colNames); swap(a.partNames, b.partNames); swap(a.catName, b.catName); + swap(a.writeId, b.writeId); + swap(a.validWriteIdList, b.validWriteIdList); swap(a.__isset, b.__isset); } -PartitionsStatsRequest::PartitionsStatsRequest(const PartitionsStatsRequest& other539) { - dbName = other539.dbName; - tblName = other539.tblName; - colNames = other539.colNames; - partNames = other539.partNames; - catName = other539.catName; - __isset = other539.__isset; -} -PartitionsStatsRequest& PartitionsStatsRequest::operator=(const PartitionsStatsRequest& other540) { - dbName = other540.dbName; - tblName = other540.tblName; - colNames = other540.colNames; - partNames = other540.partNames; - catName = other540.catName; - __isset = other540.__isset; +PartitionsStatsRequest::PartitionsStatsRequest(const PartitionsStatsRequest& other546) { + dbName = other546.dbName; + tblName = other546.tblName; + colNames = other546.colNames; + partNames = other546.partNames; + catName = other546.catName; + writeId = other546.writeId; + validWriteIdList = other546.validWriteIdList; + __isset = other546.__isset; +} +PartitionsStatsRequest& PartitionsStatsRequest::operator=(const PartitionsStatsRequest& other547) { + dbName = other547.dbName; + tblName = other547.tblName; + colNames = other547.colNames; + partNames = other547.partNames; + catName = other547.catName; + writeId = other547.writeId; + validWriteIdList = other547.validWriteIdList; + __isset = other547.__isset; return *this; } void PartitionsStatsRequest::printTo(std::ostream& out) const { @@ -13468,6 +13966,8 @@ void PartitionsStatsRequest::printTo(std::ostream& out) const { out << ", " << "colNames=" << to_string(colNames); out << ", " << "partNames=" << to_string(partNames); out << ", " << "catName="; (__isset.catName ? (out << to_string(catName)) : (out << "")); + out << ", " << "writeId="; (__isset.writeId ? (out << to_string(writeId)) : (out << "")); + out << ", " << "validWriteIdList="; (__isset.validWriteIdList ? (out << to_string(validWriteIdList)) : (out << "")); out << ")"; } @@ -13506,14 +14006,14 @@ uint32_t AddPartitionsResult::read(::apache::thrift::protocol::TProtocol* iprot) if (ftype == ::apache::thrift::protocol::T_LIST) { { this->partitions.clear(); - uint32_t _size541; - ::apache::thrift::protocol::TType _etype544; - xfer += iprot->readListBegin(_etype544, _size541); - this->partitions.resize(_size541); - uint32_t _i545; - for (_i545 = 0; _i545 < _size541; ++_i545) + uint32_t _size548; + ::apache::thrift::protocol::TType _etype551; + xfer += iprot->readListBegin(_etype551, _size548); + this->partitions.resize(_size548); + uint32_t _i552; + for (_i552 = 0; _i552 < _size548; ++_i552) { - xfer += this->partitions[_i545].read(iprot); + xfer += this->partitions[_i552].read(iprot); } xfer += iprot->readListEnd(); } @@ -13543,10 +14043,10 @@ uint32_t AddPartitionsResult::write(::apache::thrift::protocol::TProtocol* oprot xfer += oprot->writeFieldBegin("partitions", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->partitions.size())); - std::vector ::const_iterator _iter546; - for (_iter546 = this->partitions.begin(); _iter546 != this->partitions.end(); ++_iter546) + std::vector ::const_iterator _iter553; + for (_iter553 = this->partitions.begin(); _iter553 != this->partitions.end(); ++_iter553) { - xfer += (*_iter546).write(oprot); + xfer += (*_iter553).write(oprot); } xfer += oprot->writeListEnd(); } @@ -13563,13 +14063,13 @@ void swap(AddPartitionsResult &a, AddPartitionsResult &b) { swap(a.__isset, b.__isset); } -AddPartitionsResult::AddPartitionsResult(const AddPartitionsResult& other547) { - partitions = other547.partitions; - __isset = other547.__isset; +AddPartitionsResult::AddPartitionsResult(const AddPartitionsResult& other554) { + partitions = other554.partitions; + __isset = other554.__isset; } -AddPartitionsResult& AddPartitionsResult::operator=(const AddPartitionsResult& other548) { - partitions = other548.partitions; - __isset = other548.__isset; +AddPartitionsResult& AddPartitionsResult::operator=(const AddPartitionsResult& other555) { + partitions = other555.partitions; + __isset = other555.__isset; return *this; } void AddPartitionsResult::printTo(std::ostream& out) const { @@ -13655,14 +14155,14 @@ uint32_t AddPartitionsRequest::read(::apache::thrift::protocol::TProtocol* iprot if (ftype == ::apache::thrift::protocol::T_LIST) { { this->parts.clear(); - uint32_t _size549; - ::apache::thrift::protocol::TType _etype552; - xfer += iprot->readListBegin(_etype552, _size549); - this->parts.resize(_size549); - uint32_t _i553; - for (_i553 = 0; _i553 < _size549; ++_i553) + uint32_t _size556; + ::apache::thrift::protocol::TType _etype559; + xfer += iprot->readListBegin(_etype559, _size556); + this->parts.resize(_size556); + uint32_t _i560; + for (_i560 = 0; _i560 < _size556; ++_i560) { - xfer += this->parts[_i553].read(iprot); + xfer += this->parts[_i560].read(iprot); } xfer += iprot->readListEnd(); } @@ -13731,10 +14231,10 @@ uint32_t AddPartitionsRequest::write(::apache::thrift::protocol::TProtocol* opro xfer += oprot->writeFieldBegin("parts", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->parts.size())); - std::vector ::const_iterator _iter554; - for (_iter554 = this->parts.begin(); _iter554 != this->parts.end(); ++_iter554) + std::vector ::const_iterator _iter561; + for (_iter561 = this->parts.begin(); _iter561 != this->parts.end(); ++_iter561) { - xfer += (*_iter554).write(oprot); + xfer += (*_iter561).write(oprot); } xfer += oprot->writeListEnd(); } @@ -13770,23 +14270,23 @@ void swap(AddPartitionsRequest &a, AddPartitionsRequest &b) { swap(a.__isset, b.__isset); } -AddPartitionsRequest::AddPartitionsRequest(const AddPartitionsRequest& other555) { - dbName = other555.dbName; - tblName = other555.tblName; - parts = other555.parts; - ifNotExists = other555.ifNotExists; - needResult = other555.needResult; - catName = other555.catName; - __isset = other555.__isset; -} -AddPartitionsRequest& AddPartitionsRequest::operator=(const AddPartitionsRequest& other556) { - dbName = other556.dbName; - tblName = other556.tblName; - parts = other556.parts; - ifNotExists = other556.ifNotExists; - needResult = other556.needResult; - catName = other556.catName; - __isset = other556.__isset; +AddPartitionsRequest::AddPartitionsRequest(const AddPartitionsRequest& other562) { + dbName = other562.dbName; + tblName = other562.tblName; + parts = other562.parts; + ifNotExists = other562.ifNotExists; + needResult = other562.needResult; + catName = other562.catName; + __isset = other562.__isset; +} +AddPartitionsRequest& AddPartitionsRequest::operator=(const AddPartitionsRequest& other563) { + dbName = other563.dbName; + tblName = other563.tblName; + parts = other563.parts; + ifNotExists = other563.ifNotExists; + needResult = other563.needResult; + catName = other563.catName; + __isset = other563.__isset; return *this; } void AddPartitionsRequest::printTo(std::ostream& out) const { @@ -13836,14 +14336,14 @@ uint32_t DropPartitionsResult::read(::apache::thrift::protocol::TProtocol* iprot if (ftype == ::apache::thrift::protocol::T_LIST) { { this->partitions.clear(); - uint32_t _size557; - ::apache::thrift::protocol::TType _etype560; - xfer += iprot->readListBegin(_etype560, _size557); - this->partitions.resize(_size557); - uint32_t _i561; - for (_i561 = 0; _i561 < _size557; ++_i561) + uint32_t _size564; + ::apache::thrift::protocol::TType _etype567; + xfer += iprot->readListBegin(_etype567, _size564); + this->partitions.resize(_size564); + uint32_t _i568; + for (_i568 = 0; _i568 < _size564; ++_i568) { - xfer += this->partitions[_i561].read(iprot); + xfer += this->partitions[_i568].read(iprot); } xfer += iprot->readListEnd(); } @@ -13873,10 +14373,10 @@ uint32_t DropPartitionsResult::write(::apache::thrift::protocol::TProtocol* opro xfer += oprot->writeFieldBegin("partitions", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->partitions.size())); - std::vector ::const_iterator _iter562; - for (_iter562 = this->partitions.begin(); _iter562 != this->partitions.end(); ++_iter562) + std::vector ::const_iterator _iter569; + for (_iter569 = this->partitions.begin(); _iter569 != this->partitions.end(); ++_iter569) { - xfer += (*_iter562).write(oprot); + xfer += (*_iter569).write(oprot); } xfer += oprot->writeListEnd(); } @@ -13893,13 +14393,13 @@ void swap(DropPartitionsResult &a, DropPartitionsResult &b) { swap(a.__isset, b.__isset); } -DropPartitionsResult::DropPartitionsResult(const DropPartitionsResult& other563) { - partitions = other563.partitions; - __isset = other563.__isset; +DropPartitionsResult::DropPartitionsResult(const DropPartitionsResult& other570) { + partitions = other570.partitions; + __isset = other570.__isset; } -DropPartitionsResult& DropPartitionsResult::operator=(const DropPartitionsResult& other564) { - partitions = other564.partitions; - __isset = other564.__isset; +DropPartitionsResult& DropPartitionsResult::operator=(const DropPartitionsResult& other571) { + partitions = other571.partitions; + __isset = other571.__isset; return *this; } void DropPartitionsResult::printTo(std::ostream& out) const { @@ -14001,15 +14501,15 @@ void swap(DropPartitionsExpr &a, DropPartitionsExpr &b) { swap(a.__isset, b.__isset); } -DropPartitionsExpr::DropPartitionsExpr(const DropPartitionsExpr& other565) { - expr = other565.expr; - partArchiveLevel = other565.partArchiveLevel; - __isset = other565.__isset; +DropPartitionsExpr::DropPartitionsExpr(const DropPartitionsExpr& other572) { + expr = other572.expr; + partArchiveLevel = other572.partArchiveLevel; + __isset = other572.__isset; } -DropPartitionsExpr& DropPartitionsExpr::operator=(const DropPartitionsExpr& other566) { - expr = other566.expr; - partArchiveLevel = other566.partArchiveLevel; - __isset = other566.__isset; +DropPartitionsExpr& DropPartitionsExpr::operator=(const DropPartitionsExpr& other573) { + expr = other573.expr; + partArchiveLevel = other573.partArchiveLevel; + __isset = other573.__isset; return *this; } void DropPartitionsExpr::printTo(std::ostream& out) const { @@ -14058,14 +14558,14 @@ uint32_t RequestPartsSpec::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->names.clear(); - uint32_t _size567; - ::apache::thrift::protocol::TType _etype570; - xfer += iprot->readListBegin(_etype570, _size567); - this->names.resize(_size567); - uint32_t _i571; - for (_i571 = 0; _i571 < _size567; ++_i571) + uint32_t _size574; + ::apache::thrift::protocol::TType _etype577; + xfer += iprot->readListBegin(_etype577, _size574); + this->names.resize(_size574); + uint32_t _i578; + for (_i578 = 0; _i578 < _size574; ++_i578) { - xfer += iprot->readString(this->names[_i571]); + xfer += iprot->readString(this->names[_i578]); } xfer += iprot->readListEnd(); } @@ -14078,14 +14578,14 @@ uint32_t RequestPartsSpec::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->exprs.clear(); - uint32_t _size572; - ::apache::thrift::protocol::TType _etype575; - xfer += iprot->readListBegin(_etype575, _size572); - this->exprs.resize(_size572); - uint32_t _i576; - for (_i576 = 0; _i576 < _size572; ++_i576) + uint32_t _size579; + ::apache::thrift::protocol::TType _etype582; + xfer += iprot->readListBegin(_etype582, _size579); + this->exprs.resize(_size579); + uint32_t _i583; + for (_i583 = 0; _i583 < _size579; ++_i583) { - xfer += this->exprs[_i576].read(iprot); + xfer += this->exprs[_i583].read(iprot); } xfer += iprot->readListEnd(); } @@ -14114,10 +14614,10 @@ uint32_t RequestPartsSpec::write(::apache::thrift::protocol::TProtocol* oprot) c xfer += oprot->writeFieldBegin("names", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->names.size())); - std::vector ::const_iterator _iter577; - for (_iter577 = this->names.begin(); _iter577 != this->names.end(); ++_iter577) + std::vector ::const_iterator _iter584; + for (_iter584 = this->names.begin(); _iter584 != this->names.end(); ++_iter584) { - xfer += oprot->writeString((*_iter577)); + xfer += oprot->writeString((*_iter584)); } xfer += oprot->writeListEnd(); } @@ -14126,10 +14626,10 @@ uint32_t RequestPartsSpec::write(::apache::thrift::protocol::TProtocol* oprot) c xfer += oprot->writeFieldBegin("exprs", ::apache::thrift::protocol::T_LIST, 2); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->exprs.size())); - std::vector ::const_iterator _iter578; - for (_iter578 = this->exprs.begin(); _iter578 != this->exprs.end(); ++_iter578) + std::vector ::const_iterator _iter585; + for (_iter585 = this->exprs.begin(); _iter585 != this->exprs.end(); ++_iter585) { - xfer += (*_iter578).write(oprot); + xfer += (*_iter585).write(oprot); } xfer += oprot->writeListEnd(); } @@ -14147,15 +14647,15 @@ void swap(RequestPartsSpec &a, RequestPartsSpec &b) { swap(a.__isset, b.__isset); } -RequestPartsSpec::RequestPartsSpec(const RequestPartsSpec& other579) { - names = other579.names; - exprs = other579.exprs; - __isset = other579.__isset; +RequestPartsSpec::RequestPartsSpec(const RequestPartsSpec& other586) { + names = other586.names; + exprs = other586.exprs; + __isset = other586.__isset; } -RequestPartsSpec& RequestPartsSpec::operator=(const RequestPartsSpec& other580) { - names = other580.names; - exprs = other580.exprs; - __isset = other580.__isset; +RequestPartsSpec& RequestPartsSpec::operator=(const RequestPartsSpec& other587) { + names = other587.names; + exprs = other587.exprs; + __isset = other587.__isset; return *this; } void RequestPartsSpec::printTo(std::ostream& out) const { @@ -14393,29 +14893,29 @@ void swap(DropPartitionsRequest &a, DropPartitionsRequest &b) { swap(a.__isset, b.__isset); } -DropPartitionsRequest::DropPartitionsRequest(const DropPartitionsRequest& other581) { - dbName = other581.dbName; - tblName = other581.tblName; - parts = other581.parts; - deleteData = other581.deleteData; - ifExists = other581.ifExists; - ignoreProtection = other581.ignoreProtection; - environmentContext = other581.environmentContext; - needResult = other581.needResult; - catName = other581.catName; - __isset = other581.__isset; -} -DropPartitionsRequest& DropPartitionsRequest::operator=(const DropPartitionsRequest& other582) { - dbName = other582.dbName; - tblName = other582.tblName; - parts = other582.parts; - deleteData = other582.deleteData; - ifExists = other582.ifExists; - ignoreProtection = other582.ignoreProtection; - environmentContext = other582.environmentContext; - needResult = other582.needResult; - catName = other582.catName; - __isset = other582.__isset; +DropPartitionsRequest::DropPartitionsRequest(const DropPartitionsRequest& other588) { + dbName = other588.dbName; + tblName = other588.tblName; + parts = other588.parts; + deleteData = other588.deleteData; + ifExists = other588.ifExists; + ignoreProtection = other588.ignoreProtection; + environmentContext = other588.environmentContext; + needResult = other588.needResult; + catName = other588.catName; + __isset = other588.__isset; +} +DropPartitionsRequest& DropPartitionsRequest::operator=(const DropPartitionsRequest& other589) { + dbName = other589.dbName; + tblName = other589.tblName; + parts = other589.parts; + deleteData = other589.deleteData; + ifExists = other589.ifExists; + ignoreProtection = other589.ignoreProtection; + environmentContext = other589.environmentContext; + needResult = other589.needResult; + catName = other589.catName; + __isset = other589.__isset; return *this; } void DropPartitionsRequest::printTo(std::ostream& out) const { @@ -14524,14 +15024,14 @@ uint32_t PartitionValuesRequest::read(::apache::thrift::protocol::TProtocol* ipr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->partitionKeys.clear(); - uint32_t _size583; - ::apache::thrift::protocol::TType _etype586; - xfer += iprot->readListBegin(_etype586, _size583); - this->partitionKeys.resize(_size583); - uint32_t _i587; - for (_i587 = 0; _i587 < _size583; ++_i587) + uint32_t _size590; + ::apache::thrift::protocol::TType _etype593; + xfer += iprot->readListBegin(_etype593, _size590); + this->partitionKeys.resize(_size590); + uint32_t _i594; + for (_i594 = 0; _i594 < _size590; ++_i594) { - xfer += this->partitionKeys[_i587].read(iprot); + xfer += this->partitionKeys[_i594].read(iprot); } xfer += iprot->readListEnd(); } @@ -14560,14 +15060,14 @@ uint32_t PartitionValuesRequest::read(::apache::thrift::protocol::TProtocol* ipr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->partitionOrder.clear(); - uint32_t _size588; - ::apache::thrift::protocol::TType _etype591; - xfer += iprot->readListBegin(_etype591, _size588); - this->partitionOrder.resize(_size588); - uint32_t _i592; - for (_i592 = 0; _i592 < _size588; ++_i592) + uint32_t _size595; + ::apache::thrift::protocol::TType _etype598; + xfer += iprot->readListBegin(_etype598, _size595); + this->partitionOrder.resize(_size595); + uint32_t _i599; + for (_i599 = 0; _i599 < _size595; ++_i599) { - xfer += this->partitionOrder[_i592].read(iprot); + xfer += this->partitionOrder[_i599].read(iprot); } xfer += iprot->readListEnd(); } @@ -14634,10 +15134,10 @@ uint32_t PartitionValuesRequest::write(::apache::thrift::protocol::TProtocol* op xfer += oprot->writeFieldBegin("partitionKeys", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->partitionKeys.size())); - std::vector ::const_iterator _iter593; - for (_iter593 = this->partitionKeys.begin(); _iter593 != this->partitionKeys.end(); ++_iter593) + std::vector ::const_iterator _iter600; + for (_iter600 = this->partitionKeys.begin(); _iter600 != this->partitionKeys.end(); ++_iter600) { - xfer += (*_iter593).write(oprot); + xfer += (*_iter600).write(oprot); } xfer += oprot->writeListEnd(); } @@ -14657,10 +15157,10 @@ uint32_t PartitionValuesRequest::write(::apache::thrift::protocol::TProtocol* op xfer += oprot->writeFieldBegin("partitionOrder", ::apache::thrift::protocol::T_LIST, 6); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->partitionOrder.size())); - std::vector ::const_iterator _iter594; - for (_iter594 = this->partitionOrder.begin(); _iter594 != this->partitionOrder.end(); ++_iter594) + std::vector ::const_iterator _iter601; + for (_iter601 = this->partitionOrder.begin(); _iter601 != this->partitionOrder.end(); ++_iter601) { - xfer += (*_iter594).write(oprot); + xfer += (*_iter601).write(oprot); } xfer += oprot->writeListEnd(); } @@ -14700,29 +15200,29 @@ void swap(PartitionValuesRequest &a, PartitionValuesRequest &b) { swap(a.__isset, b.__isset); } -PartitionValuesRequest::PartitionValuesRequest(const PartitionValuesRequest& other595) { - dbName = other595.dbName; - tblName = other595.tblName; - partitionKeys = other595.partitionKeys; - applyDistinct = other595.applyDistinct; - filter = other595.filter; - partitionOrder = other595.partitionOrder; - ascending = other595.ascending; - maxParts = other595.maxParts; - catName = other595.catName; - __isset = other595.__isset; -} -PartitionValuesRequest& PartitionValuesRequest::operator=(const PartitionValuesRequest& other596) { - dbName = other596.dbName; - tblName = other596.tblName; - partitionKeys = other596.partitionKeys; - applyDistinct = other596.applyDistinct; - filter = other596.filter; - partitionOrder = other596.partitionOrder; - ascending = other596.ascending; - maxParts = other596.maxParts; - catName = other596.catName; - __isset = other596.__isset; +PartitionValuesRequest::PartitionValuesRequest(const PartitionValuesRequest& other602) { + dbName = other602.dbName; + tblName = other602.tblName; + partitionKeys = other602.partitionKeys; + applyDistinct = other602.applyDistinct; + filter = other602.filter; + partitionOrder = other602.partitionOrder; + ascending = other602.ascending; + maxParts = other602.maxParts; + catName = other602.catName; + __isset = other602.__isset; +} +PartitionValuesRequest& PartitionValuesRequest::operator=(const PartitionValuesRequest& other603) { + dbName = other603.dbName; + tblName = other603.tblName; + partitionKeys = other603.partitionKeys; + applyDistinct = other603.applyDistinct; + filter = other603.filter; + partitionOrder = other603.partitionOrder; + ascending = other603.ascending; + maxParts = other603.maxParts; + catName = other603.catName; + __isset = other603.__isset; return *this; } void PartitionValuesRequest::printTo(std::ostream& out) const { @@ -14775,14 +15275,14 @@ uint32_t PartitionValuesRow::read(::apache::thrift::protocol::TProtocol* iprot) if (ftype == ::apache::thrift::protocol::T_LIST) { { this->row.clear(); - uint32_t _size597; - ::apache::thrift::protocol::TType _etype600; - xfer += iprot->readListBegin(_etype600, _size597); - this->row.resize(_size597); - uint32_t _i601; - for (_i601 = 0; _i601 < _size597; ++_i601) + uint32_t _size604; + ::apache::thrift::protocol::TType _etype607; + xfer += iprot->readListBegin(_etype607, _size604); + this->row.resize(_size604); + uint32_t _i608; + for (_i608 = 0; _i608 < _size604; ++_i608) { - xfer += iprot->readString(this->row[_i601]); + xfer += iprot->readString(this->row[_i608]); } xfer += iprot->readListEnd(); } @@ -14813,10 +15313,10 @@ uint32_t PartitionValuesRow::write(::apache::thrift::protocol::TProtocol* oprot) xfer += oprot->writeFieldBegin("row", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->row.size())); - std::vector ::const_iterator _iter602; - for (_iter602 = this->row.begin(); _iter602 != this->row.end(); ++_iter602) + std::vector ::const_iterator _iter609; + for (_iter609 = this->row.begin(); _iter609 != this->row.end(); ++_iter609) { - xfer += oprot->writeString((*_iter602)); + xfer += oprot->writeString((*_iter609)); } xfer += oprot->writeListEnd(); } @@ -14832,11 +15332,11 @@ void swap(PartitionValuesRow &a, PartitionValuesRow &b) { swap(a.row, b.row); } -PartitionValuesRow::PartitionValuesRow(const PartitionValuesRow& other603) { - row = other603.row; +PartitionValuesRow::PartitionValuesRow(const PartitionValuesRow& other610) { + row = other610.row; } -PartitionValuesRow& PartitionValuesRow::operator=(const PartitionValuesRow& other604) { - row = other604.row; +PartitionValuesRow& PartitionValuesRow::operator=(const PartitionValuesRow& other611) { + row = other611.row; return *this; } void PartitionValuesRow::printTo(std::ostream& out) const { @@ -14881,14 +15381,14 @@ uint32_t PartitionValuesResponse::read(::apache::thrift::protocol::TProtocol* ip if (ftype == ::apache::thrift::protocol::T_LIST) { { this->partitionValues.clear(); - uint32_t _size605; - ::apache::thrift::protocol::TType _etype608; - xfer += iprot->readListBegin(_etype608, _size605); - this->partitionValues.resize(_size605); - uint32_t _i609; - for (_i609 = 0; _i609 < _size605; ++_i609) + uint32_t _size612; + ::apache::thrift::protocol::TType _etype615; + xfer += iprot->readListBegin(_etype615, _size612); + this->partitionValues.resize(_size612); + uint32_t _i616; + for (_i616 = 0; _i616 < _size612; ++_i616) { - xfer += this->partitionValues[_i609].read(iprot); + xfer += this->partitionValues[_i616].read(iprot); } xfer += iprot->readListEnd(); } @@ -14919,10 +15419,10 @@ uint32_t PartitionValuesResponse::write(::apache::thrift::protocol::TProtocol* o xfer += oprot->writeFieldBegin("partitionValues", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->partitionValues.size())); - std::vector ::const_iterator _iter610; - for (_iter610 = this->partitionValues.begin(); _iter610 != this->partitionValues.end(); ++_iter610) + std::vector ::const_iterator _iter617; + for (_iter617 = this->partitionValues.begin(); _iter617 != this->partitionValues.end(); ++_iter617) { - xfer += (*_iter610).write(oprot); + xfer += (*_iter617).write(oprot); } xfer += oprot->writeListEnd(); } @@ -14938,11 +15438,11 @@ void swap(PartitionValuesResponse &a, PartitionValuesResponse &b) { swap(a.partitionValues, b.partitionValues); } -PartitionValuesResponse::PartitionValuesResponse(const PartitionValuesResponse& other611) { - partitionValues = other611.partitionValues; +PartitionValuesResponse::PartitionValuesResponse(const PartitionValuesResponse& other618) { + partitionValues = other618.partitionValues; } -PartitionValuesResponse& PartitionValuesResponse::operator=(const PartitionValuesResponse& other612) { - partitionValues = other612.partitionValues; +PartitionValuesResponse& PartitionValuesResponse::operator=(const PartitionValuesResponse& other619) { + partitionValues = other619.partitionValues; return *this; } void PartitionValuesResponse::printTo(std::ostream& out) const { @@ -14988,9 +15488,9 @@ uint32_t ResourceUri::read(::apache::thrift::protocol::TProtocol* iprot) { { case 1: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast613; - xfer += iprot->readI32(ecast613); - this->resourceType = (ResourceType::type)ecast613; + int32_t ecast620; + xfer += iprot->readI32(ecast620); + this->resourceType = (ResourceType::type)ecast620; this->__isset.resourceType = true; } else { xfer += iprot->skip(ftype); @@ -15041,15 +15541,15 @@ void swap(ResourceUri &a, ResourceUri &b) { swap(a.__isset, b.__isset); } -ResourceUri::ResourceUri(const ResourceUri& other614) { - resourceType = other614.resourceType; - uri = other614.uri; - __isset = other614.__isset; +ResourceUri::ResourceUri(const ResourceUri& other621) { + resourceType = other621.resourceType; + uri = other621.uri; + __isset = other621.__isset; } -ResourceUri& ResourceUri::operator=(const ResourceUri& other615) { - resourceType = other615.resourceType; - uri = other615.uri; - __isset = other615.__isset; +ResourceUri& ResourceUri::operator=(const ResourceUri& other622) { + resourceType = other622.resourceType; + uri = other622.uri; + __isset = other622.__isset; return *this; } void ResourceUri::printTo(std::ostream& out) const { @@ -15157,9 +15657,9 @@ uint32_t Function::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 5: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast616; - xfer += iprot->readI32(ecast616); - this->ownerType = (PrincipalType::type)ecast616; + int32_t ecast623; + xfer += iprot->readI32(ecast623); + this->ownerType = (PrincipalType::type)ecast623; this->__isset.ownerType = true; } else { xfer += iprot->skip(ftype); @@ -15175,9 +15675,9 @@ uint32_t Function::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 7: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast617; - xfer += iprot->readI32(ecast617); - this->functionType = (FunctionType::type)ecast617; + int32_t ecast624; + xfer += iprot->readI32(ecast624); + this->functionType = (FunctionType::type)ecast624; this->__isset.functionType = true; } else { xfer += iprot->skip(ftype); @@ -15187,14 +15687,14 @@ uint32_t Function::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->resourceUris.clear(); - uint32_t _size618; - ::apache::thrift::protocol::TType _etype621; - xfer += iprot->readListBegin(_etype621, _size618); - this->resourceUris.resize(_size618); - uint32_t _i622; - for (_i622 = 0; _i622 < _size618; ++_i622) + uint32_t _size625; + ::apache::thrift::protocol::TType _etype628; + xfer += iprot->readListBegin(_etype628, _size625); + this->resourceUris.resize(_size625); + uint32_t _i629; + for (_i629 = 0; _i629 < _size625; ++_i629) { - xfer += this->resourceUris[_i622].read(iprot); + xfer += this->resourceUris[_i629].read(iprot); } xfer += iprot->readListEnd(); } @@ -15259,10 +15759,10 @@ uint32_t Function::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("resourceUris", ::apache::thrift::protocol::T_LIST, 8); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->resourceUris.size())); - std::vector ::const_iterator _iter623; - for (_iter623 = this->resourceUris.begin(); _iter623 != this->resourceUris.end(); ++_iter623) + std::vector ::const_iterator _iter630; + for (_iter630 = this->resourceUris.begin(); _iter630 != this->resourceUris.end(); ++_iter630) { - xfer += (*_iter623).write(oprot); + xfer += (*_iter630).write(oprot); } xfer += oprot->writeListEnd(); } @@ -15292,29 +15792,29 @@ void swap(Function &a, Function &b) { swap(a.__isset, b.__isset); } -Function::Function(const Function& other624) { - functionName = other624.functionName; - dbName = other624.dbName; - className = other624.className; - ownerName = other624.ownerName; - ownerType = other624.ownerType; - createTime = other624.createTime; - functionType = other624.functionType; - resourceUris = other624.resourceUris; - catName = other624.catName; - __isset = other624.__isset; -} -Function& Function::operator=(const Function& other625) { - functionName = other625.functionName; - dbName = other625.dbName; - className = other625.className; - ownerName = other625.ownerName; - ownerType = other625.ownerType; - createTime = other625.createTime; - functionType = other625.functionType; - resourceUris = other625.resourceUris; - catName = other625.catName; - __isset = other625.__isset; +Function::Function(const Function& other631) { + functionName = other631.functionName; + dbName = other631.dbName; + className = other631.className; + ownerName = other631.ownerName; + ownerType = other631.ownerType; + createTime = other631.createTime; + functionType = other631.functionType; + resourceUris = other631.resourceUris; + catName = other631.catName; + __isset = other631.__isset; +} +Function& Function::operator=(const Function& other632) { + functionName = other632.functionName; + dbName = other632.dbName; + className = other632.className; + ownerName = other632.ownerName; + ownerType = other632.ownerType; + createTime = other632.createTime; + functionType = other632.functionType; + resourceUris = other632.resourceUris; + catName = other632.catName; + __isset = other632.__isset; return *this; } void Function::printTo(std::ostream& out) const { @@ -15413,9 +15913,9 @@ uint32_t TxnInfo::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast626; - xfer += iprot->readI32(ecast626); - this->state = (TxnState::type)ecast626; + int32_t ecast633; + xfer += iprot->readI32(ecast633); + this->state = (TxnState::type)ecast633; isset_state = true; } else { xfer += iprot->skip(ftype); @@ -15562,29 +16062,29 @@ void swap(TxnInfo &a, TxnInfo &b) { swap(a.__isset, b.__isset); } -TxnInfo::TxnInfo(const TxnInfo& other627) { - id = other627.id; - state = other627.state; - user = other627.user; - hostname = other627.hostname; - agentInfo = other627.agentInfo; - heartbeatCount = other627.heartbeatCount; - metaInfo = other627.metaInfo; - startedTime = other627.startedTime; - lastHeartbeatTime = other627.lastHeartbeatTime; - __isset = other627.__isset; -} -TxnInfo& TxnInfo::operator=(const TxnInfo& other628) { - id = other628.id; - state = other628.state; - user = other628.user; - hostname = other628.hostname; - agentInfo = other628.agentInfo; - heartbeatCount = other628.heartbeatCount; - metaInfo = other628.metaInfo; - startedTime = other628.startedTime; - lastHeartbeatTime = other628.lastHeartbeatTime; - __isset = other628.__isset; +TxnInfo::TxnInfo(const TxnInfo& other634) { + id = other634.id; + state = other634.state; + user = other634.user; + hostname = other634.hostname; + agentInfo = other634.agentInfo; + heartbeatCount = other634.heartbeatCount; + metaInfo = other634.metaInfo; + startedTime = other634.startedTime; + lastHeartbeatTime = other634.lastHeartbeatTime; + __isset = other634.__isset; +} +TxnInfo& TxnInfo::operator=(const TxnInfo& other635) { + id = other635.id; + state = other635.state; + user = other635.user; + hostname = other635.hostname; + agentInfo = other635.agentInfo; + heartbeatCount = other635.heartbeatCount; + metaInfo = other635.metaInfo; + startedTime = other635.startedTime; + lastHeartbeatTime = other635.lastHeartbeatTime; + __isset = other635.__isset; return *this; } void TxnInfo::printTo(std::ostream& out) const { @@ -15650,14 +16150,14 @@ uint32_t GetOpenTxnsInfoResponse::read(::apache::thrift::protocol::TProtocol* ip if (ftype == ::apache::thrift::protocol::T_LIST) { { this->open_txns.clear(); - uint32_t _size629; - ::apache::thrift::protocol::TType _etype632; - xfer += iprot->readListBegin(_etype632, _size629); - this->open_txns.resize(_size629); - uint32_t _i633; - for (_i633 = 0; _i633 < _size629; ++_i633) + uint32_t _size636; + ::apache::thrift::protocol::TType _etype639; + xfer += iprot->readListBegin(_etype639, _size636); + this->open_txns.resize(_size636); + uint32_t _i640; + for (_i640 = 0; _i640 < _size636; ++_i640) { - xfer += this->open_txns[_i633].read(iprot); + xfer += this->open_txns[_i640].read(iprot); } xfer += iprot->readListEnd(); } @@ -15694,10 +16194,10 @@ uint32_t GetOpenTxnsInfoResponse::write(::apache::thrift::protocol::TProtocol* o xfer += oprot->writeFieldBegin("open_txns", ::apache::thrift::protocol::T_LIST, 2); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->open_txns.size())); - std::vector ::const_iterator _iter634; - for (_iter634 = this->open_txns.begin(); _iter634 != this->open_txns.end(); ++_iter634) + std::vector ::const_iterator _iter641; + for (_iter641 = this->open_txns.begin(); _iter641 != this->open_txns.end(); ++_iter641) { - xfer += (*_iter634).write(oprot); + xfer += (*_iter641).write(oprot); } xfer += oprot->writeListEnd(); } @@ -15714,13 +16214,13 @@ void swap(GetOpenTxnsInfoResponse &a, GetOpenTxnsInfoResponse &b) { swap(a.open_txns, b.open_txns); } -GetOpenTxnsInfoResponse::GetOpenTxnsInfoResponse(const GetOpenTxnsInfoResponse& other635) { - txn_high_water_mark = other635.txn_high_water_mark; - open_txns = other635.open_txns; +GetOpenTxnsInfoResponse::GetOpenTxnsInfoResponse(const GetOpenTxnsInfoResponse& other642) { + txn_high_water_mark = other642.txn_high_water_mark; + open_txns = other642.open_txns; } -GetOpenTxnsInfoResponse& GetOpenTxnsInfoResponse::operator=(const GetOpenTxnsInfoResponse& other636) { - txn_high_water_mark = other636.txn_high_water_mark; - open_txns = other636.open_txns; +GetOpenTxnsInfoResponse& GetOpenTxnsInfoResponse::operator=(const GetOpenTxnsInfoResponse& other643) { + txn_high_water_mark = other643.txn_high_water_mark; + open_txns = other643.open_txns; return *this; } void GetOpenTxnsInfoResponse::printTo(std::ostream& out) const { @@ -15789,14 +16289,14 @@ uint32_t GetOpenTxnsResponse::read(::apache::thrift::protocol::TProtocol* iprot) if (ftype == ::apache::thrift::protocol::T_LIST) { { this->open_txns.clear(); - uint32_t _size637; - ::apache::thrift::protocol::TType _etype640; - xfer += iprot->readListBegin(_etype640, _size637); - this->open_txns.resize(_size637); - uint32_t _i641; - for (_i641 = 0; _i641 < _size637; ++_i641) + uint32_t _size644; + ::apache::thrift::protocol::TType _etype647; + xfer += iprot->readListBegin(_etype647, _size644); + this->open_txns.resize(_size644); + uint32_t _i648; + for (_i648 = 0; _i648 < _size644; ++_i648) { - xfer += iprot->readI64(this->open_txns[_i641]); + xfer += iprot->readI64(this->open_txns[_i648]); } xfer += iprot->readListEnd(); } @@ -15851,10 +16351,10 @@ uint32_t GetOpenTxnsResponse::write(::apache::thrift::protocol::TProtocol* oprot xfer += oprot->writeFieldBegin("open_txns", ::apache::thrift::protocol::T_LIST, 2); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_I64, static_cast(this->open_txns.size())); - std::vector ::const_iterator _iter642; - for (_iter642 = this->open_txns.begin(); _iter642 != this->open_txns.end(); ++_iter642) + std::vector ::const_iterator _iter649; + for (_iter649 = this->open_txns.begin(); _iter649 != this->open_txns.end(); ++_iter649) { - xfer += oprot->writeI64((*_iter642)); + xfer += oprot->writeI64((*_iter649)); } xfer += oprot->writeListEnd(); } @@ -15883,19 +16383,19 @@ void swap(GetOpenTxnsResponse &a, GetOpenTxnsResponse &b) { swap(a.__isset, b.__isset); } -GetOpenTxnsResponse::GetOpenTxnsResponse(const GetOpenTxnsResponse& other643) { - txn_high_water_mark = other643.txn_high_water_mark; - open_txns = other643.open_txns; - min_open_txn = other643.min_open_txn; - abortedBits = other643.abortedBits; - __isset = other643.__isset; -} -GetOpenTxnsResponse& GetOpenTxnsResponse::operator=(const GetOpenTxnsResponse& other644) { - txn_high_water_mark = other644.txn_high_water_mark; - open_txns = other644.open_txns; - min_open_txn = other644.min_open_txn; - abortedBits = other644.abortedBits; - __isset = other644.__isset; +GetOpenTxnsResponse::GetOpenTxnsResponse(const GetOpenTxnsResponse& other650) { + txn_high_water_mark = other650.txn_high_water_mark; + open_txns = other650.open_txns; + min_open_txn = other650.min_open_txn; + abortedBits = other650.abortedBits; + __isset = other650.__isset; +} +GetOpenTxnsResponse& GetOpenTxnsResponse::operator=(const GetOpenTxnsResponse& other651) { + txn_high_water_mark = other651.txn_high_water_mark; + open_txns = other651.open_txns; + min_open_txn = other651.min_open_txn; + abortedBits = other651.abortedBits; + __isset = other651.__isset; return *this; } void GetOpenTxnsResponse::printTo(std::ostream& out) const { @@ -16008,14 +16508,14 @@ uint32_t OpenTxnRequest::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->replSrcTxnIds.clear(); - uint32_t _size645; - ::apache::thrift::protocol::TType _etype648; - xfer += iprot->readListBegin(_etype648, _size645); - this->replSrcTxnIds.resize(_size645); - uint32_t _i649; - for (_i649 = 0; _i649 < _size645; ++_i649) + uint32_t _size652; + ::apache::thrift::protocol::TType _etype655; + xfer += iprot->readListBegin(_etype655, _size652); + this->replSrcTxnIds.resize(_size652); + uint32_t _i656; + for (_i656 = 0; _i656 < _size652; ++_i656) { - xfer += iprot->readI64(this->replSrcTxnIds[_i649]); + xfer += iprot->readI64(this->replSrcTxnIds[_i656]); } xfer += iprot->readListEnd(); } @@ -16073,10 +16573,10 @@ uint32_t OpenTxnRequest::write(::apache::thrift::protocol::TProtocol* oprot) con xfer += oprot->writeFieldBegin("replSrcTxnIds", ::apache::thrift::protocol::T_LIST, 6); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_I64, static_cast(this->replSrcTxnIds.size())); - std::vector ::const_iterator _iter650; - for (_iter650 = this->replSrcTxnIds.begin(); _iter650 != this->replSrcTxnIds.end(); ++_iter650) + std::vector ::const_iterator _iter657; + for (_iter657 = this->replSrcTxnIds.begin(); _iter657 != this->replSrcTxnIds.end(); ++_iter657) { - xfer += oprot->writeI64((*_iter650)); + xfer += oprot->writeI64((*_iter657)); } xfer += oprot->writeListEnd(); } @@ -16098,23 +16598,23 @@ void swap(OpenTxnRequest &a, OpenTxnRequest &b) { swap(a.__isset, b.__isset); } -OpenTxnRequest::OpenTxnRequest(const OpenTxnRequest& other651) { - num_txns = other651.num_txns; - user = other651.user; - hostname = other651.hostname; - agentInfo = other651.agentInfo; - replPolicy = other651.replPolicy; - replSrcTxnIds = other651.replSrcTxnIds; - __isset = other651.__isset; -} -OpenTxnRequest& OpenTxnRequest::operator=(const OpenTxnRequest& other652) { - num_txns = other652.num_txns; - user = other652.user; - hostname = other652.hostname; - agentInfo = other652.agentInfo; - replPolicy = other652.replPolicy; - replSrcTxnIds = other652.replSrcTxnIds; - __isset = other652.__isset; +OpenTxnRequest::OpenTxnRequest(const OpenTxnRequest& other658) { + num_txns = other658.num_txns; + user = other658.user; + hostname = other658.hostname; + agentInfo = other658.agentInfo; + replPolicy = other658.replPolicy; + replSrcTxnIds = other658.replSrcTxnIds; + __isset = other658.__isset; +} +OpenTxnRequest& OpenTxnRequest::operator=(const OpenTxnRequest& other659) { + num_txns = other659.num_txns; + user = other659.user; + hostname = other659.hostname; + agentInfo = other659.agentInfo; + replPolicy = other659.replPolicy; + replSrcTxnIds = other659.replSrcTxnIds; + __isset = other659.__isset; return *this; } void OpenTxnRequest::printTo(std::ostream& out) const { @@ -16164,14 +16664,14 @@ uint32_t OpenTxnsResponse::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->txn_ids.clear(); - uint32_t _size653; - ::apache::thrift::protocol::TType _etype656; - xfer += iprot->readListBegin(_etype656, _size653); - this->txn_ids.resize(_size653); - uint32_t _i657; - for (_i657 = 0; _i657 < _size653; ++_i657) + uint32_t _size660; + ::apache::thrift::protocol::TType _etype663; + xfer += iprot->readListBegin(_etype663, _size660); + this->txn_ids.resize(_size660); + uint32_t _i664; + for (_i664 = 0; _i664 < _size660; ++_i664) { - xfer += iprot->readI64(this->txn_ids[_i657]); + xfer += iprot->readI64(this->txn_ids[_i664]); } xfer += iprot->readListEnd(); } @@ -16202,10 +16702,10 @@ uint32_t OpenTxnsResponse::write(::apache::thrift::protocol::TProtocol* oprot) c xfer += oprot->writeFieldBegin("txn_ids", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_I64, static_cast(this->txn_ids.size())); - std::vector ::const_iterator _iter658; - for (_iter658 = this->txn_ids.begin(); _iter658 != this->txn_ids.end(); ++_iter658) + std::vector ::const_iterator _iter665; + for (_iter665 = this->txn_ids.begin(); _iter665 != this->txn_ids.end(); ++_iter665) { - xfer += oprot->writeI64((*_iter658)); + xfer += oprot->writeI64((*_iter665)); } xfer += oprot->writeListEnd(); } @@ -16221,11 +16721,11 @@ void swap(OpenTxnsResponse &a, OpenTxnsResponse &b) { swap(a.txn_ids, b.txn_ids); } -OpenTxnsResponse::OpenTxnsResponse(const OpenTxnsResponse& other659) { - txn_ids = other659.txn_ids; +OpenTxnsResponse::OpenTxnsResponse(const OpenTxnsResponse& other666) { + txn_ids = other666.txn_ids; } -OpenTxnsResponse& OpenTxnsResponse::operator=(const OpenTxnsResponse& other660) { - txn_ids = other660.txn_ids; +OpenTxnsResponse& OpenTxnsResponse::operator=(const OpenTxnsResponse& other667) { + txn_ids = other667.txn_ids; return *this; } void OpenTxnsResponse::printTo(std::ostream& out) const { @@ -16327,15 +16827,15 @@ void swap(AbortTxnRequest &a, AbortTxnRequest &b) { swap(a.__isset, b.__isset); } -AbortTxnRequest::AbortTxnRequest(const AbortTxnRequest& other661) { - txnid = other661.txnid; - replPolicy = other661.replPolicy; - __isset = other661.__isset; +AbortTxnRequest::AbortTxnRequest(const AbortTxnRequest& other668) { + txnid = other668.txnid; + replPolicy = other668.replPolicy; + __isset = other668.__isset; } -AbortTxnRequest& AbortTxnRequest::operator=(const AbortTxnRequest& other662) { - txnid = other662.txnid; - replPolicy = other662.replPolicy; - __isset = other662.__isset; +AbortTxnRequest& AbortTxnRequest::operator=(const AbortTxnRequest& other669) { + txnid = other669.txnid; + replPolicy = other669.replPolicy; + __isset = other669.__isset; return *this; } void AbortTxnRequest::printTo(std::ostream& out) const { @@ -16381,14 +16881,14 @@ uint32_t AbortTxnsRequest::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->txn_ids.clear(); - uint32_t _size663; - ::apache::thrift::protocol::TType _etype666; - xfer += iprot->readListBegin(_etype666, _size663); - this->txn_ids.resize(_size663); - uint32_t _i667; - for (_i667 = 0; _i667 < _size663; ++_i667) + uint32_t _size670; + ::apache::thrift::protocol::TType _etype673; + xfer += iprot->readListBegin(_etype673, _size670); + this->txn_ids.resize(_size670); + uint32_t _i674; + for (_i674 = 0; _i674 < _size670; ++_i674) { - xfer += iprot->readI64(this->txn_ids[_i667]); + xfer += iprot->readI64(this->txn_ids[_i674]); } xfer += iprot->readListEnd(); } @@ -16419,10 +16919,10 @@ uint32_t AbortTxnsRequest::write(::apache::thrift::protocol::TProtocol* oprot) c xfer += oprot->writeFieldBegin("txn_ids", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_I64, static_cast(this->txn_ids.size())); - std::vector ::const_iterator _iter668; - for (_iter668 = this->txn_ids.begin(); _iter668 != this->txn_ids.end(); ++_iter668) + std::vector ::const_iterator _iter675; + for (_iter675 = this->txn_ids.begin(); _iter675 != this->txn_ids.end(); ++_iter675) { - xfer += oprot->writeI64((*_iter668)); + xfer += oprot->writeI64((*_iter675)); } xfer += oprot->writeListEnd(); } @@ -16438,11 +16938,11 @@ void swap(AbortTxnsRequest &a, AbortTxnsRequest &b) { swap(a.txn_ids, b.txn_ids); } -AbortTxnsRequest::AbortTxnsRequest(const AbortTxnsRequest& other669) { - txn_ids = other669.txn_ids; +AbortTxnsRequest::AbortTxnsRequest(const AbortTxnsRequest& other676) { + txn_ids = other676.txn_ids; } -AbortTxnsRequest& AbortTxnsRequest::operator=(const AbortTxnsRequest& other670) { - txn_ids = other670.txn_ids; +AbortTxnsRequest& AbortTxnsRequest::operator=(const AbortTxnsRequest& other677) { + txn_ids = other677.txn_ids; return *this; } void AbortTxnsRequest::printTo(std::ostream& out) const { @@ -16544,15 +17044,15 @@ void swap(CommitTxnRequest &a, CommitTxnRequest &b) { swap(a.__isset, b.__isset); } -CommitTxnRequest::CommitTxnRequest(const CommitTxnRequest& other671) { - txnid = other671.txnid; - replPolicy = other671.replPolicy; - __isset = other671.__isset; +CommitTxnRequest::CommitTxnRequest(const CommitTxnRequest& other678) { + txnid = other678.txnid; + replPolicy = other678.replPolicy; + __isset = other678.__isset; } -CommitTxnRequest& CommitTxnRequest::operator=(const CommitTxnRequest& other672) { - txnid = other672.txnid; - replPolicy = other672.replPolicy; - __isset = other672.__isset; +CommitTxnRequest& CommitTxnRequest::operator=(const CommitTxnRequest& other679) { + txnid = other679.txnid; + replPolicy = other679.replPolicy; + __isset = other679.__isset; return *this; } void CommitTxnRequest::printTo(std::ostream& out) const { @@ -16663,14 +17163,14 @@ uint32_t ReplTblWriteIdStateRequest::read(::apache::thrift::protocol::TProtocol* if (ftype == ::apache::thrift::protocol::T_LIST) { { this->partNames.clear(); - uint32_t _size673; - ::apache::thrift::protocol::TType _etype676; - xfer += iprot->readListBegin(_etype676, _size673); - this->partNames.resize(_size673); - uint32_t _i677; - for (_i677 = 0; _i677 < _size673; ++_i677) + uint32_t _size680; + ::apache::thrift::protocol::TType _etype683; + xfer += iprot->readListBegin(_etype683, _size680); + this->partNames.resize(_size680); + uint32_t _i684; + for (_i684 = 0; _i684 < _size680; ++_i684) { - xfer += iprot->readString(this->partNames[_i677]); + xfer += iprot->readString(this->partNames[_i684]); } xfer += iprot->readListEnd(); } @@ -16730,10 +17230,10 @@ uint32_t ReplTblWriteIdStateRequest::write(::apache::thrift::protocol::TProtocol xfer += oprot->writeFieldBegin("partNames", ::apache::thrift::protocol::T_LIST, 6); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->partNames.size())); - std::vector ::const_iterator _iter678; - for (_iter678 = this->partNames.begin(); _iter678 != this->partNames.end(); ++_iter678) + std::vector ::const_iterator _iter685; + for (_iter685 = this->partNames.begin(); _iter685 != this->partNames.end(); ++_iter685) { - xfer += oprot->writeString((*_iter678)); + xfer += oprot->writeString((*_iter685)); } xfer += oprot->writeListEnd(); } @@ -16755,23 +17255,23 @@ void swap(ReplTblWriteIdStateRequest &a, ReplTblWriteIdStateRequest &b) { swap(a.__isset, b.__isset); } -ReplTblWriteIdStateRequest::ReplTblWriteIdStateRequest(const ReplTblWriteIdStateRequest& other679) { - validWriteIdlist = other679.validWriteIdlist; - user = other679.user; - hostName = other679.hostName; - dbName = other679.dbName; - tableName = other679.tableName; - partNames = other679.partNames; - __isset = other679.__isset; -} -ReplTblWriteIdStateRequest& ReplTblWriteIdStateRequest::operator=(const ReplTblWriteIdStateRequest& other680) { - validWriteIdlist = other680.validWriteIdlist; - user = other680.user; - hostName = other680.hostName; - dbName = other680.dbName; - tableName = other680.tableName; - partNames = other680.partNames; - __isset = other680.__isset; +ReplTblWriteIdStateRequest::ReplTblWriteIdStateRequest(const ReplTblWriteIdStateRequest& other686) { + validWriteIdlist = other686.validWriteIdlist; + user = other686.user; + hostName = other686.hostName; + dbName = other686.dbName; + tableName = other686.tableName; + partNames = other686.partNames; + __isset = other686.__isset; +} +ReplTblWriteIdStateRequest& ReplTblWriteIdStateRequest::operator=(const ReplTblWriteIdStateRequest& other687) { + validWriteIdlist = other687.validWriteIdlist; + user = other687.user; + hostName = other687.hostName; + dbName = other687.dbName; + tableName = other687.tableName; + partNames = other687.partNames; + __isset = other687.__isset; return *this; } void ReplTblWriteIdStateRequest::printTo(std::ostream& out) const { @@ -16826,14 +17326,14 @@ uint32_t GetValidWriteIdsRequest::read(::apache::thrift::protocol::TProtocol* ip if (ftype == ::apache::thrift::protocol::T_LIST) { { this->fullTableNames.clear(); - uint32_t _size681; - ::apache::thrift::protocol::TType _etype684; - xfer += iprot->readListBegin(_etype684, _size681); - this->fullTableNames.resize(_size681); - uint32_t _i685; - for (_i685 = 0; _i685 < _size681; ++_i685) + uint32_t _size688; + ::apache::thrift::protocol::TType _etype691; + xfer += iprot->readListBegin(_etype691, _size688); + this->fullTableNames.resize(_size688); + uint32_t _i692; + for (_i692 = 0; _i692 < _size688; ++_i692) { - xfer += iprot->readString(this->fullTableNames[_i685]); + xfer += iprot->readString(this->fullTableNames[_i692]); } xfer += iprot->readListEnd(); } @@ -16874,10 +17374,10 @@ uint32_t GetValidWriteIdsRequest::write(::apache::thrift::protocol::TProtocol* o xfer += oprot->writeFieldBegin("fullTableNames", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->fullTableNames.size())); - std::vector ::const_iterator _iter686; - for (_iter686 = this->fullTableNames.begin(); _iter686 != this->fullTableNames.end(); ++_iter686) + std::vector ::const_iterator _iter693; + for (_iter693 = this->fullTableNames.begin(); _iter693 != this->fullTableNames.end(); ++_iter693) { - xfer += oprot->writeString((*_iter686)); + xfer += oprot->writeString((*_iter693)); } xfer += oprot->writeListEnd(); } @@ -16898,13 +17398,13 @@ void swap(GetValidWriteIdsRequest &a, GetValidWriteIdsRequest &b) { swap(a.validTxnList, b.validTxnList); } -GetValidWriteIdsRequest::GetValidWriteIdsRequest(const GetValidWriteIdsRequest& other687) { - fullTableNames = other687.fullTableNames; - validTxnList = other687.validTxnList; +GetValidWriteIdsRequest::GetValidWriteIdsRequest(const GetValidWriteIdsRequest& other694) { + fullTableNames = other694.fullTableNames; + validTxnList = other694.validTxnList; } -GetValidWriteIdsRequest& GetValidWriteIdsRequest::operator=(const GetValidWriteIdsRequest& other688) { - fullTableNames = other688.fullTableNames; - validTxnList = other688.validTxnList; +GetValidWriteIdsRequest& GetValidWriteIdsRequest::operator=(const GetValidWriteIdsRequest& other695) { + fullTableNames = other695.fullTableNames; + validTxnList = other695.validTxnList; return *this; } void GetValidWriteIdsRequest::printTo(std::ostream& out) const { @@ -16986,14 +17486,14 @@ uint32_t TableValidWriteIds::read(::apache::thrift::protocol::TProtocol* iprot) if (ftype == ::apache::thrift::protocol::T_LIST) { { this->invalidWriteIds.clear(); - uint32_t _size689; - ::apache::thrift::protocol::TType _etype692; - xfer += iprot->readListBegin(_etype692, _size689); - this->invalidWriteIds.resize(_size689); - uint32_t _i693; - for (_i693 = 0; _i693 < _size689; ++_i693) + uint32_t _size696; + ::apache::thrift::protocol::TType _etype699; + xfer += iprot->readListBegin(_etype699, _size696); + this->invalidWriteIds.resize(_size696); + uint32_t _i700; + for (_i700 = 0; _i700 < _size696; ++_i700) { - xfer += iprot->readI64(this->invalidWriteIds[_i693]); + xfer += iprot->readI64(this->invalidWriteIds[_i700]); } xfer += iprot->readListEnd(); } @@ -17054,10 +17554,10 @@ uint32_t TableValidWriteIds::write(::apache::thrift::protocol::TProtocol* oprot) xfer += oprot->writeFieldBegin("invalidWriteIds", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_I64, static_cast(this->invalidWriteIds.size())); - std::vector ::const_iterator _iter694; - for (_iter694 = this->invalidWriteIds.begin(); _iter694 != this->invalidWriteIds.end(); ++_iter694) + std::vector ::const_iterator _iter701; + for (_iter701 = this->invalidWriteIds.begin(); _iter701 != this->invalidWriteIds.end(); ++_iter701) { - xfer += oprot->writeI64((*_iter694)); + xfer += oprot->writeI64((*_iter701)); } xfer += oprot->writeListEnd(); } @@ -17087,21 +17587,21 @@ void swap(TableValidWriteIds &a, TableValidWriteIds &b) { swap(a.__isset, b.__isset); } -TableValidWriteIds::TableValidWriteIds(const TableValidWriteIds& other695) { - fullTableName = other695.fullTableName; - writeIdHighWaterMark = other695.writeIdHighWaterMark; - invalidWriteIds = other695.invalidWriteIds; - minOpenWriteId = other695.minOpenWriteId; - abortedBits = other695.abortedBits; - __isset = other695.__isset; -} -TableValidWriteIds& TableValidWriteIds::operator=(const TableValidWriteIds& other696) { - fullTableName = other696.fullTableName; - writeIdHighWaterMark = other696.writeIdHighWaterMark; - invalidWriteIds = other696.invalidWriteIds; - minOpenWriteId = other696.minOpenWriteId; - abortedBits = other696.abortedBits; - __isset = other696.__isset; +TableValidWriteIds::TableValidWriteIds(const TableValidWriteIds& other702) { + fullTableName = other702.fullTableName; + writeIdHighWaterMark = other702.writeIdHighWaterMark; + invalidWriteIds = other702.invalidWriteIds; + minOpenWriteId = other702.minOpenWriteId; + abortedBits = other702.abortedBits; + __isset = other702.__isset; +} +TableValidWriteIds& TableValidWriteIds::operator=(const TableValidWriteIds& other703) { + fullTableName = other703.fullTableName; + writeIdHighWaterMark = other703.writeIdHighWaterMark; + invalidWriteIds = other703.invalidWriteIds; + minOpenWriteId = other703.minOpenWriteId; + abortedBits = other703.abortedBits; + __isset = other703.__isset; return *this; } void TableValidWriteIds::printTo(std::ostream& out) const { @@ -17150,14 +17650,14 @@ uint32_t GetValidWriteIdsResponse::read(::apache::thrift::protocol::TProtocol* i if (ftype == ::apache::thrift::protocol::T_LIST) { { this->tblValidWriteIds.clear(); - uint32_t _size697; - ::apache::thrift::protocol::TType _etype700; - xfer += iprot->readListBegin(_etype700, _size697); - this->tblValidWriteIds.resize(_size697); - uint32_t _i701; - for (_i701 = 0; _i701 < _size697; ++_i701) + uint32_t _size704; + ::apache::thrift::protocol::TType _etype707; + xfer += iprot->readListBegin(_etype707, _size704); + this->tblValidWriteIds.resize(_size704); + uint32_t _i708; + for (_i708 = 0; _i708 < _size704; ++_i708) { - xfer += this->tblValidWriteIds[_i701].read(iprot); + xfer += this->tblValidWriteIds[_i708].read(iprot); } xfer += iprot->readListEnd(); } @@ -17188,10 +17688,10 @@ uint32_t GetValidWriteIdsResponse::write(::apache::thrift::protocol::TProtocol* xfer += oprot->writeFieldBegin("tblValidWriteIds", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->tblValidWriteIds.size())); - std::vector ::const_iterator _iter702; - for (_iter702 = this->tblValidWriteIds.begin(); _iter702 != this->tblValidWriteIds.end(); ++_iter702) + std::vector ::const_iterator _iter709; + for (_iter709 = this->tblValidWriteIds.begin(); _iter709 != this->tblValidWriteIds.end(); ++_iter709) { - xfer += (*_iter702).write(oprot); + xfer += (*_iter709).write(oprot); } xfer += oprot->writeListEnd(); } @@ -17207,11 +17707,11 @@ void swap(GetValidWriteIdsResponse &a, GetValidWriteIdsResponse &b) { swap(a.tblValidWriteIds, b.tblValidWriteIds); } -GetValidWriteIdsResponse::GetValidWriteIdsResponse(const GetValidWriteIdsResponse& other703) { - tblValidWriteIds = other703.tblValidWriteIds; +GetValidWriteIdsResponse::GetValidWriteIdsResponse(const GetValidWriteIdsResponse& other710) { + tblValidWriteIds = other710.tblValidWriteIds; } -GetValidWriteIdsResponse& GetValidWriteIdsResponse::operator=(const GetValidWriteIdsResponse& other704) { - tblValidWriteIds = other704.tblValidWriteIds; +GetValidWriteIdsResponse& GetValidWriteIdsResponse::operator=(const GetValidWriteIdsResponse& other711) { + tblValidWriteIds = other711.tblValidWriteIds; return *this; } void GetValidWriteIdsResponse::printTo(std::ostream& out) const { @@ -17292,14 +17792,14 @@ uint32_t AllocateTableWriteIdsRequest::read(::apache::thrift::protocol::TProtoco if (ftype == ::apache::thrift::protocol::T_LIST) { { this->txnIds.clear(); - uint32_t _size705; - ::apache::thrift::protocol::TType _etype708; - xfer += iprot->readListBegin(_etype708, _size705); - this->txnIds.resize(_size705); - uint32_t _i709; - for (_i709 = 0; _i709 < _size705; ++_i709) + uint32_t _size712; + ::apache::thrift::protocol::TType _etype715; + xfer += iprot->readListBegin(_etype715, _size712); + this->txnIds.resize(_size712); + uint32_t _i716; + for (_i716 = 0; _i716 < _size712; ++_i716) { - xfer += iprot->readI64(this->txnIds[_i709]); + xfer += iprot->readI64(this->txnIds[_i716]); } xfer += iprot->readListEnd(); } @@ -17320,14 +17820,14 @@ uint32_t AllocateTableWriteIdsRequest::read(::apache::thrift::protocol::TProtoco if (ftype == ::apache::thrift::protocol::T_LIST) { { this->srcTxnToWriteIdList.clear(); - uint32_t _size710; - ::apache::thrift::protocol::TType _etype713; - xfer += iprot->readListBegin(_etype713, _size710); - this->srcTxnToWriteIdList.resize(_size710); - uint32_t _i714; - for (_i714 = 0; _i714 < _size710; ++_i714) + uint32_t _size717; + ::apache::thrift::protocol::TType _etype720; + xfer += iprot->readListBegin(_etype720, _size717); + this->srcTxnToWriteIdList.resize(_size717); + uint32_t _i721; + for (_i721 = 0; _i721 < _size717; ++_i721) { - xfer += this->srcTxnToWriteIdList[_i714].read(iprot); + xfer += this->srcTxnToWriteIdList[_i721].read(iprot); } xfer += iprot->readListEnd(); } @@ -17369,10 +17869,10 @@ uint32_t AllocateTableWriteIdsRequest::write(::apache::thrift::protocol::TProtoc xfer += oprot->writeFieldBegin("txnIds", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_I64, static_cast(this->txnIds.size())); - std::vector ::const_iterator _iter715; - for (_iter715 = this->txnIds.begin(); _iter715 != this->txnIds.end(); ++_iter715) + std::vector ::const_iterator _iter722; + for (_iter722 = this->txnIds.begin(); _iter722 != this->txnIds.end(); ++_iter722) { - xfer += oprot->writeI64((*_iter715)); + xfer += oprot->writeI64((*_iter722)); } xfer += oprot->writeListEnd(); } @@ -17387,10 +17887,10 @@ uint32_t AllocateTableWriteIdsRequest::write(::apache::thrift::protocol::TProtoc xfer += oprot->writeFieldBegin("srcTxnToWriteIdList", ::apache::thrift::protocol::T_LIST, 5); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->srcTxnToWriteIdList.size())); - std::vector ::const_iterator _iter716; - for (_iter716 = this->srcTxnToWriteIdList.begin(); _iter716 != this->srcTxnToWriteIdList.end(); ++_iter716) + std::vector ::const_iterator _iter723; + for (_iter723 = this->srcTxnToWriteIdList.begin(); _iter723 != this->srcTxnToWriteIdList.end(); ++_iter723) { - xfer += (*_iter716).write(oprot); + xfer += (*_iter723).write(oprot); } xfer += oprot->writeListEnd(); } @@ -17411,21 +17911,21 @@ void swap(AllocateTableWriteIdsRequest &a, AllocateTableWriteIdsRequest &b) { swap(a.__isset, b.__isset); } -AllocateTableWriteIdsRequest::AllocateTableWriteIdsRequest(const AllocateTableWriteIdsRequest& other717) { - dbName = other717.dbName; - tableName = other717.tableName; - txnIds = other717.txnIds; - replPolicy = other717.replPolicy; - srcTxnToWriteIdList = other717.srcTxnToWriteIdList; - __isset = other717.__isset; -} -AllocateTableWriteIdsRequest& AllocateTableWriteIdsRequest::operator=(const AllocateTableWriteIdsRequest& other718) { - dbName = other718.dbName; - tableName = other718.tableName; - txnIds = other718.txnIds; - replPolicy = other718.replPolicy; - srcTxnToWriteIdList = other718.srcTxnToWriteIdList; - __isset = other718.__isset; +AllocateTableWriteIdsRequest::AllocateTableWriteIdsRequest(const AllocateTableWriteIdsRequest& other724) { + dbName = other724.dbName; + tableName = other724.tableName; + txnIds = other724.txnIds; + replPolicy = other724.replPolicy; + srcTxnToWriteIdList = other724.srcTxnToWriteIdList; + __isset = other724.__isset; +} +AllocateTableWriteIdsRequest& AllocateTableWriteIdsRequest::operator=(const AllocateTableWriteIdsRequest& other725) { + dbName = other725.dbName; + tableName = other725.tableName; + txnIds = other725.txnIds; + replPolicy = other725.replPolicy; + srcTxnToWriteIdList = other725.srcTxnToWriteIdList; + __isset = other725.__isset; return *this; } void AllocateTableWriteIdsRequest::printTo(std::ostream& out) const { @@ -17531,13 +18031,13 @@ void swap(TxnToWriteId &a, TxnToWriteId &b) { swap(a.writeId, b.writeId); } -TxnToWriteId::TxnToWriteId(const TxnToWriteId& other719) { - txnId = other719.txnId; - writeId = other719.writeId; +TxnToWriteId::TxnToWriteId(const TxnToWriteId& other726) { + txnId = other726.txnId; + writeId = other726.writeId; } -TxnToWriteId& TxnToWriteId::operator=(const TxnToWriteId& other720) { - txnId = other720.txnId; - writeId = other720.writeId; +TxnToWriteId& TxnToWriteId::operator=(const TxnToWriteId& other727) { + txnId = other727.txnId; + writeId = other727.writeId; return *this; } void TxnToWriteId::printTo(std::ostream& out) const { @@ -17583,14 +18083,14 @@ uint32_t AllocateTableWriteIdsResponse::read(::apache::thrift::protocol::TProtoc if (ftype == ::apache::thrift::protocol::T_LIST) { { this->txnToWriteIds.clear(); - uint32_t _size721; - ::apache::thrift::protocol::TType _etype724; - xfer += iprot->readListBegin(_etype724, _size721); - this->txnToWriteIds.resize(_size721); - uint32_t _i725; - for (_i725 = 0; _i725 < _size721; ++_i725) + uint32_t _size728; + ::apache::thrift::protocol::TType _etype731; + xfer += iprot->readListBegin(_etype731, _size728); + this->txnToWriteIds.resize(_size728); + uint32_t _i732; + for (_i732 = 0; _i732 < _size728; ++_i732) { - xfer += this->txnToWriteIds[_i725].read(iprot); + xfer += this->txnToWriteIds[_i732].read(iprot); } xfer += iprot->readListEnd(); } @@ -17621,10 +18121,10 @@ uint32_t AllocateTableWriteIdsResponse::write(::apache::thrift::protocol::TProto xfer += oprot->writeFieldBegin("txnToWriteIds", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->txnToWriteIds.size())); - std::vector ::const_iterator _iter726; - for (_iter726 = this->txnToWriteIds.begin(); _iter726 != this->txnToWriteIds.end(); ++_iter726) + std::vector ::const_iterator _iter733; + for (_iter733 = this->txnToWriteIds.begin(); _iter733 != this->txnToWriteIds.end(); ++_iter733) { - xfer += (*_iter726).write(oprot); + xfer += (*_iter733).write(oprot); } xfer += oprot->writeListEnd(); } @@ -17640,11 +18140,11 @@ void swap(AllocateTableWriteIdsResponse &a, AllocateTableWriteIdsResponse &b) { swap(a.txnToWriteIds, b.txnToWriteIds); } -AllocateTableWriteIdsResponse::AllocateTableWriteIdsResponse(const AllocateTableWriteIdsResponse& other727) { - txnToWriteIds = other727.txnToWriteIds; +AllocateTableWriteIdsResponse::AllocateTableWriteIdsResponse(const AllocateTableWriteIdsResponse& other734) { + txnToWriteIds = other734.txnToWriteIds; } -AllocateTableWriteIdsResponse& AllocateTableWriteIdsResponse::operator=(const AllocateTableWriteIdsResponse& other728) { - txnToWriteIds = other728.txnToWriteIds; +AllocateTableWriteIdsResponse& AllocateTableWriteIdsResponse::operator=(const AllocateTableWriteIdsResponse& other735) { + txnToWriteIds = other735.txnToWriteIds; return *this; } void AllocateTableWriteIdsResponse::printTo(std::ostream& out) const { @@ -17722,9 +18222,9 @@ uint32_t LockComponent::read(::apache::thrift::protocol::TProtocol* iprot) { { case 1: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast729; - xfer += iprot->readI32(ecast729); - this->type = (LockType::type)ecast729; + int32_t ecast736; + xfer += iprot->readI32(ecast736); + this->type = (LockType::type)ecast736; isset_type = true; } else { xfer += iprot->skip(ftype); @@ -17732,9 +18232,9 @@ uint32_t LockComponent::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast730; - xfer += iprot->readI32(ecast730); - this->level = (LockLevel::type)ecast730; + int32_t ecast737; + xfer += iprot->readI32(ecast737); + this->level = (LockLevel::type)ecast737; isset_level = true; } else { xfer += iprot->skip(ftype); @@ -17766,9 +18266,9 @@ uint32_t LockComponent::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 6: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast731; - xfer += iprot->readI32(ecast731); - this->operationType = (DataOperationType::type)ecast731; + int32_t ecast738; + xfer += iprot->readI32(ecast738); + this->operationType = (DataOperationType::type)ecast738; this->__isset.operationType = true; } else { xfer += iprot->skip(ftype); @@ -17868,27 +18368,27 @@ void swap(LockComponent &a, LockComponent &b) { swap(a.__isset, b.__isset); } -LockComponent::LockComponent(const LockComponent& other732) { - type = other732.type; - level = other732.level; - dbname = other732.dbname; - tablename = other732.tablename; - partitionname = other732.partitionname; - operationType = other732.operationType; - isTransactional = other732.isTransactional; - isDynamicPartitionWrite = other732.isDynamicPartitionWrite; - __isset = other732.__isset; -} -LockComponent& LockComponent::operator=(const LockComponent& other733) { - type = other733.type; - level = other733.level; - dbname = other733.dbname; - tablename = other733.tablename; - partitionname = other733.partitionname; - operationType = other733.operationType; - isTransactional = other733.isTransactional; - isDynamicPartitionWrite = other733.isDynamicPartitionWrite; - __isset = other733.__isset; +LockComponent::LockComponent(const LockComponent& other739) { + type = other739.type; + level = other739.level; + dbname = other739.dbname; + tablename = other739.tablename; + partitionname = other739.partitionname; + operationType = other739.operationType; + isTransactional = other739.isTransactional; + isDynamicPartitionWrite = other739.isDynamicPartitionWrite; + __isset = other739.__isset; +} +LockComponent& LockComponent::operator=(const LockComponent& other740) { + type = other740.type; + level = other740.level; + dbname = other740.dbname; + tablename = other740.tablename; + partitionname = other740.partitionname; + operationType = other740.operationType; + isTransactional = other740.isTransactional; + isDynamicPartitionWrite = other740.isDynamicPartitionWrite; + __isset = other740.__isset; return *this; } void LockComponent::printTo(std::ostream& out) const { @@ -17960,14 +18460,14 @@ uint32_t LockRequest::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->component.clear(); - uint32_t _size734; - ::apache::thrift::protocol::TType _etype737; - xfer += iprot->readListBegin(_etype737, _size734); - this->component.resize(_size734); - uint32_t _i738; - for (_i738 = 0; _i738 < _size734; ++_i738) + uint32_t _size741; + ::apache::thrift::protocol::TType _etype744; + xfer += iprot->readListBegin(_etype744, _size741); + this->component.resize(_size741); + uint32_t _i745; + for (_i745 = 0; _i745 < _size741; ++_i745) { - xfer += this->component[_i738].read(iprot); + xfer += this->component[_i745].read(iprot); } xfer += iprot->readListEnd(); } @@ -18034,10 +18534,10 @@ uint32_t LockRequest::write(::apache::thrift::protocol::TProtocol* oprot) const xfer += oprot->writeFieldBegin("component", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->component.size())); - std::vector ::const_iterator _iter739; - for (_iter739 = this->component.begin(); _iter739 != this->component.end(); ++_iter739) + std::vector ::const_iterator _iter746; + for (_iter746 = this->component.begin(); _iter746 != this->component.end(); ++_iter746) { - xfer += (*_iter739).write(oprot); + xfer += (*_iter746).write(oprot); } xfer += oprot->writeListEnd(); } @@ -18076,21 +18576,21 @@ void swap(LockRequest &a, LockRequest &b) { swap(a.__isset, b.__isset); } -LockRequest::LockRequest(const LockRequest& other740) { - component = other740.component; - txnid = other740.txnid; - user = other740.user; - hostname = other740.hostname; - agentInfo = other740.agentInfo; - __isset = other740.__isset; -} -LockRequest& LockRequest::operator=(const LockRequest& other741) { - component = other741.component; - txnid = other741.txnid; - user = other741.user; - hostname = other741.hostname; - agentInfo = other741.agentInfo; - __isset = other741.__isset; +LockRequest::LockRequest(const LockRequest& other747) { + component = other747.component; + txnid = other747.txnid; + user = other747.user; + hostname = other747.hostname; + agentInfo = other747.agentInfo; + __isset = other747.__isset; +} +LockRequest& LockRequest::operator=(const LockRequest& other748) { + component = other748.component; + txnid = other748.txnid; + user = other748.user; + hostname = other748.hostname; + agentInfo = other748.agentInfo; + __isset = other748.__isset; return *this; } void LockRequest::printTo(std::ostream& out) const { @@ -18150,9 +18650,9 @@ uint32_t LockResponse::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast742; - xfer += iprot->readI32(ecast742); - this->state = (LockState::type)ecast742; + int32_t ecast749; + xfer += iprot->readI32(ecast749); + this->state = (LockState::type)ecast749; isset_state = true; } else { xfer += iprot->skip(ftype); @@ -18198,13 +18698,13 @@ void swap(LockResponse &a, LockResponse &b) { swap(a.state, b.state); } -LockResponse::LockResponse(const LockResponse& other743) { - lockid = other743.lockid; - state = other743.state; +LockResponse::LockResponse(const LockResponse& other750) { + lockid = other750.lockid; + state = other750.state; } -LockResponse& LockResponse::operator=(const LockResponse& other744) { - lockid = other744.lockid; - state = other744.state; +LockResponse& LockResponse::operator=(const LockResponse& other751) { + lockid = other751.lockid; + state = other751.state; return *this; } void LockResponse::printTo(std::ostream& out) const { @@ -18326,17 +18826,17 @@ void swap(CheckLockRequest &a, CheckLockRequest &b) { swap(a.__isset, b.__isset); } -CheckLockRequest::CheckLockRequest(const CheckLockRequest& other745) { - lockid = other745.lockid; - txnid = other745.txnid; - elapsed_ms = other745.elapsed_ms; - __isset = other745.__isset; +CheckLockRequest::CheckLockRequest(const CheckLockRequest& other752) { + lockid = other752.lockid; + txnid = other752.txnid; + elapsed_ms = other752.elapsed_ms; + __isset = other752.__isset; } -CheckLockRequest& CheckLockRequest::operator=(const CheckLockRequest& other746) { - lockid = other746.lockid; - txnid = other746.txnid; - elapsed_ms = other746.elapsed_ms; - __isset = other746.__isset; +CheckLockRequest& CheckLockRequest::operator=(const CheckLockRequest& other753) { + lockid = other753.lockid; + txnid = other753.txnid; + elapsed_ms = other753.elapsed_ms; + __isset = other753.__isset; return *this; } void CheckLockRequest::printTo(std::ostream& out) const { @@ -18420,11 +18920,11 @@ void swap(UnlockRequest &a, UnlockRequest &b) { swap(a.lockid, b.lockid); } -UnlockRequest::UnlockRequest(const UnlockRequest& other747) { - lockid = other747.lockid; +UnlockRequest::UnlockRequest(const UnlockRequest& other754) { + lockid = other754.lockid; } -UnlockRequest& UnlockRequest::operator=(const UnlockRequest& other748) { - lockid = other748.lockid; +UnlockRequest& UnlockRequest::operator=(const UnlockRequest& other755) { + lockid = other755.lockid; return *this; } void UnlockRequest::printTo(std::ostream& out) const { @@ -18563,19 +19063,19 @@ void swap(ShowLocksRequest &a, ShowLocksRequest &b) { swap(a.__isset, b.__isset); } -ShowLocksRequest::ShowLocksRequest(const ShowLocksRequest& other749) { - dbname = other749.dbname; - tablename = other749.tablename; - partname = other749.partname; - isExtended = other749.isExtended; - __isset = other749.__isset; +ShowLocksRequest::ShowLocksRequest(const ShowLocksRequest& other756) { + dbname = other756.dbname; + tablename = other756.tablename; + partname = other756.partname; + isExtended = other756.isExtended; + __isset = other756.__isset; } -ShowLocksRequest& ShowLocksRequest::operator=(const ShowLocksRequest& other750) { - dbname = other750.dbname; - tablename = other750.tablename; - partname = other750.partname; - isExtended = other750.isExtended; - __isset = other750.__isset; +ShowLocksRequest& ShowLocksRequest::operator=(const ShowLocksRequest& other757) { + dbname = other757.dbname; + tablename = other757.tablename; + partname = other757.partname; + isExtended = other757.isExtended; + __isset = other757.__isset; return *this; } void ShowLocksRequest::printTo(std::ostream& out) const { @@ -18728,9 +19228,9 @@ uint32_t ShowLocksResponseElement::read(::apache::thrift::protocol::TProtocol* i break; case 5: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast751; - xfer += iprot->readI32(ecast751); - this->state = (LockState::type)ecast751; + int32_t ecast758; + xfer += iprot->readI32(ecast758); + this->state = (LockState::type)ecast758; isset_state = true; } else { xfer += iprot->skip(ftype); @@ -18738,9 +19238,9 @@ uint32_t ShowLocksResponseElement::read(::apache::thrift::protocol::TProtocol* i break; case 6: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast752; - xfer += iprot->readI32(ecast752); - this->type = (LockType::type)ecast752; + int32_t ecast759; + xfer += iprot->readI32(ecast759); + this->type = (LockType::type)ecast759; isset_type = true; } else { xfer += iprot->skip(ftype); @@ -18956,43 +19456,43 @@ void swap(ShowLocksResponseElement &a, ShowLocksResponseElement &b) { swap(a.__isset, b.__isset); } -ShowLocksResponseElement::ShowLocksResponseElement(const ShowLocksResponseElement& other753) { - lockid = other753.lockid; - dbname = other753.dbname; - tablename = other753.tablename; - partname = other753.partname; - state = other753.state; - type = other753.type; - txnid = other753.txnid; - lastheartbeat = other753.lastheartbeat; - acquiredat = other753.acquiredat; - user = other753.user; - hostname = other753.hostname; - heartbeatCount = other753.heartbeatCount; - agentInfo = other753.agentInfo; - blockedByExtId = other753.blockedByExtId; - blockedByIntId = other753.blockedByIntId; - lockIdInternal = other753.lockIdInternal; - __isset = other753.__isset; -} -ShowLocksResponseElement& ShowLocksResponseElement::operator=(const ShowLocksResponseElement& other754) { - lockid = other754.lockid; - dbname = other754.dbname; - tablename = other754.tablename; - partname = other754.partname; - state = other754.state; - type = other754.type; - txnid = other754.txnid; - lastheartbeat = other754.lastheartbeat; - acquiredat = other754.acquiredat; - user = other754.user; - hostname = other754.hostname; - heartbeatCount = other754.heartbeatCount; - agentInfo = other754.agentInfo; - blockedByExtId = other754.blockedByExtId; - blockedByIntId = other754.blockedByIntId; - lockIdInternal = other754.lockIdInternal; - __isset = other754.__isset; +ShowLocksResponseElement::ShowLocksResponseElement(const ShowLocksResponseElement& other760) { + lockid = other760.lockid; + dbname = other760.dbname; + tablename = other760.tablename; + partname = other760.partname; + state = other760.state; + type = other760.type; + txnid = other760.txnid; + lastheartbeat = other760.lastheartbeat; + acquiredat = other760.acquiredat; + user = other760.user; + hostname = other760.hostname; + heartbeatCount = other760.heartbeatCount; + agentInfo = other760.agentInfo; + blockedByExtId = other760.blockedByExtId; + blockedByIntId = other760.blockedByIntId; + lockIdInternal = other760.lockIdInternal; + __isset = other760.__isset; +} +ShowLocksResponseElement& ShowLocksResponseElement::operator=(const ShowLocksResponseElement& other761) { + lockid = other761.lockid; + dbname = other761.dbname; + tablename = other761.tablename; + partname = other761.partname; + state = other761.state; + type = other761.type; + txnid = other761.txnid; + lastheartbeat = other761.lastheartbeat; + acquiredat = other761.acquiredat; + user = other761.user; + hostname = other761.hostname; + heartbeatCount = other761.heartbeatCount; + agentInfo = other761.agentInfo; + blockedByExtId = other761.blockedByExtId; + blockedByIntId = other761.blockedByIntId; + lockIdInternal = other761.lockIdInternal; + __isset = other761.__isset; return *this; } void ShowLocksResponseElement::printTo(std::ostream& out) const { @@ -19051,14 +19551,14 @@ uint32_t ShowLocksResponse::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->locks.clear(); - uint32_t _size755; - ::apache::thrift::protocol::TType _etype758; - xfer += iprot->readListBegin(_etype758, _size755); - this->locks.resize(_size755); - uint32_t _i759; - for (_i759 = 0; _i759 < _size755; ++_i759) + uint32_t _size762; + ::apache::thrift::protocol::TType _etype765; + xfer += iprot->readListBegin(_etype765, _size762); + this->locks.resize(_size762); + uint32_t _i766; + for (_i766 = 0; _i766 < _size762; ++_i766) { - xfer += this->locks[_i759].read(iprot); + xfer += this->locks[_i766].read(iprot); } xfer += iprot->readListEnd(); } @@ -19087,10 +19587,10 @@ uint32_t ShowLocksResponse::write(::apache::thrift::protocol::TProtocol* oprot) xfer += oprot->writeFieldBegin("locks", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->locks.size())); - std::vector ::const_iterator _iter760; - for (_iter760 = this->locks.begin(); _iter760 != this->locks.end(); ++_iter760) + std::vector ::const_iterator _iter767; + for (_iter767 = this->locks.begin(); _iter767 != this->locks.end(); ++_iter767) { - xfer += (*_iter760).write(oprot); + xfer += (*_iter767).write(oprot); } xfer += oprot->writeListEnd(); } @@ -19107,13 +19607,13 @@ void swap(ShowLocksResponse &a, ShowLocksResponse &b) { swap(a.__isset, b.__isset); } -ShowLocksResponse::ShowLocksResponse(const ShowLocksResponse& other761) { - locks = other761.locks; - __isset = other761.__isset; +ShowLocksResponse::ShowLocksResponse(const ShowLocksResponse& other768) { + locks = other768.locks; + __isset = other768.__isset; } -ShowLocksResponse& ShowLocksResponse::operator=(const ShowLocksResponse& other762) { - locks = other762.locks; - __isset = other762.__isset; +ShowLocksResponse& ShowLocksResponse::operator=(const ShowLocksResponse& other769) { + locks = other769.locks; + __isset = other769.__isset; return *this; } void ShowLocksResponse::printTo(std::ostream& out) const { @@ -19214,15 +19714,15 @@ void swap(HeartbeatRequest &a, HeartbeatRequest &b) { swap(a.__isset, b.__isset); } -HeartbeatRequest::HeartbeatRequest(const HeartbeatRequest& other763) { - lockid = other763.lockid; - txnid = other763.txnid; - __isset = other763.__isset; +HeartbeatRequest::HeartbeatRequest(const HeartbeatRequest& other770) { + lockid = other770.lockid; + txnid = other770.txnid; + __isset = other770.__isset; } -HeartbeatRequest& HeartbeatRequest::operator=(const HeartbeatRequest& other764) { - lockid = other764.lockid; - txnid = other764.txnid; - __isset = other764.__isset; +HeartbeatRequest& HeartbeatRequest::operator=(const HeartbeatRequest& other771) { + lockid = other771.lockid; + txnid = other771.txnid; + __isset = other771.__isset; return *this; } void HeartbeatRequest::printTo(std::ostream& out) const { @@ -19325,13 +19825,13 @@ void swap(HeartbeatTxnRangeRequest &a, HeartbeatTxnRangeRequest &b) { swap(a.max, b.max); } -HeartbeatTxnRangeRequest::HeartbeatTxnRangeRequest(const HeartbeatTxnRangeRequest& other765) { - min = other765.min; - max = other765.max; +HeartbeatTxnRangeRequest::HeartbeatTxnRangeRequest(const HeartbeatTxnRangeRequest& other772) { + min = other772.min; + max = other772.max; } -HeartbeatTxnRangeRequest& HeartbeatTxnRangeRequest::operator=(const HeartbeatTxnRangeRequest& other766) { - min = other766.min; - max = other766.max; +HeartbeatTxnRangeRequest& HeartbeatTxnRangeRequest::operator=(const HeartbeatTxnRangeRequest& other773) { + min = other773.min; + max = other773.max; return *this; } void HeartbeatTxnRangeRequest::printTo(std::ostream& out) const { @@ -19382,15 +19882,15 @@ uint32_t HeartbeatTxnRangeResponse::read(::apache::thrift::protocol::TProtocol* if (ftype == ::apache::thrift::protocol::T_SET) { { this->aborted.clear(); - uint32_t _size767; - ::apache::thrift::protocol::TType _etype770; - xfer += iprot->readSetBegin(_etype770, _size767); - uint32_t _i771; - for (_i771 = 0; _i771 < _size767; ++_i771) + uint32_t _size774; + ::apache::thrift::protocol::TType _etype777; + xfer += iprot->readSetBegin(_etype777, _size774); + uint32_t _i778; + for (_i778 = 0; _i778 < _size774; ++_i778) { - int64_t _elem772; - xfer += iprot->readI64(_elem772); - this->aborted.insert(_elem772); + int64_t _elem779; + xfer += iprot->readI64(_elem779); + this->aborted.insert(_elem779); } xfer += iprot->readSetEnd(); } @@ -19403,15 +19903,15 @@ uint32_t HeartbeatTxnRangeResponse::read(::apache::thrift::protocol::TProtocol* if (ftype == ::apache::thrift::protocol::T_SET) { { this->nosuch.clear(); - uint32_t _size773; - ::apache::thrift::protocol::TType _etype776; - xfer += iprot->readSetBegin(_etype776, _size773); - uint32_t _i777; - for (_i777 = 0; _i777 < _size773; ++_i777) + uint32_t _size780; + ::apache::thrift::protocol::TType _etype783; + xfer += iprot->readSetBegin(_etype783, _size780); + uint32_t _i784; + for (_i784 = 0; _i784 < _size780; ++_i784) { - int64_t _elem778; - xfer += iprot->readI64(_elem778); - this->nosuch.insert(_elem778); + int64_t _elem785; + xfer += iprot->readI64(_elem785); + this->nosuch.insert(_elem785); } xfer += iprot->readSetEnd(); } @@ -19444,10 +19944,10 @@ uint32_t HeartbeatTxnRangeResponse::write(::apache::thrift::protocol::TProtocol* xfer += oprot->writeFieldBegin("aborted", ::apache::thrift::protocol::T_SET, 1); { xfer += oprot->writeSetBegin(::apache::thrift::protocol::T_I64, static_cast(this->aborted.size())); - std::set ::const_iterator _iter779; - for (_iter779 = this->aborted.begin(); _iter779 != this->aborted.end(); ++_iter779) + std::set ::const_iterator _iter786; + for (_iter786 = this->aborted.begin(); _iter786 != this->aborted.end(); ++_iter786) { - xfer += oprot->writeI64((*_iter779)); + xfer += oprot->writeI64((*_iter786)); } xfer += oprot->writeSetEnd(); } @@ -19456,10 +19956,10 @@ uint32_t HeartbeatTxnRangeResponse::write(::apache::thrift::protocol::TProtocol* xfer += oprot->writeFieldBegin("nosuch", ::apache::thrift::protocol::T_SET, 2); { xfer += oprot->writeSetBegin(::apache::thrift::protocol::T_I64, static_cast(this->nosuch.size())); - std::set ::const_iterator _iter780; - for (_iter780 = this->nosuch.begin(); _iter780 != this->nosuch.end(); ++_iter780) + std::set ::const_iterator _iter787; + for (_iter787 = this->nosuch.begin(); _iter787 != this->nosuch.end(); ++_iter787) { - xfer += oprot->writeI64((*_iter780)); + xfer += oprot->writeI64((*_iter787)); } xfer += oprot->writeSetEnd(); } @@ -19476,13 +19976,13 @@ void swap(HeartbeatTxnRangeResponse &a, HeartbeatTxnRangeResponse &b) { swap(a.nosuch, b.nosuch); } -HeartbeatTxnRangeResponse::HeartbeatTxnRangeResponse(const HeartbeatTxnRangeResponse& other781) { - aborted = other781.aborted; - nosuch = other781.nosuch; +HeartbeatTxnRangeResponse::HeartbeatTxnRangeResponse(const HeartbeatTxnRangeResponse& other788) { + aborted = other788.aborted; + nosuch = other788.nosuch; } -HeartbeatTxnRangeResponse& HeartbeatTxnRangeResponse::operator=(const HeartbeatTxnRangeResponse& other782) { - aborted = other782.aborted; - nosuch = other782.nosuch; +HeartbeatTxnRangeResponse& HeartbeatTxnRangeResponse::operator=(const HeartbeatTxnRangeResponse& other789) { + aborted = other789.aborted; + nosuch = other789.nosuch; return *this; } void HeartbeatTxnRangeResponse::printTo(std::ostream& out) const { @@ -19575,9 +20075,9 @@ uint32_t CompactionRequest::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 4: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast783; - xfer += iprot->readI32(ecast783); - this->type = (CompactionType::type)ecast783; + int32_t ecast790; + xfer += iprot->readI32(ecast790); + this->type = (CompactionType::type)ecast790; isset_type = true; } else { xfer += iprot->skip(ftype); @@ -19595,17 +20095,17 @@ uint32_t CompactionRequest::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_MAP) { { this->properties.clear(); - uint32_t _size784; - ::apache::thrift::protocol::TType _ktype785; - ::apache::thrift::protocol::TType _vtype786; - xfer += iprot->readMapBegin(_ktype785, _vtype786, _size784); - uint32_t _i788; - for (_i788 = 0; _i788 < _size784; ++_i788) + uint32_t _size791; + ::apache::thrift::protocol::TType _ktype792; + ::apache::thrift::protocol::TType _vtype793; + xfer += iprot->readMapBegin(_ktype792, _vtype793, _size791); + uint32_t _i795; + for (_i795 = 0; _i795 < _size791; ++_i795) { - std::string _key789; - xfer += iprot->readString(_key789); - std::string& _val790 = this->properties[_key789]; - xfer += iprot->readString(_val790); + std::string _key796; + xfer += iprot->readString(_key796); + std::string& _val797 = this->properties[_key796]; + xfer += iprot->readString(_val797); } xfer += iprot->readMapEnd(); } @@ -19663,11 +20163,11 @@ uint32_t CompactionRequest::write(::apache::thrift::protocol::TProtocol* oprot) xfer += oprot->writeFieldBegin("properties", ::apache::thrift::protocol::T_MAP, 6); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->properties.size())); - std::map ::const_iterator _iter791; - for (_iter791 = this->properties.begin(); _iter791 != this->properties.end(); ++_iter791) + std::map ::const_iterator _iter798; + for (_iter798 = this->properties.begin(); _iter798 != this->properties.end(); ++_iter798) { - xfer += oprot->writeString(_iter791->first); - xfer += oprot->writeString(_iter791->second); + xfer += oprot->writeString(_iter798->first); + xfer += oprot->writeString(_iter798->second); } xfer += oprot->writeMapEnd(); } @@ -19689,23 +20189,23 @@ void swap(CompactionRequest &a, CompactionRequest &b) { swap(a.__isset, b.__isset); } -CompactionRequest::CompactionRequest(const CompactionRequest& other792) { - dbname = other792.dbname; - tablename = other792.tablename; - partitionname = other792.partitionname; - type = other792.type; - runas = other792.runas; - properties = other792.properties; - __isset = other792.__isset; -} -CompactionRequest& CompactionRequest::operator=(const CompactionRequest& other793) { - dbname = other793.dbname; - tablename = other793.tablename; - partitionname = other793.partitionname; - type = other793.type; - runas = other793.runas; - properties = other793.properties; - __isset = other793.__isset; +CompactionRequest::CompactionRequest(const CompactionRequest& other799) { + dbname = other799.dbname; + tablename = other799.tablename; + partitionname = other799.partitionname; + type = other799.type; + runas = other799.runas; + properties = other799.properties; + __isset = other799.__isset; +} +CompactionRequest& CompactionRequest::operator=(const CompactionRequest& other800) { + dbname = other800.dbname; + tablename = other800.tablename; + partitionname = other800.partitionname; + type = other800.type; + runas = other800.runas; + properties = other800.properties; + __isset = other800.__isset; return *this; } void CompactionRequest::printTo(std::ostream& out) const { @@ -19832,15 +20332,15 @@ void swap(CompactionResponse &a, CompactionResponse &b) { swap(a.accepted, b.accepted); } -CompactionResponse::CompactionResponse(const CompactionResponse& other794) { - id = other794.id; - state = other794.state; - accepted = other794.accepted; +CompactionResponse::CompactionResponse(const CompactionResponse& other801) { + id = other801.id; + state = other801.state; + accepted = other801.accepted; } -CompactionResponse& CompactionResponse::operator=(const CompactionResponse& other795) { - id = other795.id; - state = other795.state; - accepted = other795.accepted; +CompactionResponse& CompactionResponse::operator=(const CompactionResponse& other802) { + id = other802.id; + state = other802.state; + accepted = other802.accepted; return *this; } void CompactionResponse::printTo(std::ostream& out) const { @@ -19901,11 +20401,11 @@ void swap(ShowCompactRequest &a, ShowCompactRequest &b) { (void) b; } -ShowCompactRequest::ShowCompactRequest(const ShowCompactRequest& other796) { - (void) other796; +ShowCompactRequest::ShowCompactRequest(const ShowCompactRequest& other803) { + (void) other803; } -ShowCompactRequest& ShowCompactRequest::operator=(const ShowCompactRequest& other797) { - (void) other797; +ShowCompactRequest& ShowCompactRequest::operator=(const ShowCompactRequest& other804) { + (void) other804; return *this; } void ShowCompactRequest::printTo(std::ostream& out) const { @@ -20031,9 +20531,9 @@ uint32_t ShowCompactResponseElement::read(::apache::thrift::protocol::TProtocol* break; case 4: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast798; - xfer += iprot->readI32(ecast798); - this->type = (CompactionType::type)ecast798; + int32_t ecast805; + xfer += iprot->readI32(ecast805); + this->type = (CompactionType::type)ecast805; isset_type = true; } else { xfer += iprot->skip(ftype); @@ -20220,37 +20720,37 @@ void swap(ShowCompactResponseElement &a, ShowCompactResponseElement &b) { swap(a.__isset, b.__isset); } -ShowCompactResponseElement::ShowCompactResponseElement(const ShowCompactResponseElement& other799) { - dbname = other799.dbname; - tablename = other799.tablename; - partitionname = other799.partitionname; - type = other799.type; - state = other799.state; - workerid = other799.workerid; - start = other799.start; - runAs = other799.runAs; - hightestTxnId = other799.hightestTxnId; - metaInfo = other799.metaInfo; - endTime = other799.endTime; - hadoopJobId = other799.hadoopJobId; - id = other799.id; - __isset = other799.__isset; -} -ShowCompactResponseElement& ShowCompactResponseElement::operator=(const ShowCompactResponseElement& other800) { - dbname = other800.dbname; - tablename = other800.tablename; - partitionname = other800.partitionname; - type = other800.type; - state = other800.state; - workerid = other800.workerid; - start = other800.start; - runAs = other800.runAs; - hightestTxnId = other800.hightestTxnId; - metaInfo = other800.metaInfo; - endTime = other800.endTime; - hadoopJobId = other800.hadoopJobId; - id = other800.id; - __isset = other800.__isset; +ShowCompactResponseElement::ShowCompactResponseElement(const ShowCompactResponseElement& other806) { + dbname = other806.dbname; + tablename = other806.tablename; + partitionname = other806.partitionname; + type = other806.type; + state = other806.state; + workerid = other806.workerid; + start = other806.start; + runAs = other806.runAs; + hightestTxnId = other806.hightestTxnId; + metaInfo = other806.metaInfo; + endTime = other806.endTime; + hadoopJobId = other806.hadoopJobId; + id = other806.id; + __isset = other806.__isset; +} +ShowCompactResponseElement& ShowCompactResponseElement::operator=(const ShowCompactResponseElement& other807) { + dbname = other807.dbname; + tablename = other807.tablename; + partitionname = other807.partitionname; + type = other807.type; + state = other807.state; + workerid = other807.workerid; + start = other807.start; + runAs = other807.runAs; + hightestTxnId = other807.hightestTxnId; + metaInfo = other807.metaInfo; + endTime = other807.endTime; + hadoopJobId = other807.hadoopJobId; + id = other807.id; + __isset = other807.__isset; return *this; } void ShowCompactResponseElement::printTo(std::ostream& out) const { @@ -20307,14 +20807,14 @@ uint32_t ShowCompactResponse::read(::apache::thrift::protocol::TProtocol* iprot) if (ftype == ::apache::thrift::protocol::T_LIST) { { this->compacts.clear(); - uint32_t _size801; - ::apache::thrift::protocol::TType _etype804; - xfer += iprot->readListBegin(_etype804, _size801); - this->compacts.resize(_size801); - uint32_t _i805; - for (_i805 = 0; _i805 < _size801; ++_i805) + uint32_t _size808; + ::apache::thrift::protocol::TType _etype811; + xfer += iprot->readListBegin(_etype811, _size808); + this->compacts.resize(_size808); + uint32_t _i812; + for (_i812 = 0; _i812 < _size808; ++_i812) { - xfer += this->compacts[_i805].read(iprot); + xfer += this->compacts[_i812].read(iprot); } xfer += iprot->readListEnd(); } @@ -20345,10 +20845,10 @@ uint32_t ShowCompactResponse::write(::apache::thrift::protocol::TProtocol* oprot xfer += oprot->writeFieldBegin("compacts", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->compacts.size())); - std::vector ::const_iterator _iter806; - for (_iter806 = this->compacts.begin(); _iter806 != this->compacts.end(); ++_iter806) + std::vector ::const_iterator _iter813; + for (_iter813 = this->compacts.begin(); _iter813 != this->compacts.end(); ++_iter813) { - xfer += (*_iter806).write(oprot); + xfer += (*_iter813).write(oprot); } xfer += oprot->writeListEnd(); } @@ -20364,11 +20864,11 @@ void swap(ShowCompactResponse &a, ShowCompactResponse &b) { swap(a.compacts, b.compacts); } -ShowCompactResponse::ShowCompactResponse(const ShowCompactResponse& other807) { - compacts = other807.compacts; +ShowCompactResponse::ShowCompactResponse(const ShowCompactResponse& other814) { + compacts = other814.compacts; } -ShowCompactResponse& ShowCompactResponse::operator=(const ShowCompactResponse& other808) { - compacts = other808.compacts; +ShowCompactResponse& ShowCompactResponse::operator=(const ShowCompactResponse& other815) { + compacts = other815.compacts; return *this; } void ShowCompactResponse::printTo(std::ostream& out) const { @@ -20470,14 +20970,14 @@ uint32_t AddDynamicPartitions::read(::apache::thrift::protocol::TProtocol* iprot if (ftype == ::apache::thrift::protocol::T_LIST) { { this->partitionnames.clear(); - uint32_t _size809; - ::apache::thrift::protocol::TType _etype812; - xfer += iprot->readListBegin(_etype812, _size809); - this->partitionnames.resize(_size809); - uint32_t _i813; - for (_i813 = 0; _i813 < _size809; ++_i813) + uint32_t _size816; + ::apache::thrift::protocol::TType _etype819; + xfer += iprot->readListBegin(_etype819, _size816); + this->partitionnames.resize(_size816); + uint32_t _i820; + for (_i820 = 0; _i820 < _size816; ++_i820) { - xfer += iprot->readString(this->partitionnames[_i813]); + xfer += iprot->readString(this->partitionnames[_i820]); } xfer += iprot->readListEnd(); } @@ -20488,9 +20988,9 @@ uint32_t AddDynamicPartitions::read(::apache::thrift::protocol::TProtocol* iprot break; case 6: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast814; - xfer += iprot->readI32(ecast814); - this->operationType = (DataOperationType::type)ecast814; + int32_t ecast821; + xfer += iprot->readI32(ecast821); + this->operationType = (DataOperationType::type)ecast821; this->__isset.operationType = true; } else { xfer += iprot->skip(ftype); @@ -20542,10 +21042,10 @@ uint32_t AddDynamicPartitions::write(::apache::thrift::protocol::TProtocol* opro xfer += oprot->writeFieldBegin("partitionnames", ::apache::thrift::protocol::T_LIST, 5); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->partitionnames.size())); - std::vector ::const_iterator _iter815; - for (_iter815 = this->partitionnames.begin(); _iter815 != this->partitionnames.end(); ++_iter815) + std::vector ::const_iterator _iter822; + for (_iter822 = this->partitionnames.begin(); _iter822 != this->partitionnames.end(); ++_iter822) { - xfer += oprot->writeString((*_iter815)); + xfer += oprot->writeString((*_iter822)); } xfer += oprot->writeListEnd(); } @@ -20572,23 +21072,23 @@ void swap(AddDynamicPartitions &a, AddDynamicPartitions &b) { swap(a.__isset, b.__isset); } -AddDynamicPartitions::AddDynamicPartitions(const AddDynamicPartitions& other816) { - txnid = other816.txnid; - writeid = other816.writeid; - dbname = other816.dbname; - tablename = other816.tablename; - partitionnames = other816.partitionnames; - operationType = other816.operationType; - __isset = other816.__isset; -} -AddDynamicPartitions& AddDynamicPartitions::operator=(const AddDynamicPartitions& other817) { - txnid = other817.txnid; - writeid = other817.writeid; - dbname = other817.dbname; - tablename = other817.tablename; - partitionnames = other817.partitionnames; - operationType = other817.operationType; - __isset = other817.__isset; +AddDynamicPartitions::AddDynamicPartitions(const AddDynamicPartitions& other823) { + txnid = other823.txnid; + writeid = other823.writeid; + dbname = other823.dbname; + tablename = other823.tablename; + partitionnames = other823.partitionnames; + operationType = other823.operationType; + __isset = other823.__isset; +} +AddDynamicPartitions& AddDynamicPartitions::operator=(const AddDynamicPartitions& other824) { + txnid = other824.txnid; + writeid = other824.writeid; + dbname = other824.dbname; + tablename = other824.tablename; + partitionnames = other824.partitionnames; + operationType = other824.operationType; + __isset = other824.__isset; return *this; } void AddDynamicPartitions::printTo(std::ostream& out) const { @@ -20771,23 +21271,23 @@ void swap(BasicTxnInfo &a, BasicTxnInfo &b) { swap(a.__isset, b.__isset); } -BasicTxnInfo::BasicTxnInfo(const BasicTxnInfo& other818) { - isnull = other818.isnull; - time = other818.time; - txnid = other818.txnid; - dbname = other818.dbname; - tablename = other818.tablename; - partitionname = other818.partitionname; - __isset = other818.__isset; -} -BasicTxnInfo& BasicTxnInfo::operator=(const BasicTxnInfo& other819) { - isnull = other819.isnull; - time = other819.time; - txnid = other819.txnid; - dbname = other819.dbname; - tablename = other819.tablename; - partitionname = other819.partitionname; - __isset = other819.__isset; +BasicTxnInfo::BasicTxnInfo(const BasicTxnInfo& other825) { + isnull = other825.isnull; + time = other825.time; + txnid = other825.txnid; + dbname = other825.dbname; + tablename = other825.tablename; + partitionname = other825.partitionname; + __isset = other825.__isset; +} +BasicTxnInfo& BasicTxnInfo::operator=(const BasicTxnInfo& other826) { + isnull = other826.isnull; + time = other826.time; + txnid = other826.txnid; + dbname = other826.dbname; + tablename = other826.tablename; + partitionname = other826.partitionname; + __isset = other826.__isset; return *this; } void BasicTxnInfo::printTo(std::ostream& out) const { @@ -20881,15 +21381,15 @@ uint32_t CreationMetadata::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_SET) { { this->tablesUsed.clear(); - uint32_t _size820; - ::apache::thrift::protocol::TType _etype823; - xfer += iprot->readSetBegin(_etype823, _size820); - uint32_t _i824; - for (_i824 = 0; _i824 < _size820; ++_i824) + uint32_t _size827; + ::apache::thrift::protocol::TType _etype830; + xfer += iprot->readSetBegin(_etype830, _size827); + uint32_t _i831; + for (_i831 = 0; _i831 < _size827; ++_i831) { - std::string _elem825; - xfer += iprot->readString(_elem825); - this->tablesUsed.insert(_elem825); + std::string _elem832; + xfer += iprot->readString(_elem832); + this->tablesUsed.insert(_elem832); } xfer += iprot->readSetEnd(); } @@ -20946,10 +21446,10 @@ uint32_t CreationMetadata::write(::apache::thrift::protocol::TProtocol* oprot) c xfer += oprot->writeFieldBegin("tablesUsed", ::apache::thrift::protocol::T_SET, 4); { xfer += oprot->writeSetBegin(::apache::thrift::protocol::T_STRING, static_cast(this->tablesUsed.size())); - std::set ::const_iterator _iter826; - for (_iter826 = this->tablesUsed.begin(); _iter826 != this->tablesUsed.end(); ++_iter826) + std::set ::const_iterator _iter833; + for (_iter833 = this->tablesUsed.begin(); _iter833 != this->tablesUsed.end(); ++_iter833) { - xfer += oprot->writeString((*_iter826)); + xfer += oprot->writeString((*_iter833)); } xfer += oprot->writeSetEnd(); } @@ -20975,21 +21475,21 @@ void swap(CreationMetadata &a, CreationMetadata &b) { swap(a.__isset, b.__isset); } -CreationMetadata::CreationMetadata(const CreationMetadata& other827) { - catName = other827.catName; - dbName = other827.dbName; - tblName = other827.tblName; - tablesUsed = other827.tablesUsed; - validTxnList = other827.validTxnList; - __isset = other827.__isset; -} -CreationMetadata& CreationMetadata::operator=(const CreationMetadata& other828) { - catName = other828.catName; - dbName = other828.dbName; - tblName = other828.tblName; - tablesUsed = other828.tablesUsed; - validTxnList = other828.validTxnList; - __isset = other828.__isset; +CreationMetadata::CreationMetadata(const CreationMetadata& other834) { + catName = other834.catName; + dbName = other834.dbName; + tblName = other834.tblName; + tablesUsed = other834.tablesUsed; + validTxnList = other834.validTxnList; + __isset = other834.__isset; +} +CreationMetadata& CreationMetadata::operator=(const CreationMetadata& other835) { + catName = other835.catName; + dbName = other835.dbName; + tblName = other835.tblName; + tablesUsed = other835.tablesUsed; + validTxnList = other835.validTxnList; + __isset = other835.__isset; return *this; } void CreationMetadata::printTo(std::ostream& out) const { @@ -21095,15 +21595,15 @@ void swap(NotificationEventRequest &a, NotificationEventRequest &b) { swap(a.__isset, b.__isset); } -NotificationEventRequest::NotificationEventRequest(const NotificationEventRequest& other829) { - lastEvent = other829.lastEvent; - maxEvents = other829.maxEvents; - __isset = other829.__isset; +NotificationEventRequest::NotificationEventRequest(const NotificationEventRequest& other836) { + lastEvent = other836.lastEvent; + maxEvents = other836.maxEvents; + __isset = other836.__isset; } -NotificationEventRequest& NotificationEventRequest::operator=(const NotificationEventRequest& other830) { - lastEvent = other830.lastEvent; - maxEvents = other830.maxEvents; - __isset = other830.__isset; +NotificationEventRequest& NotificationEventRequest::operator=(const NotificationEventRequest& other837) { + lastEvent = other837.lastEvent; + maxEvents = other837.maxEvents; + __isset = other837.__isset; return *this; } void NotificationEventRequest::printTo(std::ostream& out) const { @@ -21323,27 +21823,27 @@ void swap(NotificationEvent &a, NotificationEvent &b) { swap(a.__isset, b.__isset); } -NotificationEvent::NotificationEvent(const NotificationEvent& other831) { - eventId = other831.eventId; - eventTime = other831.eventTime; - eventType = other831.eventType; - dbName = other831.dbName; - tableName = other831.tableName; - message = other831.message; - messageFormat = other831.messageFormat; - catName = other831.catName; - __isset = other831.__isset; -} -NotificationEvent& NotificationEvent::operator=(const NotificationEvent& other832) { - eventId = other832.eventId; - eventTime = other832.eventTime; - eventType = other832.eventType; - dbName = other832.dbName; - tableName = other832.tableName; - message = other832.message; - messageFormat = other832.messageFormat; - catName = other832.catName; - __isset = other832.__isset; +NotificationEvent::NotificationEvent(const NotificationEvent& other838) { + eventId = other838.eventId; + eventTime = other838.eventTime; + eventType = other838.eventType; + dbName = other838.dbName; + tableName = other838.tableName; + message = other838.message; + messageFormat = other838.messageFormat; + catName = other838.catName; + __isset = other838.__isset; +} +NotificationEvent& NotificationEvent::operator=(const NotificationEvent& other839) { + eventId = other839.eventId; + eventTime = other839.eventTime; + eventType = other839.eventType; + dbName = other839.dbName; + tableName = other839.tableName; + message = other839.message; + messageFormat = other839.messageFormat; + catName = other839.catName; + __isset = other839.__isset; return *this; } void NotificationEvent::printTo(std::ostream& out) const { @@ -21395,14 +21895,14 @@ uint32_t NotificationEventResponse::read(::apache::thrift::protocol::TProtocol* if (ftype == ::apache::thrift::protocol::T_LIST) { { this->events.clear(); - uint32_t _size833; - ::apache::thrift::protocol::TType _etype836; - xfer += iprot->readListBegin(_etype836, _size833); - this->events.resize(_size833); - uint32_t _i837; - for (_i837 = 0; _i837 < _size833; ++_i837) + uint32_t _size840; + ::apache::thrift::protocol::TType _etype843; + xfer += iprot->readListBegin(_etype843, _size840); + this->events.resize(_size840); + uint32_t _i844; + for (_i844 = 0; _i844 < _size840; ++_i844) { - xfer += this->events[_i837].read(iprot); + xfer += this->events[_i844].read(iprot); } xfer += iprot->readListEnd(); } @@ -21433,10 +21933,10 @@ uint32_t NotificationEventResponse::write(::apache::thrift::protocol::TProtocol* xfer += oprot->writeFieldBegin("events", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->events.size())); - std::vector ::const_iterator _iter838; - for (_iter838 = this->events.begin(); _iter838 != this->events.end(); ++_iter838) + std::vector ::const_iterator _iter845; + for (_iter845 = this->events.begin(); _iter845 != this->events.end(); ++_iter845) { - xfer += (*_iter838).write(oprot); + xfer += (*_iter845).write(oprot); } xfer += oprot->writeListEnd(); } @@ -21452,11 +21952,11 @@ void swap(NotificationEventResponse &a, NotificationEventResponse &b) { swap(a.events, b.events); } -NotificationEventResponse::NotificationEventResponse(const NotificationEventResponse& other839) { - events = other839.events; +NotificationEventResponse::NotificationEventResponse(const NotificationEventResponse& other846) { + events = other846.events; } -NotificationEventResponse& NotificationEventResponse::operator=(const NotificationEventResponse& other840) { - events = other840.events; +NotificationEventResponse& NotificationEventResponse::operator=(const NotificationEventResponse& other847) { + events = other847.events; return *this; } void NotificationEventResponse::printTo(std::ostream& out) const { @@ -21538,11 +22038,11 @@ void swap(CurrentNotificationEventId &a, CurrentNotificationEventId &b) { swap(a.eventId, b.eventId); } -CurrentNotificationEventId::CurrentNotificationEventId(const CurrentNotificationEventId& other841) { - eventId = other841.eventId; +CurrentNotificationEventId::CurrentNotificationEventId(const CurrentNotificationEventId& other848) { + eventId = other848.eventId; } -CurrentNotificationEventId& CurrentNotificationEventId::operator=(const CurrentNotificationEventId& other842) { - eventId = other842.eventId; +CurrentNotificationEventId& CurrentNotificationEventId::operator=(const CurrentNotificationEventId& other849) { + eventId = other849.eventId; return *this; } void CurrentNotificationEventId::printTo(std::ostream& out) const { @@ -21664,17 +22164,17 @@ void swap(NotificationEventsCountRequest &a, NotificationEventsCountRequest &b) swap(a.__isset, b.__isset); } -NotificationEventsCountRequest::NotificationEventsCountRequest(const NotificationEventsCountRequest& other843) { - fromEventId = other843.fromEventId; - dbName = other843.dbName; - catName = other843.catName; - __isset = other843.__isset; +NotificationEventsCountRequest::NotificationEventsCountRequest(const NotificationEventsCountRequest& other850) { + fromEventId = other850.fromEventId; + dbName = other850.dbName; + catName = other850.catName; + __isset = other850.__isset; } -NotificationEventsCountRequest& NotificationEventsCountRequest::operator=(const NotificationEventsCountRequest& other844) { - fromEventId = other844.fromEventId; - dbName = other844.dbName; - catName = other844.catName; - __isset = other844.__isset; +NotificationEventsCountRequest& NotificationEventsCountRequest::operator=(const NotificationEventsCountRequest& other851) { + fromEventId = other851.fromEventId; + dbName = other851.dbName; + catName = other851.catName; + __isset = other851.__isset; return *this; } void NotificationEventsCountRequest::printTo(std::ostream& out) const { @@ -21758,11 +22258,11 @@ void swap(NotificationEventsCountResponse &a, NotificationEventsCountResponse &b swap(a.eventsCount, b.eventsCount); } -NotificationEventsCountResponse::NotificationEventsCountResponse(const NotificationEventsCountResponse& other845) { - eventsCount = other845.eventsCount; +NotificationEventsCountResponse::NotificationEventsCountResponse(const NotificationEventsCountResponse& other852) { + eventsCount = other852.eventsCount; } -NotificationEventsCountResponse& NotificationEventsCountResponse::operator=(const NotificationEventsCountResponse& other846) { - eventsCount = other846.eventsCount; +NotificationEventsCountResponse& NotificationEventsCountResponse::operator=(const NotificationEventsCountResponse& other853) { + eventsCount = other853.eventsCount; return *this; } void NotificationEventsCountResponse::printTo(std::ostream& out) const { @@ -21825,14 +22325,14 @@ uint32_t InsertEventRequestData::read(::apache::thrift::protocol::TProtocol* ipr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->filesAdded.clear(); - uint32_t _size847; - ::apache::thrift::protocol::TType _etype850; - xfer += iprot->readListBegin(_etype850, _size847); - this->filesAdded.resize(_size847); - uint32_t _i851; - for (_i851 = 0; _i851 < _size847; ++_i851) + uint32_t _size854; + ::apache::thrift::protocol::TType _etype857; + xfer += iprot->readListBegin(_etype857, _size854); + this->filesAdded.resize(_size854); + uint32_t _i858; + for (_i858 = 0; _i858 < _size854; ++_i858) { - xfer += iprot->readString(this->filesAdded[_i851]); + xfer += iprot->readString(this->filesAdded[_i858]); } xfer += iprot->readListEnd(); } @@ -21845,14 +22345,14 @@ uint32_t InsertEventRequestData::read(::apache::thrift::protocol::TProtocol* ipr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->filesAddedChecksum.clear(); - uint32_t _size852; - ::apache::thrift::protocol::TType _etype855; - xfer += iprot->readListBegin(_etype855, _size852); - this->filesAddedChecksum.resize(_size852); - uint32_t _i856; - for (_i856 = 0; _i856 < _size852; ++_i856) + uint32_t _size859; + ::apache::thrift::protocol::TType _etype862; + xfer += iprot->readListBegin(_etype862, _size859); + this->filesAddedChecksum.resize(_size859); + uint32_t _i863; + for (_i863 = 0; _i863 < _size859; ++_i863) { - xfer += iprot->readString(this->filesAddedChecksum[_i856]); + xfer += iprot->readString(this->filesAddedChecksum[_i863]); } xfer += iprot->readListEnd(); } @@ -21888,10 +22388,10 @@ uint32_t InsertEventRequestData::write(::apache::thrift::protocol::TProtocol* op xfer += oprot->writeFieldBegin("filesAdded", ::apache::thrift::protocol::T_LIST, 2); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->filesAdded.size())); - std::vector ::const_iterator _iter857; - for (_iter857 = this->filesAdded.begin(); _iter857 != this->filesAdded.end(); ++_iter857) + std::vector ::const_iterator _iter864; + for (_iter864 = this->filesAdded.begin(); _iter864 != this->filesAdded.end(); ++_iter864) { - xfer += oprot->writeString((*_iter857)); + xfer += oprot->writeString((*_iter864)); } xfer += oprot->writeListEnd(); } @@ -21901,10 +22401,10 @@ uint32_t InsertEventRequestData::write(::apache::thrift::protocol::TProtocol* op xfer += oprot->writeFieldBegin("filesAddedChecksum", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->filesAddedChecksum.size())); - std::vector ::const_iterator _iter858; - for (_iter858 = this->filesAddedChecksum.begin(); _iter858 != this->filesAddedChecksum.end(); ++_iter858) + std::vector ::const_iterator _iter865; + for (_iter865 = this->filesAddedChecksum.begin(); _iter865 != this->filesAddedChecksum.end(); ++_iter865) { - xfer += oprot->writeString((*_iter858)); + xfer += oprot->writeString((*_iter865)); } xfer += oprot->writeListEnd(); } @@ -21923,17 +22423,17 @@ void swap(InsertEventRequestData &a, InsertEventRequestData &b) { swap(a.__isset, b.__isset); } -InsertEventRequestData::InsertEventRequestData(const InsertEventRequestData& other859) { - replace = other859.replace; - filesAdded = other859.filesAdded; - filesAddedChecksum = other859.filesAddedChecksum; - __isset = other859.__isset; +InsertEventRequestData::InsertEventRequestData(const InsertEventRequestData& other866) { + replace = other866.replace; + filesAdded = other866.filesAdded; + filesAddedChecksum = other866.filesAddedChecksum; + __isset = other866.__isset; } -InsertEventRequestData& InsertEventRequestData::operator=(const InsertEventRequestData& other860) { - replace = other860.replace; - filesAdded = other860.filesAdded; - filesAddedChecksum = other860.filesAddedChecksum; - __isset = other860.__isset; +InsertEventRequestData& InsertEventRequestData::operator=(const InsertEventRequestData& other867) { + replace = other867.replace; + filesAdded = other867.filesAdded; + filesAddedChecksum = other867.filesAddedChecksum; + __isset = other867.__isset; return *this; } void InsertEventRequestData::printTo(std::ostream& out) const { @@ -22015,13 +22515,13 @@ void swap(FireEventRequestData &a, FireEventRequestData &b) { swap(a.__isset, b.__isset); } -FireEventRequestData::FireEventRequestData(const FireEventRequestData& other861) { - insertData = other861.insertData; - __isset = other861.__isset; +FireEventRequestData::FireEventRequestData(const FireEventRequestData& other868) { + insertData = other868.insertData; + __isset = other868.__isset; } -FireEventRequestData& FireEventRequestData::operator=(const FireEventRequestData& other862) { - insertData = other862.insertData; - __isset = other862.__isset; +FireEventRequestData& FireEventRequestData::operator=(const FireEventRequestData& other869) { + insertData = other869.insertData; + __isset = other869.__isset; return *this; } void FireEventRequestData::printTo(std::ostream& out) const { @@ -22123,14 +22623,14 @@ uint32_t FireEventRequest::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->partitionVals.clear(); - uint32_t _size863; - ::apache::thrift::protocol::TType _etype866; - xfer += iprot->readListBegin(_etype866, _size863); - this->partitionVals.resize(_size863); - uint32_t _i867; - for (_i867 = 0; _i867 < _size863; ++_i867) + uint32_t _size870; + ::apache::thrift::protocol::TType _etype873; + xfer += iprot->readListBegin(_etype873, _size870); + this->partitionVals.resize(_size870); + uint32_t _i874; + for (_i874 = 0; _i874 < _size870; ++_i874) { - xfer += iprot->readString(this->partitionVals[_i867]); + xfer += iprot->readString(this->partitionVals[_i874]); } xfer += iprot->readListEnd(); } @@ -22190,10 +22690,10 @@ uint32_t FireEventRequest::write(::apache::thrift::protocol::TProtocol* oprot) c xfer += oprot->writeFieldBegin("partitionVals", ::apache::thrift::protocol::T_LIST, 5); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->partitionVals.size())); - std::vector ::const_iterator _iter868; - for (_iter868 = this->partitionVals.begin(); _iter868 != this->partitionVals.end(); ++_iter868) + std::vector ::const_iterator _iter875; + for (_iter875 = this->partitionVals.begin(); _iter875 != this->partitionVals.end(); ++_iter875) { - xfer += oprot->writeString((*_iter868)); + xfer += oprot->writeString((*_iter875)); } xfer += oprot->writeListEnd(); } @@ -22220,23 +22720,23 @@ void swap(FireEventRequest &a, FireEventRequest &b) { swap(a.__isset, b.__isset); } -FireEventRequest::FireEventRequest(const FireEventRequest& other869) { - successful = other869.successful; - data = other869.data; - dbName = other869.dbName; - tableName = other869.tableName; - partitionVals = other869.partitionVals; - catName = other869.catName; - __isset = other869.__isset; -} -FireEventRequest& FireEventRequest::operator=(const FireEventRequest& other870) { - successful = other870.successful; - data = other870.data; - dbName = other870.dbName; - tableName = other870.tableName; - partitionVals = other870.partitionVals; - catName = other870.catName; - __isset = other870.__isset; +FireEventRequest::FireEventRequest(const FireEventRequest& other876) { + successful = other876.successful; + data = other876.data; + dbName = other876.dbName; + tableName = other876.tableName; + partitionVals = other876.partitionVals; + catName = other876.catName; + __isset = other876.__isset; +} +FireEventRequest& FireEventRequest::operator=(const FireEventRequest& other877) { + successful = other877.successful; + data = other877.data; + dbName = other877.dbName; + tableName = other877.tableName; + partitionVals = other877.partitionVals; + catName = other877.catName; + __isset = other877.__isset; return *this; } void FireEventRequest::printTo(std::ostream& out) const { @@ -22300,11 +22800,11 @@ void swap(FireEventResponse &a, FireEventResponse &b) { (void) b; } -FireEventResponse::FireEventResponse(const FireEventResponse& other871) { - (void) other871; +FireEventResponse::FireEventResponse(const FireEventResponse& other878) { + (void) other878; } -FireEventResponse& FireEventResponse::operator=(const FireEventResponse& other872) { - (void) other872; +FireEventResponse& FireEventResponse::operator=(const FireEventResponse& other879) { + (void) other879; return *this; } void FireEventResponse::printTo(std::ostream& out) const { @@ -22404,15 +22904,15 @@ void swap(MetadataPpdResult &a, MetadataPpdResult &b) { swap(a.__isset, b.__isset); } -MetadataPpdResult::MetadataPpdResult(const MetadataPpdResult& other873) { - metadata = other873.metadata; - includeBitset = other873.includeBitset; - __isset = other873.__isset; +MetadataPpdResult::MetadataPpdResult(const MetadataPpdResult& other880) { + metadata = other880.metadata; + includeBitset = other880.includeBitset; + __isset = other880.__isset; } -MetadataPpdResult& MetadataPpdResult::operator=(const MetadataPpdResult& other874) { - metadata = other874.metadata; - includeBitset = other874.includeBitset; - __isset = other874.__isset; +MetadataPpdResult& MetadataPpdResult::operator=(const MetadataPpdResult& other881) { + metadata = other881.metadata; + includeBitset = other881.includeBitset; + __isset = other881.__isset; return *this; } void MetadataPpdResult::printTo(std::ostream& out) const { @@ -22463,17 +22963,17 @@ uint32_t GetFileMetadataByExprResult::read(::apache::thrift::protocol::TProtocol if (ftype == ::apache::thrift::protocol::T_MAP) { { this->metadata.clear(); - uint32_t _size875; - ::apache::thrift::protocol::TType _ktype876; - ::apache::thrift::protocol::TType _vtype877; - xfer += iprot->readMapBegin(_ktype876, _vtype877, _size875); - uint32_t _i879; - for (_i879 = 0; _i879 < _size875; ++_i879) + uint32_t _size882; + ::apache::thrift::protocol::TType _ktype883; + ::apache::thrift::protocol::TType _vtype884; + xfer += iprot->readMapBegin(_ktype883, _vtype884, _size882); + uint32_t _i886; + for (_i886 = 0; _i886 < _size882; ++_i886) { - int64_t _key880; - xfer += iprot->readI64(_key880); - MetadataPpdResult& _val881 = this->metadata[_key880]; - xfer += _val881.read(iprot); + int64_t _key887; + xfer += iprot->readI64(_key887); + MetadataPpdResult& _val888 = this->metadata[_key887]; + xfer += _val888.read(iprot); } xfer += iprot->readMapEnd(); } @@ -22514,11 +23014,11 @@ uint32_t GetFileMetadataByExprResult::write(::apache::thrift::protocol::TProtoco xfer += oprot->writeFieldBegin("metadata", ::apache::thrift::protocol::T_MAP, 1); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_I64, ::apache::thrift::protocol::T_STRUCT, static_cast(this->metadata.size())); - std::map ::const_iterator _iter882; - for (_iter882 = this->metadata.begin(); _iter882 != this->metadata.end(); ++_iter882) + std::map ::const_iterator _iter889; + for (_iter889 = this->metadata.begin(); _iter889 != this->metadata.end(); ++_iter889) { - xfer += oprot->writeI64(_iter882->first); - xfer += _iter882->second.write(oprot); + xfer += oprot->writeI64(_iter889->first); + xfer += _iter889->second.write(oprot); } xfer += oprot->writeMapEnd(); } @@ -22539,13 +23039,13 @@ void swap(GetFileMetadataByExprResult &a, GetFileMetadataByExprResult &b) { swap(a.isSupported, b.isSupported); } -GetFileMetadataByExprResult::GetFileMetadataByExprResult(const GetFileMetadataByExprResult& other883) { - metadata = other883.metadata; - isSupported = other883.isSupported; +GetFileMetadataByExprResult::GetFileMetadataByExprResult(const GetFileMetadataByExprResult& other890) { + metadata = other890.metadata; + isSupported = other890.isSupported; } -GetFileMetadataByExprResult& GetFileMetadataByExprResult::operator=(const GetFileMetadataByExprResult& other884) { - metadata = other884.metadata; - isSupported = other884.isSupported; +GetFileMetadataByExprResult& GetFileMetadataByExprResult::operator=(const GetFileMetadataByExprResult& other891) { + metadata = other891.metadata; + isSupported = other891.isSupported; return *this; } void GetFileMetadataByExprResult::printTo(std::ostream& out) const { @@ -22606,14 +23106,14 @@ uint32_t GetFileMetadataByExprRequest::read(::apache::thrift::protocol::TProtoco if (ftype == ::apache::thrift::protocol::T_LIST) { { this->fileIds.clear(); - uint32_t _size885; - ::apache::thrift::protocol::TType _etype888; - xfer += iprot->readListBegin(_etype888, _size885); - this->fileIds.resize(_size885); - uint32_t _i889; - for (_i889 = 0; _i889 < _size885; ++_i889) + uint32_t _size892; + ::apache::thrift::protocol::TType _etype895; + xfer += iprot->readListBegin(_etype895, _size892); + this->fileIds.resize(_size892); + uint32_t _i896; + for (_i896 = 0; _i896 < _size892; ++_i896) { - xfer += iprot->readI64(this->fileIds[_i889]); + xfer += iprot->readI64(this->fileIds[_i896]); } xfer += iprot->readListEnd(); } @@ -22640,9 +23140,9 @@ uint32_t GetFileMetadataByExprRequest::read(::apache::thrift::protocol::TProtoco break; case 4: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast890; - xfer += iprot->readI32(ecast890); - this->type = (FileMetadataExprType::type)ecast890; + int32_t ecast897; + xfer += iprot->readI32(ecast897); + this->type = (FileMetadataExprType::type)ecast897; this->__isset.type = true; } else { xfer += iprot->skip(ftype); @@ -22672,10 +23172,10 @@ uint32_t GetFileMetadataByExprRequest::write(::apache::thrift::protocol::TProtoc xfer += oprot->writeFieldBegin("fileIds", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_I64, static_cast(this->fileIds.size())); - std::vector ::const_iterator _iter891; - for (_iter891 = this->fileIds.begin(); _iter891 != this->fileIds.end(); ++_iter891) + std::vector ::const_iterator _iter898; + for (_iter898 = this->fileIds.begin(); _iter898 != this->fileIds.end(); ++_iter898) { - xfer += oprot->writeI64((*_iter891)); + xfer += oprot->writeI64((*_iter898)); } xfer += oprot->writeListEnd(); } @@ -22709,19 +23209,19 @@ void swap(GetFileMetadataByExprRequest &a, GetFileMetadataByExprRequest &b) { swap(a.__isset, b.__isset); } -GetFileMetadataByExprRequest::GetFileMetadataByExprRequest(const GetFileMetadataByExprRequest& other892) { - fileIds = other892.fileIds; - expr = other892.expr; - doGetFooters = other892.doGetFooters; - type = other892.type; - __isset = other892.__isset; +GetFileMetadataByExprRequest::GetFileMetadataByExprRequest(const GetFileMetadataByExprRequest& other899) { + fileIds = other899.fileIds; + expr = other899.expr; + doGetFooters = other899.doGetFooters; + type = other899.type; + __isset = other899.__isset; } -GetFileMetadataByExprRequest& GetFileMetadataByExprRequest::operator=(const GetFileMetadataByExprRequest& other893) { - fileIds = other893.fileIds; - expr = other893.expr; - doGetFooters = other893.doGetFooters; - type = other893.type; - __isset = other893.__isset; +GetFileMetadataByExprRequest& GetFileMetadataByExprRequest::operator=(const GetFileMetadataByExprRequest& other900) { + fileIds = other900.fileIds; + expr = other900.expr; + doGetFooters = other900.doGetFooters; + type = other900.type; + __isset = other900.__isset; return *this; } void GetFileMetadataByExprRequest::printTo(std::ostream& out) const { @@ -22774,17 +23274,17 @@ uint32_t GetFileMetadataResult::read(::apache::thrift::protocol::TProtocol* ipro if (ftype == ::apache::thrift::protocol::T_MAP) { { this->metadata.clear(); - uint32_t _size894; - ::apache::thrift::protocol::TType _ktype895; - ::apache::thrift::protocol::TType _vtype896; - xfer += iprot->readMapBegin(_ktype895, _vtype896, _size894); - uint32_t _i898; - for (_i898 = 0; _i898 < _size894; ++_i898) + uint32_t _size901; + ::apache::thrift::protocol::TType _ktype902; + ::apache::thrift::protocol::TType _vtype903; + xfer += iprot->readMapBegin(_ktype902, _vtype903, _size901); + uint32_t _i905; + for (_i905 = 0; _i905 < _size901; ++_i905) { - int64_t _key899; - xfer += iprot->readI64(_key899); - std::string& _val900 = this->metadata[_key899]; - xfer += iprot->readBinary(_val900); + int64_t _key906; + xfer += iprot->readI64(_key906); + std::string& _val907 = this->metadata[_key906]; + xfer += iprot->readBinary(_val907); } xfer += iprot->readMapEnd(); } @@ -22825,11 +23325,11 @@ uint32_t GetFileMetadataResult::write(::apache::thrift::protocol::TProtocol* opr xfer += oprot->writeFieldBegin("metadata", ::apache::thrift::protocol::T_MAP, 1); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_I64, ::apache::thrift::protocol::T_STRING, static_cast(this->metadata.size())); - std::map ::const_iterator _iter901; - for (_iter901 = this->metadata.begin(); _iter901 != this->metadata.end(); ++_iter901) + std::map ::const_iterator _iter908; + for (_iter908 = this->metadata.begin(); _iter908 != this->metadata.end(); ++_iter908) { - xfer += oprot->writeI64(_iter901->first); - xfer += oprot->writeBinary(_iter901->second); + xfer += oprot->writeI64(_iter908->first); + xfer += oprot->writeBinary(_iter908->second); } xfer += oprot->writeMapEnd(); } @@ -22850,13 +23350,13 @@ void swap(GetFileMetadataResult &a, GetFileMetadataResult &b) { swap(a.isSupported, b.isSupported); } -GetFileMetadataResult::GetFileMetadataResult(const GetFileMetadataResult& other902) { - metadata = other902.metadata; - isSupported = other902.isSupported; +GetFileMetadataResult::GetFileMetadataResult(const GetFileMetadataResult& other909) { + metadata = other909.metadata; + isSupported = other909.isSupported; } -GetFileMetadataResult& GetFileMetadataResult::operator=(const GetFileMetadataResult& other903) { - metadata = other903.metadata; - isSupported = other903.isSupported; +GetFileMetadataResult& GetFileMetadataResult::operator=(const GetFileMetadataResult& other910) { + metadata = other910.metadata; + isSupported = other910.isSupported; return *this; } void GetFileMetadataResult::printTo(std::ostream& out) const { @@ -22902,14 +23402,14 @@ uint32_t GetFileMetadataRequest::read(::apache::thrift::protocol::TProtocol* ipr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->fileIds.clear(); - uint32_t _size904; - ::apache::thrift::protocol::TType _etype907; - xfer += iprot->readListBegin(_etype907, _size904); - this->fileIds.resize(_size904); - uint32_t _i908; - for (_i908 = 0; _i908 < _size904; ++_i908) + uint32_t _size911; + ::apache::thrift::protocol::TType _etype914; + xfer += iprot->readListBegin(_etype914, _size911); + this->fileIds.resize(_size911); + uint32_t _i915; + for (_i915 = 0; _i915 < _size911; ++_i915) { - xfer += iprot->readI64(this->fileIds[_i908]); + xfer += iprot->readI64(this->fileIds[_i915]); } xfer += iprot->readListEnd(); } @@ -22940,10 +23440,10 @@ uint32_t GetFileMetadataRequest::write(::apache::thrift::protocol::TProtocol* op xfer += oprot->writeFieldBegin("fileIds", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_I64, static_cast(this->fileIds.size())); - std::vector ::const_iterator _iter909; - for (_iter909 = this->fileIds.begin(); _iter909 != this->fileIds.end(); ++_iter909) + std::vector ::const_iterator _iter916; + for (_iter916 = this->fileIds.begin(); _iter916 != this->fileIds.end(); ++_iter916) { - xfer += oprot->writeI64((*_iter909)); + xfer += oprot->writeI64((*_iter916)); } xfer += oprot->writeListEnd(); } @@ -22959,11 +23459,11 @@ void swap(GetFileMetadataRequest &a, GetFileMetadataRequest &b) { swap(a.fileIds, b.fileIds); } -GetFileMetadataRequest::GetFileMetadataRequest(const GetFileMetadataRequest& other910) { - fileIds = other910.fileIds; +GetFileMetadataRequest::GetFileMetadataRequest(const GetFileMetadataRequest& other917) { + fileIds = other917.fileIds; } -GetFileMetadataRequest& GetFileMetadataRequest::operator=(const GetFileMetadataRequest& other911) { - fileIds = other911.fileIds; +GetFileMetadataRequest& GetFileMetadataRequest::operator=(const GetFileMetadataRequest& other918) { + fileIds = other918.fileIds; return *this; } void GetFileMetadataRequest::printTo(std::ostream& out) const { @@ -23022,11 +23522,11 @@ void swap(PutFileMetadataResult &a, PutFileMetadataResult &b) { (void) b; } -PutFileMetadataResult::PutFileMetadataResult(const PutFileMetadataResult& other912) { - (void) other912; +PutFileMetadataResult::PutFileMetadataResult(const PutFileMetadataResult& other919) { + (void) other919; } -PutFileMetadataResult& PutFileMetadataResult::operator=(const PutFileMetadataResult& other913) { - (void) other913; +PutFileMetadataResult& PutFileMetadataResult::operator=(const PutFileMetadataResult& other920) { + (void) other920; return *this; } void PutFileMetadataResult::printTo(std::ostream& out) const { @@ -23080,14 +23580,14 @@ uint32_t PutFileMetadataRequest::read(::apache::thrift::protocol::TProtocol* ipr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->fileIds.clear(); - uint32_t _size914; - ::apache::thrift::protocol::TType _etype917; - xfer += iprot->readListBegin(_etype917, _size914); - this->fileIds.resize(_size914); - uint32_t _i918; - for (_i918 = 0; _i918 < _size914; ++_i918) + uint32_t _size921; + ::apache::thrift::protocol::TType _etype924; + xfer += iprot->readListBegin(_etype924, _size921); + this->fileIds.resize(_size921); + uint32_t _i925; + for (_i925 = 0; _i925 < _size921; ++_i925) { - xfer += iprot->readI64(this->fileIds[_i918]); + xfer += iprot->readI64(this->fileIds[_i925]); } xfer += iprot->readListEnd(); } @@ -23100,14 +23600,14 @@ uint32_t PutFileMetadataRequest::read(::apache::thrift::protocol::TProtocol* ipr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->metadata.clear(); - uint32_t _size919; - ::apache::thrift::protocol::TType _etype922; - xfer += iprot->readListBegin(_etype922, _size919); - this->metadata.resize(_size919); - uint32_t _i923; - for (_i923 = 0; _i923 < _size919; ++_i923) + uint32_t _size926; + ::apache::thrift::protocol::TType _etype929; + xfer += iprot->readListBegin(_etype929, _size926); + this->metadata.resize(_size926); + uint32_t _i930; + for (_i930 = 0; _i930 < _size926; ++_i930) { - xfer += iprot->readBinary(this->metadata[_i923]); + xfer += iprot->readBinary(this->metadata[_i930]); } xfer += iprot->readListEnd(); } @@ -23118,9 +23618,9 @@ uint32_t PutFileMetadataRequest::read(::apache::thrift::protocol::TProtocol* ipr break; case 3: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast924; - xfer += iprot->readI32(ecast924); - this->type = (FileMetadataExprType::type)ecast924; + int32_t ecast931; + xfer += iprot->readI32(ecast931); + this->type = (FileMetadataExprType::type)ecast931; this->__isset.type = true; } else { xfer += iprot->skip(ftype); @@ -23150,10 +23650,10 @@ uint32_t PutFileMetadataRequest::write(::apache::thrift::protocol::TProtocol* op xfer += oprot->writeFieldBegin("fileIds", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_I64, static_cast(this->fileIds.size())); - std::vector ::const_iterator _iter925; - for (_iter925 = this->fileIds.begin(); _iter925 != this->fileIds.end(); ++_iter925) + std::vector ::const_iterator _iter932; + for (_iter932 = this->fileIds.begin(); _iter932 != this->fileIds.end(); ++_iter932) { - xfer += oprot->writeI64((*_iter925)); + xfer += oprot->writeI64((*_iter932)); } xfer += oprot->writeListEnd(); } @@ -23162,10 +23662,10 @@ uint32_t PutFileMetadataRequest::write(::apache::thrift::protocol::TProtocol* op xfer += oprot->writeFieldBegin("metadata", ::apache::thrift::protocol::T_LIST, 2); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->metadata.size())); - std::vector ::const_iterator _iter926; - for (_iter926 = this->metadata.begin(); _iter926 != this->metadata.end(); ++_iter926) + std::vector ::const_iterator _iter933; + for (_iter933 = this->metadata.begin(); _iter933 != this->metadata.end(); ++_iter933) { - xfer += oprot->writeBinary((*_iter926)); + xfer += oprot->writeBinary((*_iter933)); } xfer += oprot->writeListEnd(); } @@ -23189,17 +23689,17 @@ void swap(PutFileMetadataRequest &a, PutFileMetadataRequest &b) { swap(a.__isset, b.__isset); } -PutFileMetadataRequest::PutFileMetadataRequest(const PutFileMetadataRequest& other927) { - fileIds = other927.fileIds; - metadata = other927.metadata; - type = other927.type; - __isset = other927.__isset; +PutFileMetadataRequest::PutFileMetadataRequest(const PutFileMetadataRequest& other934) { + fileIds = other934.fileIds; + metadata = other934.metadata; + type = other934.type; + __isset = other934.__isset; } -PutFileMetadataRequest& PutFileMetadataRequest::operator=(const PutFileMetadataRequest& other928) { - fileIds = other928.fileIds; - metadata = other928.metadata; - type = other928.type; - __isset = other928.__isset; +PutFileMetadataRequest& PutFileMetadataRequest::operator=(const PutFileMetadataRequest& other935) { + fileIds = other935.fileIds; + metadata = other935.metadata; + type = other935.type; + __isset = other935.__isset; return *this; } void PutFileMetadataRequest::printTo(std::ostream& out) const { @@ -23260,11 +23760,11 @@ void swap(ClearFileMetadataResult &a, ClearFileMetadataResult &b) { (void) b; } -ClearFileMetadataResult::ClearFileMetadataResult(const ClearFileMetadataResult& other929) { - (void) other929; +ClearFileMetadataResult::ClearFileMetadataResult(const ClearFileMetadataResult& other936) { + (void) other936; } -ClearFileMetadataResult& ClearFileMetadataResult::operator=(const ClearFileMetadataResult& other930) { - (void) other930; +ClearFileMetadataResult& ClearFileMetadataResult::operator=(const ClearFileMetadataResult& other937) { + (void) other937; return *this; } void ClearFileMetadataResult::printTo(std::ostream& out) const { @@ -23308,14 +23808,14 @@ uint32_t ClearFileMetadataRequest::read(::apache::thrift::protocol::TProtocol* i if (ftype == ::apache::thrift::protocol::T_LIST) { { this->fileIds.clear(); - uint32_t _size931; - ::apache::thrift::protocol::TType _etype934; - xfer += iprot->readListBegin(_etype934, _size931); - this->fileIds.resize(_size931); - uint32_t _i935; - for (_i935 = 0; _i935 < _size931; ++_i935) + uint32_t _size938; + ::apache::thrift::protocol::TType _etype941; + xfer += iprot->readListBegin(_etype941, _size938); + this->fileIds.resize(_size938); + uint32_t _i942; + for (_i942 = 0; _i942 < _size938; ++_i942) { - xfer += iprot->readI64(this->fileIds[_i935]); + xfer += iprot->readI64(this->fileIds[_i942]); } xfer += iprot->readListEnd(); } @@ -23346,10 +23846,10 @@ uint32_t ClearFileMetadataRequest::write(::apache::thrift::protocol::TProtocol* xfer += oprot->writeFieldBegin("fileIds", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_I64, static_cast(this->fileIds.size())); - std::vector ::const_iterator _iter936; - for (_iter936 = this->fileIds.begin(); _iter936 != this->fileIds.end(); ++_iter936) + std::vector ::const_iterator _iter943; + for (_iter943 = this->fileIds.begin(); _iter943 != this->fileIds.end(); ++_iter943) { - xfer += oprot->writeI64((*_iter936)); + xfer += oprot->writeI64((*_iter943)); } xfer += oprot->writeListEnd(); } @@ -23365,11 +23865,11 @@ void swap(ClearFileMetadataRequest &a, ClearFileMetadataRequest &b) { swap(a.fileIds, b.fileIds); } -ClearFileMetadataRequest::ClearFileMetadataRequest(const ClearFileMetadataRequest& other937) { - fileIds = other937.fileIds; +ClearFileMetadataRequest::ClearFileMetadataRequest(const ClearFileMetadataRequest& other944) { + fileIds = other944.fileIds; } -ClearFileMetadataRequest& ClearFileMetadataRequest::operator=(const ClearFileMetadataRequest& other938) { - fileIds = other938.fileIds; +ClearFileMetadataRequest& ClearFileMetadataRequest::operator=(const ClearFileMetadataRequest& other945) { + fileIds = other945.fileIds; return *this; } void ClearFileMetadataRequest::printTo(std::ostream& out) const { @@ -23451,11 +23951,11 @@ void swap(CacheFileMetadataResult &a, CacheFileMetadataResult &b) { swap(a.isSupported, b.isSupported); } -CacheFileMetadataResult::CacheFileMetadataResult(const CacheFileMetadataResult& other939) { - isSupported = other939.isSupported; +CacheFileMetadataResult::CacheFileMetadataResult(const CacheFileMetadataResult& other946) { + isSupported = other946.isSupported; } -CacheFileMetadataResult& CacheFileMetadataResult::operator=(const CacheFileMetadataResult& other940) { - isSupported = other940.isSupported; +CacheFileMetadataResult& CacheFileMetadataResult::operator=(const CacheFileMetadataResult& other947) { + isSupported = other947.isSupported; return *this; } void CacheFileMetadataResult::printTo(std::ostream& out) const { @@ -23596,19 +24096,19 @@ void swap(CacheFileMetadataRequest &a, CacheFileMetadataRequest &b) { swap(a.__isset, b.__isset); } -CacheFileMetadataRequest::CacheFileMetadataRequest(const CacheFileMetadataRequest& other941) { - dbName = other941.dbName; - tblName = other941.tblName; - partName = other941.partName; - isAllParts = other941.isAllParts; - __isset = other941.__isset; +CacheFileMetadataRequest::CacheFileMetadataRequest(const CacheFileMetadataRequest& other948) { + dbName = other948.dbName; + tblName = other948.tblName; + partName = other948.partName; + isAllParts = other948.isAllParts; + __isset = other948.__isset; } -CacheFileMetadataRequest& CacheFileMetadataRequest::operator=(const CacheFileMetadataRequest& other942) { - dbName = other942.dbName; - tblName = other942.tblName; - partName = other942.partName; - isAllParts = other942.isAllParts; - __isset = other942.__isset; +CacheFileMetadataRequest& CacheFileMetadataRequest::operator=(const CacheFileMetadataRequest& other949) { + dbName = other949.dbName; + tblName = other949.tblName; + partName = other949.partName; + isAllParts = other949.isAllParts; + __isset = other949.__isset; return *this; } void CacheFileMetadataRequest::printTo(std::ostream& out) const { @@ -23656,14 +24156,14 @@ uint32_t GetAllFunctionsResponse::read(::apache::thrift::protocol::TProtocol* ip if (ftype == ::apache::thrift::protocol::T_LIST) { { this->functions.clear(); - uint32_t _size943; - ::apache::thrift::protocol::TType _etype946; - xfer += iprot->readListBegin(_etype946, _size943); - this->functions.resize(_size943); - uint32_t _i947; - for (_i947 = 0; _i947 < _size943; ++_i947) + uint32_t _size950; + ::apache::thrift::protocol::TType _etype953; + xfer += iprot->readListBegin(_etype953, _size950); + this->functions.resize(_size950); + uint32_t _i954; + for (_i954 = 0; _i954 < _size950; ++_i954) { - xfer += this->functions[_i947].read(iprot); + xfer += this->functions[_i954].read(iprot); } xfer += iprot->readListEnd(); } @@ -23693,10 +24193,10 @@ uint32_t GetAllFunctionsResponse::write(::apache::thrift::protocol::TProtocol* o xfer += oprot->writeFieldBegin("functions", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->functions.size())); - std::vector ::const_iterator _iter948; - for (_iter948 = this->functions.begin(); _iter948 != this->functions.end(); ++_iter948) + std::vector ::const_iterator _iter955; + for (_iter955 = this->functions.begin(); _iter955 != this->functions.end(); ++_iter955) { - xfer += (*_iter948).write(oprot); + xfer += (*_iter955).write(oprot); } xfer += oprot->writeListEnd(); } @@ -23713,13 +24213,13 @@ void swap(GetAllFunctionsResponse &a, GetAllFunctionsResponse &b) { swap(a.__isset, b.__isset); } -GetAllFunctionsResponse::GetAllFunctionsResponse(const GetAllFunctionsResponse& other949) { - functions = other949.functions; - __isset = other949.__isset; +GetAllFunctionsResponse::GetAllFunctionsResponse(const GetAllFunctionsResponse& other956) { + functions = other956.functions; + __isset = other956.__isset; } -GetAllFunctionsResponse& GetAllFunctionsResponse::operator=(const GetAllFunctionsResponse& other950) { - functions = other950.functions; - __isset = other950.__isset; +GetAllFunctionsResponse& GetAllFunctionsResponse::operator=(const GetAllFunctionsResponse& other957) { + functions = other957.functions; + __isset = other957.__isset; return *this; } void GetAllFunctionsResponse::printTo(std::ostream& out) const { @@ -23764,16 +24264,16 @@ uint32_t ClientCapabilities::read(::apache::thrift::protocol::TProtocol* iprot) if (ftype == ::apache::thrift::protocol::T_LIST) { { this->values.clear(); - uint32_t _size951; - ::apache::thrift::protocol::TType _etype954; - xfer += iprot->readListBegin(_etype954, _size951); - this->values.resize(_size951); - uint32_t _i955; - for (_i955 = 0; _i955 < _size951; ++_i955) + uint32_t _size958; + ::apache::thrift::protocol::TType _etype961; + xfer += iprot->readListBegin(_etype961, _size958); + this->values.resize(_size958); + uint32_t _i962; + for (_i962 = 0; _i962 < _size958; ++_i962) { - int32_t ecast956; - xfer += iprot->readI32(ecast956); - this->values[_i955] = (ClientCapability::type)ecast956; + int32_t ecast963; + xfer += iprot->readI32(ecast963); + this->values[_i962] = (ClientCapability::type)ecast963; } xfer += iprot->readListEnd(); } @@ -23804,10 +24304,10 @@ uint32_t ClientCapabilities::write(::apache::thrift::protocol::TProtocol* oprot) xfer += oprot->writeFieldBegin("values", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_I32, static_cast(this->values.size())); - std::vector ::const_iterator _iter957; - for (_iter957 = this->values.begin(); _iter957 != this->values.end(); ++_iter957) + std::vector ::const_iterator _iter964; + for (_iter964 = this->values.begin(); _iter964 != this->values.end(); ++_iter964) { - xfer += oprot->writeI32((int32_t)(*_iter957)); + xfer += oprot->writeI32((int32_t)(*_iter964)); } xfer += oprot->writeListEnd(); } @@ -23823,11 +24323,11 @@ void swap(ClientCapabilities &a, ClientCapabilities &b) { swap(a.values, b.values); } -ClientCapabilities::ClientCapabilities(const ClientCapabilities& other958) { - values = other958.values; +ClientCapabilities::ClientCapabilities(const ClientCapabilities& other965) { + values = other965.values; } -ClientCapabilities& ClientCapabilities::operator=(const ClientCapabilities& other959) { - values = other959.values; +ClientCapabilities& ClientCapabilities::operator=(const ClientCapabilities& other966) { + values = other966.values; return *this; } void ClientCapabilities::printTo(std::ostream& out) const { @@ -23860,6 +24360,16 @@ void GetTableRequest::__set_catName(const std::string& val) { __isset.catName = true; } +void GetTableRequest::__set_writeId(const int64_t val) { + this->writeId = val; +__isset.writeId = true; +} + +void GetTableRequest::__set_validWriteIdList(const std::string& val) { + this->validWriteIdList = val; +__isset.validWriteIdList = true; +} + uint32_t GetTableRequest::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); @@ -23915,6 +24425,22 @@ uint32_t GetTableRequest::read(::apache::thrift::protocol::TProtocol* iprot) { xfer += iprot->skip(ftype); } break; + case 5: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->writeId); + this->__isset.writeId = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 6: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->validWriteIdList); + this->__isset.validWriteIdList = true; + } else { + xfer += iprot->skip(ftype); + } + break; default: xfer += iprot->skip(ftype); break; @@ -23954,6 +24480,16 @@ uint32_t GetTableRequest::write(::apache::thrift::protocol::TProtocol* oprot) co xfer += oprot->writeString(this->catName); xfer += oprot->writeFieldEnd(); } + if (this->__isset.writeId) { + xfer += oprot->writeFieldBegin("writeId", ::apache::thrift::protocol::T_I64, 5); + xfer += oprot->writeI64(this->writeId); + xfer += oprot->writeFieldEnd(); + } + if (this->__isset.validWriteIdList) { + xfer += oprot->writeFieldBegin("validWriteIdList", ::apache::thrift::protocol::T_STRING, 6); + xfer += oprot->writeString(this->validWriteIdList); + xfer += oprot->writeFieldEnd(); + } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); return xfer; @@ -23965,22 +24501,28 @@ void swap(GetTableRequest &a, GetTableRequest &b) { swap(a.tblName, b.tblName); swap(a.capabilities, b.capabilities); swap(a.catName, b.catName); + swap(a.writeId, b.writeId); + swap(a.validWriteIdList, b.validWriteIdList); swap(a.__isset, b.__isset); } -GetTableRequest::GetTableRequest(const GetTableRequest& other960) { - dbName = other960.dbName; - tblName = other960.tblName; - capabilities = other960.capabilities; - catName = other960.catName; - __isset = other960.__isset; -} -GetTableRequest& GetTableRequest::operator=(const GetTableRequest& other961) { - dbName = other961.dbName; - tblName = other961.tblName; - capabilities = other961.capabilities; - catName = other961.catName; - __isset = other961.__isset; +GetTableRequest::GetTableRequest(const GetTableRequest& other967) { + dbName = other967.dbName; + tblName = other967.tblName; + capabilities = other967.capabilities; + catName = other967.catName; + writeId = other967.writeId; + validWriteIdList = other967.validWriteIdList; + __isset = other967.__isset; +} +GetTableRequest& GetTableRequest::operator=(const GetTableRequest& other968) { + dbName = other968.dbName; + tblName = other968.tblName; + capabilities = other968.capabilities; + catName = other968.catName; + writeId = other968.writeId; + validWriteIdList = other968.validWriteIdList; + __isset = other968.__isset; return *this; } void GetTableRequest::printTo(std::ostream& out) const { @@ -23990,6 +24532,8 @@ void GetTableRequest::printTo(std::ostream& out) const { out << ", " << "tblName=" << to_string(tblName); out << ", " << "capabilities="; (__isset.capabilities ? (out << to_string(capabilities)) : (out << "")); out << ", " << "catName="; (__isset.catName ? (out << to_string(catName)) : (out << "")); + out << ", " << "writeId="; (__isset.writeId ? (out << to_string(writeId)) : (out << "")); + out << ", " << "validWriteIdList="; (__isset.validWriteIdList ? (out << to_string(validWriteIdList)) : (out << "")); out << ")"; } @@ -24002,6 +24546,11 @@ void GetTableResult::__set_table(const Table& val) { this->table = val; } +void GetTableResult::__set_isStatsCompliant(const IsolationLevelCompliance::type val) { + this->isStatsCompliant = val; +__isset.isStatsCompliant = true; +} + uint32_t GetTableResult::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); @@ -24032,6 +24581,16 @@ uint32_t GetTableResult::read(::apache::thrift::protocol::TProtocol* iprot) { xfer += iprot->skip(ftype); } break; + case 2: + if (ftype == ::apache::thrift::protocol::T_I32) { + int32_t ecast969; + xfer += iprot->readI32(ecast969); + this->isStatsCompliant = (IsolationLevelCompliance::type)ecast969; + this->__isset.isStatsCompliant = true; + } else { + xfer += iprot->skip(ftype); + } + break; default: xfer += iprot->skip(ftype); break; @@ -24055,6 +24614,11 @@ uint32_t GetTableResult::write(::apache::thrift::protocol::TProtocol* oprot) con xfer += this->table.write(oprot); xfer += oprot->writeFieldEnd(); + if (this->__isset.isStatsCompliant) { + xfer += oprot->writeFieldBegin("isStatsCompliant", ::apache::thrift::protocol::T_I32, 2); + xfer += oprot->writeI32((int32_t)this->isStatsCompliant); + xfer += oprot->writeFieldEnd(); + } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); return xfer; @@ -24063,19 +24627,26 @@ uint32_t GetTableResult::write(::apache::thrift::protocol::TProtocol* oprot) con void swap(GetTableResult &a, GetTableResult &b) { using ::std::swap; swap(a.table, b.table); + swap(a.isStatsCompliant, b.isStatsCompliant); + swap(a.__isset, b.__isset); } -GetTableResult::GetTableResult(const GetTableResult& other962) { - table = other962.table; +GetTableResult::GetTableResult(const GetTableResult& other970) { + table = other970.table; + isStatsCompliant = other970.isStatsCompliant; + __isset = other970.__isset; } -GetTableResult& GetTableResult::operator=(const GetTableResult& other963) { - table = other963.table; +GetTableResult& GetTableResult::operator=(const GetTableResult& other971) { + table = other971.table; + isStatsCompliant = other971.isStatsCompliant; + __isset = other971.__isset; return *this; } void GetTableResult::printTo(std::ostream& out) const { using ::apache::thrift::to_string; out << "GetTableResult("; out << "table=" << to_string(table); + out << ", " << "isStatsCompliant="; (__isset.isStatsCompliant ? (out << to_string(isStatsCompliant)) : (out << "")); out << ")"; } @@ -24137,14 +24708,14 @@ uint32_t GetTablesRequest::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->tblNames.clear(); - uint32_t _size964; - ::apache::thrift::protocol::TType _etype967; - xfer += iprot->readListBegin(_etype967, _size964); - this->tblNames.resize(_size964); - uint32_t _i968; - for (_i968 = 0; _i968 < _size964; ++_i968) + uint32_t _size972; + ::apache::thrift::protocol::TType _etype975; + xfer += iprot->readListBegin(_etype975, _size972); + this->tblNames.resize(_size972); + uint32_t _i976; + for (_i976 = 0; _i976 < _size972; ++_i976) { - xfer += iprot->readString(this->tblNames[_i968]); + xfer += iprot->readString(this->tblNames[_i976]); } xfer += iprot->readListEnd(); } @@ -24196,10 +24767,10 @@ uint32_t GetTablesRequest::write(::apache::thrift::protocol::TProtocol* oprot) c xfer += oprot->writeFieldBegin("tblNames", ::apache::thrift::protocol::T_LIST, 2); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->tblNames.size())); - std::vector ::const_iterator _iter969; - for (_iter969 = this->tblNames.begin(); _iter969 != this->tblNames.end(); ++_iter969) + std::vector ::const_iterator _iter977; + for (_iter977 = this->tblNames.begin(); _iter977 != this->tblNames.end(); ++_iter977) { - xfer += oprot->writeString((*_iter969)); + xfer += oprot->writeString((*_iter977)); } xfer += oprot->writeListEnd(); } @@ -24229,19 +24800,19 @@ void swap(GetTablesRequest &a, GetTablesRequest &b) { swap(a.__isset, b.__isset); } -GetTablesRequest::GetTablesRequest(const GetTablesRequest& other970) { - dbName = other970.dbName; - tblNames = other970.tblNames; - capabilities = other970.capabilities; - catName = other970.catName; - __isset = other970.__isset; +GetTablesRequest::GetTablesRequest(const GetTablesRequest& other978) { + dbName = other978.dbName; + tblNames = other978.tblNames; + capabilities = other978.capabilities; + catName = other978.catName; + __isset = other978.__isset; } -GetTablesRequest& GetTablesRequest::operator=(const GetTablesRequest& other971) { - dbName = other971.dbName; - tblNames = other971.tblNames; - capabilities = other971.capabilities; - catName = other971.catName; - __isset = other971.__isset; +GetTablesRequest& GetTablesRequest::operator=(const GetTablesRequest& other979) { + dbName = other979.dbName; + tblNames = other979.tblNames; + capabilities = other979.capabilities; + catName = other979.catName; + __isset = other979.__isset; return *this; } void GetTablesRequest::printTo(std::ostream& out) const { @@ -24289,14 +24860,14 @@ uint32_t GetTablesResult::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->tables.clear(); - uint32_t _size972; - ::apache::thrift::protocol::TType _etype975; - xfer += iprot->readListBegin(_etype975, _size972); - this->tables.resize(_size972); - uint32_t _i976; - for (_i976 = 0; _i976 < _size972; ++_i976) + uint32_t _size980; + ::apache::thrift::protocol::TType _etype983; + xfer += iprot->readListBegin(_etype983, _size980); + this->tables.resize(_size980); + uint32_t _i984; + for (_i984 = 0; _i984 < _size980; ++_i984) { - xfer += this->tables[_i976].read(iprot); + xfer += this->tables[_i984].read(iprot); } xfer += iprot->readListEnd(); } @@ -24327,10 +24898,10 @@ uint32_t GetTablesResult::write(::apache::thrift::protocol::TProtocol* oprot) co xfer += oprot->writeFieldBegin("tables", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->tables.size())); - std::vector ::const_iterator _iter977; - for (_iter977 = this->tables.begin(); _iter977 != this->tables.end(); ++_iter977) + std::vector
::const_iterator _iter985; + for (_iter985 = this->tables.begin(); _iter985 != this->tables.end(); ++_iter985) { - xfer += (*_iter977).write(oprot); + xfer += (*_iter985).write(oprot); } xfer += oprot->writeListEnd(); } @@ -24346,11 +24917,11 @@ void swap(GetTablesResult &a, GetTablesResult &b) { swap(a.tables, b.tables); } -GetTablesResult::GetTablesResult(const GetTablesResult& other978) { - tables = other978.tables; +GetTablesResult::GetTablesResult(const GetTablesResult& other986) { + tables = other986.tables; } -GetTablesResult& GetTablesResult::operator=(const GetTablesResult& other979) { - tables = other979.tables; +GetTablesResult& GetTablesResult::operator=(const GetTablesResult& other987) { + tables = other987.tables; return *this; } void GetTablesResult::printTo(std::ostream& out) const { @@ -24452,13 +25023,13 @@ void swap(CmRecycleRequest &a, CmRecycleRequest &b) { swap(a.purge, b.purge); } -CmRecycleRequest::CmRecycleRequest(const CmRecycleRequest& other980) { - dataPath = other980.dataPath; - purge = other980.purge; +CmRecycleRequest::CmRecycleRequest(const CmRecycleRequest& other988) { + dataPath = other988.dataPath; + purge = other988.purge; } -CmRecycleRequest& CmRecycleRequest::operator=(const CmRecycleRequest& other981) { - dataPath = other981.dataPath; - purge = other981.purge; +CmRecycleRequest& CmRecycleRequest::operator=(const CmRecycleRequest& other989) { + dataPath = other989.dataPath; + purge = other989.purge; return *this; } void CmRecycleRequest::printTo(std::ostream& out) const { @@ -24518,11 +25089,11 @@ void swap(CmRecycleResponse &a, CmRecycleResponse &b) { (void) b; } -CmRecycleResponse::CmRecycleResponse(const CmRecycleResponse& other982) { - (void) other982; +CmRecycleResponse::CmRecycleResponse(const CmRecycleResponse& other990) { + (void) other990; } -CmRecycleResponse& CmRecycleResponse::operator=(const CmRecycleResponse& other983) { - (void) other983; +CmRecycleResponse& CmRecycleResponse::operator=(const CmRecycleResponse& other991) { + (void) other991; return *this; } void CmRecycleResponse::printTo(std::ostream& out) const { @@ -24682,21 +25253,21 @@ void swap(TableMeta &a, TableMeta &b) { swap(a.__isset, b.__isset); } -TableMeta::TableMeta(const TableMeta& other984) { - dbName = other984.dbName; - tableName = other984.tableName; - tableType = other984.tableType; - comments = other984.comments; - catName = other984.catName; - __isset = other984.__isset; -} -TableMeta& TableMeta::operator=(const TableMeta& other985) { - dbName = other985.dbName; - tableName = other985.tableName; - tableType = other985.tableType; - comments = other985.comments; - catName = other985.catName; - __isset = other985.__isset; +TableMeta::TableMeta(const TableMeta& other992) { + dbName = other992.dbName; + tableName = other992.tableName; + tableType = other992.tableType; + comments = other992.comments; + catName = other992.catName; + __isset = other992.__isset; +} +TableMeta& TableMeta::operator=(const TableMeta& other993) { + dbName = other993.dbName; + tableName = other993.tableName; + tableType = other993.tableType; + comments = other993.comments; + catName = other993.catName; + __isset = other993.__isset; return *this; } void TableMeta::printTo(std::ostream& out) const { @@ -24760,15 +25331,15 @@ uint32_t Materialization::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_SET) { { this->tablesUsed.clear(); - uint32_t _size986; - ::apache::thrift::protocol::TType _etype989; - xfer += iprot->readSetBegin(_etype989, _size986); - uint32_t _i990; - for (_i990 = 0; _i990 < _size986; ++_i990) + uint32_t _size994; + ::apache::thrift::protocol::TType _etype997; + xfer += iprot->readSetBegin(_etype997, _size994); + uint32_t _i998; + for (_i998 = 0; _i998 < _size994; ++_i998) { - std::string _elem991; - xfer += iprot->readString(_elem991); - this->tablesUsed.insert(_elem991); + std::string _elem999; + xfer += iprot->readString(_elem999); + this->tablesUsed.insert(_elem999); } xfer += iprot->readSetEnd(); } @@ -24823,10 +25394,10 @@ uint32_t Materialization::write(::apache::thrift::protocol::TProtocol* oprot) co xfer += oprot->writeFieldBegin("tablesUsed", ::apache::thrift::protocol::T_SET, 1); { xfer += oprot->writeSetBegin(::apache::thrift::protocol::T_STRING, static_cast(this->tablesUsed.size())); - std::set ::const_iterator _iter992; - for (_iter992 = this->tablesUsed.begin(); _iter992 != this->tablesUsed.end(); ++_iter992) + std::set ::const_iterator _iter1000; + for (_iter1000 = this->tablesUsed.begin(); _iter1000 != this->tablesUsed.end(); ++_iter1000) { - xfer += oprot->writeString((*_iter992)); + xfer += oprot->writeString((*_iter1000)); } xfer += oprot->writeSetEnd(); } @@ -24861,19 +25432,19 @@ void swap(Materialization &a, Materialization &b) { swap(a.__isset, b.__isset); } -Materialization::Materialization(const Materialization& other993) { - tablesUsed = other993.tablesUsed; - validTxnList = other993.validTxnList; - invalidationTime = other993.invalidationTime; - sourceTablesUpdateDeleteModified = other993.sourceTablesUpdateDeleteModified; - __isset = other993.__isset; +Materialization::Materialization(const Materialization& other1001) { + tablesUsed = other1001.tablesUsed; + validTxnList = other1001.validTxnList; + invalidationTime = other1001.invalidationTime; + sourceTablesUpdateDeleteModified = other1001.sourceTablesUpdateDeleteModified; + __isset = other1001.__isset; } -Materialization& Materialization::operator=(const Materialization& other994) { - tablesUsed = other994.tablesUsed; - validTxnList = other994.validTxnList; - invalidationTime = other994.invalidationTime; - sourceTablesUpdateDeleteModified = other994.sourceTablesUpdateDeleteModified; - __isset = other994.__isset; +Materialization& Materialization::operator=(const Materialization& other1002) { + tablesUsed = other1002.tablesUsed; + validTxnList = other1002.validTxnList; + invalidationTime = other1002.invalidationTime; + sourceTablesUpdateDeleteModified = other1002.sourceTablesUpdateDeleteModified; + __isset = other1002.__isset; return *this; } void Materialization::printTo(std::ostream& out) const { @@ -24942,9 +25513,9 @@ uint32_t WMResourcePlan::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast995; - xfer += iprot->readI32(ecast995); - this->status = (WMResourcePlanStatus::type)ecast995; + int32_t ecast1003; + xfer += iprot->readI32(ecast1003); + this->status = (WMResourcePlanStatus::type)ecast1003; this->__isset.status = true; } else { xfer += iprot->skip(ftype); @@ -25018,19 +25589,19 @@ void swap(WMResourcePlan &a, WMResourcePlan &b) { swap(a.__isset, b.__isset); } -WMResourcePlan::WMResourcePlan(const WMResourcePlan& other996) { - name = other996.name; - status = other996.status; - queryParallelism = other996.queryParallelism; - defaultPoolPath = other996.defaultPoolPath; - __isset = other996.__isset; +WMResourcePlan::WMResourcePlan(const WMResourcePlan& other1004) { + name = other1004.name; + status = other1004.status; + queryParallelism = other1004.queryParallelism; + defaultPoolPath = other1004.defaultPoolPath; + __isset = other1004.__isset; } -WMResourcePlan& WMResourcePlan::operator=(const WMResourcePlan& other997) { - name = other997.name; - status = other997.status; - queryParallelism = other997.queryParallelism; - defaultPoolPath = other997.defaultPoolPath; - __isset = other997.__isset; +WMResourcePlan& WMResourcePlan::operator=(const WMResourcePlan& other1005) { + name = other1005.name; + status = other1005.status; + queryParallelism = other1005.queryParallelism; + defaultPoolPath = other1005.defaultPoolPath; + __isset = other1005.__isset; return *this; } void WMResourcePlan::printTo(std::ostream& out) const { @@ -25109,9 +25680,9 @@ uint32_t WMNullableResourcePlan::read(::apache::thrift::protocol::TProtocol* ipr break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast998; - xfer += iprot->readI32(ecast998); - this->status = (WMResourcePlanStatus::type)ecast998; + int32_t ecast1006; + xfer += iprot->readI32(ecast1006); + this->status = (WMResourcePlanStatus::type)ecast1006; this->__isset.status = true; } else { xfer += iprot->skip(ftype); @@ -25212,23 +25783,23 @@ void swap(WMNullableResourcePlan &a, WMNullableResourcePlan &b) { swap(a.__isset, b.__isset); } -WMNullableResourcePlan::WMNullableResourcePlan(const WMNullableResourcePlan& other999) { - name = other999.name; - status = other999.status; - queryParallelism = other999.queryParallelism; - isSetQueryParallelism = other999.isSetQueryParallelism; - defaultPoolPath = other999.defaultPoolPath; - isSetDefaultPoolPath = other999.isSetDefaultPoolPath; - __isset = other999.__isset; -} -WMNullableResourcePlan& WMNullableResourcePlan::operator=(const WMNullableResourcePlan& other1000) { - name = other1000.name; - status = other1000.status; - queryParallelism = other1000.queryParallelism; - isSetQueryParallelism = other1000.isSetQueryParallelism; - defaultPoolPath = other1000.defaultPoolPath; - isSetDefaultPoolPath = other1000.isSetDefaultPoolPath; - __isset = other1000.__isset; +WMNullableResourcePlan::WMNullableResourcePlan(const WMNullableResourcePlan& other1007) { + name = other1007.name; + status = other1007.status; + queryParallelism = other1007.queryParallelism; + isSetQueryParallelism = other1007.isSetQueryParallelism; + defaultPoolPath = other1007.defaultPoolPath; + isSetDefaultPoolPath = other1007.isSetDefaultPoolPath; + __isset = other1007.__isset; +} +WMNullableResourcePlan& WMNullableResourcePlan::operator=(const WMNullableResourcePlan& other1008) { + name = other1008.name; + status = other1008.status; + queryParallelism = other1008.queryParallelism; + isSetQueryParallelism = other1008.isSetQueryParallelism; + defaultPoolPath = other1008.defaultPoolPath; + isSetDefaultPoolPath = other1008.isSetDefaultPoolPath; + __isset = other1008.__isset; return *this; } void WMNullableResourcePlan::printTo(std::ostream& out) const { @@ -25393,21 +25964,21 @@ void swap(WMPool &a, WMPool &b) { swap(a.__isset, b.__isset); } -WMPool::WMPool(const WMPool& other1001) { - resourcePlanName = other1001.resourcePlanName; - poolPath = other1001.poolPath; - allocFraction = other1001.allocFraction; - queryParallelism = other1001.queryParallelism; - schedulingPolicy = other1001.schedulingPolicy; - __isset = other1001.__isset; -} -WMPool& WMPool::operator=(const WMPool& other1002) { - resourcePlanName = other1002.resourcePlanName; - poolPath = other1002.poolPath; - allocFraction = other1002.allocFraction; - queryParallelism = other1002.queryParallelism; - schedulingPolicy = other1002.schedulingPolicy; - __isset = other1002.__isset; +WMPool::WMPool(const WMPool& other1009) { + resourcePlanName = other1009.resourcePlanName; + poolPath = other1009.poolPath; + allocFraction = other1009.allocFraction; + queryParallelism = other1009.queryParallelism; + schedulingPolicy = other1009.schedulingPolicy; + __isset = other1009.__isset; +} +WMPool& WMPool::operator=(const WMPool& other1010) { + resourcePlanName = other1010.resourcePlanName; + poolPath = other1010.poolPath; + allocFraction = other1010.allocFraction; + queryParallelism = other1010.queryParallelism; + schedulingPolicy = other1010.schedulingPolicy; + __isset = other1010.__isset; return *this; } void WMPool::printTo(std::ostream& out) const { @@ -25590,23 +26161,23 @@ void swap(WMNullablePool &a, WMNullablePool &b) { swap(a.__isset, b.__isset); } -WMNullablePool::WMNullablePool(const WMNullablePool& other1003) { - resourcePlanName = other1003.resourcePlanName; - poolPath = other1003.poolPath; - allocFraction = other1003.allocFraction; - queryParallelism = other1003.queryParallelism; - schedulingPolicy = other1003.schedulingPolicy; - isSetSchedulingPolicy = other1003.isSetSchedulingPolicy; - __isset = other1003.__isset; -} -WMNullablePool& WMNullablePool::operator=(const WMNullablePool& other1004) { - resourcePlanName = other1004.resourcePlanName; - poolPath = other1004.poolPath; - allocFraction = other1004.allocFraction; - queryParallelism = other1004.queryParallelism; - schedulingPolicy = other1004.schedulingPolicy; - isSetSchedulingPolicy = other1004.isSetSchedulingPolicy; - __isset = other1004.__isset; +WMNullablePool::WMNullablePool(const WMNullablePool& other1011) { + resourcePlanName = other1011.resourcePlanName; + poolPath = other1011.poolPath; + allocFraction = other1011.allocFraction; + queryParallelism = other1011.queryParallelism; + schedulingPolicy = other1011.schedulingPolicy; + isSetSchedulingPolicy = other1011.isSetSchedulingPolicy; + __isset = other1011.__isset; +} +WMNullablePool& WMNullablePool::operator=(const WMNullablePool& other1012) { + resourcePlanName = other1012.resourcePlanName; + poolPath = other1012.poolPath; + allocFraction = other1012.allocFraction; + queryParallelism = other1012.queryParallelism; + schedulingPolicy = other1012.schedulingPolicy; + isSetSchedulingPolicy = other1012.isSetSchedulingPolicy; + __isset = other1012.__isset; return *this; } void WMNullablePool::printTo(std::ostream& out) const { @@ -25771,21 +26342,21 @@ void swap(WMTrigger &a, WMTrigger &b) { swap(a.__isset, b.__isset); } -WMTrigger::WMTrigger(const WMTrigger& other1005) { - resourcePlanName = other1005.resourcePlanName; - triggerName = other1005.triggerName; - triggerExpression = other1005.triggerExpression; - actionExpression = other1005.actionExpression; - isInUnmanaged = other1005.isInUnmanaged; - __isset = other1005.__isset; -} -WMTrigger& WMTrigger::operator=(const WMTrigger& other1006) { - resourcePlanName = other1006.resourcePlanName; - triggerName = other1006.triggerName; - triggerExpression = other1006.triggerExpression; - actionExpression = other1006.actionExpression; - isInUnmanaged = other1006.isInUnmanaged; - __isset = other1006.__isset; +WMTrigger::WMTrigger(const WMTrigger& other1013) { + resourcePlanName = other1013.resourcePlanName; + triggerName = other1013.triggerName; + triggerExpression = other1013.triggerExpression; + actionExpression = other1013.actionExpression; + isInUnmanaged = other1013.isInUnmanaged; + __isset = other1013.__isset; +} +WMTrigger& WMTrigger::operator=(const WMTrigger& other1014) { + resourcePlanName = other1014.resourcePlanName; + triggerName = other1014.triggerName; + triggerExpression = other1014.triggerExpression; + actionExpression = other1014.actionExpression; + isInUnmanaged = other1014.isInUnmanaged; + __isset = other1014.__isset; return *this; } void WMTrigger::printTo(std::ostream& out) const { @@ -25950,21 +26521,21 @@ void swap(WMMapping &a, WMMapping &b) { swap(a.__isset, b.__isset); } -WMMapping::WMMapping(const WMMapping& other1007) { - resourcePlanName = other1007.resourcePlanName; - entityType = other1007.entityType; - entityName = other1007.entityName; - poolPath = other1007.poolPath; - ordering = other1007.ordering; - __isset = other1007.__isset; -} -WMMapping& WMMapping::operator=(const WMMapping& other1008) { - resourcePlanName = other1008.resourcePlanName; - entityType = other1008.entityType; - entityName = other1008.entityName; - poolPath = other1008.poolPath; - ordering = other1008.ordering; - __isset = other1008.__isset; +WMMapping::WMMapping(const WMMapping& other1015) { + resourcePlanName = other1015.resourcePlanName; + entityType = other1015.entityType; + entityName = other1015.entityName; + poolPath = other1015.poolPath; + ordering = other1015.ordering; + __isset = other1015.__isset; +} +WMMapping& WMMapping::operator=(const WMMapping& other1016) { + resourcePlanName = other1016.resourcePlanName; + entityType = other1016.entityType; + entityName = other1016.entityName; + poolPath = other1016.poolPath; + ordering = other1016.ordering; + __isset = other1016.__isset; return *this; } void WMMapping::printTo(std::ostream& out) const { @@ -26070,13 +26641,13 @@ void swap(WMPoolTrigger &a, WMPoolTrigger &b) { swap(a.trigger, b.trigger); } -WMPoolTrigger::WMPoolTrigger(const WMPoolTrigger& other1009) { - pool = other1009.pool; - trigger = other1009.trigger; +WMPoolTrigger::WMPoolTrigger(const WMPoolTrigger& other1017) { + pool = other1017.pool; + trigger = other1017.trigger; } -WMPoolTrigger& WMPoolTrigger::operator=(const WMPoolTrigger& other1010) { - pool = other1010.pool; - trigger = other1010.trigger; +WMPoolTrigger& WMPoolTrigger::operator=(const WMPoolTrigger& other1018) { + pool = other1018.pool; + trigger = other1018.trigger; return *this; } void WMPoolTrigger::printTo(std::ostream& out) const { @@ -26150,14 +26721,14 @@ uint32_t WMFullResourcePlan::read(::apache::thrift::protocol::TProtocol* iprot) if (ftype == ::apache::thrift::protocol::T_LIST) { { this->pools.clear(); - uint32_t _size1011; - ::apache::thrift::protocol::TType _etype1014; - xfer += iprot->readListBegin(_etype1014, _size1011); - this->pools.resize(_size1011); - uint32_t _i1015; - for (_i1015 = 0; _i1015 < _size1011; ++_i1015) + uint32_t _size1019; + ::apache::thrift::protocol::TType _etype1022; + xfer += iprot->readListBegin(_etype1022, _size1019); + this->pools.resize(_size1019); + uint32_t _i1023; + for (_i1023 = 0; _i1023 < _size1019; ++_i1023) { - xfer += this->pools[_i1015].read(iprot); + xfer += this->pools[_i1023].read(iprot); } xfer += iprot->readListEnd(); } @@ -26170,14 +26741,14 @@ uint32_t WMFullResourcePlan::read(::apache::thrift::protocol::TProtocol* iprot) if (ftype == ::apache::thrift::protocol::T_LIST) { { this->mappings.clear(); - uint32_t _size1016; - ::apache::thrift::protocol::TType _etype1019; - xfer += iprot->readListBegin(_etype1019, _size1016); - this->mappings.resize(_size1016); - uint32_t _i1020; - for (_i1020 = 0; _i1020 < _size1016; ++_i1020) + uint32_t _size1024; + ::apache::thrift::protocol::TType _etype1027; + xfer += iprot->readListBegin(_etype1027, _size1024); + this->mappings.resize(_size1024); + uint32_t _i1028; + for (_i1028 = 0; _i1028 < _size1024; ++_i1028) { - xfer += this->mappings[_i1020].read(iprot); + xfer += this->mappings[_i1028].read(iprot); } xfer += iprot->readListEnd(); } @@ -26190,14 +26761,14 @@ uint32_t WMFullResourcePlan::read(::apache::thrift::protocol::TProtocol* iprot) if (ftype == ::apache::thrift::protocol::T_LIST) { { this->triggers.clear(); - uint32_t _size1021; - ::apache::thrift::protocol::TType _etype1024; - xfer += iprot->readListBegin(_etype1024, _size1021); - this->triggers.resize(_size1021); - uint32_t _i1025; - for (_i1025 = 0; _i1025 < _size1021; ++_i1025) + uint32_t _size1029; + ::apache::thrift::protocol::TType _etype1032; + xfer += iprot->readListBegin(_etype1032, _size1029); + this->triggers.resize(_size1029); + uint32_t _i1033; + for (_i1033 = 0; _i1033 < _size1029; ++_i1033) { - xfer += this->triggers[_i1025].read(iprot); + xfer += this->triggers[_i1033].read(iprot); } xfer += iprot->readListEnd(); } @@ -26210,14 +26781,14 @@ uint32_t WMFullResourcePlan::read(::apache::thrift::protocol::TProtocol* iprot) if (ftype == ::apache::thrift::protocol::T_LIST) { { this->poolTriggers.clear(); - uint32_t _size1026; - ::apache::thrift::protocol::TType _etype1029; - xfer += iprot->readListBegin(_etype1029, _size1026); - this->poolTriggers.resize(_size1026); - uint32_t _i1030; - for (_i1030 = 0; _i1030 < _size1026; ++_i1030) + uint32_t _size1034; + ::apache::thrift::protocol::TType _etype1037; + xfer += iprot->readListBegin(_etype1037, _size1034); + this->poolTriggers.resize(_size1034); + uint32_t _i1038; + for (_i1038 = 0; _i1038 < _size1034; ++_i1038) { - xfer += this->poolTriggers[_i1030].read(iprot); + xfer += this->poolTriggers[_i1038].read(iprot); } xfer += iprot->readListEnd(); } @@ -26254,10 +26825,10 @@ uint32_t WMFullResourcePlan::write(::apache::thrift::protocol::TProtocol* oprot) xfer += oprot->writeFieldBegin("pools", ::apache::thrift::protocol::T_LIST, 2); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->pools.size())); - std::vector ::const_iterator _iter1031; - for (_iter1031 = this->pools.begin(); _iter1031 != this->pools.end(); ++_iter1031) + std::vector ::const_iterator _iter1039; + for (_iter1039 = this->pools.begin(); _iter1039 != this->pools.end(); ++_iter1039) { - xfer += (*_iter1031).write(oprot); + xfer += (*_iter1039).write(oprot); } xfer += oprot->writeListEnd(); } @@ -26267,10 +26838,10 @@ uint32_t WMFullResourcePlan::write(::apache::thrift::protocol::TProtocol* oprot) xfer += oprot->writeFieldBegin("mappings", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->mappings.size())); - std::vector ::const_iterator _iter1032; - for (_iter1032 = this->mappings.begin(); _iter1032 != this->mappings.end(); ++_iter1032) + std::vector ::const_iterator _iter1040; + for (_iter1040 = this->mappings.begin(); _iter1040 != this->mappings.end(); ++_iter1040) { - xfer += (*_iter1032).write(oprot); + xfer += (*_iter1040).write(oprot); } xfer += oprot->writeListEnd(); } @@ -26280,10 +26851,10 @@ uint32_t WMFullResourcePlan::write(::apache::thrift::protocol::TProtocol* oprot) xfer += oprot->writeFieldBegin("triggers", ::apache::thrift::protocol::T_LIST, 4); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->triggers.size())); - std::vector ::const_iterator _iter1033; - for (_iter1033 = this->triggers.begin(); _iter1033 != this->triggers.end(); ++_iter1033) + std::vector ::const_iterator _iter1041; + for (_iter1041 = this->triggers.begin(); _iter1041 != this->triggers.end(); ++_iter1041) { - xfer += (*_iter1033).write(oprot); + xfer += (*_iter1041).write(oprot); } xfer += oprot->writeListEnd(); } @@ -26293,10 +26864,10 @@ uint32_t WMFullResourcePlan::write(::apache::thrift::protocol::TProtocol* oprot) xfer += oprot->writeFieldBegin("poolTriggers", ::apache::thrift::protocol::T_LIST, 5); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->poolTriggers.size())); - std::vector ::const_iterator _iter1034; - for (_iter1034 = this->poolTriggers.begin(); _iter1034 != this->poolTriggers.end(); ++_iter1034) + std::vector ::const_iterator _iter1042; + for (_iter1042 = this->poolTriggers.begin(); _iter1042 != this->poolTriggers.end(); ++_iter1042) { - xfer += (*_iter1034).write(oprot); + xfer += (*_iter1042).write(oprot); } xfer += oprot->writeListEnd(); } @@ -26317,21 +26888,21 @@ void swap(WMFullResourcePlan &a, WMFullResourcePlan &b) { swap(a.__isset, b.__isset); } -WMFullResourcePlan::WMFullResourcePlan(const WMFullResourcePlan& other1035) { - plan = other1035.plan; - pools = other1035.pools; - mappings = other1035.mappings; - triggers = other1035.triggers; - poolTriggers = other1035.poolTriggers; - __isset = other1035.__isset; -} -WMFullResourcePlan& WMFullResourcePlan::operator=(const WMFullResourcePlan& other1036) { - plan = other1036.plan; - pools = other1036.pools; - mappings = other1036.mappings; - triggers = other1036.triggers; - poolTriggers = other1036.poolTriggers; - __isset = other1036.__isset; +WMFullResourcePlan::WMFullResourcePlan(const WMFullResourcePlan& other1043) { + plan = other1043.plan; + pools = other1043.pools; + mappings = other1043.mappings; + triggers = other1043.triggers; + poolTriggers = other1043.poolTriggers; + __isset = other1043.__isset; +} +WMFullResourcePlan& WMFullResourcePlan::operator=(const WMFullResourcePlan& other1044) { + plan = other1044.plan; + pools = other1044.pools; + mappings = other1044.mappings; + triggers = other1044.triggers; + poolTriggers = other1044.poolTriggers; + __isset = other1044.__isset; return *this; } void WMFullResourcePlan::printTo(std::ostream& out) const { @@ -26436,15 +27007,15 @@ void swap(WMCreateResourcePlanRequest &a, WMCreateResourcePlanRequest &b) { swap(a.__isset, b.__isset); } -WMCreateResourcePlanRequest::WMCreateResourcePlanRequest(const WMCreateResourcePlanRequest& other1037) { - resourcePlan = other1037.resourcePlan; - copyFrom = other1037.copyFrom; - __isset = other1037.__isset; +WMCreateResourcePlanRequest::WMCreateResourcePlanRequest(const WMCreateResourcePlanRequest& other1045) { + resourcePlan = other1045.resourcePlan; + copyFrom = other1045.copyFrom; + __isset = other1045.__isset; } -WMCreateResourcePlanRequest& WMCreateResourcePlanRequest::operator=(const WMCreateResourcePlanRequest& other1038) { - resourcePlan = other1038.resourcePlan; - copyFrom = other1038.copyFrom; - __isset = other1038.__isset; +WMCreateResourcePlanRequest& WMCreateResourcePlanRequest::operator=(const WMCreateResourcePlanRequest& other1046) { + resourcePlan = other1046.resourcePlan; + copyFrom = other1046.copyFrom; + __isset = other1046.__isset; return *this; } void WMCreateResourcePlanRequest::printTo(std::ostream& out) const { @@ -26504,11 +27075,11 @@ void swap(WMCreateResourcePlanResponse &a, WMCreateResourcePlanResponse &b) { (void) b; } -WMCreateResourcePlanResponse::WMCreateResourcePlanResponse(const WMCreateResourcePlanResponse& other1039) { - (void) other1039; +WMCreateResourcePlanResponse::WMCreateResourcePlanResponse(const WMCreateResourcePlanResponse& other1047) { + (void) other1047; } -WMCreateResourcePlanResponse& WMCreateResourcePlanResponse::operator=(const WMCreateResourcePlanResponse& other1040) { - (void) other1040; +WMCreateResourcePlanResponse& WMCreateResourcePlanResponse::operator=(const WMCreateResourcePlanResponse& other1048) { + (void) other1048; return *this; } void WMCreateResourcePlanResponse::printTo(std::ostream& out) const { @@ -26566,11 +27137,11 @@ void swap(WMGetActiveResourcePlanRequest &a, WMGetActiveResourcePlanRequest &b) (void) b; } -WMGetActiveResourcePlanRequest::WMGetActiveResourcePlanRequest(const WMGetActiveResourcePlanRequest& other1041) { - (void) other1041; +WMGetActiveResourcePlanRequest::WMGetActiveResourcePlanRequest(const WMGetActiveResourcePlanRequest& other1049) { + (void) other1049; } -WMGetActiveResourcePlanRequest& WMGetActiveResourcePlanRequest::operator=(const WMGetActiveResourcePlanRequest& other1042) { - (void) other1042; +WMGetActiveResourcePlanRequest& WMGetActiveResourcePlanRequest::operator=(const WMGetActiveResourcePlanRequest& other1050) { + (void) other1050; return *this; } void WMGetActiveResourcePlanRequest::printTo(std::ostream& out) const { @@ -26651,13 +27222,13 @@ void swap(WMGetActiveResourcePlanResponse &a, WMGetActiveResourcePlanResponse &b swap(a.__isset, b.__isset); } -WMGetActiveResourcePlanResponse::WMGetActiveResourcePlanResponse(const WMGetActiveResourcePlanResponse& other1043) { - resourcePlan = other1043.resourcePlan; - __isset = other1043.__isset; +WMGetActiveResourcePlanResponse::WMGetActiveResourcePlanResponse(const WMGetActiveResourcePlanResponse& other1051) { + resourcePlan = other1051.resourcePlan; + __isset = other1051.__isset; } -WMGetActiveResourcePlanResponse& WMGetActiveResourcePlanResponse::operator=(const WMGetActiveResourcePlanResponse& other1044) { - resourcePlan = other1044.resourcePlan; - __isset = other1044.__isset; +WMGetActiveResourcePlanResponse& WMGetActiveResourcePlanResponse::operator=(const WMGetActiveResourcePlanResponse& other1052) { + resourcePlan = other1052.resourcePlan; + __isset = other1052.__isset; return *this; } void WMGetActiveResourcePlanResponse::printTo(std::ostream& out) const { @@ -26739,13 +27310,13 @@ void swap(WMGetResourcePlanRequest &a, WMGetResourcePlanRequest &b) { swap(a.__isset, b.__isset); } -WMGetResourcePlanRequest::WMGetResourcePlanRequest(const WMGetResourcePlanRequest& other1045) { - resourcePlanName = other1045.resourcePlanName; - __isset = other1045.__isset; +WMGetResourcePlanRequest::WMGetResourcePlanRequest(const WMGetResourcePlanRequest& other1053) { + resourcePlanName = other1053.resourcePlanName; + __isset = other1053.__isset; } -WMGetResourcePlanRequest& WMGetResourcePlanRequest::operator=(const WMGetResourcePlanRequest& other1046) { - resourcePlanName = other1046.resourcePlanName; - __isset = other1046.__isset; +WMGetResourcePlanRequest& WMGetResourcePlanRequest::operator=(const WMGetResourcePlanRequest& other1054) { + resourcePlanName = other1054.resourcePlanName; + __isset = other1054.__isset; return *this; } void WMGetResourcePlanRequest::printTo(std::ostream& out) const { @@ -26827,13 +27398,13 @@ void swap(WMGetResourcePlanResponse &a, WMGetResourcePlanResponse &b) { swap(a.__isset, b.__isset); } -WMGetResourcePlanResponse::WMGetResourcePlanResponse(const WMGetResourcePlanResponse& other1047) { - resourcePlan = other1047.resourcePlan; - __isset = other1047.__isset; +WMGetResourcePlanResponse::WMGetResourcePlanResponse(const WMGetResourcePlanResponse& other1055) { + resourcePlan = other1055.resourcePlan; + __isset = other1055.__isset; } -WMGetResourcePlanResponse& WMGetResourcePlanResponse::operator=(const WMGetResourcePlanResponse& other1048) { - resourcePlan = other1048.resourcePlan; - __isset = other1048.__isset; +WMGetResourcePlanResponse& WMGetResourcePlanResponse::operator=(const WMGetResourcePlanResponse& other1056) { + resourcePlan = other1056.resourcePlan; + __isset = other1056.__isset; return *this; } void WMGetResourcePlanResponse::printTo(std::ostream& out) const { @@ -26892,11 +27463,11 @@ void swap(WMGetAllResourcePlanRequest &a, WMGetAllResourcePlanRequest &b) { (void) b; } -WMGetAllResourcePlanRequest::WMGetAllResourcePlanRequest(const WMGetAllResourcePlanRequest& other1049) { - (void) other1049; +WMGetAllResourcePlanRequest::WMGetAllResourcePlanRequest(const WMGetAllResourcePlanRequest& other1057) { + (void) other1057; } -WMGetAllResourcePlanRequest& WMGetAllResourcePlanRequest::operator=(const WMGetAllResourcePlanRequest& other1050) { - (void) other1050; +WMGetAllResourcePlanRequest& WMGetAllResourcePlanRequest::operator=(const WMGetAllResourcePlanRequest& other1058) { + (void) other1058; return *this; } void WMGetAllResourcePlanRequest::printTo(std::ostream& out) const { @@ -26940,14 +27511,14 @@ uint32_t WMGetAllResourcePlanResponse::read(::apache::thrift::protocol::TProtoco if (ftype == ::apache::thrift::protocol::T_LIST) { { this->resourcePlans.clear(); - uint32_t _size1051; - ::apache::thrift::protocol::TType _etype1054; - xfer += iprot->readListBegin(_etype1054, _size1051); - this->resourcePlans.resize(_size1051); - uint32_t _i1055; - for (_i1055 = 0; _i1055 < _size1051; ++_i1055) + uint32_t _size1059; + ::apache::thrift::protocol::TType _etype1062; + xfer += iprot->readListBegin(_etype1062, _size1059); + this->resourcePlans.resize(_size1059); + uint32_t _i1063; + for (_i1063 = 0; _i1063 < _size1059; ++_i1063) { - xfer += this->resourcePlans[_i1055].read(iprot); + xfer += this->resourcePlans[_i1063].read(iprot); } xfer += iprot->readListEnd(); } @@ -26977,10 +27548,10 @@ uint32_t WMGetAllResourcePlanResponse::write(::apache::thrift::protocol::TProtoc xfer += oprot->writeFieldBegin("resourcePlans", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->resourcePlans.size())); - std::vector ::const_iterator _iter1056; - for (_iter1056 = this->resourcePlans.begin(); _iter1056 != this->resourcePlans.end(); ++_iter1056) + std::vector ::const_iterator _iter1064; + for (_iter1064 = this->resourcePlans.begin(); _iter1064 != this->resourcePlans.end(); ++_iter1064) { - xfer += (*_iter1056).write(oprot); + xfer += (*_iter1064).write(oprot); } xfer += oprot->writeListEnd(); } @@ -26997,13 +27568,13 @@ void swap(WMGetAllResourcePlanResponse &a, WMGetAllResourcePlanResponse &b) { swap(a.__isset, b.__isset); } -WMGetAllResourcePlanResponse::WMGetAllResourcePlanResponse(const WMGetAllResourcePlanResponse& other1057) { - resourcePlans = other1057.resourcePlans; - __isset = other1057.__isset; +WMGetAllResourcePlanResponse::WMGetAllResourcePlanResponse(const WMGetAllResourcePlanResponse& other1065) { + resourcePlans = other1065.resourcePlans; + __isset = other1065.__isset; } -WMGetAllResourcePlanResponse& WMGetAllResourcePlanResponse::operator=(const WMGetAllResourcePlanResponse& other1058) { - resourcePlans = other1058.resourcePlans; - __isset = other1058.__isset; +WMGetAllResourcePlanResponse& WMGetAllResourcePlanResponse::operator=(const WMGetAllResourcePlanResponse& other1066) { + resourcePlans = other1066.resourcePlans; + __isset = other1066.__isset; return *this; } void WMGetAllResourcePlanResponse::printTo(std::ostream& out) const { @@ -27161,21 +27732,21 @@ void swap(WMAlterResourcePlanRequest &a, WMAlterResourcePlanRequest &b) { swap(a.__isset, b.__isset); } -WMAlterResourcePlanRequest::WMAlterResourcePlanRequest(const WMAlterResourcePlanRequest& other1059) { - resourcePlanName = other1059.resourcePlanName; - resourcePlan = other1059.resourcePlan; - isEnableAndActivate = other1059.isEnableAndActivate; - isForceDeactivate = other1059.isForceDeactivate; - isReplace = other1059.isReplace; - __isset = other1059.__isset; -} -WMAlterResourcePlanRequest& WMAlterResourcePlanRequest::operator=(const WMAlterResourcePlanRequest& other1060) { - resourcePlanName = other1060.resourcePlanName; - resourcePlan = other1060.resourcePlan; - isEnableAndActivate = other1060.isEnableAndActivate; - isForceDeactivate = other1060.isForceDeactivate; - isReplace = other1060.isReplace; - __isset = other1060.__isset; +WMAlterResourcePlanRequest::WMAlterResourcePlanRequest(const WMAlterResourcePlanRequest& other1067) { + resourcePlanName = other1067.resourcePlanName; + resourcePlan = other1067.resourcePlan; + isEnableAndActivate = other1067.isEnableAndActivate; + isForceDeactivate = other1067.isForceDeactivate; + isReplace = other1067.isReplace; + __isset = other1067.__isset; +} +WMAlterResourcePlanRequest& WMAlterResourcePlanRequest::operator=(const WMAlterResourcePlanRequest& other1068) { + resourcePlanName = other1068.resourcePlanName; + resourcePlan = other1068.resourcePlan; + isEnableAndActivate = other1068.isEnableAndActivate; + isForceDeactivate = other1068.isForceDeactivate; + isReplace = other1068.isReplace; + __isset = other1068.__isset; return *this; } void WMAlterResourcePlanRequest::printTo(std::ostream& out) const { @@ -27261,13 +27832,13 @@ void swap(WMAlterResourcePlanResponse &a, WMAlterResourcePlanResponse &b) { swap(a.__isset, b.__isset); } -WMAlterResourcePlanResponse::WMAlterResourcePlanResponse(const WMAlterResourcePlanResponse& other1061) { - fullResourcePlan = other1061.fullResourcePlan; - __isset = other1061.__isset; +WMAlterResourcePlanResponse::WMAlterResourcePlanResponse(const WMAlterResourcePlanResponse& other1069) { + fullResourcePlan = other1069.fullResourcePlan; + __isset = other1069.__isset; } -WMAlterResourcePlanResponse& WMAlterResourcePlanResponse::operator=(const WMAlterResourcePlanResponse& other1062) { - fullResourcePlan = other1062.fullResourcePlan; - __isset = other1062.__isset; +WMAlterResourcePlanResponse& WMAlterResourcePlanResponse::operator=(const WMAlterResourcePlanResponse& other1070) { + fullResourcePlan = other1070.fullResourcePlan; + __isset = other1070.__isset; return *this; } void WMAlterResourcePlanResponse::printTo(std::ostream& out) const { @@ -27349,13 +27920,13 @@ void swap(WMValidateResourcePlanRequest &a, WMValidateResourcePlanRequest &b) { swap(a.__isset, b.__isset); } -WMValidateResourcePlanRequest::WMValidateResourcePlanRequest(const WMValidateResourcePlanRequest& other1063) { - resourcePlanName = other1063.resourcePlanName; - __isset = other1063.__isset; +WMValidateResourcePlanRequest::WMValidateResourcePlanRequest(const WMValidateResourcePlanRequest& other1071) { + resourcePlanName = other1071.resourcePlanName; + __isset = other1071.__isset; } -WMValidateResourcePlanRequest& WMValidateResourcePlanRequest::operator=(const WMValidateResourcePlanRequest& other1064) { - resourcePlanName = other1064.resourcePlanName; - __isset = other1064.__isset; +WMValidateResourcePlanRequest& WMValidateResourcePlanRequest::operator=(const WMValidateResourcePlanRequest& other1072) { + resourcePlanName = other1072.resourcePlanName; + __isset = other1072.__isset; return *this; } void WMValidateResourcePlanRequest::printTo(std::ostream& out) const { @@ -27405,14 +27976,14 @@ uint32_t WMValidateResourcePlanResponse::read(::apache::thrift::protocol::TProto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->errors.clear(); - uint32_t _size1065; - ::apache::thrift::protocol::TType _etype1068; - xfer += iprot->readListBegin(_etype1068, _size1065); - this->errors.resize(_size1065); - uint32_t _i1069; - for (_i1069 = 0; _i1069 < _size1065; ++_i1069) + uint32_t _size1073; + ::apache::thrift::protocol::TType _etype1076; + xfer += iprot->readListBegin(_etype1076, _size1073); + this->errors.resize(_size1073); + uint32_t _i1077; + for (_i1077 = 0; _i1077 < _size1073; ++_i1077) { - xfer += iprot->readString(this->errors[_i1069]); + xfer += iprot->readString(this->errors[_i1077]); } xfer += iprot->readListEnd(); } @@ -27425,14 +27996,14 @@ uint32_t WMValidateResourcePlanResponse::read(::apache::thrift::protocol::TProto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->warnings.clear(); - uint32_t _size1070; - ::apache::thrift::protocol::TType _etype1073; - xfer += iprot->readListBegin(_etype1073, _size1070); - this->warnings.resize(_size1070); - uint32_t _i1074; - for (_i1074 = 0; _i1074 < _size1070; ++_i1074) + uint32_t _size1078; + ::apache::thrift::protocol::TType _etype1081; + xfer += iprot->readListBegin(_etype1081, _size1078); + this->warnings.resize(_size1078); + uint32_t _i1082; + for (_i1082 = 0; _i1082 < _size1078; ++_i1082) { - xfer += iprot->readString(this->warnings[_i1074]); + xfer += iprot->readString(this->warnings[_i1082]); } xfer += iprot->readListEnd(); } @@ -27462,10 +28033,10 @@ uint32_t WMValidateResourcePlanResponse::write(::apache::thrift::protocol::TProt xfer += oprot->writeFieldBegin("errors", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->errors.size())); - std::vector ::const_iterator _iter1075; - for (_iter1075 = this->errors.begin(); _iter1075 != this->errors.end(); ++_iter1075) + std::vector ::const_iterator _iter1083; + for (_iter1083 = this->errors.begin(); _iter1083 != this->errors.end(); ++_iter1083) { - xfer += oprot->writeString((*_iter1075)); + xfer += oprot->writeString((*_iter1083)); } xfer += oprot->writeListEnd(); } @@ -27475,10 +28046,10 @@ uint32_t WMValidateResourcePlanResponse::write(::apache::thrift::protocol::TProt xfer += oprot->writeFieldBegin("warnings", ::apache::thrift::protocol::T_LIST, 2); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->warnings.size())); - std::vector ::const_iterator _iter1076; - for (_iter1076 = this->warnings.begin(); _iter1076 != this->warnings.end(); ++_iter1076) + std::vector ::const_iterator _iter1084; + for (_iter1084 = this->warnings.begin(); _iter1084 != this->warnings.end(); ++_iter1084) { - xfer += oprot->writeString((*_iter1076)); + xfer += oprot->writeString((*_iter1084)); } xfer += oprot->writeListEnd(); } @@ -27496,15 +28067,15 @@ void swap(WMValidateResourcePlanResponse &a, WMValidateResourcePlanResponse &b) swap(a.__isset, b.__isset); } -WMValidateResourcePlanResponse::WMValidateResourcePlanResponse(const WMValidateResourcePlanResponse& other1077) { - errors = other1077.errors; - warnings = other1077.warnings; - __isset = other1077.__isset; +WMValidateResourcePlanResponse::WMValidateResourcePlanResponse(const WMValidateResourcePlanResponse& other1085) { + errors = other1085.errors; + warnings = other1085.warnings; + __isset = other1085.__isset; } -WMValidateResourcePlanResponse& WMValidateResourcePlanResponse::operator=(const WMValidateResourcePlanResponse& other1078) { - errors = other1078.errors; - warnings = other1078.warnings; - __isset = other1078.__isset; +WMValidateResourcePlanResponse& WMValidateResourcePlanResponse::operator=(const WMValidateResourcePlanResponse& other1086) { + errors = other1086.errors; + warnings = other1086.warnings; + __isset = other1086.__isset; return *this; } void WMValidateResourcePlanResponse::printTo(std::ostream& out) const { @@ -27587,13 +28158,13 @@ void swap(WMDropResourcePlanRequest &a, WMDropResourcePlanRequest &b) { swap(a.__isset, b.__isset); } -WMDropResourcePlanRequest::WMDropResourcePlanRequest(const WMDropResourcePlanRequest& other1079) { - resourcePlanName = other1079.resourcePlanName; - __isset = other1079.__isset; +WMDropResourcePlanRequest::WMDropResourcePlanRequest(const WMDropResourcePlanRequest& other1087) { + resourcePlanName = other1087.resourcePlanName; + __isset = other1087.__isset; } -WMDropResourcePlanRequest& WMDropResourcePlanRequest::operator=(const WMDropResourcePlanRequest& other1080) { - resourcePlanName = other1080.resourcePlanName; - __isset = other1080.__isset; +WMDropResourcePlanRequest& WMDropResourcePlanRequest::operator=(const WMDropResourcePlanRequest& other1088) { + resourcePlanName = other1088.resourcePlanName; + __isset = other1088.__isset; return *this; } void WMDropResourcePlanRequest::printTo(std::ostream& out) const { @@ -27652,11 +28223,11 @@ void swap(WMDropResourcePlanResponse &a, WMDropResourcePlanResponse &b) { (void) b; } -WMDropResourcePlanResponse::WMDropResourcePlanResponse(const WMDropResourcePlanResponse& other1081) { - (void) other1081; +WMDropResourcePlanResponse::WMDropResourcePlanResponse(const WMDropResourcePlanResponse& other1089) { + (void) other1089; } -WMDropResourcePlanResponse& WMDropResourcePlanResponse::operator=(const WMDropResourcePlanResponse& other1082) { - (void) other1082; +WMDropResourcePlanResponse& WMDropResourcePlanResponse::operator=(const WMDropResourcePlanResponse& other1090) { + (void) other1090; return *this; } void WMDropResourcePlanResponse::printTo(std::ostream& out) const { @@ -27737,13 +28308,13 @@ void swap(WMCreateTriggerRequest &a, WMCreateTriggerRequest &b) { swap(a.__isset, b.__isset); } -WMCreateTriggerRequest::WMCreateTriggerRequest(const WMCreateTriggerRequest& other1083) { - trigger = other1083.trigger; - __isset = other1083.__isset; +WMCreateTriggerRequest::WMCreateTriggerRequest(const WMCreateTriggerRequest& other1091) { + trigger = other1091.trigger; + __isset = other1091.__isset; } -WMCreateTriggerRequest& WMCreateTriggerRequest::operator=(const WMCreateTriggerRequest& other1084) { - trigger = other1084.trigger; - __isset = other1084.__isset; +WMCreateTriggerRequest& WMCreateTriggerRequest::operator=(const WMCreateTriggerRequest& other1092) { + trigger = other1092.trigger; + __isset = other1092.__isset; return *this; } void WMCreateTriggerRequest::printTo(std::ostream& out) const { @@ -27802,11 +28373,11 @@ void swap(WMCreateTriggerResponse &a, WMCreateTriggerResponse &b) { (void) b; } -WMCreateTriggerResponse::WMCreateTriggerResponse(const WMCreateTriggerResponse& other1085) { - (void) other1085; +WMCreateTriggerResponse::WMCreateTriggerResponse(const WMCreateTriggerResponse& other1093) { + (void) other1093; } -WMCreateTriggerResponse& WMCreateTriggerResponse::operator=(const WMCreateTriggerResponse& other1086) { - (void) other1086; +WMCreateTriggerResponse& WMCreateTriggerResponse::operator=(const WMCreateTriggerResponse& other1094) { + (void) other1094; return *this; } void WMCreateTriggerResponse::printTo(std::ostream& out) const { @@ -27887,13 +28458,13 @@ void swap(WMAlterTriggerRequest &a, WMAlterTriggerRequest &b) { swap(a.__isset, b.__isset); } -WMAlterTriggerRequest::WMAlterTriggerRequest(const WMAlterTriggerRequest& other1087) { - trigger = other1087.trigger; - __isset = other1087.__isset; +WMAlterTriggerRequest::WMAlterTriggerRequest(const WMAlterTriggerRequest& other1095) { + trigger = other1095.trigger; + __isset = other1095.__isset; } -WMAlterTriggerRequest& WMAlterTriggerRequest::operator=(const WMAlterTriggerRequest& other1088) { - trigger = other1088.trigger; - __isset = other1088.__isset; +WMAlterTriggerRequest& WMAlterTriggerRequest::operator=(const WMAlterTriggerRequest& other1096) { + trigger = other1096.trigger; + __isset = other1096.__isset; return *this; } void WMAlterTriggerRequest::printTo(std::ostream& out) const { @@ -27952,11 +28523,11 @@ void swap(WMAlterTriggerResponse &a, WMAlterTriggerResponse &b) { (void) b; } -WMAlterTriggerResponse::WMAlterTriggerResponse(const WMAlterTriggerResponse& other1089) { - (void) other1089; +WMAlterTriggerResponse::WMAlterTriggerResponse(const WMAlterTriggerResponse& other1097) { + (void) other1097; } -WMAlterTriggerResponse& WMAlterTriggerResponse::operator=(const WMAlterTriggerResponse& other1090) { - (void) other1090; +WMAlterTriggerResponse& WMAlterTriggerResponse::operator=(const WMAlterTriggerResponse& other1098) { + (void) other1098; return *this; } void WMAlterTriggerResponse::printTo(std::ostream& out) const { @@ -28056,15 +28627,15 @@ void swap(WMDropTriggerRequest &a, WMDropTriggerRequest &b) { swap(a.__isset, b.__isset); } -WMDropTriggerRequest::WMDropTriggerRequest(const WMDropTriggerRequest& other1091) { - resourcePlanName = other1091.resourcePlanName; - triggerName = other1091.triggerName; - __isset = other1091.__isset; +WMDropTriggerRequest::WMDropTriggerRequest(const WMDropTriggerRequest& other1099) { + resourcePlanName = other1099.resourcePlanName; + triggerName = other1099.triggerName; + __isset = other1099.__isset; } -WMDropTriggerRequest& WMDropTriggerRequest::operator=(const WMDropTriggerRequest& other1092) { - resourcePlanName = other1092.resourcePlanName; - triggerName = other1092.triggerName; - __isset = other1092.__isset; +WMDropTriggerRequest& WMDropTriggerRequest::operator=(const WMDropTriggerRequest& other1100) { + resourcePlanName = other1100.resourcePlanName; + triggerName = other1100.triggerName; + __isset = other1100.__isset; return *this; } void WMDropTriggerRequest::printTo(std::ostream& out) const { @@ -28124,11 +28695,11 @@ void swap(WMDropTriggerResponse &a, WMDropTriggerResponse &b) { (void) b; } -WMDropTriggerResponse::WMDropTriggerResponse(const WMDropTriggerResponse& other1093) { - (void) other1093; +WMDropTriggerResponse::WMDropTriggerResponse(const WMDropTriggerResponse& other1101) { + (void) other1101; } -WMDropTriggerResponse& WMDropTriggerResponse::operator=(const WMDropTriggerResponse& other1094) { - (void) other1094; +WMDropTriggerResponse& WMDropTriggerResponse::operator=(const WMDropTriggerResponse& other1102) { + (void) other1102; return *this; } void WMDropTriggerResponse::printTo(std::ostream& out) const { @@ -28209,13 +28780,13 @@ void swap(WMGetTriggersForResourePlanRequest &a, WMGetTriggersForResourePlanRequ swap(a.__isset, b.__isset); } -WMGetTriggersForResourePlanRequest::WMGetTriggersForResourePlanRequest(const WMGetTriggersForResourePlanRequest& other1095) { - resourcePlanName = other1095.resourcePlanName; - __isset = other1095.__isset; +WMGetTriggersForResourePlanRequest::WMGetTriggersForResourePlanRequest(const WMGetTriggersForResourePlanRequest& other1103) { + resourcePlanName = other1103.resourcePlanName; + __isset = other1103.__isset; } -WMGetTriggersForResourePlanRequest& WMGetTriggersForResourePlanRequest::operator=(const WMGetTriggersForResourePlanRequest& other1096) { - resourcePlanName = other1096.resourcePlanName; - __isset = other1096.__isset; +WMGetTriggersForResourePlanRequest& WMGetTriggersForResourePlanRequest::operator=(const WMGetTriggersForResourePlanRequest& other1104) { + resourcePlanName = other1104.resourcePlanName; + __isset = other1104.__isset; return *this; } void WMGetTriggersForResourePlanRequest::printTo(std::ostream& out) const { @@ -28260,14 +28831,14 @@ uint32_t WMGetTriggersForResourePlanResponse::read(::apache::thrift::protocol::T if (ftype == ::apache::thrift::protocol::T_LIST) { { this->triggers.clear(); - uint32_t _size1097; - ::apache::thrift::protocol::TType _etype1100; - xfer += iprot->readListBegin(_etype1100, _size1097); - this->triggers.resize(_size1097); - uint32_t _i1101; - for (_i1101 = 0; _i1101 < _size1097; ++_i1101) + uint32_t _size1105; + ::apache::thrift::protocol::TType _etype1108; + xfer += iprot->readListBegin(_etype1108, _size1105); + this->triggers.resize(_size1105); + uint32_t _i1109; + for (_i1109 = 0; _i1109 < _size1105; ++_i1109) { - xfer += this->triggers[_i1101].read(iprot); + xfer += this->triggers[_i1109].read(iprot); } xfer += iprot->readListEnd(); } @@ -28297,10 +28868,10 @@ uint32_t WMGetTriggersForResourePlanResponse::write(::apache::thrift::protocol:: xfer += oprot->writeFieldBegin("triggers", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->triggers.size())); - std::vector ::const_iterator _iter1102; - for (_iter1102 = this->triggers.begin(); _iter1102 != this->triggers.end(); ++_iter1102) + std::vector ::const_iterator _iter1110; + for (_iter1110 = this->triggers.begin(); _iter1110 != this->triggers.end(); ++_iter1110) { - xfer += (*_iter1102).write(oprot); + xfer += (*_iter1110).write(oprot); } xfer += oprot->writeListEnd(); } @@ -28317,13 +28888,13 @@ void swap(WMGetTriggersForResourePlanResponse &a, WMGetTriggersForResourePlanRes swap(a.__isset, b.__isset); } -WMGetTriggersForResourePlanResponse::WMGetTriggersForResourePlanResponse(const WMGetTriggersForResourePlanResponse& other1103) { - triggers = other1103.triggers; - __isset = other1103.__isset; +WMGetTriggersForResourePlanResponse::WMGetTriggersForResourePlanResponse(const WMGetTriggersForResourePlanResponse& other1111) { + triggers = other1111.triggers; + __isset = other1111.__isset; } -WMGetTriggersForResourePlanResponse& WMGetTriggersForResourePlanResponse::operator=(const WMGetTriggersForResourePlanResponse& other1104) { - triggers = other1104.triggers; - __isset = other1104.__isset; +WMGetTriggersForResourePlanResponse& WMGetTriggersForResourePlanResponse::operator=(const WMGetTriggersForResourePlanResponse& other1112) { + triggers = other1112.triggers; + __isset = other1112.__isset; return *this; } void WMGetTriggersForResourePlanResponse::printTo(std::ostream& out) const { @@ -28405,13 +28976,13 @@ void swap(WMCreatePoolRequest &a, WMCreatePoolRequest &b) { swap(a.__isset, b.__isset); } -WMCreatePoolRequest::WMCreatePoolRequest(const WMCreatePoolRequest& other1105) { - pool = other1105.pool; - __isset = other1105.__isset; +WMCreatePoolRequest::WMCreatePoolRequest(const WMCreatePoolRequest& other1113) { + pool = other1113.pool; + __isset = other1113.__isset; } -WMCreatePoolRequest& WMCreatePoolRequest::operator=(const WMCreatePoolRequest& other1106) { - pool = other1106.pool; - __isset = other1106.__isset; +WMCreatePoolRequest& WMCreatePoolRequest::operator=(const WMCreatePoolRequest& other1114) { + pool = other1114.pool; + __isset = other1114.__isset; return *this; } void WMCreatePoolRequest::printTo(std::ostream& out) const { @@ -28470,11 +29041,11 @@ void swap(WMCreatePoolResponse &a, WMCreatePoolResponse &b) { (void) b; } -WMCreatePoolResponse::WMCreatePoolResponse(const WMCreatePoolResponse& other1107) { - (void) other1107; +WMCreatePoolResponse::WMCreatePoolResponse(const WMCreatePoolResponse& other1115) { + (void) other1115; } -WMCreatePoolResponse& WMCreatePoolResponse::operator=(const WMCreatePoolResponse& other1108) { - (void) other1108; +WMCreatePoolResponse& WMCreatePoolResponse::operator=(const WMCreatePoolResponse& other1116) { + (void) other1116; return *this; } void WMCreatePoolResponse::printTo(std::ostream& out) const { @@ -28574,15 +29145,15 @@ void swap(WMAlterPoolRequest &a, WMAlterPoolRequest &b) { swap(a.__isset, b.__isset); } -WMAlterPoolRequest::WMAlterPoolRequest(const WMAlterPoolRequest& other1109) { - pool = other1109.pool; - poolPath = other1109.poolPath; - __isset = other1109.__isset; +WMAlterPoolRequest::WMAlterPoolRequest(const WMAlterPoolRequest& other1117) { + pool = other1117.pool; + poolPath = other1117.poolPath; + __isset = other1117.__isset; } -WMAlterPoolRequest& WMAlterPoolRequest::operator=(const WMAlterPoolRequest& other1110) { - pool = other1110.pool; - poolPath = other1110.poolPath; - __isset = other1110.__isset; +WMAlterPoolRequest& WMAlterPoolRequest::operator=(const WMAlterPoolRequest& other1118) { + pool = other1118.pool; + poolPath = other1118.poolPath; + __isset = other1118.__isset; return *this; } void WMAlterPoolRequest::printTo(std::ostream& out) const { @@ -28642,11 +29213,11 @@ void swap(WMAlterPoolResponse &a, WMAlterPoolResponse &b) { (void) b; } -WMAlterPoolResponse::WMAlterPoolResponse(const WMAlterPoolResponse& other1111) { - (void) other1111; +WMAlterPoolResponse::WMAlterPoolResponse(const WMAlterPoolResponse& other1119) { + (void) other1119; } -WMAlterPoolResponse& WMAlterPoolResponse::operator=(const WMAlterPoolResponse& other1112) { - (void) other1112; +WMAlterPoolResponse& WMAlterPoolResponse::operator=(const WMAlterPoolResponse& other1120) { + (void) other1120; return *this; } void WMAlterPoolResponse::printTo(std::ostream& out) const { @@ -28746,15 +29317,15 @@ void swap(WMDropPoolRequest &a, WMDropPoolRequest &b) { swap(a.__isset, b.__isset); } -WMDropPoolRequest::WMDropPoolRequest(const WMDropPoolRequest& other1113) { - resourcePlanName = other1113.resourcePlanName; - poolPath = other1113.poolPath; - __isset = other1113.__isset; +WMDropPoolRequest::WMDropPoolRequest(const WMDropPoolRequest& other1121) { + resourcePlanName = other1121.resourcePlanName; + poolPath = other1121.poolPath; + __isset = other1121.__isset; } -WMDropPoolRequest& WMDropPoolRequest::operator=(const WMDropPoolRequest& other1114) { - resourcePlanName = other1114.resourcePlanName; - poolPath = other1114.poolPath; - __isset = other1114.__isset; +WMDropPoolRequest& WMDropPoolRequest::operator=(const WMDropPoolRequest& other1122) { + resourcePlanName = other1122.resourcePlanName; + poolPath = other1122.poolPath; + __isset = other1122.__isset; return *this; } void WMDropPoolRequest::printTo(std::ostream& out) const { @@ -28814,11 +29385,11 @@ void swap(WMDropPoolResponse &a, WMDropPoolResponse &b) { (void) b; } -WMDropPoolResponse::WMDropPoolResponse(const WMDropPoolResponse& other1115) { - (void) other1115; +WMDropPoolResponse::WMDropPoolResponse(const WMDropPoolResponse& other1123) { + (void) other1123; } -WMDropPoolResponse& WMDropPoolResponse::operator=(const WMDropPoolResponse& other1116) { - (void) other1116; +WMDropPoolResponse& WMDropPoolResponse::operator=(const WMDropPoolResponse& other1124) { + (void) other1124; return *this; } void WMDropPoolResponse::printTo(std::ostream& out) const { @@ -28918,15 +29489,15 @@ void swap(WMCreateOrUpdateMappingRequest &a, WMCreateOrUpdateMappingRequest &b) swap(a.__isset, b.__isset); } -WMCreateOrUpdateMappingRequest::WMCreateOrUpdateMappingRequest(const WMCreateOrUpdateMappingRequest& other1117) { - mapping = other1117.mapping; - update = other1117.update; - __isset = other1117.__isset; +WMCreateOrUpdateMappingRequest::WMCreateOrUpdateMappingRequest(const WMCreateOrUpdateMappingRequest& other1125) { + mapping = other1125.mapping; + update = other1125.update; + __isset = other1125.__isset; } -WMCreateOrUpdateMappingRequest& WMCreateOrUpdateMappingRequest::operator=(const WMCreateOrUpdateMappingRequest& other1118) { - mapping = other1118.mapping; - update = other1118.update; - __isset = other1118.__isset; +WMCreateOrUpdateMappingRequest& WMCreateOrUpdateMappingRequest::operator=(const WMCreateOrUpdateMappingRequest& other1126) { + mapping = other1126.mapping; + update = other1126.update; + __isset = other1126.__isset; return *this; } void WMCreateOrUpdateMappingRequest::printTo(std::ostream& out) const { @@ -28986,11 +29557,11 @@ void swap(WMCreateOrUpdateMappingResponse &a, WMCreateOrUpdateMappingResponse &b (void) b; } -WMCreateOrUpdateMappingResponse::WMCreateOrUpdateMappingResponse(const WMCreateOrUpdateMappingResponse& other1119) { - (void) other1119; +WMCreateOrUpdateMappingResponse::WMCreateOrUpdateMappingResponse(const WMCreateOrUpdateMappingResponse& other1127) { + (void) other1127; } -WMCreateOrUpdateMappingResponse& WMCreateOrUpdateMappingResponse::operator=(const WMCreateOrUpdateMappingResponse& other1120) { - (void) other1120; +WMCreateOrUpdateMappingResponse& WMCreateOrUpdateMappingResponse::operator=(const WMCreateOrUpdateMappingResponse& other1128) { + (void) other1128; return *this; } void WMCreateOrUpdateMappingResponse::printTo(std::ostream& out) const { @@ -29071,13 +29642,13 @@ void swap(WMDropMappingRequest &a, WMDropMappingRequest &b) { swap(a.__isset, b.__isset); } -WMDropMappingRequest::WMDropMappingRequest(const WMDropMappingRequest& other1121) { - mapping = other1121.mapping; - __isset = other1121.__isset; +WMDropMappingRequest::WMDropMappingRequest(const WMDropMappingRequest& other1129) { + mapping = other1129.mapping; + __isset = other1129.__isset; } -WMDropMappingRequest& WMDropMappingRequest::operator=(const WMDropMappingRequest& other1122) { - mapping = other1122.mapping; - __isset = other1122.__isset; +WMDropMappingRequest& WMDropMappingRequest::operator=(const WMDropMappingRequest& other1130) { + mapping = other1130.mapping; + __isset = other1130.__isset; return *this; } void WMDropMappingRequest::printTo(std::ostream& out) const { @@ -29136,11 +29707,11 @@ void swap(WMDropMappingResponse &a, WMDropMappingResponse &b) { (void) b; } -WMDropMappingResponse::WMDropMappingResponse(const WMDropMappingResponse& other1123) { - (void) other1123; +WMDropMappingResponse::WMDropMappingResponse(const WMDropMappingResponse& other1131) { + (void) other1131; } -WMDropMappingResponse& WMDropMappingResponse::operator=(const WMDropMappingResponse& other1124) { - (void) other1124; +WMDropMappingResponse& WMDropMappingResponse::operator=(const WMDropMappingResponse& other1132) { + (void) other1132; return *this; } void WMDropMappingResponse::printTo(std::ostream& out) const { @@ -29278,19 +29849,19 @@ void swap(WMCreateOrDropTriggerToPoolMappingRequest &a, WMCreateOrDropTriggerToP swap(a.__isset, b.__isset); } -WMCreateOrDropTriggerToPoolMappingRequest::WMCreateOrDropTriggerToPoolMappingRequest(const WMCreateOrDropTriggerToPoolMappingRequest& other1125) { - resourcePlanName = other1125.resourcePlanName; - triggerName = other1125.triggerName; - poolPath = other1125.poolPath; - drop = other1125.drop; - __isset = other1125.__isset; +WMCreateOrDropTriggerToPoolMappingRequest::WMCreateOrDropTriggerToPoolMappingRequest(const WMCreateOrDropTriggerToPoolMappingRequest& other1133) { + resourcePlanName = other1133.resourcePlanName; + triggerName = other1133.triggerName; + poolPath = other1133.poolPath; + drop = other1133.drop; + __isset = other1133.__isset; } -WMCreateOrDropTriggerToPoolMappingRequest& WMCreateOrDropTriggerToPoolMappingRequest::operator=(const WMCreateOrDropTriggerToPoolMappingRequest& other1126) { - resourcePlanName = other1126.resourcePlanName; - triggerName = other1126.triggerName; - poolPath = other1126.poolPath; - drop = other1126.drop; - __isset = other1126.__isset; +WMCreateOrDropTriggerToPoolMappingRequest& WMCreateOrDropTriggerToPoolMappingRequest::operator=(const WMCreateOrDropTriggerToPoolMappingRequest& other1134) { + resourcePlanName = other1134.resourcePlanName; + triggerName = other1134.triggerName; + poolPath = other1134.poolPath; + drop = other1134.drop; + __isset = other1134.__isset; return *this; } void WMCreateOrDropTriggerToPoolMappingRequest::printTo(std::ostream& out) const { @@ -29352,11 +29923,11 @@ void swap(WMCreateOrDropTriggerToPoolMappingResponse &a, WMCreateOrDropTriggerTo (void) b; } -WMCreateOrDropTriggerToPoolMappingResponse::WMCreateOrDropTriggerToPoolMappingResponse(const WMCreateOrDropTriggerToPoolMappingResponse& other1127) { - (void) other1127; +WMCreateOrDropTriggerToPoolMappingResponse::WMCreateOrDropTriggerToPoolMappingResponse(const WMCreateOrDropTriggerToPoolMappingResponse& other1135) { + (void) other1135; } -WMCreateOrDropTriggerToPoolMappingResponse& WMCreateOrDropTriggerToPoolMappingResponse::operator=(const WMCreateOrDropTriggerToPoolMappingResponse& other1128) { - (void) other1128; +WMCreateOrDropTriggerToPoolMappingResponse& WMCreateOrDropTriggerToPoolMappingResponse::operator=(const WMCreateOrDropTriggerToPoolMappingResponse& other1136) { + (void) other1136; return *this; } void WMCreateOrDropTriggerToPoolMappingResponse::printTo(std::ostream& out) const { @@ -29431,9 +30002,9 @@ uint32_t ISchema::read(::apache::thrift::protocol::TProtocol* iprot) { { case 1: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1129; - xfer += iprot->readI32(ecast1129); - this->schemaType = (SchemaType::type)ecast1129; + int32_t ecast1137; + xfer += iprot->readI32(ecast1137); + this->schemaType = (SchemaType::type)ecast1137; this->__isset.schemaType = true; } else { xfer += iprot->skip(ftype); @@ -29465,9 +30036,9 @@ uint32_t ISchema::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 5: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1130; - xfer += iprot->readI32(ecast1130); - this->compatibility = (SchemaCompatibility::type)ecast1130; + int32_t ecast1138; + xfer += iprot->readI32(ecast1138); + this->compatibility = (SchemaCompatibility::type)ecast1138; this->__isset.compatibility = true; } else { xfer += iprot->skip(ftype); @@ -29475,9 +30046,9 @@ uint32_t ISchema::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 6: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1131; - xfer += iprot->readI32(ecast1131); - this->validationLevel = (SchemaValidation::type)ecast1131; + int32_t ecast1139; + xfer += iprot->readI32(ecast1139); + this->validationLevel = (SchemaValidation::type)ecast1139; this->__isset.validationLevel = true; } else { xfer += iprot->skip(ftype); @@ -29581,29 +30152,29 @@ void swap(ISchema &a, ISchema &b) { swap(a.__isset, b.__isset); } -ISchema::ISchema(const ISchema& other1132) { - schemaType = other1132.schemaType; - name = other1132.name; - catName = other1132.catName; - dbName = other1132.dbName; - compatibility = other1132.compatibility; - validationLevel = other1132.validationLevel; - canEvolve = other1132.canEvolve; - schemaGroup = other1132.schemaGroup; - description = other1132.description; - __isset = other1132.__isset; -} -ISchema& ISchema::operator=(const ISchema& other1133) { - schemaType = other1133.schemaType; - name = other1133.name; - catName = other1133.catName; - dbName = other1133.dbName; - compatibility = other1133.compatibility; - validationLevel = other1133.validationLevel; - canEvolve = other1133.canEvolve; - schemaGroup = other1133.schemaGroup; - description = other1133.description; - __isset = other1133.__isset; +ISchema::ISchema(const ISchema& other1140) { + schemaType = other1140.schemaType; + name = other1140.name; + catName = other1140.catName; + dbName = other1140.dbName; + compatibility = other1140.compatibility; + validationLevel = other1140.validationLevel; + canEvolve = other1140.canEvolve; + schemaGroup = other1140.schemaGroup; + description = other1140.description; + __isset = other1140.__isset; +} +ISchema& ISchema::operator=(const ISchema& other1141) { + schemaType = other1141.schemaType; + name = other1141.name; + catName = other1141.catName; + dbName = other1141.dbName; + compatibility = other1141.compatibility; + validationLevel = other1141.validationLevel; + canEvolve = other1141.canEvolve; + schemaGroup = other1141.schemaGroup; + description = other1141.description; + __isset = other1141.__isset; return *this; } void ISchema::printTo(std::ostream& out) const { @@ -29725,17 +30296,17 @@ void swap(ISchemaName &a, ISchemaName &b) { swap(a.__isset, b.__isset); } -ISchemaName::ISchemaName(const ISchemaName& other1134) { - catName = other1134.catName; - dbName = other1134.dbName; - schemaName = other1134.schemaName; - __isset = other1134.__isset; +ISchemaName::ISchemaName(const ISchemaName& other1142) { + catName = other1142.catName; + dbName = other1142.dbName; + schemaName = other1142.schemaName; + __isset = other1142.__isset; } -ISchemaName& ISchemaName::operator=(const ISchemaName& other1135) { - catName = other1135.catName; - dbName = other1135.dbName; - schemaName = other1135.schemaName; - __isset = other1135.__isset; +ISchemaName& ISchemaName::operator=(const ISchemaName& other1143) { + catName = other1143.catName; + dbName = other1143.dbName; + schemaName = other1143.schemaName; + __isset = other1143.__isset; return *this; } void ISchemaName::printTo(std::ostream& out) const { @@ -29834,15 +30405,15 @@ void swap(AlterISchemaRequest &a, AlterISchemaRequest &b) { swap(a.__isset, b.__isset); } -AlterISchemaRequest::AlterISchemaRequest(const AlterISchemaRequest& other1136) { - name = other1136.name; - newSchema = other1136.newSchema; - __isset = other1136.__isset; +AlterISchemaRequest::AlterISchemaRequest(const AlterISchemaRequest& other1144) { + name = other1144.name; + newSchema = other1144.newSchema; + __isset = other1144.__isset; } -AlterISchemaRequest& AlterISchemaRequest::operator=(const AlterISchemaRequest& other1137) { - name = other1137.name; - newSchema = other1137.newSchema; - __isset = other1137.__isset; +AlterISchemaRequest& AlterISchemaRequest::operator=(const AlterISchemaRequest& other1145) { + name = other1145.name; + newSchema = other1145.newSchema; + __isset = other1145.__isset; return *this; } void AlterISchemaRequest::printTo(std::ostream& out) const { @@ -29953,14 +30524,14 @@ uint32_t SchemaVersion::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->cols.clear(); - uint32_t _size1138; - ::apache::thrift::protocol::TType _etype1141; - xfer += iprot->readListBegin(_etype1141, _size1138); - this->cols.resize(_size1138); - uint32_t _i1142; - for (_i1142 = 0; _i1142 < _size1138; ++_i1142) + uint32_t _size1146; + ::apache::thrift::protocol::TType _etype1149; + xfer += iprot->readListBegin(_etype1149, _size1146); + this->cols.resize(_size1146); + uint32_t _i1150; + for (_i1150 = 0; _i1150 < _size1146; ++_i1150) { - xfer += this->cols[_i1142].read(iprot); + xfer += this->cols[_i1150].read(iprot); } xfer += iprot->readListEnd(); } @@ -29971,9 +30542,9 @@ uint32_t SchemaVersion::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 5: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1143; - xfer += iprot->readI32(ecast1143); - this->state = (SchemaVersionState::type)ecast1143; + int32_t ecast1151; + xfer += iprot->readI32(ecast1151); + this->state = (SchemaVersionState::type)ecast1151; this->__isset.state = true; } else { xfer += iprot->skip(ftype); @@ -30051,10 +30622,10 @@ uint32_t SchemaVersion::write(::apache::thrift::protocol::TProtocol* oprot) cons xfer += oprot->writeFieldBegin("cols", ::apache::thrift::protocol::T_LIST, 4); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->cols.size())); - std::vector ::const_iterator _iter1144; - for (_iter1144 = this->cols.begin(); _iter1144 != this->cols.end(); ++_iter1144) + std::vector ::const_iterator _iter1152; + for (_iter1152 = this->cols.begin(); _iter1152 != this->cols.end(); ++_iter1152) { - xfer += (*_iter1144).write(oprot); + xfer += (*_iter1152).write(oprot); } xfer += oprot->writeListEnd(); } @@ -30110,31 +30681,31 @@ void swap(SchemaVersion &a, SchemaVersion &b) { swap(a.__isset, b.__isset); } -SchemaVersion::SchemaVersion(const SchemaVersion& other1145) { - schema = other1145.schema; - version = other1145.version; - createdAt = other1145.createdAt; - cols = other1145.cols; - state = other1145.state; - description = other1145.description; - schemaText = other1145.schemaText; - fingerprint = other1145.fingerprint; - name = other1145.name; - serDe = other1145.serDe; - __isset = other1145.__isset; -} -SchemaVersion& SchemaVersion::operator=(const SchemaVersion& other1146) { - schema = other1146.schema; - version = other1146.version; - createdAt = other1146.createdAt; - cols = other1146.cols; - state = other1146.state; - description = other1146.description; - schemaText = other1146.schemaText; - fingerprint = other1146.fingerprint; - name = other1146.name; - serDe = other1146.serDe; - __isset = other1146.__isset; +SchemaVersion::SchemaVersion(const SchemaVersion& other1153) { + schema = other1153.schema; + version = other1153.version; + createdAt = other1153.createdAt; + cols = other1153.cols; + state = other1153.state; + description = other1153.description; + schemaText = other1153.schemaText; + fingerprint = other1153.fingerprint; + name = other1153.name; + serDe = other1153.serDe; + __isset = other1153.__isset; +} +SchemaVersion& SchemaVersion::operator=(const SchemaVersion& other1154) { + schema = other1154.schema; + version = other1154.version; + createdAt = other1154.createdAt; + cols = other1154.cols; + state = other1154.state; + description = other1154.description; + schemaText = other1154.schemaText; + fingerprint = other1154.fingerprint; + name = other1154.name; + serDe = other1154.serDe; + __isset = other1154.__isset; return *this; } void SchemaVersion::printTo(std::ostream& out) const { @@ -30240,15 +30811,15 @@ void swap(SchemaVersionDescriptor &a, SchemaVersionDescriptor &b) { swap(a.__isset, b.__isset); } -SchemaVersionDescriptor::SchemaVersionDescriptor(const SchemaVersionDescriptor& other1147) { - schema = other1147.schema; - version = other1147.version; - __isset = other1147.__isset; +SchemaVersionDescriptor::SchemaVersionDescriptor(const SchemaVersionDescriptor& other1155) { + schema = other1155.schema; + version = other1155.version; + __isset = other1155.__isset; } -SchemaVersionDescriptor& SchemaVersionDescriptor::operator=(const SchemaVersionDescriptor& other1148) { - schema = other1148.schema; - version = other1148.version; - __isset = other1148.__isset; +SchemaVersionDescriptor& SchemaVersionDescriptor::operator=(const SchemaVersionDescriptor& other1156) { + schema = other1156.schema; + version = other1156.version; + __isset = other1156.__isset; return *this; } void SchemaVersionDescriptor::printTo(std::ostream& out) const { @@ -30369,17 +30940,17 @@ void swap(FindSchemasByColsRqst &a, FindSchemasByColsRqst &b) { swap(a.__isset, b.__isset); } -FindSchemasByColsRqst::FindSchemasByColsRqst(const FindSchemasByColsRqst& other1149) { - colName = other1149.colName; - colNamespace = other1149.colNamespace; - type = other1149.type; - __isset = other1149.__isset; +FindSchemasByColsRqst::FindSchemasByColsRqst(const FindSchemasByColsRqst& other1157) { + colName = other1157.colName; + colNamespace = other1157.colNamespace; + type = other1157.type; + __isset = other1157.__isset; } -FindSchemasByColsRqst& FindSchemasByColsRqst::operator=(const FindSchemasByColsRqst& other1150) { - colName = other1150.colName; - colNamespace = other1150.colNamespace; - type = other1150.type; - __isset = other1150.__isset; +FindSchemasByColsRqst& FindSchemasByColsRqst::operator=(const FindSchemasByColsRqst& other1158) { + colName = other1158.colName; + colNamespace = other1158.colNamespace; + type = other1158.type; + __isset = other1158.__isset; return *this; } void FindSchemasByColsRqst::printTo(std::ostream& out) const { @@ -30425,14 +30996,14 @@ uint32_t FindSchemasByColsResp::read(::apache::thrift::protocol::TProtocol* ipro if (ftype == ::apache::thrift::protocol::T_LIST) { { this->schemaVersions.clear(); - uint32_t _size1151; - ::apache::thrift::protocol::TType _etype1154; - xfer += iprot->readListBegin(_etype1154, _size1151); - this->schemaVersions.resize(_size1151); - uint32_t _i1155; - for (_i1155 = 0; _i1155 < _size1151; ++_i1155) + uint32_t _size1159; + ::apache::thrift::protocol::TType _etype1162; + xfer += iprot->readListBegin(_etype1162, _size1159); + this->schemaVersions.resize(_size1159); + uint32_t _i1163; + for (_i1163 = 0; _i1163 < _size1159; ++_i1163) { - xfer += this->schemaVersions[_i1155].read(iprot); + xfer += this->schemaVersions[_i1163].read(iprot); } xfer += iprot->readListEnd(); } @@ -30461,10 +31032,10 @@ uint32_t FindSchemasByColsResp::write(::apache::thrift::protocol::TProtocol* opr xfer += oprot->writeFieldBegin("schemaVersions", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->schemaVersions.size())); - std::vector ::const_iterator _iter1156; - for (_iter1156 = this->schemaVersions.begin(); _iter1156 != this->schemaVersions.end(); ++_iter1156) + std::vector ::const_iterator _iter1164; + for (_iter1164 = this->schemaVersions.begin(); _iter1164 != this->schemaVersions.end(); ++_iter1164) { - xfer += (*_iter1156).write(oprot); + xfer += (*_iter1164).write(oprot); } xfer += oprot->writeListEnd(); } @@ -30481,13 +31052,13 @@ void swap(FindSchemasByColsResp &a, FindSchemasByColsResp &b) { swap(a.__isset, b.__isset); } -FindSchemasByColsResp::FindSchemasByColsResp(const FindSchemasByColsResp& other1157) { - schemaVersions = other1157.schemaVersions; - __isset = other1157.__isset; +FindSchemasByColsResp::FindSchemasByColsResp(const FindSchemasByColsResp& other1165) { + schemaVersions = other1165.schemaVersions; + __isset = other1165.__isset; } -FindSchemasByColsResp& FindSchemasByColsResp::operator=(const FindSchemasByColsResp& other1158) { - schemaVersions = other1158.schemaVersions; - __isset = other1158.__isset; +FindSchemasByColsResp& FindSchemasByColsResp::operator=(const FindSchemasByColsResp& other1166) { + schemaVersions = other1166.schemaVersions; + __isset = other1166.__isset; return *this; } void FindSchemasByColsResp::printTo(std::ostream& out) const { @@ -30584,15 +31155,15 @@ void swap(MapSchemaVersionToSerdeRequest &a, MapSchemaVersionToSerdeRequest &b) swap(a.__isset, b.__isset); } -MapSchemaVersionToSerdeRequest::MapSchemaVersionToSerdeRequest(const MapSchemaVersionToSerdeRequest& other1159) { - schemaVersion = other1159.schemaVersion; - serdeName = other1159.serdeName; - __isset = other1159.__isset; +MapSchemaVersionToSerdeRequest::MapSchemaVersionToSerdeRequest(const MapSchemaVersionToSerdeRequest& other1167) { + schemaVersion = other1167.schemaVersion; + serdeName = other1167.serdeName; + __isset = other1167.__isset; } -MapSchemaVersionToSerdeRequest& MapSchemaVersionToSerdeRequest::operator=(const MapSchemaVersionToSerdeRequest& other1160) { - schemaVersion = other1160.schemaVersion; - serdeName = other1160.serdeName; - __isset = other1160.__isset; +MapSchemaVersionToSerdeRequest& MapSchemaVersionToSerdeRequest::operator=(const MapSchemaVersionToSerdeRequest& other1168) { + schemaVersion = other1168.schemaVersion; + serdeName = other1168.serdeName; + __isset = other1168.__isset; return *this; } void MapSchemaVersionToSerdeRequest::printTo(std::ostream& out) const { @@ -30647,9 +31218,9 @@ uint32_t SetSchemaVersionStateRequest::read(::apache::thrift::protocol::TProtoco break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1161; - xfer += iprot->readI32(ecast1161); - this->state = (SchemaVersionState::type)ecast1161; + int32_t ecast1169; + xfer += iprot->readI32(ecast1169); + this->state = (SchemaVersionState::type)ecast1169; this->__isset.state = true; } else { xfer += iprot->skip(ftype); @@ -30692,15 +31263,15 @@ void swap(SetSchemaVersionStateRequest &a, SetSchemaVersionStateRequest &b) { swap(a.__isset, b.__isset); } -SetSchemaVersionStateRequest::SetSchemaVersionStateRequest(const SetSchemaVersionStateRequest& other1162) { - schemaVersion = other1162.schemaVersion; - state = other1162.state; - __isset = other1162.__isset; +SetSchemaVersionStateRequest::SetSchemaVersionStateRequest(const SetSchemaVersionStateRequest& other1170) { + schemaVersion = other1170.schemaVersion; + state = other1170.state; + __isset = other1170.__isset; } -SetSchemaVersionStateRequest& SetSchemaVersionStateRequest::operator=(const SetSchemaVersionStateRequest& other1163) { - schemaVersion = other1163.schemaVersion; - state = other1163.state; - __isset = other1163.__isset; +SetSchemaVersionStateRequest& SetSchemaVersionStateRequest::operator=(const SetSchemaVersionStateRequest& other1171) { + schemaVersion = other1171.schemaVersion; + state = other1171.state; + __isset = other1171.__isset; return *this; } void SetSchemaVersionStateRequest::printTo(std::ostream& out) const { @@ -30781,13 +31352,13 @@ void swap(GetSerdeRequest &a, GetSerdeRequest &b) { swap(a.__isset, b.__isset); } -GetSerdeRequest::GetSerdeRequest(const GetSerdeRequest& other1164) { - serdeName = other1164.serdeName; - __isset = other1164.__isset; +GetSerdeRequest::GetSerdeRequest(const GetSerdeRequest& other1172) { + serdeName = other1172.serdeName; + __isset = other1172.__isset; } -GetSerdeRequest& GetSerdeRequest::operator=(const GetSerdeRequest& other1165) { - serdeName = other1165.serdeName; - __isset = other1165.__isset; +GetSerdeRequest& GetSerdeRequest::operator=(const GetSerdeRequest& other1173) { + serdeName = other1173.serdeName; + __isset = other1173.__isset; return *this; } void GetSerdeRequest::printTo(std::ostream& out) const { @@ -30909,17 +31480,17 @@ void swap(RuntimeStat &a, RuntimeStat &b) { swap(a.__isset, b.__isset); } -RuntimeStat::RuntimeStat(const RuntimeStat& other1166) { - createTime = other1166.createTime; - weight = other1166.weight; - payload = other1166.payload; - __isset = other1166.__isset; +RuntimeStat::RuntimeStat(const RuntimeStat& other1174) { + createTime = other1174.createTime; + weight = other1174.weight; + payload = other1174.payload; + __isset = other1174.__isset; } -RuntimeStat& RuntimeStat::operator=(const RuntimeStat& other1167) { - createTime = other1167.createTime; - weight = other1167.weight; - payload = other1167.payload; - __isset = other1167.__isset; +RuntimeStat& RuntimeStat::operator=(const RuntimeStat& other1175) { + createTime = other1175.createTime; + weight = other1175.weight; + payload = other1175.payload; + __isset = other1175.__isset; return *this; } void RuntimeStat::printTo(std::ostream& out) const { @@ -31023,13 +31594,13 @@ void swap(GetRuntimeStatsRequest &a, GetRuntimeStatsRequest &b) { swap(a.maxCreateTime, b.maxCreateTime); } -GetRuntimeStatsRequest::GetRuntimeStatsRequest(const GetRuntimeStatsRequest& other1168) { - maxWeight = other1168.maxWeight; - maxCreateTime = other1168.maxCreateTime; +GetRuntimeStatsRequest::GetRuntimeStatsRequest(const GetRuntimeStatsRequest& other1176) { + maxWeight = other1176.maxWeight; + maxCreateTime = other1176.maxCreateTime; } -GetRuntimeStatsRequest& GetRuntimeStatsRequest::operator=(const GetRuntimeStatsRequest& other1169) { - maxWeight = other1169.maxWeight; - maxCreateTime = other1169.maxCreateTime; +GetRuntimeStatsRequest& GetRuntimeStatsRequest::operator=(const GetRuntimeStatsRequest& other1177) { + maxWeight = other1177.maxWeight; + maxCreateTime = other1177.maxCreateTime; return *this; } void GetRuntimeStatsRequest::printTo(std::ostream& out) const { @@ -31110,13 +31681,13 @@ void swap(MetaException &a, MetaException &b) { swap(a.__isset, b.__isset); } -MetaException::MetaException(const MetaException& other1170) : TException() { - message = other1170.message; - __isset = other1170.__isset; +MetaException::MetaException(const MetaException& other1178) : TException() { + message = other1178.message; + __isset = other1178.__isset; } -MetaException& MetaException::operator=(const MetaException& other1171) { - message = other1171.message; - __isset = other1171.__isset; +MetaException& MetaException::operator=(const MetaException& other1179) { + message = other1179.message; + __isset = other1179.__isset; return *this; } void MetaException::printTo(std::ostream& out) const { @@ -31207,13 +31778,13 @@ void swap(UnknownTableException &a, UnknownTableException &b) { swap(a.__isset, b.__isset); } -UnknownTableException::UnknownTableException(const UnknownTableException& other1172) : TException() { - message = other1172.message; - __isset = other1172.__isset; +UnknownTableException::UnknownTableException(const UnknownTableException& other1180) : TException() { + message = other1180.message; + __isset = other1180.__isset; } -UnknownTableException& UnknownTableException::operator=(const UnknownTableException& other1173) { - message = other1173.message; - __isset = other1173.__isset; +UnknownTableException& UnknownTableException::operator=(const UnknownTableException& other1181) { + message = other1181.message; + __isset = other1181.__isset; return *this; } void UnknownTableException::printTo(std::ostream& out) const { @@ -31304,13 +31875,13 @@ void swap(UnknownDBException &a, UnknownDBException &b) { swap(a.__isset, b.__isset); } -UnknownDBException::UnknownDBException(const UnknownDBException& other1174) : TException() { - message = other1174.message; - __isset = other1174.__isset; +UnknownDBException::UnknownDBException(const UnknownDBException& other1182) : TException() { + message = other1182.message; + __isset = other1182.__isset; } -UnknownDBException& UnknownDBException::operator=(const UnknownDBException& other1175) { - message = other1175.message; - __isset = other1175.__isset; +UnknownDBException& UnknownDBException::operator=(const UnknownDBException& other1183) { + message = other1183.message; + __isset = other1183.__isset; return *this; } void UnknownDBException::printTo(std::ostream& out) const { @@ -31401,13 +31972,13 @@ void swap(AlreadyExistsException &a, AlreadyExistsException &b) { swap(a.__isset, b.__isset); } -AlreadyExistsException::AlreadyExistsException(const AlreadyExistsException& other1176) : TException() { - message = other1176.message; - __isset = other1176.__isset; +AlreadyExistsException::AlreadyExistsException(const AlreadyExistsException& other1184) : TException() { + message = other1184.message; + __isset = other1184.__isset; } -AlreadyExistsException& AlreadyExistsException::operator=(const AlreadyExistsException& other1177) { - message = other1177.message; - __isset = other1177.__isset; +AlreadyExistsException& AlreadyExistsException::operator=(const AlreadyExistsException& other1185) { + message = other1185.message; + __isset = other1185.__isset; return *this; } void AlreadyExistsException::printTo(std::ostream& out) const { @@ -31498,13 +32069,13 @@ void swap(InvalidPartitionException &a, InvalidPartitionException &b) { swap(a.__isset, b.__isset); } -InvalidPartitionException::InvalidPartitionException(const InvalidPartitionException& other1178) : TException() { - message = other1178.message; - __isset = other1178.__isset; +InvalidPartitionException::InvalidPartitionException(const InvalidPartitionException& other1186) : TException() { + message = other1186.message; + __isset = other1186.__isset; } -InvalidPartitionException& InvalidPartitionException::operator=(const InvalidPartitionException& other1179) { - message = other1179.message; - __isset = other1179.__isset; +InvalidPartitionException& InvalidPartitionException::operator=(const InvalidPartitionException& other1187) { + message = other1187.message; + __isset = other1187.__isset; return *this; } void InvalidPartitionException::printTo(std::ostream& out) const { @@ -31595,13 +32166,13 @@ void swap(UnknownPartitionException &a, UnknownPartitionException &b) { swap(a.__isset, b.__isset); } -UnknownPartitionException::UnknownPartitionException(const UnknownPartitionException& other1180) : TException() { - message = other1180.message; - __isset = other1180.__isset; +UnknownPartitionException::UnknownPartitionException(const UnknownPartitionException& other1188) : TException() { + message = other1188.message; + __isset = other1188.__isset; } -UnknownPartitionException& UnknownPartitionException::operator=(const UnknownPartitionException& other1181) { - message = other1181.message; - __isset = other1181.__isset; +UnknownPartitionException& UnknownPartitionException::operator=(const UnknownPartitionException& other1189) { + message = other1189.message; + __isset = other1189.__isset; return *this; } void UnknownPartitionException::printTo(std::ostream& out) const { @@ -31692,13 +32263,13 @@ void swap(InvalidObjectException &a, InvalidObjectException &b) { swap(a.__isset, b.__isset); } -InvalidObjectException::InvalidObjectException(const InvalidObjectException& other1182) : TException() { - message = other1182.message; - __isset = other1182.__isset; +InvalidObjectException::InvalidObjectException(const InvalidObjectException& other1190) : TException() { + message = other1190.message; + __isset = other1190.__isset; } -InvalidObjectException& InvalidObjectException::operator=(const InvalidObjectException& other1183) { - message = other1183.message; - __isset = other1183.__isset; +InvalidObjectException& InvalidObjectException::operator=(const InvalidObjectException& other1191) { + message = other1191.message; + __isset = other1191.__isset; return *this; } void InvalidObjectException::printTo(std::ostream& out) const { @@ -31789,13 +32360,13 @@ void swap(NoSuchObjectException &a, NoSuchObjectException &b) { swap(a.__isset, b.__isset); } -NoSuchObjectException::NoSuchObjectException(const NoSuchObjectException& other1184) : TException() { - message = other1184.message; - __isset = other1184.__isset; +NoSuchObjectException::NoSuchObjectException(const NoSuchObjectException& other1192) : TException() { + message = other1192.message; + __isset = other1192.__isset; } -NoSuchObjectException& NoSuchObjectException::operator=(const NoSuchObjectException& other1185) { - message = other1185.message; - __isset = other1185.__isset; +NoSuchObjectException& NoSuchObjectException::operator=(const NoSuchObjectException& other1193) { + message = other1193.message; + __isset = other1193.__isset; return *this; } void NoSuchObjectException::printTo(std::ostream& out) const { @@ -31886,13 +32457,13 @@ void swap(InvalidOperationException &a, InvalidOperationException &b) { swap(a.__isset, b.__isset); } -InvalidOperationException::InvalidOperationException(const InvalidOperationException& other1186) : TException() { - message = other1186.message; - __isset = other1186.__isset; +InvalidOperationException::InvalidOperationException(const InvalidOperationException& other1194) : TException() { + message = other1194.message; + __isset = other1194.__isset; } -InvalidOperationException& InvalidOperationException::operator=(const InvalidOperationException& other1187) { - message = other1187.message; - __isset = other1187.__isset; +InvalidOperationException& InvalidOperationException::operator=(const InvalidOperationException& other1195) { + message = other1195.message; + __isset = other1195.__isset; return *this; } void InvalidOperationException::printTo(std::ostream& out) const { @@ -31983,13 +32554,13 @@ void swap(ConfigValSecurityException &a, ConfigValSecurityException &b) { swap(a.__isset, b.__isset); } -ConfigValSecurityException::ConfigValSecurityException(const ConfigValSecurityException& other1188) : TException() { - message = other1188.message; - __isset = other1188.__isset; +ConfigValSecurityException::ConfigValSecurityException(const ConfigValSecurityException& other1196) : TException() { + message = other1196.message; + __isset = other1196.__isset; } -ConfigValSecurityException& ConfigValSecurityException::operator=(const ConfigValSecurityException& other1189) { - message = other1189.message; - __isset = other1189.__isset; +ConfigValSecurityException& ConfigValSecurityException::operator=(const ConfigValSecurityException& other1197) { + message = other1197.message; + __isset = other1197.__isset; return *this; } void ConfigValSecurityException::printTo(std::ostream& out) const { @@ -32080,13 +32651,13 @@ void swap(InvalidInputException &a, InvalidInputException &b) { swap(a.__isset, b.__isset); } -InvalidInputException::InvalidInputException(const InvalidInputException& other1190) : TException() { - message = other1190.message; - __isset = other1190.__isset; +InvalidInputException::InvalidInputException(const InvalidInputException& other1198) : TException() { + message = other1198.message; + __isset = other1198.__isset; } -InvalidInputException& InvalidInputException::operator=(const InvalidInputException& other1191) { - message = other1191.message; - __isset = other1191.__isset; +InvalidInputException& InvalidInputException::operator=(const InvalidInputException& other1199) { + message = other1199.message; + __isset = other1199.__isset; return *this; } void InvalidInputException::printTo(std::ostream& out) const { @@ -32177,13 +32748,13 @@ void swap(NoSuchTxnException &a, NoSuchTxnException &b) { swap(a.__isset, b.__isset); } -NoSuchTxnException::NoSuchTxnException(const NoSuchTxnException& other1192) : TException() { - message = other1192.message; - __isset = other1192.__isset; +NoSuchTxnException::NoSuchTxnException(const NoSuchTxnException& other1200) : TException() { + message = other1200.message; + __isset = other1200.__isset; } -NoSuchTxnException& NoSuchTxnException::operator=(const NoSuchTxnException& other1193) { - message = other1193.message; - __isset = other1193.__isset; +NoSuchTxnException& NoSuchTxnException::operator=(const NoSuchTxnException& other1201) { + message = other1201.message; + __isset = other1201.__isset; return *this; } void NoSuchTxnException::printTo(std::ostream& out) const { @@ -32274,13 +32845,13 @@ void swap(TxnAbortedException &a, TxnAbortedException &b) { swap(a.__isset, b.__isset); } -TxnAbortedException::TxnAbortedException(const TxnAbortedException& other1194) : TException() { - message = other1194.message; - __isset = other1194.__isset; +TxnAbortedException::TxnAbortedException(const TxnAbortedException& other1202) : TException() { + message = other1202.message; + __isset = other1202.__isset; } -TxnAbortedException& TxnAbortedException::operator=(const TxnAbortedException& other1195) { - message = other1195.message; - __isset = other1195.__isset; +TxnAbortedException& TxnAbortedException::operator=(const TxnAbortedException& other1203) { + message = other1203.message; + __isset = other1203.__isset; return *this; } void TxnAbortedException::printTo(std::ostream& out) const { @@ -32371,13 +32942,13 @@ void swap(TxnOpenException &a, TxnOpenException &b) { swap(a.__isset, b.__isset); } -TxnOpenException::TxnOpenException(const TxnOpenException& other1196) : TException() { - message = other1196.message; - __isset = other1196.__isset; +TxnOpenException::TxnOpenException(const TxnOpenException& other1204) : TException() { + message = other1204.message; + __isset = other1204.__isset; } -TxnOpenException& TxnOpenException::operator=(const TxnOpenException& other1197) { - message = other1197.message; - __isset = other1197.__isset; +TxnOpenException& TxnOpenException::operator=(const TxnOpenException& other1205) { + message = other1205.message; + __isset = other1205.__isset; return *this; } void TxnOpenException::printTo(std::ostream& out) const { @@ -32468,13 +33039,13 @@ void swap(NoSuchLockException &a, NoSuchLockException &b) { swap(a.__isset, b.__isset); } -NoSuchLockException::NoSuchLockException(const NoSuchLockException& other1198) : TException() { - message = other1198.message; - __isset = other1198.__isset; +NoSuchLockException::NoSuchLockException(const NoSuchLockException& other1206) : TException() { + message = other1206.message; + __isset = other1206.__isset; } -NoSuchLockException& NoSuchLockException::operator=(const NoSuchLockException& other1199) { - message = other1199.message; - __isset = other1199.__isset; +NoSuchLockException& NoSuchLockException::operator=(const NoSuchLockException& other1207) { + message = other1207.message; + __isset = other1207.__isset; return *this; } void NoSuchLockException::printTo(std::ostream& out) const { diff --git standalone-metastore/src/gen/thrift/gen-cpp/hive_metastore_types.h standalone-metastore/src/gen/thrift/gen-cpp/hive_metastore_types.h index 7b42182d60..e6c5c68df6 100644 --- standalone-metastore/src/gen/thrift/gen-cpp/hive_metastore_types.h +++ standalone-metastore/src/gen/thrift/gen-cpp/hive_metastore_types.h @@ -3041,7 +3041,7 @@ inline std::ostream& operator<<(std::ostream& out, const StorageDescriptor& obj) } typedef struct _Table__isset { - _Table__isset() : tableName(false), dbName(false), owner(false), createTime(false), lastAccessTime(false), retention(false), sd(false), partitionKeys(false), parameters(false), viewOriginalText(false), viewExpandedText(false), tableType(false), privileges(false), temporary(true), rewriteEnabled(false), creationMetadata(false), catName(false), ownerType(true) {} + _Table__isset() : tableName(false), dbName(false), owner(false), createTime(false), lastAccessTime(false), retention(false), sd(false), partitionKeys(false), parameters(false), viewOriginalText(false), viewExpandedText(false), tableType(false), privileges(false), temporary(true), rewriteEnabled(false), creationMetadata(false), catName(false), ownerType(true), writeId(true), validWriteIdList(false) {} bool tableName :1; bool dbName :1; bool owner :1; @@ -3060,6 +3060,8 @@ typedef struct _Table__isset { bool creationMetadata :1; bool catName :1; bool ownerType :1; + bool writeId :1; + bool validWriteIdList :1; } _Table__isset; class Table { @@ -3067,7 +3069,7 @@ class Table { Table(const Table&); Table& operator=(const Table&); - Table() : tableName(), dbName(), owner(), createTime(0), lastAccessTime(0), retention(0), viewOriginalText(), viewExpandedText(), tableType(), temporary(false), rewriteEnabled(0), catName(), ownerType((PrincipalType::type)1) { + Table() : tableName(), dbName(), owner(), createTime(0), lastAccessTime(0), retention(0), viewOriginalText(), viewExpandedText(), tableType(), temporary(false), rewriteEnabled(0), catName(), ownerType((PrincipalType::type)1), writeId(-1LL), validWriteIdList() { ownerType = (PrincipalType::type)1; } @@ -3091,6 +3093,8 @@ class Table { CreationMetadata creationMetadata; std::string catName; PrincipalType::type ownerType; + int64_t writeId; + std::string validWriteIdList; _Table__isset __isset; @@ -3130,6 +3134,10 @@ class Table { void __set_ownerType(const PrincipalType::type val); + void __set_writeId(const int64_t val); + + void __set_validWriteIdList(const std::string& val); + bool operator == (const Table & rhs) const { if (!(tableName == rhs.tableName)) @@ -3180,6 +3188,14 @@ class Table { return false; else if (__isset.ownerType && !(ownerType == rhs.ownerType)) return false; + if (__isset.writeId != rhs.__isset.writeId) + return false; + else if (__isset.writeId && !(writeId == rhs.writeId)) + return false; + if (__isset.validWriteIdList != rhs.__isset.validWriteIdList) + return false; + else if (__isset.validWriteIdList && !(validWriteIdList == rhs.validWriteIdList)) + return false; return true; } bool operator != (const Table &rhs) const { @@ -3203,7 +3219,7 @@ inline std::ostream& operator<<(std::ostream& out, const Table& obj) } typedef struct _Partition__isset { - _Partition__isset() : values(false), dbName(false), tableName(false), createTime(false), lastAccessTime(false), sd(false), parameters(false), privileges(false), catName(false) {} + _Partition__isset() : values(false), dbName(false), tableName(false), createTime(false), lastAccessTime(false), sd(false), parameters(false), privileges(false), catName(false), writeId(true), validWriteIdList(false) {} bool values :1; bool dbName :1; bool tableName :1; @@ -3213,6 +3229,8 @@ typedef struct _Partition__isset { bool parameters :1; bool privileges :1; bool catName :1; + bool writeId :1; + bool validWriteIdList :1; } _Partition__isset; class Partition { @@ -3220,7 +3238,7 @@ class Partition { Partition(const Partition&); Partition& operator=(const Partition&); - Partition() : dbName(), tableName(), createTime(0), lastAccessTime(0), catName() { + Partition() : dbName(), tableName(), createTime(0), lastAccessTime(0), catName(), writeId(-1LL), validWriteIdList() { } virtual ~Partition() throw(); @@ -3233,6 +3251,8 @@ class Partition { std::map parameters; PrincipalPrivilegeSet privileges; std::string catName; + int64_t writeId; + std::string validWriteIdList; _Partition__isset __isset; @@ -3254,6 +3274,10 @@ class Partition { void __set_catName(const std::string& val); + void __set_writeId(const int64_t val); + + void __set_validWriteIdList(const std::string& val); + bool operator == (const Partition & rhs) const { if (!(values == rhs.values)) @@ -3278,6 +3302,14 @@ class Partition { return false; else if (__isset.catName && !(catName == rhs.catName)) return false; + if (__isset.writeId != rhs.__isset.writeId) + return false; + else if (__isset.writeId && !(writeId == rhs.writeId)) + return false; + if (__isset.validWriteIdList != rhs.__isset.validWriteIdList) + return false; + else if (__isset.validWriteIdList && !(validWriteIdList == rhs.validWriteIdList)) + return false; return true; } bool operator != (const Partition &rhs) const { @@ -3379,9 +3411,11 @@ inline std::ostream& operator<<(std::ostream& out, const PartitionWithoutSD& obj } typedef struct _PartitionSpecWithSharedSD__isset { - _PartitionSpecWithSharedSD__isset() : partitions(false), sd(false) {} + _PartitionSpecWithSharedSD__isset() : partitions(false), sd(false), writeId(true), validWriteIdList(false) {} bool partitions :1; bool sd :1; + bool writeId :1; + bool validWriteIdList :1; } _PartitionSpecWithSharedSD__isset; class PartitionSpecWithSharedSD { @@ -3389,12 +3423,14 @@ class PartitionSpecWithSharedSD { PartitionSpecWithSharedSD(const PartitionSpecWithSharedSD&); PartitionSpecWithSharedSD& operator=(const PartitionSpecWithSharedSD&); - PartitionSpecWithSharedSD() { + PartitionSpecWithSharedSD() : writeId(-1LL), validWriteIdList() { } virtual ~PartitionSpecWithSharedSD() throw(); std::vector partitions; StorageDescriptor sd; + int64_t writeId; + std::string validWriteIdList; _PartitionSpecWithSharedSD__isset __isset; @@ -3402,12 +3438,24 @@ class PartitionSpecWithSharedSD { void __set_sd(const StorageDescriptor& val); + void __set_writeId(const int64_t val); + + void __set_validWriteIdList(const std::string& val); + bool operator == (const PartitionSpecWithSharedSD & rhs) const { if (!(partitions == rhs.partitions)) return false; if (!(sd == rhs.sd)) return false; + if (__isset.writeId != rhs.__isset.writeId) + return false; + else if (__isset.writeId && !(writeId == rhs.writeId)) + return false; + if (__isset.validWriteIdList != rhs.__isset.validWriteIdList) + return false; + else if (__isset.validWriteIdList && !(validWriteIdList == rhs.validWriteIdList)) + return false; return true; } bool operator != (const PartitionSpecWithSharedSD &rhs) const { @@ -4266,10 +4314,12 @@ inline std::ostream& operator<<(std::ostream& out, const ColumnStatisticsObj& ob } typedef struct _ColumnStatisticsDesc__isset { - _ColumnStatisticsDesc__isset() : partName(false), lastAnalyzed(false), catName(false) {} + _ColumnStatisticsDesc__isset() : partName(false), lastAnalyzed(false), catName(false), writeId(true), validWriteIdList(false) {} bool partName :1; bool lastAnalyzed :1; bool catName :1; + bool writeId :1; + bool validWriteIdList :1; } _ColumnStatisticsDesc__isset; class ColumnStatisticsDesc { @@ -4277,7 +4327,7 @@ class ColumnStatisticsDesc { ColumnStatisticsDesc(const ColumnStatisticsDesc&); ColumnStatisticsDesc& operator=(const ColumnStatisticsDesc&); - ColumnStatisticsDesc() : isTblLevel(0), dbName(), tableName(), partName(), lastAnalyzed(0), catName() { + ColumnStatisticsDesc() : isTblLevel(0), dbName(), tableName(), partName(), lastAnalyzed(0), catName(), writeId(-1LL), validWriteIdList() { } virtual ~ColumnStatisticsDesc() throw(); @@ -4287,6 +4337,8 @@ class ColumnStatisticsDesc { std::string partName; int64_t lastAnalyzed; std::string catName; + int64_t writeId; + std::string validWriteIdList; _ColumnStatisticsDesc__isset __isset; @@ -4302,6 +4354,10 @@ class ColumnStatisticsDesc { void __set_catName(const std::string& val); + void __set_writeId(const int64_t val); + + void __set_validWriteIdList(const std::string& val); + bool operator == (const ColumnStatisticsDesc & rhs) const { if (!(isTblLevel == rhs.isTblLevel)) @@ -4322,6 +4378,14 @@ class ColumnStatisticsDesc { return false; else if (__isset.catName && !(catName == rhs.catName)) return false; + if (__isset.writeId != rhs.__isset.writeId) + return false; + else if (__isset.writeId && !(writeId == rhs.writeId)) + return false; + if (__isset.validWriteIdList != rhs.__isset.validWriteIdList) + return false; + else if (__isset.validWriteIdList && !(validWriteIdList == rhs.validWriteIdList)) + return false; return true; } bool operator != (const ColumnStatisticsDesc &rhs) const { @@ -4435,8 +4499,10 @@ inline std::ostream& operator<<(std::ostream& out, const AggrStats& obj) } typedef struct _SetPartitionsStatsRequest__isset { - _SetPartitionsStatsRequest__isset() : needMerge(false) {} + _SetPartitionsStatsRequest__isset() : needMerge(false), writeId(true), validWriteIdList(false) {} bool needMerge :1; + bool writeId :1; + bool validWriteIdList :1; } _SetPartitionsStatsRequest__isset; class SetPartitionsStatsRequest { @@ -4444,12 +4510,14 @@ class SetPartitionsStatsRequest { SetPartitionsStatsRequest(const SetPartitionsStatsRequest&); SetPartitionsStatsRequest& operator=(const SetPartitionsStatsRequest&); - SetPartitionsStatsRequest() : needMerge(0) { + SetPartitionsStatsRequest() : needMerge(0), writeId(-1LL), validWriteIdList() { } virtual ~SetPartitionsStatsRequest() throw(); std::vector colStats; bool needMerge; + int64_t writeId; + std::string validWriteIdList; _SetPartitionsStatsRequest__isset __isset; @@ -4457,6 +4525,10 @@ class SetPartitionsStatsRequest { void __set_needMerge(const bool val); + void __set_writeId(const int64_t val); + + void __set_validWriteIdList(const std::string& val); + bool operator == (const SetPartitionsStatsRequest & rhs) const { if (!(colStats == rhs.colStats)) @@ -4465,6 +4537,14 @@ class SetPartitionsStatsRequest { return false; else if (__isset.needMerge && !(needMerge == rhs.needMerge)) return false; + if (__isset.writeId != rhs.__isset.writeId) + return false; + else if (__isset.writeId && !(writeId == rhs.writeId)) + return false; + if (__isset.validWriteIdList != rhs.__isset.validWriteIdList) + return false; + else if (__isset.validWriteIdList && !(validWriteIdList == rhs.validWriteIdList)) + return false; return true; } bool operator != (const SetPartitionsStatsRequest &rhs) const { @@ -5663,8 +5743,10 @@ inline std::ostream& operator<<(std::ostream& out, const PartitionsStatsResult& } typedef struct _TableStatsRequest__isset { - _TableStatsRequest__isset() : catName(false) {} + _TableStatsRequest__isset() : catName(false), writeId(true), validWriteIdList(false) {} bool catName :1; + bool writeId :1; + bool validWriteIdList :1; } _TableStatsRequest__isset; class TableStatsRequest { @@ -5672,7 +5754,7 @@ class TableStatsRequest { TableStatsRequest(const TableStatsRequest&); TableStatsRequest& operator=(const TableStatsRequest&); - TableStatsRequest() : dbName(), tblName(), catName() { + TableStatsRequest() : dbName(), tblName(), catName(), writeId(-1LL), validWriteIdList() { } virtual ~TableStatsRequest() throw(); @@ -5680,6 +5762,8 @@ class TableStatsRequest { std::string tblName; std::vector colNames; std::string catName; + int64_t writeId; + std::string validWriteIdList; _TableStatsRequest__isset __isset; @@ -5691,6 +5775,10 @@ class TableStatsRequest { void __set_catName(const std::string& val); + void __set_writeId(const int64_t val); + + void __set_validWriteIdList(const std::string& val); + bool operator == (const TableStatsRequest & rhs) const { if (!(dbName == rhs.dbName)) @@ -5703,6 +5791,14 @@ class TableStatsRequest { return false; else if (__isset.catName && !(catName == rhs.catName)) return false; + if (__isset.writeId != rhs.__isset.writeId) + return false; + else if (__isset.writeId && !(writeId == rhs.writeId)) + return false; + if (__isset.validWriteIdList != rhs.__isset.validWriteIdList) + return false; + else if (__isset.validWriteIdList && !(validWriteIdList == rhs.validWriteIdList)) + return false; return true; } bool operator != (const TableStatsRequest &rhs) const { @@ -5726,8 +5822,10 @@ inline std::ostream& operator<<(std::ostream& out, const TableStatsRequest& obj) } typedef struct _PartitionsStatsRequest__isset { - _PartitionsStatsRequest__isset() : catName(false) {} + _PartitionsStatsRequest__isset() : catName(false), writeId(true), validWriteIdList(false) {} bool catName :1; + bool writeId :1; + bool validWriteIdList :1; } _PartitionsStatsRequest__isset; class PartitionsStatsRequest { @@ -5735,7 +5833,7 @@ class PartitionsStatsRequest { PartitionsStatsRequest(const PartitionsStatsRequest&); PartitionsStatsRequest& operator=(const PartitionsStatsRequest&); - PartitionsStatsRequest() : dbName(), tblName(), catName() { + PartitionsStatsRequest() : dbName(), tblName(), catName(), writeId(-1LL), validWriteIdList() { } virtual ~PartitionsStatsRequest() throw(); @@ -5744,6 +5842,8 @@ class PartitionsStatsRequest { std::vector colNames; std::vector partNames; std::string catName; + int64_t writeId; + std::string validWriteIdList; _PartitionsStatsRequest__isset __isset; @@ -5757,6 +5857,10 @@ class PartitionsStatsRequest { void __set_catName(const std::string& val); + void __set_writeId(const int64_t val); + + void __set_validWriteIdList(const std::string& val); + bool operator == (const PartitionsStatsRequest & rhs) const { if (!(dbName == rhs.dbName)) @@ -5771,6 +5875,14 @@ class PartitionsStatsRequest { return false; else if (__isset.catName && !(catName == rhs.catName)) return false; + if (__isset.writeId != rhs.__isset.writeId) + return false; + else if (__isset.writeId && !(writeId == rhs.writeId)) + return false; + if (__isset.validWriteIdList != rhs.__isset.validWriteIdList) + return false; + else if (__isset.validWriteIdList && !(validWriteIdList == rhs.validWriteIdList)) + return false; return true; } bool operator != (const PartitionsStatsRequest &rhs) const { @@ -9813,9 +9925,11 @@ inline std::ostream& operator<<(std::ostream& out, const ClientCapabilities& obj } typedef struct _GetTableRequest__isset { - _GetTableRequest__isset() : capabilities(false), catName(false) {} + _GetTableRequest__isset() : capabilities(false), catName(false), writeId(true), validWriteIdList(false) {} bool capabilities :1; bool catName :1; + bool writeId :1; + bool validWriteIdList :1; } _GetTableRequest__isset; class GetTableRequest { @@ -9823,7 +9937,7 @@ class GetTableRequest { GetTableRequest(const GetTableRequest&); GetTableRequest& operator=(const GetTableRequest&); - GetTableRequest() : dbName(), tblName(), catName() { + GetTableRequest() : dbName(), tblName(), catName(), writeId(-1LL), validWriteIdList() { } virtual ~GetTableRequest() throw(); @@ -9831,6 +9945,8 @@ class GetTableRequest { std::string tblName; ClientCapabilities capabilities; std::string catName; + int64_t writeId; + std::string validWriteIdList; _GetTableRequest__isset __isset; @@ -9842,6 +9958,10 @@ class GetTableRequest { void __set_catName(const std::string& val); + void __set_writeId(const int64_t val); + + void __set_validWriteIdList(const std::string& val); + bool operator == (const GetTableRequest & rhs) const { if (!(dbName == rhs.dbName)) @@ -9856,6 +9976,14 @@ class GetTableRequest { return false; else if (__isset.catName && !(catName == rhs.catName)) return false; + if (__isset.writeId != rhs.__isset.writeId) + return false; + else if (__isset.writeId && !(writeId == rhs.writeId)) + return false; + if (__isset.validWriteIdList != rhs.__isset.validWriteIdList) + return false; + else if (__isset.validWriteIdList && !(validWriteIdList == rhs.validWriteIdList)) + return false; return true; } bool operator != (const GetTableRequest &rhs) const { diff --git standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ColumnStatisticsDesc.java standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ColumnStatisticsDesc.java index 44a57f234f..0e70758786 100644 --- standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ColumnStatisticsDesc.java +++ standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ColumnStatisticsDesc.java @@ -166,8 +166,8 @@ public ColumnStatisticsDesc( this(); this.isTblLevel = isTblLevel; setIsTblLevelIsSet(true); - this.dbName = org.apache.hadoop.hive.metastore.utils.StringUtils.intern(dbName); - this.tableName = org.apache.hadoop.hive.metastore.utils.StringUtils.intern(tableName); + this.dbName = dbName; + this.tableName = tableName; } /** @@ -177,17 +177,17 @@ public ColumnStatisticsDesc(ColumnStatisticsDesc other) { __isset_bitfield = other.__isset_bitfield; this.isTblLevel = other.isTblLevel; if (other.isSetDbName()) { - this.dbName = org.apache.hadoop.hive.metastore.utils.StringUtils.intern(other.dbName); + this.dbName = other.dbName; } if (other.isSetTableName()) { - this.tableName = org.apache.hadoop.hive.metastore.utils.StringUtils.intern(other.tableName); + this.tableName = other.tableName; } if (other.isSetPartName()) { this.partName = other.partName; } this.lastAnalyzed = other.lastAnalyzed; if (other.isSetCatName()) { - this.catName = org.apache.hadoop.hive.metastore.utils.StringUtils.intern(other.catName); + this.catName = other.catName; } } @@ -234,7 +234,7 @@ public String getDbName() { } public void setDbName(String dbName) { - this.dbName = org.apache.hadoop.hive.metastore.utils.StringUtils.intern(dbName); + this.dbName = dbName; } public void unsetDbName() { @@ -257,7 +257,7 @@ public String getTableName() { } public void setTableName(String tableName) { - this.tableName = org.apache.hadoop.hive.metastore.utils.StringUtils.intern(tableName); + this.tableName = tableName; } public void unsetTableName() { @@ -325,7 +325,7 @@ public String getCatName() { } public void setCatName(String catName) { - this.catName = org.apache.hadoop.hive.metastore.utils.StringUtils.intern(catName); + this.catName = catName; } public void unsetCatName() { @@ -750,7 +750,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, ColumnStatisticsDes break; case 2: // DB_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.dbName = org.apache.hadoop.hive.metastore.utils.StringUtils.intern(iprot.readString()); + struct.dbName = iprot.readString(); struct.setDbNameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -758,7 +758,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, ColumnStatisticsDes break; case 3: // TABLE_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.tableName = org.apache.hadoop.hive.metastore.utils.StringUtils.intern(iprot.readString()); + struct.tableName = iprot.readString(); struct.setTableNameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -782,7 +782,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, ColumnStatisticsDes break; case 6: // CAT_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.catName = org.apache.hadoop.hive.metastore.utils.StringUtils.intern(iprot.readString()); + struct.catName = iprot.readString(); struct.setCatNameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -880,9 +880,9 @@ public void read(org.apache.thrift.protocol.TProtocol prot, ColumnStatisticsDesc TTupleProtocol iprot = (TTupleProtocol) prot; struct.isTblLevel = iprot.readBool(); struct.setIsTblLevelIsSet(true); - struct.dbName = org.apache.hadoop.hive.metastore.utils.StringUtils.intern(iprot.readString()); + struct.dbName = iprot.readString(); struct.setDbNameIsSet(true); - struct.tableName = org.apache.hadoop.hive.metastore.utils.StringUtils.intern(iprot.readString()); + struct.tableName = iprot.readString(); struct.setTableNameIsSet(true); BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { @@ -894,7 +894,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, ColumnStatisticsDesc struct.setLastAnalyzedIsSet(true); } if (incoming.get(2)) { - struct.catName = org.apache.hadoop.hive.metastore.utils.StringUtils.intern(iprot.readString()); + struct.catName = iprot.readString(); struct.setCatNameIsSet(true); } } diff --git standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetTableRequest.java standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetTableRequest.java index 3c88d8fc6d..58a36eddb1 100644 --- standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetTableRequest.java +++ standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetTableRequest.java @@ -42,6 +42,8 @@ private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tblName", org.apache.thrift.protocol.TType.STRING, (short)2); private static final org.apache.thrift.protocol.TField CAPABILITIES_FIELD_DESC = new org.apache.thrift.protocol.TField("capabilities", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final org.apache.thrift.protocol.TField CAT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("catName", org.apache.thrift.protocol.TType.STRING, (short)4); + private static final org.apache.thrift.protocol.TField WRITE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("writeId", org.apache.thrift.protocol.TType.I64, (short)5); + private static final org.apache.thrift.protocol.TField VALID_WRITE_ID_LIST_FIELD_DESC = new org.apache.thrift.protocol.TField("validWriteIdList", org.apache.thrift.protocol.TType.STRING, (short)6); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { @@ -53,13 +55,17 @@ private String tblName; // required private ClientCapabilities capabilities; // optional private String catName; // optional + private long writeId; // optional + private String validWriteIdList; // optional /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { DB_NAME((short)1, "dbName"), TBL_NAME((short)2, "tblName"), CAPABILITIES((short)3, "capabilities"), - CAT_NAME((short)4, "catName"); + CAT_NAME((short)4, "catName"), + WRITE_ID((short)5, "writeId"), + VALID_WRITE_ID_LIST((short)6, "validWriteIdList"); private static final Map byName = new HashMap(); @@ -82,6 +88,10 @@ public static _Fields findByThriftId(int fieldId) { return CAPABILITIES; case 4: // CAT_NAME return CAT_NAME; + case 5: // WRITE_ID + return WRITE_ID; + case 6: // VALID_WRITE_ID_LIST + return VALID_WRITE_ID_LIST; default: return null; } @@ -122,7 +132,9 @@ public String getFieldName() { } // isset id assignments - private static final _Fields optionals[] = {_Fields.CAPABILITIES,_Fields.CAT_NAME}; + private static final int __WRITEID_ISSET_ID = 0; + private byte __isset_bitfield = 0; + private static final _Fields optionals[] = {_Fields.CAPABILITIES,_Fields.CAT_NAME,_Fields.WRITE_ID,_Fields.VALID_WRITE_ID_LIST}; 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); @@ -134,11 +146,17 @@ public String getFieldName() { new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ClientCapabilities.class))); tmpMap.put(_Fields.CAT_NAME, new org.apache.thrift.meta_data.FieldMetaData("catName", org.apache.thrift.TFieldRequirementType.OPTIONAL, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.WRITE_ID, new org.apache.thrift.meta_data.FieldMetaData("writeId", org.apache.thrift.TFieldRequirementType.OPTIONAL, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); + tmpMap.put(_Fields.VALID_WRITE_ID_LIST, new org.apache.thrift.meta_data.FieldMetaData("validWriteIdList", org.apache.thrift.TFieldRequirementType.OPTIONAL, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(GetTableRequest.class, metaDataMap); } public GetTableRequest() { + this.writeId = -1L; + } public GetTableRequest( @@ -154,6 +172,7 @@ public GetTableRequest( * Performs a deep copy on other. */ public GetTableRequest(GetTableRequest other) { + __isset_bitfield = other.__isset_bitfield; if (other.isSetDbName()) { this.dbName = other.dbName; } @@ -166,6 +185,10 @@ public GetTableRequest(GetTableRequest other) { if (other.isSetCatName()) { this.catName = other.catName; } + this.writeId = other.writeId; + if (other.isSetValidWriteIdList()) { + this.validWriteIdList = other.validWriteIdList; + } } public GetTableRequest deepCopy() { @@ -178,6 +201,9 @@ public void clear() { this.tblName = null; this.capabilities = null; this.catName = null; + this.writeId = -1L; + + this.validWriteIdList = null; } public String getDbName() { @@ -272,6 +298,51 @@ public void setCatNameIsSet(boolean value) { } } + public long getWriteId() { + return this.writeId; + } + + public void setWriteId(long writeId) { + this.writeId = writeId; + setWriteIdIsSet(true); + } + + public void unsetWriteId() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __WRITEID_ISSET_ID); + } + + /** Returns true if field writeId is set (has been assigned a value) and false otherwise */ + public boolean isSetWriteId() { + return EncodingUtils.testBit(__isset_bitfield, __WRITEID_ISSET_ID); + } + + public void setWriteIdIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __WRITEID_ISSET_ID, value); + } + + public String getValidWriteIdList() { + return this.validWriteIdList; + } + + public void setValidWriteIdList(String validWriteIdList) { + this.validWriteIdList = validWriteIdList; + } + + public void unsetValidWriteIdList() { + this.validWriteIdList = null; + } + + /** Returns true if field validWriteIdList is set (has been assigned a value) and false otherwise */ + public boolean isSetValidWriteIdList() { + return this.validWriteIdList != null; + } + + public void setValidWriteIdListIsSet(boolean value) { + if (!value) { + this.validWriteIdList = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case DB_NAME: @@ -306,6 +377,22 @@ public void setFieldValue(_Fields field, Object value) { } break; + case WRITE_ID: + if (value == null) { + unsetWriteId(); + } else { + setWriteId((Long)value); + } + break; + + case VALID_WRITE_ID_LIST: + if (value == null) { + unsetValidWriteIdList(); + } else { + setValidWriteIdList((String)value); + } + break; + } } @@ -323,6 +410,12 @@ public Object getFieldValue(_Fields field) { case CAT_NAME: return getCatName(); + case WRITE_ID: + return getWriteId(); + + case VALID_WRITE_ID_LIST: + return getValidWriteIdList(); + } throw new IllegalStateException(); } @@ -342,6 +435,10 @@ public boolean isSet(_Fields field) { return isSetCapabilities(); case CAT_NAME: return isSetCatName(); + case WRITE_ID: + return isSetWriteId(); + case VALID_WRITE_ID_LIST: + return isSetValidWriteIdList(); } throw new IllegalStateException(); } @@ -395,6 +492,24 @@ public boolean equals(GetTableRequest that) { return false; } + boolean this_present_writeId = true && this.isSetWriteId(); + boolean that_present_writeId = true && that.isSetWriteId(); + if (this_present_writeId || that_present_writeId) { + if (!(this_present_writeId && that_present_writeId)) + return false; + if (this.writeId != that.writeId) + return false; + } + + boolean this_present_validWriteIdList = true && this.isSetValidWriteIdList(); + boolean that_present_validWriteIdList = true && that.isSetValidWriteIdList(); + if (this_present_validWriteIdList || that_present_validWriteIdList) { + if (!(this_present_validWriteIdList && that_present_validWriteIdList)) + return false; + if (!this.validWriteIdList.equals(that.validWriteIdList)) + return false; + } + return true; } @@ -422,6 +537,16 @@ public int hashCode() { if (present_catName) list.add(catName); + boolean present_writeId = true && (isSetWriteId()); + list.add(present_writeId); + if (present_writeId) + list.add(writeId); + + boolean present_validWriteIdList = true && (isSetValidWriteIdList()); + list.add(present_validWriteIdList); + if (present_validWriteIdList) + list.add(validWriteIdList); + return list.hashCode(); } @@ -473,6 +598,26 @@ public int compareTo(GetTableRequest other) { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetWriteId()).compareTo(other.isSetWriteId()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetWriteId()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.writeId, other.writeId); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetValidWriteIdList()).compareTo(other.isSetValidWriteIdList()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetValidWriteIdList()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.validWriteIdList, other.validWriteIdList); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -528,6 +673,22 @@ public String toString() { } first = false; } + if (isSetWriteId()) { + if (!first) sb.append(", "); + sb.append("writeId:"); + sb.append(this.writeId); + first = false; + } + if (isSetValidWriteIdList()) { + if (!first) sb.append(", "); + sb.append("validWriteIdList:"); + if (this.validWriteIdList == null) { + sb.append("null"); + } else { + sb.append(this.validWriteIdList); + } + first = false; + } sb.append(")"); return sb.toString(); } @@ -558,6 +719,8 @@ 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); @@ -615,6 +778,22 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GetTableRequest str org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 5: // WRITE_ID + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.writeId = iprot.readI64(); + struct.setWriteIdIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 6: // VALID_WRITE_ID_LIST + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.validWriteIdList = iprot.readString(); + struct.setValidWriteIdListIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -652,6 +831,18 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, GetTableRequest st oprot.writeFieldEnd(); } } + if (struct.isSetWriteId()) { + oprot.writeFieldBegin(WRITE_ID_FIELD_DESC); + oprot.writeI64(struct.writeId); + oprot.writeFieldEnd(); + } + if (struct.validWriteIdList != null) { + if (struct.isSetValidWriteIdList()) { + oprot.writeFieldBegin(VALID_WRITE_ID_LIST_FIELD_DESC); + oprot.writeString(struct.validWriteIdList); + oprot.writeFieldEnd(); + } + } oprot.writeFieldStop(); oprot.writeStructEnd(); } @@ -678,13 +869,25 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetTableRequest str if (struct.isSetCatName()) { optionals.set(1); } - oprot.writeBitSet(optionals, 2); + if (struct.isSetWriteId()) { + optionals.set(2); + } + if (struct.isSetValidWriteIdList()) { + optionals.set(3); + } + oprot.writeBitSet(optionals, 4); if (struct.isSetCapabilities()) { struct.capabilities.write(oprot); } if (struct.isSetCatName()) { oprot.writeString(struct.catName); } + if (struct.isSetWriteId()) { + oprot.writeI64(struct.writeId); + } + if (struct.isSetValidWriteIdList()) { + oprot.writeString(struct.validWriteIdList); + } } @Override @@ -694,7 +897,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetTableRequest stru struct.setDbNameIsSet(true); struct.tblName = iprot.readString(); struct.setTblNameIsSet(true); - BitSet incoming = iprot.readBitSet(2); + BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { struct.capabilities = new ClientCapabilities(); struct.capabilities.read(iprot); @@ -704,6 +907,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetTableRequest stru struct.catName = iprot.readString(); struct.setCatNameIsSet(true); } + if (incoming.get(2)) { + struct.writeId = iprot.readI64(); + struct.setWriteIdIsSet(true); + } + if (incoming.get(3)) { + struct.validWriteIdList = iprot.readString(); + struct.setValidWriteIdListIsSet(true); + } } } diff --git standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Partition.java standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Partition.java index 51f809a0f8..d9c29ec492 100644 --- standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Partition.java +++ standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Partition.java @@ -47,6 +47,9 @@ private static final org.apache.thrift.protocol.TField PARAMETERS_FIELD_DESC = new org.apache.thrift.protocol.TField("parameters", org.apache.thrift.protocol.TType.MAP, (short)7); private static final org.apache.thrift.protocol.TField PRIVILEGES_FIELD_DESC = new org.apache.thrift.protocol.TField("privileges", org.apache.thrift.protocol.TType.STRUCT, (short)8); private static final org.apache.thrift.protocol.TField CAT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("catName", org.apache.thrift.protocol.TType.STRING, (short)9); + private static final org.apache.thrift.protocol.TField WRITE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("writeId", org.apache.thrift.protocol.TType.I64, (short)10); + private static final org.apache.thrift.protocol.TField VALID_WRITE_ID_LIST_FIELD_DESC = new org.apache.thrift.protocol.TField("validWriteIdList", org.apache.thrift.protocol.TType.STRING, (short)11); + private static final org.apache.thrift.protocol.TField IS_STATS_COMPLIANT_FIELD_DESC = new org.apache.thrift.protocol.TField("isStatsCompliant", org.apache.thrift.protocol.TType.I32, (short)12); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { @@ -63,6 +66,9 @@ private Map parameters; // required private PrincipalPrivilegeSet privileges; // optional private String catName; // optional + private long writeId; // optional + private String validWriteIdList; // optional + private IsolationLevelCompliance isStatsCompliant; // optional /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { @@ -74,7 +80,14 @@ SD((short)6, "sd"), PARAMETERS((short)7, "parameters"), PRIVILEGES((short)8, "privileges"), - CAT_NAME((short)9, "catName"); + CAT_NAME((short)9, "catName"), + WRITE_ID((short)10, "writeId"), + VALID_WRITE_ID_LIST((short)11, "validWriteIdList"), + /** + * + * @see IsolationLevelCompliance + */ + IS_STATS_COMPLIANT((short)12, "isStatsCompliant"); private static final Map byName = new HashMap(); @@ -107,6 +120,12 @@ public static _Fields findByThriftId(int fieldId) { return PRIVILEGES; case 9: // CAT_NAME return CAT_NAME; + case 10: // WRITE_ID + return WRITE_ID; + case 11: // VALID_WRITE_ID_LIST + return VALID_WRITE_ID_LIST; + case 12: // IS_STATS_COMPLIANT + return IS_STATS_COMPLIANT; default: return null; } @@ -149,8 +168,9 @@ public String getFieldName() { // isset id assignments private static final int __CREATETIME_ISSET_ID = 0; private static final int __LASTACCESSTIME_ISSET_ID = 1; + private static final int __WRITEID_ISSET_ID = 2; private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.PRIVILEGES,_Fields.CAT_NAME}; + private static final _Fields optionals[] = {_Fields.PRIVILEGES,_Fields.CAT_NAME,_Fields.WRITE_ID,_Fields.VALID_WRITE_ID_LIST,_Fields.IS_STATS_COMPLIANT}; 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); @@ -175,11 +195,19 @@ public String getFieldName() { new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PrincipalPrivilegeSet.class))); tmpMap.put(_Fields.CAT_NAME, new org.apache.thrift.meta_data.FieldMetaData("catName", org.apache.thrift.TFieldRequirementType.OPTIONAL, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.WRITE_ID, new org.apache.thrift.meta_data.FieldMetaData("writeId", org.apache.thrift.TFieldRequirementType.OPTIONAL, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); + tmpMap.put(_Fields.VALID_WRITE_ID_LIST, new org.apache.thrift.meta_data.FieldMetaData("validWriteIdList", org.apache.thrift.TFieldRequirementType.OPTIONAL, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.IS_STATS_COMPLIANT, new org.apache.thrift.meta_data.FieldMetaData("isStatsCompliant", org.apache.thrift.TFieldRequirementType.OPTIONAL, + new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, IsolationLevelCompliance.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Partition.class, metaDataMap); } public Partition() { + this.writeId = -1L; + } public Partition( @@ -231,7 +259,14 @@ public Partition(Partition other) { this.privileges = new PrincipalPrivilegeSet(other.privileges); } if (other.isSetCatName()) { - this.catName = org.apache.hadoop.hive.metastore.utils.StringUtils.intern(other.catName); + this.catName = other.catName; + } + this.writeId = other.writeId; + if (other.isSetValidWriteIdList()) { + this.validWriteIdList = other.validWriteIdList; + } + if (other.isSetIsStatsCompliant()) { + this.isStatsCompliant = other.isStatsCompliant; } } @@ -252,6 +287,10 @@ public void clear() { this.parameters = null; this.privileges = null; this.catName = null; + this.writeId = -1L; + + this.validWriteIdList = null; + this.isStatsCompliant = null; } public int getValuesSize() { @@ -467,7 +506,7 @@ public String getCatName() { } public void setCatName(String catName) { - this.catName = org.apache.hadoop.hive.metastore.utils.StringUtils.intern(catName); + this.catName = catName; } public void unsetCatName() { @@ -485,6 +524,82 @@ public void setCatNameIsSet(boolean value) { } } + public long getWriteId() { + return this.writeId; + } + + public void setWriteId(long writeId) { + this.writeId = writeId; + setWriteIdIsSet(true); + } + + public void unsetWriteId() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __WRITEID_ISSET_ID); + } + + /** Returns true if field writeId is set (has been assigned a value) and false otherwise */ + public boolean isSetWriteId() { + return EncodingUtils.testBit(__isset_bitfield, __WRITEID_ISSET_ID); + } + + public void setWriteIdIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __WRITEID_ISSET_ID, value); + } + + public String getValidWriteIdList() { + return this.validWriteIdList; + } + + public void setValidWriteIdList(String validWriteIdList) { + this.validWriteIdList = validWriteIdList; + } + + public void unsetValidWriteIdList() { + this.validWriteIdList = null; + } + + /** Returns true if field validWriteIdList is set (has been assigned a value) and false otherwise */ + public boolean isSetValidWriteIdList() { + return this.validWriteIdList != null; + } + + public void setValidWriteIdListIsSet(boolean value) { + if (!value) { + this.validWriteIdList = null; + } + } + + /** + * + * @see IsolationLevelCompliance + */ + public IsolationLevelCompliance getIsStatsCompliant() { + return this.isStatsCompliant; + } + + /** + * + * @see IsolationLevelCompliance + */ + public void setIsStatsCompliant(IsolationLevelCompliance isStatsCompliant) { + this.isStatsCompliant = isStatsCompliant; + } + + public void unsetIsStatsCompliant() { + this.isStatsCompliant = null; + } + + /** Returns true if field isStatsCompliant is set (has been assigned a value) and false otherwise */ + public boolean isSetIsStatsCompliant() { + return this.isStatsCompliant != null; + } + + public void setIsStatsCompliantIsSet(boolean value) { + if (!value) { + this.isStatsCompliant = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case VALUES: @@ -559,6 +674,30 @@ public void setFieldValue(_Fields field, Object value) { } break; + case WRITE_ID: + if (value == null) { + unsetWriteId(); + } else { + setWriteId((Long)value); + } + break; + + case VALID_WRITE_ID_LIST: + if (value == null) { + unsetValidWriteIdList(); + } else { + setValidWriteIdList((String)value); + } + break; + + case IS_STATS_COMPLIANT: + if (value == null) { + unsetIsStatsCompliant(); + } else { + setIsStatsCompliant((IsolationLevelCompliance)value); + } + break; + } } @@ -591,6 +730,15 @@ public Object getFieldValue(_Fields field) { case CAT_NAME: return getCatName(); + case WRITE_ID: + return getWriteId(); + + case VALID_WRITE_ID_LIST: + return getValidWriteIdList(); + + case IS_STATS_COMPLIANT: + return getIsStatsCompliant(); + } throw new IllegalStateException(); } @@ -620,6 +768,12 @@ public boolean isSet(_Fields field) { return isSetPrivileges(); case CAT_NAME: return isSetCatName(); + case WRITE_ID: + return isSetWriteId(); + case VALID_WRITE_ID_LIST: + return isSetValidWriteIdList(); + case IS_STATS_COMPLIANT: + return isSetIsStatsCompliant(); } throw new IllegalStateException(); } @@ -718,6 +872,33 @@ public boolean equals(Partition that) { return false; } + boolean this_present_writeId = true && this.isSetWriteId(); + boolean that_present_writeId = true && that.isSetWriteId(); + if (this_present_writeId || that_present_writeId) { + if (!(this_present_writeId && that_present_writeId)) + return false; + if (this.writeId != that.writeId) + return false; + } + + boolean this_present_validWriteIdList = true && this.isSetValidWriteIdList(); + boolean that_present_validWriteIdList = true && that.isSetValidWriteIdList(); + if (this_present_validWriteIdList || that_present_validWriteIdList) { + if (!(this_present_validWriteIdList && that_present_validWriteIdList)) + return false; + if (!this.validWriteIdList.equals(that.validWriteIdList)) + return false; + } + + boolean this_present_isStatsCompliant = true && this.isSetIsStatsCompliant(); + boolean that_present_isStatsCompliant = true && that.isSetIsStatsCompliant(); + if (this_present_isStatsCompliant || that_present_isStatsCompliant) { + if (!(this_present_isStatsCompliant && that_present_isStatsCompliant)) + return false; + if (!this.isStatsCompliant.equals(that.isStatsCompliant)) + return false; + } + return true; } @@ -770,6 +951,21 @@ public int hashCode() { if (present_catName) list.add(catName); + boolean present_writeId = true && (isSetWriteId()); + list.add(present_writeId); + if (present_writeId) + list.add(writeId); + + boolean present_validWriteIdList = true && (isSetValidWriteIdList()); + list.add(present_validWriteIdList); + if (present_validWriteIdList) + list.add(validWriteIdList); + + boolean present_isStatsCompliant = true && (isSetIsStatsCompliant()); + list.add(present_isStatsCompliant); + if (present_isStatsCompliant) + list.add(isStatsCompliant.getValue()); + return list.hashCode(); } @@ -871,6 +1067,36 @@ public int compareTo(Partition other) { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetWriteId()).compareTo(other.isSetWriteId()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetWriteId()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.writeId, other.writeId); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetValidWriteIdList()).compareTo(other.isSetValidWriteIdList()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetValidWriteIdList()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.validWriteIdList, other.validWriteIdList); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetIsStatsCompliant()).compareTo(other.isSetIsStatsCompliant()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetIsStatsCompliant()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isStatsCompliant, other.isStatsCompliant); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -958,6 +1184,32 @@ public String toString() { } first = false; } + if (isSetWriteId()) { + if (!first) sb.append(", "); + sb.append("writeId:"); + sb.append(this.writeId); + first = false; + } + if (isSetValidWriteIdList()) { + if (!first) sb.append(", "); + sb.append("validWriteIdList:"); + if (this.validWriteIdList == null) { + sb.append("null"); + } else { + sb.append(this.validWriteIdList); + } + first = false; + } + if (isSetIsStatsCompliant()) { + if (!first) sb.append(", "); + sb.append("isStatsCompliant:"); + if (this.isStatsCompliant == null) { + sb.append("null"); + } else { + sb.append(this.isStatsCompliant); + } + first = false; + } sb.append(")"); return sb.toString(); } @@ -1029,7 +1281,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Partition struct) t break; case 2: // DB_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.dbName = org.apache.hadoop.hive.metastore.utils.StringUtils.intern(iprot.readString()); + struct.dbName = iprot.readString(); struct.setDbNameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -1037,7 +1289,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Partition struct) t break; case 3: // TABLE_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.tableName = org.apache.hadoop.hive.metastore.utils.StringUtils.intern(iprot.readString()); + struct.tableName = iprot.readString(); struct.setTableNameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -1099,12 +1351,36 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Partition struct) t break; case 9: // CAT_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.catName = org.apache.hadoop.hive.metastore.utils.StringUtils.intern(iprot.readString()); + struct.catName = iprot.readString(); struct.setCatNameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 10: // WRITE_ID + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.writeId = iprot.readI64(); + struct.setWriteIdIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 11: // VALID_WRITE_ID_LIST + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.validWriteIdList = iprot.readString(); + struct.setValidWriteIdListIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 12: // IS_STATS_COMPLIANT + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.isStatsCompliant = org.apache.hadoop.hive.metastore.api.IsolationLevelCompliance.findByValue(iprot.readI32()); + struct.setIsStatsCompliantIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -1178,6 +1454,25 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, Partition struct) oprot.writeFieldEnd(); } } + if (struct.isSetWriteId()) { + oprot.writeFieldBegin(WRITE_ID_FIELD_DESC); + oprot.writeI64(struct.writeId); + oprot.writeFieldEnd(); + } + if (struct.validWriteIdList != null) { + if (struct.isSetValidWriteIdList()) { + oprot.writeFieldBegin(VALID_WRITE_ID_LIST_FIELD_DESC); + oprot.writeString(struct.validWriteIdList); + oprot.writeFieldEnd(); + } + } + if (struct.isStatsCompliant != null) { + if (struct.isSetIsStatsCompliant()) { + oprot.writeFieldBegin(IS_STATS_COMPLIANT_FIELD_DESC); + oprot.writeI32(struct.isStatsCompliant.getValue()); + oprot.writeFieldEnd(); + } + } oprot.writeFieldStop(); oprot.writeStructEnd(); } @@ -1223,7 +1518,16 @@ public void write(org.apache.thrift.protocol.TProtocol prot, Partition struct) t if (struct.isSetCatName()) { optionals.set(8); } - oprot.writeBitSet(optionals, 9); + if (struct.isSetWriteId()) { + optionals.set(9); + } + if (struct.isSetValidWriteIdList()) { + optionals.set(10); + } + if (struct.isSetIsStatsCompliant()) { + optionals.set(11); + } + oprot.writeBitSet(optionals, 12); if (struct.isSetValues()) { { oprot.writeI32(struct.values.size()); @@ -1264,12 +1568,21 @@ public void write(org.apache.thrift.protocol.TProtocol prot, Partition struct) t if (struct.isSetCatName()) { oprot.writeString(struct.catName); } + if (struct.isSetWriteId()) { + oprot.writeI64(struct.writeId); + } + if (struct.isSetValidWriteIdList()) { + oprot.writeString(struct.validWriteIdList); + } + if (struct.isSetIsStatsCompliant()) { + oprot.writeI32(struct.isStatsCompliant.getValue()); + } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, Partition struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(9); + BitSet incoming = iprot.readBitSet(12); if (incoming.get(0)) { { org.apache.thrift.protocol.TList _list227 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); @@ -1284,11 +1597,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, Partition struct) th struct.setValuesIsSet(true); } if (incoming.get(1)) { - struct.dbName = org.apache.hadoop.hive.metastore.utils.StringUtils.intern(iprot.readString()); + struct.dbName = iprot.readString(); struct.setDbNameIsSet(true); } if (incoming.get(2)) { - struct.tableName = org.apache.hadoop.hive.metastore.utils.StringUtils.intern(iprot.readString()); + struct.tableName = iprot.readString(); struct.setTableNameIsSet(true); } if (incoming.get(3)) { @@ -1325,9 +1638,21 @@ public void read(org.apache.thrift.protocol.TProtocol prot, Partition struct) th struct.setPrivilegesIsSet(true); } if (incoming.get(8)) { - struct.catName = org.apache.hadoop.hive.metastore.utils.StringUtils.intern(iprot.readString()); + struct.catName = iprot.readString(); struct.setCatNameIsSet(true); } + if (incoming.get(9)) { + struct.writeId = iprot.readI64(); + struct.setWriteIdIsSet(true); + } + if (incoming.get(10)) { + struct.validWriteIdList = iprot.readString(); + struct.setValidWriteIdListIsSet(true); + } + if (incoming.get(11)) { + struct.isStatsCompliant = org.apache.hadoop.hive.metastore.api.IsolationLevelCompliance.findByValue(iprot.readI32()); + struct.setIsStatsCompliantIsSet(true); + } } } diff --git standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsStatsRequest.java standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsStatsRequest.java index 91cf567e74..477c8f6f52 100644 --- standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsStatsRequest.java +++ standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsStatsRequest.java @@ -43,6 +43,8 @@ private static final org.apache.thrift.protocol.TField COL_NAMES_FIELD_DESC = new org.apache.thrift.protocol.TField("colNames", org.apache.thrift.protocol.TType.LIST, (short)3); private static final org.apache.thrift.protocol.TField PART_NAMES_FIELD_DESC = new org.apache.thrift.protocol.TField("partNames", org.apache.thrift.protocol.TType.LIST, (short)4); private static final org.apache.thrift.protocol.TField CAT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("catName", org.apache.thrift.protocol.TType.STRING, (short)5); + private static final org.apache.thrift.protocol.TField WRITE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("writeId", org.apache.thrift.protocol.TType.I64, (short)6); + private static final org.apache.thrift.protocol.TField VALID_WRITE_ID_LIST_FIELD_DESC = new org.apache.thrift.protocol.TField("validWriteIdList", org.apache.thrift.protocol.TType.STRING, (short)7); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { @@ -55,6 +57,8 @@ private List colNames; // required private List partNames; // required private String catName; // optional + private long writeId; // optional + private String validWriteIdList; // optional /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { @@ -62,7 +66,9 @@ TBL_NAME((short)2, "tblName"), COL_NAMES((short)3, "colNames"), PART_NAMES((short)4, "partNames"), - CAT_NAME((short)5, "catName"); + CAT_NAME((short)5, "catName"), + WRITE_ID((short)6, "writeId"), + VALID_WRITE_ID_LIST((short)7, "validWriteIdList"); private static final Map byName = new HashMap(); @@ -87,6 +93,10 @@ public static _Fields findByThriftId(int fieldId) { return PART_NAMES; case 5: // CAT_NAME return CAT_NAME; + case 6: // WRITE_ID + return WRITE_ID; + case 7: // VALID_WRITE_ID_LIST + return VALID_WRITE_ID_LIST; default: return null; } @@ -127,7 +137,9 @@ public String getFieldName() { } // isset id assignments - private static final _Fields optionals[] = {_Fields.CAT_NAME}; + private static final int __WRITEID_ISSET_ID = 0; + private byte __isset_bitfield = 0; + private static final _Fields optionals[] = {_Fields.CAT_NAME,_Fields.WRITE_ID,_Fields.VALID_WRITE_ID_LIST}; 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); @@ -143,11 +155,17 @@ public String getFieldName() { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.CAT_NAME, new org.apache.thrift.meta_data.FieldMetaData("catName", org.apache.thrift.TFieldRequirementType.OPTIONAL, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.WRITE_ID, new org.apache.thrift.meta_data.FieldMetaData("writeId", org.apache.thrift.TFieldRequirementType.OPTIONAL, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); + tmpMap.put(_Fields.VALID_WRITE_ID_LIST, new org.apache.thrift.meta_data.FieldMetaData("validWriteIdList", org.apache.thrift.TFieldRequirementType.OPTIONAL, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(PartitionsStatsRequest.class, metaDataMap); } public PartitionsStatsRequest() { + this.writeId = -1L; + } public PartitionsStatsRequest( @@ -167,6 +185,7 @@ public PartitionsStatsRequest( * Performs a deep copy on other. */ public PartitionsStatsRequest(PartitionsStatsRequest other) { + __isset_bitfield = other.__isset_bitfield; if (other.isSetDbName()) { this.dbName = other.dbName; } @@ -184,6 +203,10 @@ public PartitionsStatsRequest(PartitionsStatsRequest other) { if (other.isSetCatName()) { this.catName = other.catName; } + this.writeId = other.writeId; + if (other.isSetValidWriteIdList()) { + this.validWriteIdList = other.validWriteIdList; + } } public PartitionsStatsRequest deepCopy() { @@ -197,6 +220,9 @@ public void clear() { this.colNames = null; this.partNames = null; this.catName = null; + this.writeId = -1L; + + this.validWriteIdList = null; } public String getDbName() { @@ -344,6 +370,51 @@ public void setCatNameIsSet(boolean value) { } } + public long getWriteId() { + return this.writeId; + } + + public void setWriteId(long writeId) { + this.writeId = writeId; + setWriteIdIsSet(true); + } + + public void unsetWriteId() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __WRITEID_ISSET_ID); + } + + /** Returns true if field writeId is set (has been assigned a value) and false otherwise */ + public boolean isSetWriteId() { + return EncodingUtils.testBit(__isset_bitfield, __WRITEID_ISSET_ID); + } + + public void setWriteIdIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __WRITEID_ISSET_ID, value); + } + + public String getValidWriteIdList() { + return this.validWriteIdList; + } + + public void setValidWriteIdList(String validWriteIdList) { + this.validWriteIdList = validWriteIdList; + } + + public void unsetValidWriteIdList() { + this.validWriteIdList = null; + } + + /** Returns true if field validWriteIdList is set (has been assigned a value) and false otherwise */ + public boolean isSetValidWriteIdList() { + return this.validWriteIdList != null; + } + + public void setValidWriteIdListIsSet(boolean value) { + if (!value) { + this.validWriteIdList = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case DB_NAME: @@ -386,6 +457,22 @@ public void setFieldValue(_Fields field, Object value) { } break; + case WRITE_ID: + if (value == null) { + unsetWriteId(); + } else { + setWriteId((Long)value); + } + break; + + case VALID_WRITE_ID_LIST: + if (value == null) { + unsetValidWriteIdList(); + } else { + setValidWriteIdList((String)value); + } + break; + } } @@ -406,6 +493,12 @@ public Object getFieldValue(_Fields field) { case CAT_NAME: return getCatName(); + case WRITE_ID: + return getWriteId(); + + case VALID_WRITE_ID_LIST: + return getValidWriteIdList(); + } throw new IllegalStateException(); } @@ -427,6 +520,10 @@ public boolean isSet(_Fields field) { return isSetPartNames(); case CAT_NAME: return isSetCatName(); + case WRITE_ID: + return isSetWriteId(); + case VALID_WRITE_ID_LIST: + return isSetValidWriteIdList(); } throw new IllegalStateException(); } @@ -489,6 +586,24 @@ public boolean equals(PartitionsStatsRequest that) { return false; } + boolean this_present_writeId = true && this.isSetWriteId(); + boolean that_present_writeId = true && that.isSetWriteId(); + if (this_present_writeId || that_present_writeId) { + if (!(this_present_writeId && that_present_writeId)) + return false; + if (this.writeId != that.writeId) + return false; + } + + boolean this_present_validWriteIdList = true && this.isSetValidWriteIdList(); + boolean that_present_validWriteIdList = true && that.isSetValidWriteIdList(); + if (this_present_validWriteIdList || that_present_validWriteIdList) { + if (!(this_present_validWriteIdList && that_present_validWriteIdList)) + return false; + if (!this.validWriteIdList.equals(that.validWriteIdList)) + return false; + } + return true; } @@ -521,6 +636,16 @@ public int hashCode() { if (present_catName) list.add(catName); + boolean present_writeId = true && (isSetWriteId()); + list.add(present_writeId); + if (present_writeId) + list.add(writeId); + + boolean present_validWriteIdList = true && (isSetValidWriteIdList()); + list.add(present_validWriteIdList); + if (present_validWriteIdList) + list.add(validWriteIdList); + return list.hashCode(); } @@ -582,6 +707,26 @@ public int compareTo(PartitionsStatsRequest other) { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetWriteId()).compareTo(other.isSetWriteId()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetWriteId()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.writeId, other.writeId); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetValidWriteIdList()).compareTo(other.isSetValidWriteIdList()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetValidWriteIdList()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.validWriteIdList, other.validWriteIdList); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -643,6 +788,22 @@ public String toString() { } first = false; } + if (isSetWriteId()) { + if (!first) sb.append(", "); + sb.append("writeId:"); + sb.append(this.writeId); + first = false; + } + if (isSetValidWriteIdList()) { + if (!first) sb.append(", "); + sb.append("validWriteIdList:"); + if (this.validWriteIdList == null) { + sb.append("null"); + } else { + sb.append(this.validWriteIdList); + } + first = false; + } sb.append(")"); return sb.toString(); } @@ -678,6 +839,8 @@ 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); @@ -762,6 +925,22 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, PartitionsStatsRequ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 6: // WRITE_ID + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.writeId = iprot.readI64(); + struct.setWriteIdIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 7: // VALID_WRITE_ID_LIST + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.validWriteIdList = iprot.readString(); + struct.setValidWriteIdListIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -816,6 +995,18 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, PartitionsStatsReq oprot.writeFieldEnd(); } } + if (struct.isSetWriteId()) { + oprot.writeFieldBegin(WRITE_ID_FIELD_DESC); + oprot.writeI64(struct.writeId); + oprot.writeFieldEnd(); + } + if (struct.validWriteIdList != null) { + if (struct.isSetValidWriteIdList()) { + oprot.writeFieldBegin(VALID_WRITE_ID_LIST_FIELD_DESC); + oprot.writeString(struct.validWriteIdList); + oprot.writeFieldEnd(); + } + } oprot.writeFieldStop(); oprot.writeStructEnd(); } @@ -853,10 +1044,22 @@ public void write(org.apache.thrift.protocol.TProtocol prot, PartitionsStatsRequ if (struct.isSetCatName()) { optionals.set(0); } - oprot.writeBitSet(optionals, 1); + if (struct.isSetWriteId()) { + optionals.set(1); + } + if (struct.isSetValidWriteIdList()) { + optionals.set(2); + } + oprot.writeBitSet(optionals, 3); if (struct.isSetCatName()) { oprot.writeString(struct.catName); } + if (struct.isSetWriteId()) { + oprot.writeI64(struct.writeId); + } + if (struct.isSetValidWriteIdList()) { + oprot.writeString(struct.validWriteIdList); + } } @Override @@ -888,11 +1091,19 @@ public void read(org.apache.thrift.protocol.TProtocol prot, PartitionsStatsReque } } struct.setPartNamesIsSet(true); - BitSet incoming = iprot.readBitSet(1); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.catName = iprot.readString(); struct.setCatNameIsSet(true); } + if (incoming.get(1)) { + struct.writeId = iprot.readI64(); + struct.setWriteIdIsSet(true); + } + if (incoming.get(2)) { + struct.validWriteIdList = iprot.readString(); + struct.setValidWriteIdListIsSet(true); + } } } diff --git standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SetPartitionsStatsRequest.java standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SetPartitionsStatsRequest.java index a0ae84e760..778f3862b3 100644 --- standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SetPartitionsStatsRequest.java +++ standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SetPartitionsStatsRequest.java @@ -40,6 +40,8 @@ private static final org.apache.thrift.protocol.TField COL_STATS_FIELD_DESC = new org.apache.thrift.protocol.TField("colStats", org.apache.thrift.protocol.TType.LIST, (short)1); private static final org.apache.thrift.protocol.TField NEED_MERGE_FIELD_DESC = new org.apache.thrift.protocol.TField("needMerge", org.apache.thrift.protocol.TType.BOOL, (short)2); + private static final org.apache.thrift.protocol.TField WRITE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("writeId", org.apache.thrift.protocol.TType.I64, (short)3); + private static final org.apache.thrift.protocol.TField VALID_WRITE_ID_LIST_FIELD_DESC = new org.apache.thrift.protocol.TField("validWriteIdList", org.apache.thrift.protocol.TType.STRING, (short)4); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { @@ -49,11 +51,15 @@ private List colStats; // required private boolean needMerge; // optional + private long writeId; // optional + private String validWriteIdList; // optional /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { COL_STATS((short)1, "colStats"), - NEED_MERGE((short)2, "needMerge"); + NEED_MERGE((short)2, "needMerge"), + WRITE_ID((short)3, "writeId"), + VALID_WRITE_ID_LIST((short)4, "validWriteIdList"); private static final Map byName = new HashMap(); @@ -72,6 +78,10 @@ public static _Fields findByThriftId(int fieldId) { return COL_STATS; case 2: // NEED_MERGE return NEED_MERGE; + case 3: // WRITE_ID + return WRITE_ID; + case 4: // VALID_WRITE_ID_LIST + return VALID_WRITE_ID_LIST; default: return null; } @@ -113,8 +123,9 @@ public String getFieldName() { // isset id assignments private static final int __NEEDMERGE_ISSET_ID = 0; + private static final int __WRITEID_ISSET_ID = 1; private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.NEED_MERGE}; + private static final _Fields optionals[] = {_Fields.NEED_MERGE,_Fields.WRITE_ID,_Fields.VALID_WRITE_ID_LIST}; 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); @@ -123,11 +134,17 @@ public String getFieldName() { new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ColumnStatistics.class)))); tmpMap.put(_Fields.NEED_MERGE, new org.apache.thrift.meta_data.FieldMetaData("needMerge", org.apache.thrift.TFieldRequirementType.OPTIONAL, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + tmpMap.put(_Fields.WRITE_ID, new org.apache.thrift.meta_data.FieldMetaData("writeId", org.apache.thrift.TFieldRequirementType.OPTIONAL, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); + tmpMap.put(_Fields.VALID_WRITE_ID_LIST, new org.apache.thrift.meta_data.FieldMetaData("validWriteIdList", org.apache.thrift.TFieldRequirementType.OPTIONAL, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(SetPartitionsStatsRequest.class, metaDataMap); } public SetPartitionsStatsRequest() { + this.writeId = -1L; + } public SetPartitionsStatsRequest( @@ -150,6 +167,10 @@ public SetPartitionsStatsRequest(SetPartitionsStatsRequest other) { this.colStats = __this__colStats; } this.needMerge = other.needMerge; + this.writeId = other.writeId; + if (other.isSetValidWriteIdList()) { + this.validWriteIdList = other.validWriteIdList; + } } public SetPartitionsStatsRequest deepCopy() { @@ -161,6 +182,9 @@ public void clear() { this.colStats = null; setNeedMergeIsSet(false); this.needMerge = false; + this.writeId = -1L; + + this.validWriteIdList = null; } public int getColStatsSize() { @@ -223,6 +247,51 @@ public void setNeedMergeIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __NEEDMERGE_ISSET_ID, value); } + public long getWriteId() { + return this.writeId; + } + + public void setWriteId(long writeId) { + this.writeId = writeId; + setWriteIdIsSet(true); + } + + public void unsetWriteId() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __WRITEID_ISSET_ID); + } + + /** Returns true if field writeId is set (has been assigned a value) and false otherwise */ + public boolean isSetWriteId() { + return EncodingUtils.testBit(__isset_bitfield, __WRITEID_ISSET_ID); + } + + public void setWriteIdIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __WRITEID_ISSET_ID, value); + } + + public String getValidWriteIdList() { + return this.validWriteIdList; + } + + public void setValidWriteIdList(String validWriteIdList) { + this.validWriteIdList = validWriteIdList; + } + + public void unsetValidWriteIdList() { + this.validWriteIdList = null; + } + + /** Returns true if field validWriteIdList is set (has been assigned a value) and false otherwise */ + public boolean isSetValidWriteIdList() { + return this.validWriteIdList != null; + } + + public void setValidWriteIdListIsSet(boolean value) { + if (!value) { + this.validWriteIdList = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case COL_STATS: @@ -241,6 +310,22 @@ public void setFieldValue(_Fields field, Object value) { } break; + case WRITE_ID: + if (value == null) { + unsetWriteId(); + } else { + setWriteId((Long)value); + } + break; + + case VALID_WRITE_ID_LIST: + if (value == null) { + unsetValidWriteIdList(); + } else { + setValidWriteIdList((String)value); + } + break; + } } @@ -252,6 +337,12 @@ public Object getFieldValue(_Fields field) { case NEED_MERGE: return isNeedMerge(); + case WRITE_ID: + return getWriteId(); + + case VALID_WRITE_ID_LIST: + return getValidWriteIdList(); + } throw new IllegalStateException(); } @@ -267,6 +358,10 @@ public boolean isSet(_Fields field) { return isSetColStats(); case NEED_MERGE: return isSetNeedMerge(); + case WRITE_ID: + return isSetWriteId(); + case VALID_WRITE_ID_LIST: + return isSetValidWriteIdList(); } throw new IllegalStateException(); } @@ -302,6 +397,24 @@ public boolean equals(SetPartitionsStatsRequest that) { return false; } + boolean this_present_writeId = true && this.isSetWriteId(); + boolean that_present_writeId = true && that.isSetWriteId(); + if (this_present_writeId || that_present_writeId) { + if (!(this_present_writeId && that_present_writeId)) + return false; + if (this.writeId != that.writeId) + return false; + } + + boolean this_present_validWriteIdList = true && this.isSetValidWriteIdList(); + boolean that_present_validWriteIdList = true && that.isSetValidWriteIdList(); + if (this_present_validWriteIdList || that_present_validWriteIdList) { + if (!(this_present_validWriteIdList && that_present_validWriteIdList)) + return false; + if (!this.validWriteIdList.equals(that.validWriteIdList)) + return false; + } + return true; } @@ -319,6 +432,16 @@ public int hashCode() { if (present_needMerge) list.add(needMerge); + boolean present_writeId = true && (isSetWriteId()); + list.add(present_writeId); + if (present_writeId) + list.add(writeId); + + boolean present_validWriteIdList = true && (isSetValidWriteIdList()); + list.add(present_validWriteIdList); + if (present_validWriteIdList) + list.add(validWriteIdList); + return list.hashCode(); } @@ -350,6 +473,26 @@ public int compareTo(SetPartitionsStatsRequest other) { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetWriteId()).compareTo(other.isSetWriteId()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetWriteId()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.writeId, other.writeId); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetValidWriteIdList()).compareTo(other.isSetValidWriteIdList()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetValidWriteIdList()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.validWriteIdList, other.validWriteIdList); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -383,6 +526,22 @@ public String toString() { sb.append(this.needMerge); first = false; } + if (isSetWriteId()) { + if (!first) sb.append(", "); + sb.append("writeId:"); + sb.append(this.writeId); + first = false; + } + if (isSetValidWriteIdList()) { + if (!first) sb.append(", "); + sb.append("validWriteIdList:"); + if (this.validWriteIdList == null) { + sb.append("null"); + } else { + sb.append(this.validWriteIdList); + } + first = false; + } sb.append(")"); return sb.toString(); } @@ -459,6 +618,22 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, SetPartitionsStatsR org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 3: // WRITE_ID + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.writeId = iprot.readI64(); + struct.setWriteIdIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // VALID_WRITE_ID_LIST + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.validWriteIdList = iprot.readString(); + struct.setValidWriteIdListIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -489,6 +664,18 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, SetPartitionsStats oprot.writeBool(struct.needMerge); oprot.writeFieldEnd(); } + if (struct.isSetWriteId()) { + oprot.writeFieldBegin(WRITE_ID_FIELD_DESC); + oprot.writeI64(struct.writeId); + oprot.writeFieldEnd(); + } + if (struct.validWriteIdList != null) { + if (struct.isSetValidWriteIdList()) { + oprot.writeFieldBegin(VALID_WRITE_ID_LIST_FIELD_DESC); + oprot.writeString(struct.validWriteIdList); + oprot.writeFieldEnd(); + } + } oprot.writeFieldStop(); oprot.writeStructEnd(); } @@ -517,10 +704,22 @@ public void write(org.apache.thrift.protocol.TProtocol prot, SetPartitionsStatsR if (struct.isSetNeedMerge()) { optionals.set(0); } - oprot.writeBitSet(optionals, 1); + if (struct.isSetWriteId()) { + optionals.set(1); + } + if (struct.isSetValidWriteIdList()) { + optionals.set(2); + } + oprot.writeBitSet(optionals, 3); if (struct.isSetNeedMerge()) { oprot.writeBool(struct.needMerge); } + if (struct.isSetWriteId()) { + oprot.writeI64(struct.writeId); + } + if (struct.isSetValidWriteIdList()) { + oprot.writeString(struct.validWriteIdList); + } } @Override @@ -538,11 +737,19 @@ public void read(org.apache.thrift.protocol.TProtocol prot, SetPartitionsStatsRe } } struct.setColStatsIsSet(true); - BitSet incoming = iprot.readBitSet(1); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.needMerge = iprot.readBool(); struct.setNeedMergeIsSet(true); } + if (incoming.get(1)) { + struct.writeId = iprot.readI64(); + struct.setWriteIdIsSet(true); + } + if (incoming.get(2)) { + struct.validWriteIdList = iprot.readString(); + struct.setValidWriteIdListIsSet(true); + } } } diff --git standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Table.java standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Table.java index 38d4f64f64..20307a6d5c 100644 --- standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Table.java +++ standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Table.java @@ -56,6 +56,9 @@ private static final org.apache.thrift.protocol.TField CREATION_METADATA_FIELD_DESC = new org.apache.thrift.protocol.TField("creationMetadata", org.apache.thrift.protocol.TType.STRUCT, (short)16); private static final org.apache.thrift.protocol.TField CAT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("catName", org.apache.thrift.protocol.TType.STRING, (short)17); private static final org.apache.thrift.protocol.TField OWNER_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("ownerType", org.apache.thrift.protocol.TType.I32, (short)18); + private static final org.apache.thrift.protocol.TField WRITE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("writeId", org.apache.thrift.protocol.TType.I64, (short)19); + private static final org.apache.thrift.protocol.TField VALID_WRITE_ID_LIST_FIELD_DESC = new org.apache.thrift.protocol.TField("validWriteIdList", org.apache.thrift.protocol.TType.STRING, (short)20); + private static final org.apache.thrift.protocol.TField IS_STATS_COMPLIANT_FIELD_DESC = new org.apache.thrift.protocol.TField("isStatsCompliant", org.apache.thrift.protocol.TType.I32, (short)21); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { @@ -81,6 +84,9 @@ private CreationMetadata creationMetadata; // optional private String catName; // optional private PrincipalType ownerType; // optional + private long writeId; // optional + private String validWriteIdList; // optional + private IsolationLevelCompliance isStatsCompliant; // optional /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { @@ -105,7 +111,14 @@ * * @see PrincipalType */ - OWNER_TYPE((short)18, "ownerType"); + OWNER_TYPE((short)18, "ownerType"), + WRITE_ID((short)19, "writeId"), + VALID_WRITE_ID_LIST((short)20, "validWriteIdList"), + /** + * + * @see IsolationLevelCompliance + */ + IS_STATS_COMPLIANT((short)21, "isStatsCompliant"); private static final Map byName = new HashMap(); @@ -156,6 +169,12 @@ public static _Fields findByThriftId(int fieldId) { return CAT_NAME; case 18: // OWNER_TYPE return OWNER_TYPE; + case 19: // WRITE_ID + return WRITE_ID; + case 20: // VALID_WRITE_ID_LIST + return VALID_WRITE_ID_LIST; + case 21: // IS_STATS_COMPLIANT + return IS_STATS_COMPLIANT; default: return null; } @@ -201,8 +220,9 @@ public String getFieldName() { private static final int __RETENTION_ISSET_ID = 2; private static final int __TEMPORARY_ISSET_ID = 3; private static final int __REWRITEENABLED_ISSET_ID = 4; + private static final int __WRITEID_ISSET_ID = 5; private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.PRIVILEGES,_Fields.TEMPORARY,_Fields.REWRITE_ENABLED,_Fields.CREATION_METADATA,_Fields.CAT_NAME,_Fields.OWNER_TYPE}; + private static final _Fields optionals[] = {_Fields.PRIVILEGES,_Fields.TEMPORARY,_Fields.REWRITE_ENABLED,_Fields.CREATION_METADATA,_Fields.CAT_NAME,_Fields.OWNER_TYPE,_Fields.WRITE_ID,_Fields.VALID_WRITE_ID_LIST,_Fields.IS_STATS_COMPLIANT}; 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); @@ -245,6 +265,12 @@ public String getFieldName() { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.OWNER_TYPE, new org.apache.thrift.meta_data.FieldMetaData("ownerType", org.apache.thrift.TFieldRequirementType.OPTIONAL, new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, PrincipalType.class))); + tmpMap.put(_Fields.WRITE_ID, new org.apache.thrift.meta_data.FieldMetaData("writeId", org.apache.thrift.TFieldRequirementType.OPTIONAL, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); + tmpMap.put(_Fields.VALID_WRITE_ID_LIST, new org.apache.thrift.meta_data.FieldMetaData("validWriteIdList", org.apache.thrift.TFieldRequirementType.OPTIONAL, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.IS_STATS_COMPLIANT, new org.apache.thrift.meta_data.FieldMetaData("isStatsCompliant", org.apache.thrift.TFieldRequirementType.OPTIONAL, + new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, IsolationLevelCompliance.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Table.class, metaDataMap); } @@ -254,6 +280,8 @@ public Table() { this.ownerType = org.apache.hadoop.hive.metastore.api.PrincipalType.USER; + this.writeId = -1L; + } public Table( @@ -342,6 +370,13 @@ public Table(Table other) { if (other.isSetOwnerType()) { this.ownerType = other.ownerType; } + this.writeId = other.writeId; + if (other.isSetValidWriteIdList()) { + this.validWriteIdList = other.validWriteIdList; + } + if (other.isSetIsStatsCompliant()) { + this.isStatsCompliant = other.isStatsCompliant; + } } public Table deepCopy() { @@ -374,6 +409,10 @@ public void clear() { this.catName = null; this.ownerType = org.apache.hadoop.hive.metastore.api.PrincipalType.USER; + this.writeId = -1L; + + this.validWriteIdList = null; + this.isStatsCompliant = null; } public String getTableName() { @@ -819,6 +858,82 @@ public void setOwnerTypeIsSet(boolean value) { } } + public long getWriteId() { + return this.writeId; + } + + public void setWriteId(long writeId) { + this.writeId = writeId; + setWriteIdIsSet(true); + } + + public void unsetWriteId() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __WRITEID_ISSET_ID); + } + + /** Returns true if field writeId is set (has been assigned a value) and false otherwise */ + public boolean isSetWriteId() { + return EncodingUtils.testBit(__isset_bitfield, __WRITEID_ISSET_ID); + } + + public void setWriteIdIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __WRITEID_ISSET_ID, value); + } + + public String getValidWriteIdList() { + return this.validWriteIdList; + } + + public void setValidWriteIdList(String validWriteIdList) { + this.validWriteIdList = validWriteIdList; + } + + public void unsetValidWriteIdList() { + this.validWriteIdList = null; + } + + /** Returns true if field validWriteIdList is set (has been assigned a value) and false otherwise */ + public boolean isSetValidWriteIdList() { + return this.validWriteIdList != null; + } + + public void setValidWriteIdListIsSet(boolean value) { + if (!value) { + this.validWriteIdList = null; + } + } + + /** + * + * @see IsolationLevelCompliance + */ + public IsolationLevelCompliance getIsStatsCompliant() { + return this.isStatsCompliant; + } + + /** + * + * @see IsolationLevelCompliance + */ + public void setIsStatsCompliant(IsolationLevelCompliance isStatsCompliant) { + this.isStatsCompliant = isStatsCompliant; + } + + public void unsetIsStatsCompliant() { + this.isStatsCompliant = null; + } + + /** Returns true if field isStatsCompliant is set (has been assigned a value) and false otherwise */ + public boolean isSetIsStatsCompliant() { + return this.isStatsCompliant != null; + } + + public void setIsStatsCompliantIsSet(boolean value) { + if (!value) { + this.isStatsCompliant = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case TABLE_NAME: @@ -965,6 +1080,30 @@ public void setFieldValue(_Fields field, Object value) { } break; + case WRITE_ID: + if (value == null) { + unsetWriteId(); + } else { + setWriteId((Long)value); + } + break; + + case VALID_WRITE_ID_LIST: + if (value == null) { + unsetValidWriteIdList(); + } else { + setValidWriteIdList((String)value); + } + break; + + case IS_STATS_COMPLIANT: + if (value == null) { + unsetIsStatsCompliant(); + } else { + setIsStatsCompliant((IsolationLevelCompliance)value); + } + break; + } } @@ -1024,6 +1163,15 @@ public Object getFieldValue(_Fields field) { case OWNER_TYPE: return getOwnerType(); + case WRITE_ID: + return getWriteId(); + + case VALID_WRITE_ID_LIST: + return getValidWriteIdList(); + + case IS_STATS_COMPLIANT: + return getIsStatsCompliant(); + } throw new IllegalStateException(); } @@ -1071,6 +1219,12 @@ public boolean isSet(_Fields field) { return isSetCatName(); case OWNER_TYPE: return isSetOwnerType(); + case WRITE_ID: + return isSetWriteId(); + case VALID_WRITE_ID_LIST: + return isSetValidWriteIdList(); + case IS_STATS_COMPLIANT: + return isSetIsStatsCompliant(); } throw new IllegalStateException(); } @@ -1250,6 +1404,33 @@ public boolean equals(Table that) { return false; } + boolean this_present_writeId = true && this.isSetWriteId(); + boolean that_present_writeId = true && that.isSetWriteId(); + if (this_present_writeId || that_present_writeId) { + if (!(this_present_writeId && that_present_writeId)) + return false; + if (this.writeId != that.writeId) + return false; + } + + boolean this_present_validWriteIdList = true && this.isSetValidWriteIdList(); + boolean that_present_validWriteIdList = true && that.isSetValidWriteIdList(); + if (this_present_validWriteIdList || that_present_validWriteIdList) { + if (!(this_present_validWriteIdList && that_present_validWriteIdList)) + return false; + if (!this.validWriteIdList.equals(that.validWriteIdList)) + return false; + } + + boolean this_present_isStatsCompliant = true && this.isSetIsStatsCompliant(); + boolean that_present_isStatsCompliant = true && that.isSetIsStatsCompliant(); + if (this_present_isStatsCompliant || that_present_isStatsCompliant) { + if (!(this_present_isStatsCompliant && that_present_isStatsCompliant)) + return false; + if (!this.isStatsCompliant.equals(that.isStatsCompliant)) + return false; + } + return true; } @@ -1347,6 +1528,21 @@ public int hashCode() { if (present_ownerType) list.add(ownerType.getValue()); + boolean present_writeId = true && (isSetWriteId()); + list.add(present_writeId); + if (present_writeId) + list.add(writeId); + + boolean present_validWriteIdList = true && (isSetValidWriteIdList()); + list.add(present_validWriteIdList); + if (present_validWriteIdList) + list.add(validWriteIdList); + + boolean present_isStatsCompliant = true && (isSetIsStatsCompliant()); + list.add(present_isStatsCompliant); + if (present_isStatsCompliant) + list.add(isStatsCompliant.getValue()); + return list.hashCode(); } @@ -1538,6 +1734,36 @@ public int compareTo(Table other) { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetWriteId()).compareTo(other.isSetWriteId()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetWriteId()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.writeId, other.writeId); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetValidWriteIdList()).compareTo(other.isSetValidWriteIdList()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetValidWriteIdList()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.validWriteIdList, other.validWriteIdList); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetIsStatsCompliant()).compareTo(other.isSetIsStatsCompliant()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetIsStatsCompliant()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isStatsCompliant, other.isStatsCompliant); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -1693,6 +1919,32 @@ public String toString() { } first = false; } + if (isSetWriteId()) { + if (!first) sb.append(", "); + sb.append("writeId:"); + sb.append(this.writeId); + first = false; + } + if (isSetValidWriteIdList()) { + if (!first) sb.append(", "); + sb.append("validWriteIdList:"); + if (this.validWriteIdList == null) { + sb.append("null"); + } else { + sb.append(this.validWriteIdList); + } + first = false; + } + if (isSetIsStatsCompliant()) { + if (!first) sb.append(", "); + sb.append("isStatsCompliant:"); + if (this.isStatsCompliant == null) { + sb.append("null"); + } else { + sb.append(this.isStatsCompliant); + } + first = false; + } sb.append(")"); return sb.toString(); } @@ -1914,6 +2166,30 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Table struct) throw org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 19: // WRITE_ID + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.writeId = iprot.readI64(); + struct.setWriteIdIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 20: // VALID_WRITE_ID_LIST + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.validWriteIdList = iprot.readString(); + struct.setValidWriteIdListIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 21: // IS_STATS_COMPLIANT + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.isStatsCompliant = org.apache.hadoop.hive.metastore.api.IsolationLevelCompliance.findByValue(iprot.readI32()); + struct.setIsStatsCompliantIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -2034,6 +2310,25 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, Table struct) thro oprot.writeFieldEnd(); } } + if (struct.isSetWriteId()) { + oprot.writeFieldBegin(WRITE_ID_FIELD_DESC); + oprot.writeI64(struct.writeId); + oprot.writeFieldEnd(); + } + if (struct.validWriteIdList != null) { + if (struct.isSetValidWriteIdList()) { + oprot.writeFieldBegin(VALID_WRITE_ID_LIST_FIELD_DESC); + oprot.writeString(struct.validWriteIdList); + oprot.writeFieldEnd(); + } + } + if (struct.isStatsCompliant != null) { + if (struct.isSetIsStatsCompliant()) { + oprot.writeFieldBegin(IS_STATS_COMPLIANT_FIELD_DESC); + oprot.writeI32(struct.isStatsCompliant.getValue()); + oprot.writeFieldEnd(); + } + } oprot.writeFieldStop(); oprot.writeStructEnd(); } @@ -2106,7 +2401,16 @@ public void write(org.apache.thrift.protocol.TProtocol prot, Table struct) throw if (struct.isSetOwnerType()) { optionals.set(17); } - oprot.writeBitSet(optionals, 18); + if (struct.isSetWriteId()) { + optionals.set(18); + } + if (struct.isSetValidWriteIdList()) { + optionals.set(19); + } + if (struct.isSetIsStatsCompliant()) { + optionals.set(20); + } + oprot.writeBitSet(optionals, 21); if (struct.isSetTableName()) { oprot.writeString(struct.tableName); } @@ -2174,12 +2478,21 @@ public void write(org.apache.thrift.protocol.TProtocol prot, Table struct) throw if (struct.isSetOwnerType()) { oprot.writeI32(struct.ownerType.getValue()); } + if (struct.isSetWriteId()) { + oprot.writeI64(struct.writeId); + } + if (struct.isSetValidWriteIdList()) { + oprot.writeString(struct.validWriteIdList); + } + if (struct.isSetIsStatsCompliant()) { + oprot.writeI32(struct.isStatsCompliant.getValue()); + } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, Table struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(18); + BitSet incoming = iprot.readBitSet(21); if (incoming.get(0)) { struct.tableName = iprot.readString(); struct.setTableNameIsSet(true); @@ -2276,6 +2589,18 @@ public void read(org.apache.thrift.protocol.TProtocol prot, Table struct) throws struct.ownerType = org.apache.hadoop.hive.metastore.api.PrincipalType.findByValue(iprot.readI32()); struct.setOwnerTypeIsSet(true); } + if (incoming.get(18)) { + struct.writeId = iprot.readI64(); + struct.setWriteIdIsSet(true); + } + if (incoming.get(19)) { + struct.validWriteIdList = iprot.readString(); + struct.setValidWriteIdListIsSet(true); + } + if (incoming.get(20)) { + struct.isStatsCompliant = org.apache.hadoop.hive.metastore.api.IsolationLevelCompliance.findByValue(iprot.readI32()); + struct.setIsStatsCompliantIsSet(true); + } } } diff --git standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TableStatsRequest.java standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TableStatsRequest.java index a663a64c67..3246816f57 100644 --- standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TableStatsRequest.java +++ standalone-metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TableStatsRequest.java @@ -42,6 +42,8 @@ private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tblName", org.apache.thrift.protocol.TType.STRING, (short)2); private static final org.apache.thrift.protocol.TField COL_NAMES_FIELD_DESC = new org.apache.thrift.protocol.TField("colNames", org.apache.thrift.protocol.TType.LIST, (short)3); private static final org.apache.thrift.protocol.TField CAT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("catName", org.apache.thrift.protocol.TType.STRING, (short)4); + private static final org.apache.thrift.protocol.TField WRITE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("writeId", org.apache.thrift.protocol.TType.I64, (short)5); + private static final org.apache.thrift.protocol.TField VALID_WRITE_ID_LIST_FIELD_DESC = new org.apache.thrift.protocol.TField("validWriteIdList", org.apache.thrift.protocol.TType.STRING, (short)6); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { @@ -53,13 +55,17 @@ private String tblName; // required private List colNames; // required private String catName; // optional + private long writeId; // optional + private String validWriteIdList; // optional /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { DB_NAME((short)1, "dbName"), TBL_NAME((short)2, "tblName"), COL_NAMES((short)3, "colNames"), - CAT_NAME((short)4, "catName"); + CAT_NAME((short)4, "catName"), + WRITE_ID((short)5, "writeId"), + VALID_WRITE_ID_LIST((short)6, "validWriteIdList"); private static final Map byName = new HashMap(); @@ -82,6 +88,10 @@ public static _Fields findByThriftId(int fieldId) { return COL_NAMES; case 4: // CAT_NAME return CAT_NAME; + case 5: // WRITE_ID + return WRITE_ID; + case 6: // VALID_WRITE_ID_LIST + return VALID_WRITE_ID_LIST; default: return null; } @@ -122,7 +132,9 @@ public String getFieldName() { } // isset id assignments - private static final _Fields optionals[] = {_Fields.CAT_NAME}; + private static final int __WRITEID_ISSET_ID = 0; + private byte __isset_bitfield = 0; + private static final _Fields optionals[] = {_Fields.CAT_NAME,_Fields.WRITE_ID,_Fields.VALID_WRITE_ID_LIST}; 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); @@ -135,11 +147,17 @@ public String getFieldName() { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.CAT_NAME, new org.apache.thrift.meta_data.FieldMetaData("catName", org.apache.thrift.TFieldRequirementType.OPTIONAL, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.WRITE_ID, new org.apache.thrift.meta_data.FieldMetaData("writeId", org.apache.thrift.TFieldRequirementType.OPTIONAL, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); + tmpMap.put(_Fields.VALID_WRITE_ID_LIST, new org.apache.thrift.meta_data.FieldMetaData("validWriteIdList", org.apache.thrift.TFieldRequirementType.OPTIONAL, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(TableStatsRequest.class, metaDataMap); } public TableStatsRequest() { + this.writeId = -1L; + } public TableStatsRequest( @@ -157,6 +175,7 @@ public TableStatsRequest( * Performs a deep copy on other. */ public TableStatsRequest(TableStatsRequest other) { + __isset_bitfield = other.__isset_bitfield; if (other.isSetDbName()) { this.dbName = other.dbName; } @@ -170,6 +189,10 @@ public TableStatsRequest(TableStatsRequest other) { if (other.isSetCatName()) { this.catName = other.catName; } + this.writeId = other.writeId; + if (other.isSetValidWriteIdList()) { + this.validWriteIdList = other.validWriteIdList; + } } public TableStatsRequest deepCopy() { @@ -182,6 +205,9 @@ public void clear() { this.tblName = null; this.colNames = null; this.catName = null; + this.writeId = -1L; + + this.validWriteIdList = null; } public String getDbName() { @@ -291,6 +317,51 @@ public void setCatNameIsSet(boolean value) { } } + public long getWriteId() { + return this.writeId; + } + + public void setWriteId(long writeId) { + this.writeId = writeId; + setWriteIdIsSet(true); + } + + public void unsetWriteId() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __WRITEID_ISSET_ID); + } + + /** Returns true if field writeId is set (has been assigned a value) and false otherwise */ + public boolean isSetWriteId() { + return EncodingUtils.testBit(__isset_bitfield, __WRITEID_ISSET_ID); + } + + public void setWriteIdIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __WRITEID_ISSET_ID, value); + } + + public String getValidWriteIdList() { + return this.validWriteIdList; + } + + public void setValidWriteIdList(String validWriteIdList) { + this.validWriteIdList = validWriteIdList; + } + + public void unsetValidWriteIdList() { + this.validWriteIdList = null; + } + + /** Returns true if field validWriteIdList is set (has been assigned a value) and false otherwise */ + public boolean isSetValidWriteIdList() { + return this.validWriteIdList != null; + } + + public void setValidWriteIdListIsSet(boolean value) { + if (!value) { + this.validWriteIdList = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case DB_NAME: @@ -325,6 +396,22 @@ public void setFieldValue(_Fields field, Object value) { } break; + case WRITE_ID: + if (value == null) { + unsetWriteId(); + } else { + setWriteId((Long)value); + } + break; + + case VALID_WRITE_ID_LIST: + if (value == null) { + unsetValidWriteIdList(); + } else { + setValidWriteIdList((String)value); + } + break; + } } @@ -342,6 +429,12 @@ public Object getFieldValue(_Fields field) { case CAT_NAME: return getCatName(); + case WRITE_ID: + return getWriteId(); + + case VALID_WRITE_ID_LIST: + return getValidWriteIdList(); + } throw new IllegalStateException(); } @@ -361,6 +454,10 @@ public boolean isSet(_Fields field) { return isSetColNames(); case CAT_NAME: return isSetCatName(); + case WRITE_ID: + return isSetWriteId(); + case VALID_WRITE_ID_LIST: + return isSetValidWriteIdList(); } throw new IllegalStateException(); } @@ -414,6 +511,24 @@ public boolean equals(TableStatsRequest that) { return false; } + boolean this_present_writeId = true && this.isSetWriteId(); + boolean that_present_writeId = true && that.isSetWriteId(); + if (this_present_writeId || that_present_writeId) { + if (!(this_present_writeId && that_present_writeId)) + return false; + if (this.writeId != that.writeId) + return false; + } + + boolean this_present_validWriteIdList = true && this.isSetValidWriteIdList(); + boolean that_present_validWriteIdList = true && that.isSetValidWriteIdList(); + if (this_present_validWriteIdList || that_present_validWriteIdList) { + if (!(this_present_validWriteIdList && that_present_validWriteIdList)) + return false; + if (!this.validWriteIdList.equals(that.validWriteIdList)) + return false; + } + return true; } @@ -441,6 +556,16 @@ public int hashCode() { if (present_catName) list.add(catName); + boolean present_writeId = true && (isSetWriteId()); + list.add(present_writeId); + if (present_writeId) + list.add(writeId); + + boolean present_validWriteIdList = true && (isSetValidWriteIdList()); + list.add(present_validWriteIdList); + if (present_validWriteIdList) + list.add(validWriteIdList); + return list.hashCode(); } @@ -492,6 +617,26 @@ public int compareTo(TableStatsRequest other) { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetWriteId()).compareTo(other.isSetWriteId()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetWriteId()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.writeId, other.writeId); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetValidWriteIdList()).compareTo(other.isSetValidWriteIdList()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetValidWriteIdList()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.validWriteIdList, other.validWriteIdList); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -545,6 +690,22 @@ public String toString() { } first = false; } + if (isSetWriteId()) { + if (!first) sb.append(", "); + sb.append("writeId:"); + sb.append(this.writeId); + first = false; + } + if (isSetValidWriteIdList()) { + if (!first) sb.append(", "); + sb.append("validWriteIdList:"); + if (this.validWriteIdList == null) { + sb.append("null"); + } else { + sb.append(this.validWriteIdList); + } + first = false; + } sb.append(")"); return sb.toString(); } @@ -576,6 +737,8 @@ 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); @@ -642,6 +805,22 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, TableStatsRequest s org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 5: // WRITE_ID + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.writeId = iprot.readI64(); + struct.setWriteIdIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 6: // VALID_WRITE_ID_LIST + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.validWriteIdList = iprot.readString(); + struct.setValidWriteIdListIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -684,6 +863,18 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, TableStatsRequest oprot.writeFieldEnd(); } } + if (struct.isSetWriteId()) { + oprot.writeFieldBegin(WRITE_ID_FIELD_DESC); + oprot.writeI64(struct.writeId); + oprot.writeFieldEnd(); + } + if (struct.validWriteIdList != null) { + if (struct.isSetValidWriteIdList()) { + oprot.writeFieldBegin(VALID_WRITE_ID_LIST_FIELD_DESC); + oprot.writeString(struct.validWriteIdList); + oprot.writeFieldEnd(); + } + } oprot.writeFieldStop(); oprot.writeStructEnd(); } @@ -714,10 +905,22 @@ public void write(org.apache.thrift.protocol.TProtocol prot, TableStatsRequest s if (struct.isSetCatName()) { optionals.set(0); } - oprot.writeBitSet(optionals, 1); + if (struct.isSetWriteId()) { + optionals.set(1); + } + if (struct.isSetValidWriteIdList()) { + optionals.set(2); + } + oprot.writeBitSet(optionals, 3); if (struct.isSetCatName()) { oprot.writeString(struct.catName); } + if (struct.isSetWriteId()) { + oprot.writeI64(struct.writeId); + } + if (struct.isSetValidWriteIdList()) { + oprot.writeString(struct.validWriteIdList); + } } @Override @@ -738,11 +941,19 @@ public void read(org.apache.thrift.protocol.TProtocol prot, TableStatsRequest st } } struct.setColNamesIsSet(true); - BitSet incoming = iprot.readBitSet(1); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.catName = iprot.readString(); struct.setCatNameIsSet(true); } + if (incoming.get(1)) { + struct.writeId = iprot.readI64(); + struct.setWriteIdIsSet(true); + } + if (incoming.get(2)) { + struct.validWriteIdList = iprot.readString(); + struct.setValidWriteIdListIsSet(true); + } } } diff --git standalone-metastore/src/gen/thrift/gen-php/metastore/Types.php standalone-metastore/src/gen/thrift/gen-php/metastore/Types.php index 353c0deb91..bf4a35c0e9 100644 --- standalone-metastore/src/gen/thrift/gen-php/metastore/Types.php +++ standalone-metastore/src/gen/thrift/gen-php/metastore/Types.php @@ -203,6 +203,17 @@ final class SchemaVersionState { ); } +final class IsolationLevelCompliance { + const YES = 1; + const NO = 2; + const UNKNOWN = 3; + static public $__names = array( + 1 => 'YES', + 2 => 'NO', + 3 => 'UNKNOWN', + ); +} + final class FunctionType { const JAVA = 1; static public $__names = array( @@ -6391,6 +6402,18 @@ class Table { * @var int */ public $ownerType = 1; + /** + * @var int + */ + public $writeId = -1; + /** + * @var string + */ + public $validWriteIdList = null; + /** + * @var int + */ + public $isStatsCompliant = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { @@ -6483,6 +6506,18 @@ class Table { 'var' => 'ownerType', 'type' => TType::I32, ), + 19 => array( + 'var' => 'writeId', + 'type' => TType::I64, + ), + 20 => array( + 'var' => 'validWriteIdList', + 'type' => TType::STRING, + ), + 21 => array( + 'var' => 'isStatsCompliant', + 'type' => TType::I32, + ), ); } if (is_array($vals)) { @@ -6540,6 +6575,15 @@ class Table { if (isset($vals['ownerType'])) { $this->ownerType = $vals['ownerType']; } + if (isset($vals['writeId'])) { + $this->writeId = $vals['writeId']; + } + if (isset($vals['validWriteIdList'])) { + $this->validWriteIdList = $vals['validWriteIdList']; + } + if (isset($vals['isStatsCompliant'])) { + $this->isStatsCompliant = $vals['isStatsCompliant']; + } } } @@ -6715,6 +6759,27 @@ class Table { $xfer += $input->skip($ftype); } break; + case 19: + if ($ftype == TType::I64) { + $xfer += $input->readI64($this->writeId); + } else { + $xfer += $input->skip($ftype); + } + break; + case 20: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->validWriteIdList); + } else { + $xfer += $input->skip($ftype); + } + break; + case 21: + if ($ftype == TType::I32) { + $xfer += $input->readI32($this->isStatsCompliant); + } else { + $xfer += $input->skip($ftype); + } + break; default: $xfer += $input->skip($ftype); break; @@ -6852,6 +6917,21 @@ class Table { $xfer += $output->writeI32($this->ownerType); $xfer += $output->writeFieldEnd(); } + if ($this->writeId !== null) { + $xfer += $output->writeFieldBegin('writeId', TType::I64, 19); + $xfer += $output->writeI64($this->writeId); + $xfer += $output->writeFieldEnd(); + } + if ($this->validWriteIdList !== null) { + $xfer += $output->writeFieldBegin('validWriteIdList', TType::STRING, 20); + $xfer += $output->writeString($this->validWriteIdList); + $xfer += $output->writeFieldEnd(); + } + if ($this->isStatsCompliant !== null) { + $xfer += $output->writeFieldBegin('isStatsCompliant', TType::I32, 21); + $xfer += $output->writeI32($this->isStatsCompliant); + $xfer += $output->writeFieldEnd(); + } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; @@ -6898,6 +6978,18 @@ class Partition { * @var string */ public $catName = null; + /** + * @var int + */ + public $writeId = -1; + /** + * @var string + */ + public $validWriteIdList = null; + /** + * @var int + */ + public $isStatsCompliant = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { @@ -6952,6 +7044,18 @@ class Partition { 'var' => 'catName', 'type' => TType::STRING, ), + 10 => array( + 'var' => 'writeId', + 'type' => TType::I64, + ), + 11 => array( + 'var' => 'validWriteIdList', + 'type' => TType::STRING, + ), + 12 => array( + 'var' => 'isStatsCompliant', + 'type' => TType::I32, + ), ); } if (is_array($vals)) { @@ -6982,6 +7086,15 @@ class Partition { if (isset($vals['catName'])) { $this->catName = $vals['catName']; } + if (isset($vals['writeId'])) { + $this->writeId = $vals['writeId']; + } + if (isset($vals['validWriteIdList'])) { + $this->validWriteIdList = $vals['validWriteIdList']; + } + if (isset($vals['isStatsCompliant'])) { + $this->isStatsCompliant = $vals['isStatsCompliant']; + } } } @@ -7092,6 +7205,27 @@ class Partition { $xfer += $input->skip($ftype); } break; + case 10: + if ($ftype == TType::I64) { + $xfer += $input->readI64($this->writeId); + } else { + $xfer += $input->skip($ftype); + } + break; + case 11: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->validWriteIdList); + } else { + $xfer += $input->skip($ftype); + } + break; + case 12: + if ($ftype == TType::I32) { + $xfer += $input->readI32($this->isStatsCompliant); + } else { + $xfer += $input->skip($ftype); + } + break; default: $xfer += $input->skip($ftype); break; @@ -7181,6 +7315,21 @@ class Partition { $xfer += $output->writeString($this->catName); $xfer += $output->writeFieldEnd(); } + if ($this->writeId !== null) { + $xfer += $output->writeFieldBegin('writeId', TType::I64, 10); + $xfer += $output->writeI64($this->writeId); + $xfer += $output->writeFieldEnd(); + } + if ($this->validWriteIdList !== null) { + $xfer += $output->writeFieldBegin('validWriteIdList', TType::STRING, 11); + $xfer += $output->writeString($this->validWriteIdList); + $xfer += $output->writeFieldEnd(); + } + if ($this->isStatsCompliant !== null) { + $xfer += $output->writeFieldBegin('isStatsCompliant', TType::I32, 12); + $xfer += $output->writeI32($this->isStatsCompliant); + $xfer += $output->writeFieldEnd(); + } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; @@ -7704,6 +7853,18 @@ class PartitionSpec { * @var string */ public $catName = null; + /** + * @var int + */ + public $writeId = -1; + /** + * @var string + */ + public $validWriteIdList = null; + /** + * @var int + */ + public $isStatsCompliant = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { @@ -7734,6 +7895,18 @@ class PartitionSpec { 'var' => 'catName', 'type' => TType::STRING, ), + 7 => array( + 'var' => 'writeId', + 'type' => TType::I64, + ), + 8 => array( + 'var' => 'validWriteIdList', + 'type' => TType::STRING, + ), + 9 => array( + 'var' => 'isStatsCompliant', + 'type' => TType::I32, + ), ); } if (is_array($vals)) { @@ -7755,6 +7928,15 @@ class PartitionSpec { if (isset($vals['catName'])) { $this->catName = $vals['catName']; } + if (isset($vals['writeId'])) { + $this->writeId = $vals['writeId']; + } + if (isset($vals['validWriteIdList'])) { + $this->validWriteIdList = $vals['validWriteIdList']; + } + if (isset($vals['isStatsCompliant'])) { + $this->isStatsCompliant = $vals['isStatsCompliant']; + } } } @@ -7821,6 +8003,27 @@ class PartitionSpec { $xfer += $input->skip($ftype); } break; + case 7: + if ($ftype == TType::I64) { + $xfer += $input->readI64($this->writeId); + } else { + $xfer += $input->skip($ftype); + } + break; + case 8: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->validWriteIdList); + } else { + $xfer += $input->skip($ftype); + } + break; + case 9: + if ($ftype == TType::I32) { + $xfer += $input->readI32($this->isStatsCompliant); + } else { + $xfer += $input->skip($ftype); + } + break; default: $xfer += $input->skip($ftype); break; @@ -7870,6 +8073,21 @@ class PartitionSpec { $xfer += $output->writeString($this->catName); $xfer += $output->writeFieldEnd(); } + if ($this->writeId !== null) { + $xfer += $output->writeFieldBegin('writeId', TType::I64, 7); + $xfer += $output->writeI64($this->writeId); + $xfer += $output->writeFieldEnd(); + } + if ($this->validWriteIdList !== null) { + $xfer += $output->writeFieldBegin('validWriteIdList', TType::STRING, 8); + $xfer += $output->writeString($this->validWriteIdList); + $xfer += $output->writeFieldEnd(); + } + if ($this->isStatsCompliant !== null) { + $xfer += $output->writeFieldBegin('isStatsCompliant', TType::I32, 9); + $xfer += $output->writeI32($this->isStatsCompliant); + $xfer += $output->writeFieldEnd(); + } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; @@ -9768,6 +9986,18 @@ class ColumnStatistics { * @var \metastore\ColumnStatisticsObj[] */ public $statsObj = null; + /** + * @var int + */ + public $writeId = -1; + /** + * @var string + */ + public $validWriteIdList = null; + /** + * @var int + */ + public $isStatsCompliant = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { @@ -9786,6 +10016,18 @@ class ColumnStatistics { 'class' => '\metastore\ColumnStatisticsObj', ), ), + 3 => array( + 'var' => 'writeId', + 'type' => TType::I64, + ), + 4 => array( + 'var' => 'validWriteIdList', + 'type' => TType::STRING, + ), + 5 => array( + 'var' => 'isStatsCompliant', + 'type' => TType::I32, + ), ); } if (is_array($vals)) { @@ -9795,6 +10037,15 @@ class ColumnStatistics { if (isset($vals['statsObj'])) { $this->statsObj = $vals['statsObj']; } + if (isset($vals['writeId'])) { + $this->writeId = $vals['writeId']; + } + if (isset($vals['validWriteIdList'])) { + $this->validWriteIdList = $vals['validWriteIdList']; + } + if (isset($vals['isStatsCompliant'])) { + $this->isStatsCompliant = $vals['isStatsCompliant']; + } } } @@ -9843,6 +10094,27 @@ class ColumnStatistics { $xfer += $input->skip($ftype); } break; + case 3: + if ($ftype == TType::I64) { + $xfer += $input->readI64($this->writeId); + } else { + $xfer += $input->skip($ftype); + } + break; + case 4: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->validWriteIdList); + } else { + $xfer += $input->skip($ftype); + } + break; + case 5: + if ($ftype == TType::I32) { + $xfer += $input->readI32($this->isStatsCompliant); + } else { + $xfer += $input->skip($ftype); + } + break; default: $xfer += $input->skip($ftype); break; @@ -9881,6 +10153,21 @@ class ColumnStatistics { } $xfer += $output->writeFieldEnd(); } + if ($this->writeId !== null) { + $xfer += $output->writeFieldBegin('writeId', TType::I64, 3); + $xfer += $output->writeI64($this->writeId); + $xfer += $output->writeFieldEnd(); + } + if ($this->validWriteIdList !== null) { + $xfer += $output->writeFieldBegin('validWriteIdList', TType::STRING, 4); + $xfer += $output->writeString($this->validWriteIdList); + $xfer += $output->writeFieldEnd(); + } + if ($this->isStatsCompliant !== null) { + $xfer += $output->writeFieldBegin('isStatsCompliant', TType::I32, 5); + $xfer += $output->writeI32($this->isStatsCompliant); + $xfer += $output->writeFieldEnd(); + } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; @@ -9899,6 +10186,10 @@ class AggrStats { * @var int */ public $partsFound = null; + /** + * @var int + */ + public $isStatsCompliant = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { @@ -9916,6 +10207,10 @@ class AggrStats { 'var' => 'partsFound', 'type' => TType::I64, ), + 3 => array( + 'var' => 'isStatsCompliant', + 'type' => TType::I32, + ), ); } if (is_array($vals)) { @@ -9925,6 +10220,9 @@ class AggrStats { if (isset($vals['partsFound'])) { $this->partsFound = $vals['partsFound']; } + if (isset($vals['isStatsCompliant'])) { + $this->isStatsCompliant = $vals['isStatsCompliant']; + } } } @@ -9972,6 +10270,13 @@ class AggrStats { $xfer += $input->skip($ftype); } break; + case 3: + if ($ftype == TType::I32) { + $xfer += $input->readI32($this->isStatsCompliant); + } else { + $xfer += $input->skip($ftype); + } + break; default: $xfer += $input->skip($ftype); break; @@ -10007,6 +10312,11 @@ class AggrStats { $xfer += $output->writeI64($this->partsFound); $xfer += $output->writeFieldEnd(); } + if ($this->isStatsCompliant !== null) { + $xfer += $output->writeFieldBegin('isStatsCompliant', TType::I32, 3); + $xfer += $output->writeI32($this->isStatsCompliant); + $xfer += $output->writeFieldEnd(); + } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; @@ -10025,6 +10335,14 @@ class SetPartitionsStatsRequest { * @var bool */ public $needMerge = null; + /** + * @var int + */ + public $writeId = -1; + /** + * @var string + */ + public $validWriteIdList = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { @@ -10042,6 +10360,14 @@ class SetPartitionsStatsRequest { 'var' => 'needMerge', 'type' => TType::BOOL, ), + 3 => array( + 'var' => 'writeId', + 'type' => TType::I64, + ), + 4 => array( + 'var' => 'validWriteIdList', + 'type' => TType::STRING, + ), ); } if (is_array($vals)) { @@ -10051,6 +10377,12 @@ class SetPartitionsStatsRequest { if (isset($vals['needMerge'])) { $this->needMerge = $vals['needMerge']; } + if (isset($vals['writeId'])) { + $this->writeId = $vals['writeId']; + } + if (isset($vals['validWriteIdList'])) { + $this->validWriteIdList = $vals['validWriteIdList']; + } } } @@ -10098,6 +10430,20 @@ class SetPartitionsStatsRequest { $xfer += $input->skip($ftype); } break; + case 3: + if ($ftype == TType::I64) { + $xfer += $input->readI64($this->writeId); + } else { + $xfer += $input->skip($ftype); + } + break; + case 4: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->validWriteIdList); + } else { + $xfer += $input->skip($ftype); + } + break; default: $xfer += $input->skip($ftype); break; @@ -10133,6 +10479,16 @@ class SetPartitionsStatsRequest { $xfer += $output->writeBool($this->needMerge); $xfer += $output->writeFieldEnd(); } + if ($this->writeId !== null) { + $xfer += $output->writeFieldBegin('writeId', TType::I64, 3); + $xfer += $output->writeI64($this->writeId); + $xfer += $output->writeFieldEnd(); + } + if ($this->validWriteIdList !== null) { + $xfer += $output->writeFieldBegin('validWriteIdList', TType::STRING, 4); + $xfer += $output->writeString($this->validWriteIdList); + $xfer += $output->writeFieldEnd(); + } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; @@ -12884,6 +13240,10 @@ class TableStatsResult { * @var \metastore\ColumnStatisticsObj[] */ public $tableStats = null; + /** + * @var int + */ + public $isStatsCompliant = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { @@ -12897,12 +13257,19 @@ class TableStatsResult { 'class' => '\metastore\ColumnStatisticsObj', ), ), + 2 => array( + 'var' => 'isStatsCompliant', + 'type' => TType::I32, + ), ); } if (is_array($vals)) { if (isset($vals['tableStats'])) { $this->tableStats = $vals['tableStats']; } + if (isset($vals['isStatsCompliant'])) { + $this->isStatsCompliant = $vals['isStatsCompliant']; + } } } @@ -12943,6 +13310,13 @@ class TableStatsResult { $xfer += $input->skip($ftype); } break; + case 2: + if ($ftype == TType::I32) { + $xfer += $input->readI32($this->isStatsCompliant); + } else { + $xfer += $input->skip($ftype); + } + break; default: $xfer += $input->skip($ftype); break; @@ -12973,6 +13347,11 @@ class TableStatsResult { } $xfer += $output->writeFieldEnd(); } + if ($this->isStatsCompliant !== null) { + $xfer += $output->writeFieldBegin('isStatsCompliant', TType::I32, 2); + $xfer += $output->writeI32($this->isStatsCompliant); + $xfer += $output->writeFieldEnd(); + } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; @@ -12987,6 +13366,10 @@ class PartitionsStatsResult { * @var array */ public $partStats = null; + /** + * @var int + */ + public $isStatsCompliant = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { @@ -13008,12 +13391,19 @@ class PartitionsStatsResult { ), ), ), + 2 => array( + 'var' => 'isStatsCompliant', + 'type' => TType::I32, + ), ); } if (is_array($vals)) { if (isset($vals['partStats'])) { $this->partStats = $vals['partStats']; } + if (isset($vals['isStatsCompliant'])) { + $this->isStatsCompliant = $vals['isStatsCompliant']; + } } } @@ -13067,6 +13457,13 @@ class PartitionsStatsResult { $xfer += $input->skip($ftype); } break; + case 2: + if ($ftype == TType::I32) { + $xfer += $input->readI32($this->isStatsCompliant); + } else { + $xfer += $input->skip($ftype); + } + break; default: $xfer += $input->skip($ftype); break; @@ -13107,6 +13504,11 @@ class PartitionsStatsResult { } $xfer += $output->writeFieldEnd(); } + if ($this->isStatsCompliant !== null) { + $xfer += $output->writeFieldBegin('isStatsCompliant', TType::I32, 2); + $xfer += $output->writeI32($this->isStatsCompliant); + $xfer += $output->writeFieldEnd(); + } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; @@ -13133,6 +13535,14 @@ class TableStatsRequest { * @var string */ public $catName = null; + /** + * @var int + */ + public $writeId = -1; + /** + * @var string + */ + public $validWriteIdList = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { @@ -13157,6 +13567,14 @@ class TableStatsRequest { 'var' => 'catName', 'type' => TType::STRING, ), + 5 => array( + 'var' => 'writeId', + 'type' => TType::I64, + ), + 6 => array( + 'var' => 'validWriteIdList', + 'type' => TType::STRING, + ), ); } if (is_array($vals)) { @@ -13172,6 +13590,12 @@ class TableStatsRequest { if (isset($vals['catName'])) { $this->catName = $vals['catName']; } + if (isset($vals['writeId'])) { + $this->writeId = $vals['writeId']; + } + if (isset($vals['validWriteIdList'])) { + $this->validWriteIdList = $vals['validWriteIdList']; + } } } @@ -13232,6 +13656,20 @@ class TableStatsRequest { $xfer += $input->skip($ftype); } break; + case 5: + if ($ftype == TType::I64) { + $xfer += $input->readI64($this->writeId); + } else { + $xfer += $input->skip($ftype); + } + break; + case 6: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->validWriteIdList); + } else { + $xfer += $input->skip($ftype); + } + break; default: $xfer += $input->skip($ftype); break; @@ -13277,6 +13715,16 @@ class TableStatsRequest { $xfer += $output->writeString($this->catName); $xfer += $output->writeFieldEnd(); } + if ($this->writeId !== null) { + $xfer += $output->writeFieldBegin('writeId', TType::I64, 5); + $xfer += $output->writeI64($this->writeId); + $xfer += $output->writeFieldEnd(); + } + if ($this->validWriteIdList !== null) { + $xfer += $output->writeFieldBegin('validWriteIdList', TType::STRING, 6); + $xfer += $output->writeString($this->validWriteIdList); + $xfer += $output->writeFieldEnd(); + } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; @@ -13307,6 +13755,14 @@ class PartitionsStatsRequest { * @var string */ public $catName = null; + /** + * @var int + */ + public $writeId = -1; + /** + * @var string + */ + public $validWriteIdList = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { @@ -13339,6 +13795,14 @@ class PartitionsStatsRequest { 'var' => 'catName', 'type' => TType::STRING, ), + 6 => array( + 'var' => 'writeId', + 'type' => TType::I64, + ), + 7 => array( + 'var' => 'validWriteIdList', + 'type' => TType::STRING, + ), ); } if (is_array($vals)) { @@ -13357,6 +13821,12 @@ class PartitionsStatsRequest { if (isset($vals['catName'])) { $this->catName = $vals['catName']; } + if (isset($vals['writeId'])) { + $this->writeId = $vals['writeId']; + } + if (isset($vals['validWriteIdList'])) { + $this->validWriteIdList = $vals['validWriteIdList']; + } } } @@ -13434,6 +13904,20 @@ class PartitionsStatsRequest { $xfer += $input->skip($ftype); } break; + case 6: + if ($ftype == TType::I64) { + $xfer += $input->readI64($this->writeId); + } else { + $xfer += $input->skip($ftype); + } + break; + case 7: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->validWriteIdList); + } else { + $xfer += $input->skip($ftype); + } + break; default: $xfer += $input->skip($ftype); break; @@ -13496,6 +13980,16 @@ class PartitionsStatsRequest { $xfer += $output->writeString($this->catName); $xfer += $output->writeFieldEnd(); } + if ($this->writeId !== null) { + $xfer += $output->writeFieldBegin('writeId', TType::I64, 6); + $xfer += $output->writeI64($this->writeId); + $xfer += $output->writeFieldEnd(); + } + if ($this->validWriteIdList !== null) { + $xfer += $output->writeFieldBegin('validWriteIdList', TType::STRING, 7); + $xfer += $output->writeString($this->validWriteIdList); + $xfer += $output->writeFieldEnd(); + } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; @@ -23470,6 +23964,14 @@ class GetTableRequest { * @var string */ public $catName = null; + /** + * @var int + */ + public $writeId = -1; + /** + * @var string + */ + public $validWriteIdList = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { @@ -23491,6 +23993,14 @@ class GetTableRequest { 'var' => 'catName', 'type' => TType::STRING, ), + 5 => array( + 'var' => 'writeId', + 'type' => TType::I64, + ), + 6 => array( + 'var' => 'validWriteIdList', + 'type' => TType::STRING, + ), ); } if (is_array($vals)) { @@ -23506,6 +24016,12 @@ class GetTableRequest { if (isset($vals['catName'])) { $this->catName = $vals['catName']; } + if (isset($vals['writeId'])) { + $this->writeId = $vals['writeId']; + } + if (isset($vals['validWriteIdList'])) { + $this->validWriteIdList = $vals['validWriteIdList']; + } } } @@ -23557,6 +24073,20 @@ class GetTableRequest { $xfer += $input->skip($ftype); } break; + case 5: + if ($ftype == TType::I64) { + $xfer += $input->readI64($this->writeId); + } else { + $xfer += $input->skip($ftype); + } + break; + case 6: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->validWriteIdList); + } else { + $xfer += $input->skip($ftype); + } + break; default: $xfer += $input->skip($ftype); break; @@ -23593,6 +24123,16 @@ class GetTableRequest { $xfer += $output->writeString($this->catName); $xfer += $output->writeFieldEnd(); } + if ($this->writeId !== null) { + $xfer += $output->writeFieldBegin('writeId', TType::I64, 5); + $xfer += $output->writeI64($this->writeId); + $xfer += $output->writeFieldEnd(); + } + if ($this->validWriteIdList !== null) { + $xfer += $output->writeFieldBegin('validWriteIdList', TType::STRING, 6); + $xfer += $output->writeString($this->validWriteIdList); + $xfer += $output->writeFieldEnd(); + } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; @@ -23607,6 +24147,10 @@ class GetTableResult { * @var \metastore\Table */ public $table = null; + /** + * @var int + */ + public $isStatsCompliant = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { @@ -23616,12 +24160,19 @@ class GetTableResult { 'type' => TType::STRUCT, 'class' => '\metastore\Table', ), + 2 => array( + 'var' => 'isStatsCompliant', + 'type' => TType::I32, + ), ); } if (is_array($vals)) { if (isset($vals['table'])) { $this->table = $vals['table']; } + if (isset($vals['isStatsCompliant'])) { + $this->isStatsCompliant = $vals['isStatsCompliant']; + } } } @@ -23652,6 +24203,13 @@ class GetTableResult { $xfer += $input->skip($ftype); } break; + case 2: + if ($ftype == TType::I32) { + $xfer += $input->readI32($this->isStatsCompliant); + } else { + $xfer += $input->skip($ftype); + } + break; default: $xfer += $input->skip($ftype); break; @@ -23673,6 +24231,11 @@ class GetTableResult { $xfer += $this->table->write($output); $xfer += $output->writeFieldEnd(); } + if ($this->isStatsCompliant !== null) { + $xfer += $output->writeFieldBegin('isStatsCompliant', TType::I32, 2); + $xfer += $output->writeI32($this->isStatsCompliant); + $xfer += $output->writeFieldEnd(); + } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; diff --git standalone-metastore/src/gen/thrift/gen-py/hive_metastore/ttypes.py standalone-metastore/src/gen/thrift/gen-py/hive_metastore/ttypes.py index fdec32e10c..e6ed5c6471 100644 --- standalone-metastore/src/gen/thrift/gen-py/hive_metastore/ttypes.py +++ standalone-metastore/src/gen/thrift/gen-py/hive_metastore/ttypes.py @@ -305,6 +305,23 @@ class SchemaVersionState: "DELETED": 8, } +class IsolationLevelCompliance: + YES = 1 + NO = 2 + UNKNOWN = 3 + + _VALUES_TO_NAMES = { + 1: "YES", + 2: "NO", + 3: "UNKNOWN", + } + + _NAMES_TO_VALUES = { + "YES": 1, + "NO": 2, + "UNKNOWN": 3, + } + class FunctionType: JAVA = 1 @@ -4458,6 +4475,9 @@ class Table: - creationMetadata - catName - ownerType + - writeId + - validWriteIdList + - isStatsCompliant """ thrift_spec = ( @@ -4480,9 +4500,12 @@ class Table: (16, TType.STRUCT, 'creationMetadata', (CreationMetadata, CreationMetadata.thrift_spec), None, ), # 16 (17, TType.STRING, 'catName', None, None, ), # 17 (18, TType.I32, 'ownerType', None, 1, ), # 18 + (19, TType.I64, 'writeId', None, -1, ), # 19 + (20, TType.STRING, 'validWriteIdList', None, None, ), # 20 + (21, TType.I32, 'isStatsCompliant', None, None, ), # 21 ) - def __init__(self, tableName=None, dbName=None, owner=None, createTime=None, lastAccessTime=None, retention=None, sd=None, partitionKeys=None, parameters=None, viewOriginalText=None, viewExpandedText=None, tableType=None, privileges=None, temporary=thrift_spec[14][4], rewriteEnabled=None, creationMetadata=None, catName=None, ownerType=thrift_spec[18][4],): + def __init__(self, tableName=None, dbName=None, owner=None, createTime=None, lastAccessTime=None, retention=None, sd=None, partitionKeys=None, parameters=None, viewOriginalText=None, viewExpandedText=None, tableType=None, privileges=None, temporary=thrift_spec[14][4], rewriteEnabled=None, creationMetadata=None, catName=None, ownerType=thrift_spec[18][4], writeId=thrift_spec[19][4], validWriteIdList=None, isStatsCompliant=None,): self.tableName = tableName self.dbName = dbName self.owner = owner @@ -4501,6 +4524,9 @@ def __init__(self, tableName=None, dbName=None, owner=None, createTime=None, las self.creationMetadata = creationMetadata self.catName = catName self.ownerType = ownerType + self.writeId = writeId + self.validWriteIdList = validWriteIdList + self.isStatsCompliant = isStatsCompliant def read(self, iprot): if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: @@ -4616,6 +4642,21 @@ def read(self, iprot): self.ownerType = iprot.readI32() else: iprot.skip(ftype) + elif fid == 19: + if ftype == TType.I64: + self.writeId = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 20: + if ftype == TType.STRING: + self.validWriteIdList = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 21: + if ftype == TType.I32: + self.isStatsCompliant = iprot.readI32() + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -4705,6 +4746,18 @@ def write(self, oprot): oprot.writeFieldBegin('ownerType', TType.I32, 18) oprot.writeI32(self.ownerType) oprot.writeFieldEnd() + if self.writeId is not None: + oprot.writeFieldBegin('writeId', TType.I64, 19) + oprot.writeI64(self.writeId) + oprot.writeFieldEnd() + if self.validWriteIdList is not None: + oprot.writeFieldBegin('validWriteIdList', TType.STRING, 20) + oprot.writeString(self.validWriteIdList) + oprot.writeFieldEnd() + if self.isStatsCompliant is not None: + oprot.writeFieldBegin('isStatsCompliant', TType.I32, 21) + oprot.writeI32(self.isStatsCompliant) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -4732,6 +4785,9 @@ def __hash__(self): value = (value * 31) ^ hash(self.creationMetadata) value = (value * 31) ^ hash(self.catName) value = (value * 31) ^ hash(self.ownerType) + value = (value * 31) ^ hash(self.writeId) + value = (value * 31) ^ hash(self.validWriteIdList) + value = (value * 31) ^ hash(self.isStatsCompliant) return value def __repr__(self): @@ -4757,6 +4813,9 @@ class Partition: - parameters - privileges - catName + - writeId + - validWriteIdList + - isStatsCompliant """ thrift_spec = ( @@ -4770,9 +4829,12 @@ class Partition: (7, TType.MAP, 'parameters', (TType.STRING,None,TType.STRING,None), None, ), # 7 (8, TType.STRUCT, 'privileges', (PrincipalPrivilegeSet, PrincipalPrivilegeSet.thrift_spec), None, ), # 8 (9, TType.STRING, 'catName', None, None, ), # 9 + (10, TType.I64, 'writeId', None, -1, ), # 10 + (11, TType.STRING, 'validWriteIdList', None, None, ), # 11 + (12, TType.I32, 'isStatsCompliant', None, None, ), # 12 ) - def __init__(self, values=None, dbName=None, tableName=None, createTime=None, lastAccessTime=None, sd=None, parameters=None, privileges=None, catName=None,): + def __init__(self, values=None, dbName=None, tableName=None, createTime=None, lastAccessTime=None, sd=None, parameters=None, privileges=None, catName=None, writeId=thrift_spec[10][4], validWriteIdList=None, isStatsCompliant=None,): self.values = values self.dbName = dbName self.tableName = tableName @@ -4782,6 +4844,9 @@ def __init__(self, values=None, dbName=None, tableName=None, createTime=None, la self.parameters = parameters self.privileges = privileges self.catName = catName + self.writeId = writeId + self.validWriteIdList = validWriteIdList + self.isStatsCompliant = isStatsCompliant def read(self, iprot): if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: @@ -4850,6 +4915,21 @@ def read(self, iprot): self.catName = iprot.readString() else: iprot.skip(ftype) + elif fid == 10: + if ftype == TType.I64: + self.writeId = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 11: + if ftype == TType.STRING: + self.validWriteIdList = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 12: + if ftype == TType.I32: + self.isStatsCompliant = iprot.readI32() + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -4903,6 +4983,18 @@ def write(self, oprot): oprot.writeFieldBegin('catName', TType.STRING, 9) oprot.writeString(self.catName) oprot.writeFieldEnd() + if self.writeId is not None: + oprot.writeFieldBegin('writeId', TType.I64, 10) + oprot.writeI64(self.writeId) + oprot.writeFieldEnd() + if self.validWriteIdList is not None: + oprot.writeFieldBegin('validWriteIdList', TType.STRING, 11) + oprot.writeString(self.validWriteIdList) + oprot.writeFieldEnd() + if self.isStatsCompliant is not None: + oprot.writeFieldBegin('isStatsCompliant', TType.I32, 12) + oprot.writeI32(self.isStatsCompliant) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -4921,6 +5013,9 @@ def __hash__(self): value = (value * 31) ^ hash(self.parameters) value = (value * 31) ^ hash(self.privileges) value = (value * 31) ^ hash(self.catName) + value = (value * 31) ^ hash(self.writeId) + value = (value * 31) ^ hash(self.validWriteIdList) + value = (value * 31) ^ hash(self.isStatsCompliant) return value def __repr__(self): @@ -5254,6 +5349,9 @@ class PartitionSpec: - sharedSDPartitionSpec - partitionList - catName + - writeId + - validWriteIdList + - isStatsCompliant """ thrift_spec = ( @@ -5264,15 +5362,21 @@ class PartitionSpec: (4, TType.STRUCT, 'sharedSDPartitionSpec', (PartitionSpecWithSharedSD, PartitionSpecWithSharedSD.thrift_spec), None, ), # 4 (5, TType.STRUCT, 'partitionList', (PartitionListComposingSpec, PartitionListComposingSpec.thrift_spec), None, ), # 5 (6, TType.STRING, 'catName', None, None, ), # 6 + (7, TType.I64, 'writeId', None, -1, ), # 7 + (8, TType.STRING, 'validWriteIdList', None, None, ), # 8 + (9, TType.I32, 'isStatsCompliant', None, None, ), # 9 ) - def __init__(self, dbName=None, tableName=None, rootPath=None, sharedSDPartitionSpec=None, partitionList=None, catName=None,): + def __init__(self, dbName=None, tableName=None, rootPath=None, sharedSDPartitionSpec=None, partitionList=None, catName=None, writeId=thrift_spec[7][4], validWriteIdList=None, isStatsCompliant=None,): self.dbName = dbName self.tableName = tableName self.rootPath = rootPath self.sharedSDPartitionSpec = sharedSDPartitionSpec self.partitionList = partitionList self.catName = catName + self.writeId = writeId + self.validWriteIdList = validWriteIdList + self.isStatsCompliant = isStatsCompliant def read(self, iprot): if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: @@ -5315,6 +5419,21 @@ def read(self, iprot): self.catName = iprot.readString() else: iprot.skip(ftype) + elif fid == 7: + if ftype == TType.I64: + self.writeId = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 8: + if ftype == TType.STRING: + self.validWriteIdList = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 9: + if ftype == TType.I32: + self.isStatsCompliant = iprot.readI32() + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -5349,6 +5468,18 @@ def write(self, oprot): oprot.writeFieldBegin('catName', TType.STRING, 6) oprot.writeString(self.catName) oprot.writeFieldEnd() + if self.writeId is not None: + oprot.writeFieldBegin('writeId', TType.I64, 7) + oprot.writeI64(self.writeId) + oprot.writeFieldEnd() + if self.validWriteIdList is not None: + oprot.writeFieldBegin('validWriteIdList', TType.STRING, 8) + oprot.writeString(self.validWriteIdList) + oprot.writeFieldEnd() + if self.isStatsCompliant is not None: + oprot.writeFieldBegin('isStatsCompliant', TType.I32, 9) + oprot.writeI32(self.isStatsCompliant) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -5364,6 +5495,9 @@ def __hash__(self): value = (value * 31) ^ hash(self.sharedSDPartitionSpec) value = (value * 31) ^ hash(self.partitionList) value = (value * 31) ^ hash(self.catName) + value = (value * 31) ^ hash(self.writeId) + value = (value * 31) ^ hash(self.validWriteIdList) + value = (value * 31) ^ hash(self.isStatsCompliant) return value def __repr__(self): @@ -6749,17 +6883,26 @@ class ColumnStatistics: Attributes: - statsDesc - statsObj + - writeId + - validWriteIdList + - isStatsCompliant """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'statsDesc', (ColumnStatisticsDesc, ColumnStatisticsDesc.thrift_spec), None, ), # 1 (2, TType.LIST, 'statsObj', (TType.STRUCT,(ColumnStatisticsObj, ColumnStatisticsObj.thrift_spec)), None, ), # 2 + (3, TType.I64, 'writeId', None, -1, ), # 3 + (4, TType.STRING, 'validWriteIdList', None, None, ), # 4 + (5, TType.I32, 'isStatsCompliant', None, None, ), # 5 ) - def __init__(self, statsDesc=None, statsObj=None,): + def __init__(self, statsDesc=None, statsObj=None, writeId=thrift_spec[3][4], validWriteIdList=None, isStatsCompliant=None,): self.statsDesc = statsDesc self.statsObj = statsObj + self.writeId = writeId + self.validWriteIdList = validWriteIdList + self.isStatsCompliant = isStatsCompliant def read(self, iprot): if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: @@ -6787,6 +6930,21 @@ def read(self, iprot): iprot.readListEnd() else: iprot.skip(ftype) + elif fid == 3: + if ftype == TType.I64: + self.writeId = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRING: + self.validWriteIdList = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.I32: + self.isStatsCompliant = iprot.readI32() + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -6808,6 +6966,18 @@ def write(self, oprot): iter243.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() + if self.writeId is not None: + oprot.writeFieldBegin('writeId', TType.I64, 3) + oprot.writeI64(self.writeId) + oprot.writeFieldEnd() + if self.validWriteIdList is not None: + oprot.writeFieldBegin('validWriteIdList', TType.STRING, 4) + oprot.writeString(self.validWriteIdList) + oprot.writeFieldEnd() + if self.isStatsCompliant is not None: + oprot.writeFieldBegin('isStatsCompliant', TType.I32, 5) + oprot.writeI32(self.isStatsCompliant) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -6823,6 +6993,9 @@ def __hash__(self): value = 17 value = (value * 31) ^ hash(self.statsDesc) value = (value * 31) ^ hash(self.statsObj) + value = (value * 31) ^ hash(self.writeId) + value = (value * 31) ^ hash(self.validWriteIdList) + value = (value * 31) ^ hash(self.isStatsCompliant) return value def __repr__(self): @@ -6841,17 +7014,20 @@ class AggrStats: Attributes: - colStats - partsFound + - isStatsCompliant """ thrift_spec = ( None, # 0 (1, TType.LIST, 'colStats', (TType.STRUCT,(ColumnStatisticsObj, ColumnStatisticsObj.thrift_spec)), None, ), # 1 (2, TType.I64, 'partsFound', None, None, ), # 2 + (3, TType.I32, 'isStatsCompliant', None, None, ), # 3 ) - def __init__(self, colStats=None, partsFound=None,): + def __init__(self, colStats=None, partsFound=None, isStatsCompliant=None,): self.colStats = colStats self.partsFound = partsFound + self.isStatsCompliant = isStatsCompliant def read(self, iprot): if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: @@ -6878,6 +7054,11 @@ def read(self, iprot): self.partsFound = iprot.readI64() else: iprot.skip(ftype) + elif fid == 3: + if ftype == TType.I32: + self.isStatsCompliant = iprot.readI32() + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -6899,6 +7080,10 @@ def write(self, oprot): oprot.writeFieldBegin('partsFound', TType.I64, 2) oprot.writeI64(self.partsFound) oprot.writeFieldEnd() + if self.isStatsCompliant is not None: + oprot.writeFieldBegin('isStatsCompliant', TType.I32, 3) + oprot.writeI32(self.isStatsCompliant) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -6914,6 +7099,7 @@ def __hash__(self): value = 17 value = (value * 31) ^ hash(self.colStats) value = (value * 31) ^ hash(self.partsFound) + value = (value * 31) ^ hash(self.isStatsCompliant) return value def __repr__(self): @@ -6932,17 +7118,23 @@ class SetPartitionsStatsRequest: Attributes: - colStats - needMerge + - writeId + - validWriteIdList """ thrift_spec = ( None, # 0 (1, TType.LIST, 'colStats', (TType.STRUCT,(ColumnStatistics, ColumnStatistics.thrift_spec)), None, ), # 1 (2, TType.BOOL, 'needMerge', None, None, ), # 2 + (3, TType.I64, 'writeId', None, -1, ), # 3 + (4, TType.STRING, 'validWriteIdList', None, None, ), # 4 ) - def __init__(self, colStats=None, needMerge=None,): + def __init__(self, colStats=None, needMerge=None, writeId=thrift_spec[3][4], validWriteIdList=None,): self.colStats = colStats self.needMerge = needMerge + self.writeId = writeId + self.validWriteIdList = validWriteIdList def read(self, iprot): if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: @@ -6969,6 +7161,16 @@ def read(self, iprot): self.needMerge = iprot.readBool() else: iprot.skip(ftype) + elif fid == 3: + if ftype == TType.I64: + self.writeId = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRING: + self.validWriteIdList = iprot.readString() + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -6990,6 +7192,14 @@ def write(self, oprot): oprot.writeFieldBegin('needMerge', TType.BOOL, 2) oprot.writeBool(self.needMerge) oprot.writeFieldEnd() + if self.writeId is not None: + oprot.writeFieldBegin('writeId', TType.I64, 3) + oprot.writeI64(self.writeId) + oprot.writeFieldEnd() + if self.validWriteIdList is not None: + oprot.writeFieldBegin('validWriteIdList', TType.STRING, 4) + oprot.writeString(self.validWriteIdList) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -7003,6 +7213,8 @@ def __hash__(self): value = 17 value = (value * 31) ^ hash(self.colStats) value = (value * 31) ^ hash(self.needMerge) + value = (value * 31) ^ hash(self.writeId) + value = (value * 31) ^ hash(self.validWriteIdList) return value def __repr__(self): @@ -9041,15 +9253,18 @@ class TableStatsResult: """ Attributes: - tableStats + - isStatsCompliant """ thrift_spec = ( None, # 0 (1, TType.LIST, 'tableStats', (TType.STRUCT,(ColumnStatisticsObj, ColumnStatisticsObj.thrift_spec)), None, ), # 1 + (2, TType.I32, 'isStatsCompliant', None, None, ), # 2 ) - def __init__(self, tableStats=None,): + def __init__(self, tableStats=None, isStatsCompliant=None,): self.tableStats = tableStats + self.isStatsCompliant = isStatsCompliant def read(self, iprot): if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: @@ -9071,6 +9286,11 @@ def read(self, iprot): iprot.readListEnd() else: iprot.skip(ftype) + elif fid == 2: + if ftype == TType.I32: + self.isStatsCompliant = iprot.readI32() + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -9088,6 +9308,10 @@ def write(self, oprot): iter380.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() + if self.isStatsCompliant is not None: + oprot.writeFieldBegin('isStatsCompliant', TType.I32, 2) + oprot.writeI32(self.isStatsCompliant) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -9100,6 +9324,7 @@ def validate(self): def __hash__(self): value = 17 value = (value * 31) ^ hash(self.tableStats) + value = (value * 31) ^ hash(self.isStatsCompliant) return value def __repr__(self): @@ -9117,15 +9342,18 @@ class PartitionsStatsResult: """ Attributes: - partStats + - isStatsCompliant """ thrift_spec = ( None, # 0 (1, TType.MAP, 'partStats', (TType.STRING,None,TType.LIST,(TType.STRUCT,(ColumnStatisticsObj, ColumnStatisticsObj.thrift_spec))), None, ), # 1 + (2, TType.I32, 'isStatsCompliant', None, None, ), # 2 ) - def __init__(self, partStats=None,): + def __init__(self, partStats=None, isStatsCompliant=None,): self.partStats = partStats + self.isStatsCompliant = isStatsCompliant def read(self, iprot): if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: @@ -9153,6 +9381,11 @@ def read(self, iprot): iprot.readMapEnd() else: iprot.skip(ftype) + elif fid == 2: + if ftype == TType.I32: + self.isStatsCompliant = iprot.readI32() + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -9174,6 +9407,10 @@ def write(self, oprot): oprot.writeListEnd() oprot.writeMapEnd() oprot.writeFieldEnd() + if self.isStatsCompliant is not None: + oprot.writeFieldBegin('isStatsCompliant', TType.I32, 2) + oprot.writeI32(self.isStatsCompliant) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -9186,6 +9423,7 @@ def validate(self): def __hash__(self): value = 17 value = (value * 31) ^ hash(self.partStats) + value = (value * 31) ^ hash(self.isStatsCompliant) return value def __repr__(self): @@ -9206,6 +9444,8 @@ class TableStatsRequest: - tblName - colNames - catName + - writeId + - validWriteIdList """ thrift_spec = ( @@ -9214,13 +9454,17 @@ class TableStatsRequest: (2, TType.STRING, 'tblName', None, None, ), # 2 (3, TType.LIST, 'colNames', (TType.STRING,None), None, ), # 3 (4, TType.STRING, 'catName', None, None, ), # 4 + (5, TType.I64, 'writeId', None, -1, ), # 5 + (6, TType.STRING, 'validWriteIdList', None, None, ), # 6 ) - def __init__(self, dbName=None, tblName=None, colNames=None, catName=None,): + def __init__(self, dbName=None, tblName=None, colNames=None, catName=None, writeId=thrift_spec[5][4], validWriteIdList=None,): self.dbName = dbName self.tblName = tblName self.colNames = colNames self.catName = catName + self.writeId = writeId + self.validWriteIdList = validWriteIdList def read(self, iprot): if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: @@ -9256,6 +9500,16 @@ def read(self, iprot): self.catName = iprot.readString() else: iprot.skip(ftype) + elif fid == 5: + if ftype == TType.I64: + self.writeId = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 6: + if ftype == TType.STRING: + self.validWriteIdList = iprot.readString() + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -9285,6 +9539,14 @@ def write(self, oprot): oprot.writeFieldBegin('catName', TType.STRING, 4) oprot.writeString(self.catName) oprot.writeFieldEnd() + if self.writeId is not None: + oprot.writeFieldBegin('writeId', TType.I64, 5) + oprot.writeI64(self.writeId) + oprot.writeFieldEnd() + if self.validWriteIdList is not None: + oprot.writeFieldBegin('validWriteIdList', TType.STRING, 6) + oprot.writeString(self.validWriteIdList) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -9304,6 +9566,8 @@ def __hash__(self): value = (value * 31) ^ hash(self.tblName) value = (value * 31) ^ hash(self.colNames) value = (value * 31) ^ hash(self.catName) + value = (value * 31) ^ hash(self.writeId) + value = (value * 31) ^ hash(self.validWriteIdList) return value def __repr__(self): @@ -9325,6 +9589,8 @@ class PartitionsStatsRequest: - colNames - partNames - catName + - writeId + - validWriteIdList """ thrift_spec = ( @@ -9334,14 +9600,18 @@ class PartitionsStatsRequest: (3, TType.LIST, 'colNames', (TType.STRING,None), None, ), # 3 (4, TType.LIST, 'partNames', (TType.STRING,None), None, ), # 4 (5, TType.STRING, 'catName', None, None, ), # 5 + (6, TType.I64, 'writeId', None, -1, ), # 6 + (7, TType.STRING, 'validWriteIdList', None, None, ), # 7 ) - def __init__(self, dbName=None, tblName=None, colNames=None, partNames=None, catName=None,): + def __init__(self, dbName=None, tblName=None, colNames=None, partNames=None, catName=None, writeId=thrift_spec[6][4], validWriteIdList=None,): self.dbName = dbName self.tblName = tblName self.colNames = colNames self.partNames = partNames self.catName = catName + self.writeId = writeId + self.validWriteIdList = validWriteIdList def read(self, iprot): if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: @@ -9387,6 +9657,16 @@ def read(self, iprot): self.catName = iprot.readString() else: iprot.skip(ftype) + elif fid == 6: + if ftype == TType.I64: + self.writeId = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 7: + if ftype == TType.STRING: + self.validWriteIdList = iprot.readString() + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -9423,6 +9703,14 @@ def write(self, oprot): oprot.writeFieldBegin('catName', TType.STRING, 5) oprot.writeString(self.catName) oprot.writeFieldEnd() + if self.writeId is not None: + oprot.writeFieldBegin('writeId', TType.I64, 6) + oprot.writeI64(self.writeId) + oprot.writeFieldEnd() + if self.validWriteIdList is not None: + oprot.writeFieldBegin('validWriteIdList', TType.STRING, 7) + oprot.writeString(self.validWriteIdList) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -9445,6 +9733,8 @@ def __hash__(self): value = (value * 31) ^ hash(self.colNames) value = (value * 31) ^ hash(self.partNames) value = (value * 31) ^ hash(self.catName) + value = (value * 31) ^ hash(self.writeId) + value = (value * 31) ^ hash(self.validWriteIdList) return value def __repr__(self): @@ -16517,6 +16807,8 @@ class GetTableRequest: - tblName - capabilities - catName + - writeId + - validWriteIdList """ thrift_spec = ( @@ -16525,13 +16817,17 @@ class GetTableRequest: (2, TType.STRING, 'tblName', None, None, ), # 2 (3, TType.STRUCT, 'capabilities', (ClientCapabilities, ClientCapabilities.thrift_spec), None, ), # 3 (4, TType.STRING, 'catName', None, None, ), # 4 + (5, TType.I64, 'writeId', None, -1, ), # 5 + (6, TType.STRING, 'validWriteIdList', None, None, ), # 6 ) - def __init__(self, dbName=None, tblName=None, capabilities=None, catName=None,): + def __init__(self, dbName=None, tblName=None, capabilities=None, catName=None, writeId=thrift_spec[5][4], validWriteIdList=None,): self.dbName = dbName self.tblName = tblName self.capabilities = capabilities self.catName = catName + self.writeId = writeId + self.validWriteIdList = validWriteIdList def read(self, iprot): if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: @@ -16563,6 +16859,16 @@ def read(self, iprot): self.catName = iprot.readString() else: iprot.skip(ftype) + elif fid == 5: + if ftype == TType.I64: + self.writeId = iprot.readI64() + else: + iprot.skip(ftype) + elif fid == 6: + if ftype == TType.STRING: + self.validWriteIdList = iprot.readString() + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -16589,6 +16895,14 @@ def write(self, oprot): oprot.writeFieldBegin('catName', TType.STRING, 4) oprot.writeString(self.catName) oprot.writeFieldEnd() + if self.writeId is not None: + oprot.writeFieldBegin('writeId', TType.I64, 5) + oprot.writeI64(self.writeId) + oprot.writeFieldEnd() + if self.validWriteIdList is not None: + oprot.writeFieldBegin('validWriteIdList', TType.STRING, 6) + oprot.writeString(self.validWriteIdList) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -16606,6 +16920,8 @@ def __hash__(self): value = (value * 31) ^ hash(self.tblName) value = (value * 31) ^ hash(self.capabilities) value = (value * 31) ^ hash(self.catName) + value = (value * 31) ^ hash(self.writeId) + value = (value * 31) ^ hash(self.validWriteIdList) return value def __repr__(self): @@ -16623,15 +16939,18 @@ class GetTableResult: """ Attributes: - table + - isStatsCompliant """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'table', (Table, Table.thrift_spec), None, ), # 1 + (2, TType.I32, 'isStatsCompliant', None, None, ), # 2 ) - def __init__(self, table=None,): + def __init__(self, table=None, isStatsCompliant=None,): self.table = table + self.isStatsCompliant = isStatsCompliant def read(self, iprot): if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: @@ -16648,6 +16967,11 @@ def read(self, iprot): self.table.read(iprot) else: iprot.skip(ftype) + elif fid == 2: + if ftype == TType.I32: + self.isStatsCompliant = iprot.readI32() + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -16662,6 +16986,10 @@ def write(self, oprot): oprot.writeFieldBegin('table', TType.STRUCT, 1) self.table.write(oprot) oprot.writeFieldEnd() + if self.isStatsCompliant is not None: + oprot.writeFieldBegin('isStatsCompliant', TType.I32, 2) + oprot.writeI32(self.isStatsCompliant) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -16674,6 +17002,7 @@ def validate(self): def __hash__(self): value = 17 value = (value * 31) ^ hash(self.table) + value = (value * 31) ^ hash(self.isStatsCompliant) return value def __repr__(self): diff --git standalone-metastore/src/gen/thrift/gen-rb/hive_metastore_types.rb standalone-metastore/src/gen/thrift/gen-rb/hive_metastore_types.rb index fb73b28f62..046db29a17 100644 --- standalone-metastore/src/gen/thrift/gen-rb/hive_metastore_types.rb +++ standalone-metastore/src/gen/thrift/gen-rb/hive_metastore_types.rb @@ -141,6 +141,14 @@ module SchemaVersionState VALID_VALUES = Set.new([INITIATED, START_REVIEW, CHANGES_REQUIRED, REVIEWED, ENABLED, DISABLED, ARCHIVED, DELETED]).freeze end +module IsolationLevelCompliance + YES = 1 + NO = 2 + UNKNOWN = 3 + VALUE_MAP = {1 => "YES", 2 => "NO", 3 => "UNKNOWN"} + VALID_VALUES = Set.new([YES, NO, UNKNOWN]).freeze +end + module FunctionType JAVA = 1 VALUE_MAP = {1 => "JAVA"} @@ -1042,6 +1050,9 @@ class Table CREATIONMETADATA = 16 CATNAME = 17 OWNERTYPE = 18 + WRITEID = 19 + VALIDWRITEIDLIST = 20 + ISSTATSCOMPLIANT = 21 FIELDS = { TABLENAME => {:type => ::Thrift::Types::STRING, :name => 'tableName'}, @@ -1061,7 +1072,10 @@ class Table REWRITEENABLED => {:type => ::Thrift::Types::BOOL, :name => 'rewriteEnabled', :optional => true}, CREATIONMETADATA => {:type => ::Thrift::Types::STRUCT, :name => 'creationMetadata', :class => ::CreationMetadata, :optional => true}, CATNAME => {:type => ::Thrift::Types::STRING, :name => 'catName', :optional => true}, - OWNERTYPE => {:type => ::Thrift::Types::I32, :name => 'ownerType', :default => 1, :optional => true, :enum_class => ::PrincipalType} + OWNERTYPE => {:type => ::Thrift::Types::I32, :name => 'ownerType', :default => 1, :optional => true, :enum_class => ::PrincipalType}, + WRITEID => {:type => ::Thrift::Types::I64, :name => 'writeId', :default => -1, :optional => true}, + VALIDWRITEIDLIST => {:type => ::Thrift::Types::STRING, :name => 'validWriteIdList', :optional => true}, + ISSTATSCOMPLIANT => {:type => ::Thrift::Types::I32, :name => 'isStatsCompliant', :optional => true, :enum_class => ::IsolationLevelCompliance} } def struct_fields; FIELDS; end @@ -1070,6 +1084,9 @@ class Table unless @ownerType.nil? || ::PrincipalType::VALID_VALUES.include?(@ownerType) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field ownerType!') end + unless @isStatsCompliant.nil? || ::IsolationLevelCompliance::VALID_VALUES.include?(@isStatsCompliant) + raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field isStatsCompliant!') + end end ::Thrift::Struct.generate_accessors self @@ -1086,6 +1103,9 @@ class Partition PARAMETERS = 7 PRIVILEGES = 8 CATNAME = 9 + WRITEID = 10 + VALIDWRITEIDLIST = 11 + ISSTATSCOMPLIANT = 12 FIELDS = { VALUES => {:type => ::Thrift::Types::LIST, :name => 'values', :element => {:type => ::Thrift::Types::STRING}}, @@ -1096,12 +1116,18 @@ class Partition SD => {:type => ::Thrift::Types::STRUCT, :name => 'sd', :class => ::StorageDescriptor}, PARAMETERS => {:type => ::Thrift::Types::MAP, :name => 'parameters', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRING}}, PRIVILEGES => {:type => ::Thrift::Types::STRUCT, :name => 'privileges', :class => ::PrincipalPrivilegeSet, :optional => true}, - CATNAME => {:type => ::Thrift::Types::STRING, :name => 'catName', :optional => true} + CATNAME => {:type => ::Thrift::Types::STRING, :name => 'catName', :optional => true}, + WRITEID => {:type => ::Thrift::Types::I64, :name => 'writeId', :default => -1, :optional => true}, + VALIDWRITEIDLIST => {:type => ::Thrift::Types::STRING, :name => 'validWriteIdList', :optional => true}, + ISSTATSCOMPLIANT => {:type => ::Thrift::Types::I32, :name => 'isStatsCompliant', :optional => true, :enum_class => ::IsolationLevelCompliance} } def struct_fields; FIELDS; end def validate + unless @isStatsCompliant.nil? || ::IsolationLevelCompliance::VALID_VALUES.include?(@isStatsCompliant) + raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field isStatsCompliant!') + end end ::Thrift::Struct.generate_accessors self @@ -1175,6 +1201,9 @@ class PartitionSpec SHAREDSDPARTITIONSPEC = 4 PARTITIONLIST = 5 CATNAME = 6 + WRITEID = 7 + VALIDWRITEIDLIST = 8 + ISSTATSCOMPLIANT = 9 FIELDS = { DBNAME => {:type => ::Thrift::Types::STRING, :name => 'dbName'}, @@ -1182,12 +1211,18 @@ class PartitionSpec ROOTPATH => {:type => ::Thrift::Types::STRING, :name => 'rootPath'}, SHAREDSDPARTITIONSPEC => {:type => ::Thrift::Types::STRUCT, :name => 'sharedSDPartitionSpec', :class => ::PartitionSpecWithSharedSD, :optional => true}, PARTITIONLIST => {:type => ::Thrift::Types::STRUCT, :name => 'partitionList', :class => ::PartitionListComposingSpec, :optional => true}, - CATNAME => {:type => ::Thrift::Types::STRING, :name => 'catName', :optional => true} + CATNAME => {:type => ::Thrift::Types::STRING, :name => 'catName', :optional => true}, + WRITEID => {:type => ::Thrift::Types::I64, :name => 'writeId', :default => -1, :optional => true}, + VALIDWRITEIDLIST => {:type => ::Thrift::Types::STRING, :name => 'validWriteIdList', :optional => true}, + ISSTATSCOMPLIANT => {:type => ::Thrift::Types::I32, :name => 'isStatsCompliant', :optional => true, :enum_class => ::IsolationLevelCompliance} } def struct_fields; FIELDS; end def validate + unless @isStatsCompliant.nil? || ::IsolationLevelCompliance::VALID_VALUES.include?(@isStatsCompliant) + raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field isStatsCompliant!') + end end ::Thrift::Struct.generate_accessors self @@ -1527,10 +1562,16 @@ class ColumnStatistics include ::Thrift::Struct, ::Thrift::Struct_Union STATSDESC = 1 STATSOBJ = 2 + WRITEID = 3 + VALIDWRITEIDLIST = 4 + ISSTATSCOMPLIANT = 5 FIELDS = { STATSDESC => {:type => ::Thrift::Types::STRUCT, :name => 'statsDesc', :class => ::ColumnStatisticsDesc}, - STATSOBJ => {:type => ::Thrift::Types::LIST, :name => 'statsObj', :element => {:type => ::Thrift::Types::STRUCT, :class => ::ColumnStatisticsObj}} + STATSOBJ => {:type => ::Thrift::Types::LIST, :name => 'statsObj', :element => {:type => ::Thrift::Types::STRUCT, :class => ::ColumnStatisticsObj}}, + WRITEID => {:type => ::Thrift::Types::I64, :name => 'writeId', :default => -1, :optional => true}, + VALIDWRITEIDLIST => {:type => ::Thrift::Types::STRING, :name => 'validWriteIdList', :optional => true}, + ISSTATSCOMPLIANT => {:type => ::Thrift::Types::I32, :name => 'isStatsCompliant', :optional => true, :enum_class => ::IsolationLevelCompliance} } def struct_fields; FIELDS; end @@ -1538,6 +1579,9 @@ class ColumnStatistics def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field statsDesc is unset!') unless @statsDesc raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field statsObj is unset!') unless @statsObj + unless @isStatsCompliant.nil? || ::IsolationLevelCompliance::VALID_VALUES.include?(@isStatsCompliant) + raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field isStatsCompliant!') + end end ::Thrift::Struct.generate_accessors self @@ -1547,10 +1591,12 @@ class AggrStats include ::Thrift::Struct, ::Thrift::Struct_Union COLSTATS = 1 PARTSFOUND = 2 + ISSTATSCOMPLIANT = 3 FIELDS = { COLSTATS => {:type => ::Thrift::Types::LIST, :name => 'colStats', :element => {:type => ::Thrift::Types::STRUCT, :class => ::ColumnStatisticsObj}}, - PARTSFOUND => {:type => ::Thrift::Types::I64, :name => 'partsFound'} + PARTSFOUND => {:type => ::Thrift::Types::I64, :name => 'partsFound'}, + ISSTATSCOMPLIANT => {:type => ::Thrift::Types::I32, :name => 'isStatsCompliant', :optional => true, :enum_class => ::IsolationLevelCompliance} } def struct_fields; FIELDS; end @@ -1558,6 +1604,9 @@ class AggrStats def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field colStats is unset!') unless @colStats raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field partsFound is unset!') unless @partsFound + unless @isStatsCompliant.nil? || ::IsolationLevelCompliance::VALID_VALUES.include?(@isStatsCompliant) + raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field isStatsCompliant!') + end end ::Thrift::Struct.generate_accessors self @@ -1567,10 +1616,14 @@ class SetPartitionsStatsRequest include ::Thrift::Struct, ::Thrift::Struct_Union COLSTATS = 1 NEEDMERGE = 2 + WRITEID = 3 + VALIDWRITEIDLIST = 4 FIELDS = { COLSTATS => {:type => ::Thrift::Types::LIST, :name => 'colStats', :element => {:type => ::Thrift::Types::STRUCT, :class => ::ColumnStatistics}}, - NEEDMERGE => {:type => ::Thrift::Types::BOOL, :name => 'needMerge', :optional => true} + NEEDMERGE => {:type => ::Thrift::Types::BOOL, :name => 'needMerge', :optional => true}, + WRITEID => {:type => ::Thrift::Types::I64, :name => 'writeId', :default => -1, :optional => true}, + VALIDWRITEIDLIST => {:type => ::Thrift::Types::STRING, :name => 'validWriteIdList', :optional => true} } def struct_fields; FIELDS; end @@ -2035,15 +2088,20 @@ end class TableStatsResult include ::Thrift::Struct, ::Thrift::Struct_Union TABLESTATS = 1 + ISSTATSCOMPLIANT = 2 FIELDS = { - TABLESTATS => {:type => ::Thrift::Types::LIST, :name => 'tableStats', :element => {:type => ::Thrift::Types::STRUCT, :class => ::ColumnStatisticsObj}} + TABLESTATS => {:type => ::Thrift::Types::LIST, :name => 'tableStats', :element => {:type => ::Thrift::Types::STRUCT, :class => ::ColumnStatisticsObj}}, + ISSTATSCOMPLIANT => {:type => ::Thrift::Types::I32, :name => 'isStatsCompliant', :optional => true, :enum_class => ::IsolationLevelCompliance} } def struct_fields; FIELDS; end def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field tableStats is unset!') unless @tableStats + unless @isStatsCompliant.nil? || ::IsolationLevelCompliance::VALID_VALUES.include?(@isStatsCompliant) + raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field isStatsCompliant!') + end end ::Thrift::Struct.generate_accessors self @@ -2052,15 +2110,20 @@ end class PartitionsStatsResult include ::Thrift::Struct, ::Thrift::Struct_Union PARTSTATS = 1 + ISSTATSCOMPLIANT = 2 FIELDS = { - PARTSTATS => {:type => ::Thrift::Types::MAP, :name => 'partStats', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::LIST, :element => {:type => ::Thrift::Types::STRUCT, :class => ::ColumnStatisticsObj}}} + PARTSTATS => {:type => ::Thrift::Types::MAP, :name => 'partStats', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::LIST, :element => {:type => ::Thrift::Types::STRUCT, :class => ::ColumnStatisticsObj}}}, + ISSTATSCOMPLIANT => {:type => ::Thrift::Types::I32, :name => 'isStatsCompliant', :optional => true, :enum_class => ::IsolationLevelCompliance} } def struct_fields; FIELDS; end def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field partStats is unset!') unless @partStats + unless @isStatsCompliant.nil? || ::IsolationLevelCompliance::VALID_VALUES.include?(@isStatsCompliant) + raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field isStatsCompliant!') + end end ::Thrift::Struct.generate_accessors self @@ -2072,12 +2135,16 @@ class TableStatsRequest TBLNAME = 2 COLNAMES = 3 CATNAME = 4 + WRITEID = 5 + VALIDWRITEIDLIST = 6 FIELDS = { DBNAME => {:type => ::Thrift::Types::STRING, :name => 'dbName'}, TBLNAME => {:type => ::Thrift::Types::STRING, :name => 'tblName'}, COLNAMES => {:type => ::Thrift::Types::LIST, :name => 'colNames', :element => {:type => ::Thrift::Types::STRING}}, - CATNAME => {:type => ::Thrift::Types::STRING, :name => 'catName', :optional => true} + CATNAME => {:type => ::Thrift::Types::STRING, :name => 'catName', :optional => true}, + WRITEID => {:type => ::Thrift::Types::I64, :name => 'writeId', :default => -1, :optional => true}, + VALIDWRITEIDLIST => {:type => ::Thrift::Types::STRING, :name => 'validWriteIdList', :optional => true} } def struct_fields; FIELDS; end @@ -2098,13 +2165,17 @@ class PartitionsStatsRequest COLNAMES = 3 PARTNAMES = 4 CATNAME = 5 + WRITEID = 6 + VALIDWRITEIDLIST = 7 FIELDS = { DBNAME => {:type => ::Thrift::Types::STRING, :name => 'dbName'}, TBLNAME => {:type => ::Thrift::Types::STRING, :name => 'tblName'}, COLNAMES => {:type => ::Thrift::Types::LIST, :name => 'colNames', :element => {:type => ::Thrift::Types::STRING}}, PARTNAMES => {:type => ::Thrift::Types::LIST, :name => 'partNames', :element => {:type => ::Thrift::Types::STRING}}, - CATNAME => {:type => ::Thrift::Types::STRING, :name => 'catName', :optional => true} + CATNAME => {:type => ::Thrift::Types::STRING, :name => 'catName', :optional => true}, + WRITEID => {:type => ::Thrift::Types::I64, :name => 'writeId', :default => -1, :optional => true}, + VALIDWRITEIDLIST => {:type => ::Thrift::Types::STRING, :name => 'validWriteIdList', :optional => true} } def struct_fields; FIELDS; end @@ -3711,12 +3782,16 @@ class GetTableRequest TBLNAME = 2 CAPABILITIES = 3 CATNAME = 4 + WRITEID = 5 + VALIDWRITEIDLIST = 6 FIELDS = { DBNAME => {:type => ::Thrift::Types::STRING, :name => 'dbName'}, TBLNAME => {:type => ::Thrift::Types::STRING, :name => 'tblName'}, CAPABILITIES => {:type => ::Thrift::Types::STRUCT, :name => 'capabilities', :class => ::ClientCapabilities, :optional => true}, - CATNAME => {:type => ::Thrift::Types::STRING, :name => 'catName', :optional => true} + CATNAME => {:type => ::Thrift::Types::STRING, :name => 'catName', :optional => true}, + WRITEID => {:type => ::Thrift::Types::I64, :name => 'writeId', :default => -1, :optional => true}, + VALIDWRITEIDLIST => {:type => ::Thrift::Types::STRING, :name => 'validWriteIdList', :optional => true} } def struct_fields; FIELDS; end @@ -3732,15 +3807,20 @@ end class GetTableResult include ::Thrift::Struct, ::Thrift::Struct_Union TABLE = 1 + ISSTATSCOMPLIANT = 2 FIELDS = { - TABLE => {:type => ::Thrift::Types::STRUCT, :name => 'table', :class => ::Table} + TABLE => {:type => ::Thrift::Types::STRUCT, :name => 'table', :class => ::Table}, + ISSTATSCOMPLIANT => {:type => ::Thrift::Types::I32, :name => 'isStatsCompliant', :optional => true, :enum_class => ::IsolationLevelCompliance} } def struct_fields; FIELDS; end def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field table is unset!') unless @table + unless @isStatsCompliant.nil? || ::IsolationLevelCompliance::VALID_VALUES.include?(@isStatsCompliant) + raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field isStatsCompliant!') + end end ::Thrift::Struct.generate_accessors self diff --git standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/model/MPartition.java standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/model/MPartition.java index 4a97f891fe..a3359539f0 100644 --- standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/model/MPartition.java +++ standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/model/MPartition.java @@ -30,7 +30,7 @@ private int lastAccessTime; private MStorageDescriptor sd; private Map parameters; - + private MUpdaterTransaction updaterTransaction; public MPartition() {} @@ -152,4 +152,11 @@ public void setCreateTime(int createTime) { this.createTime = createTime; } + public MUpdaterTransaction getUpdaterTransaction() { + return updaterTransaction; + } + + public void setUpdaterTransaction(MUpdaterTransaction updaterTransaction) { + this.updaterTransaction = updaterTransaction; + } } diff --git standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/model/MPartitionColumnStatistics.java standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/model/MPartitionColumnStatistics.java index 50d9c5b0cf..9cadd4e09a 100644 --- standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/model/MPartitionColumnStatistics.java +++ standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/model/MPartitionColumnStatistics.java @@ -55,6 +55,7 @@ private Long numTrues; private Long numFalses; private long lastAnalyzed; + private MPartitionUpdaterTransaction updaterTransaction; public MPartitionColumnStatistics() {} @@ -278,4 +279,12 @@ public void setDecimalHighValue(String decimalHighValue) { public void setBitVector(byte[] bitVector) { this.bitVector = bitVector; } + + public MPartitionUpdaterTransaction getUpdaterTransaction() { + return updaterTransaction; + } + + public void setUpdaterTransaction(MPartitionUpdaterTransaction updaterTransaction) { + this.updaterTransaction = updaterTransaction; + } } diff --git standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/model/MPartitionUpdaterTransaction.java standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/model/MPartitionUpdaterTransaction.java new file mode 100644 index 0000000000..40090fc485 --- /dev/null +++ standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/model/MPartitionUpdaterTransaction.java @@ -0,0 +1,136 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.apache.hadoop.hive.metastore.model; + +import java.sql.Timestamp; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class MPartitionUpdaterTransaction { + private String partName; + private MTable table; + private MPartition partition; + private Timestamp creationTime; + private long commitSeqId; + private char state; + private long writeId; // The corresponding column name is WRITE_ID. + private String writeIdList; + // Column UPDATE_ID is used as database identity. + + public MPartitionUpdaterTransaction() {} + + public MPartitionUpdaterTransaction( + String partName, + MTable table, + MPartition partition, + Timestamp creationTime, + long commitSeqId, + char state, + long writeId, + String writeIdList) { + this.partName = partName; + this.table = table; + this.partition = partition; + this.creationTime = creationTime; + this.commitSeqId = commitSeqId; + this.state = state; + this.writeId = writeId; + this.writeIdList = writeIdList; + } + + public MPartitionUpdaterTransaction( + String partName, + MTable table, + MPartition partition, + long commitSeqId, + long writeId, + char state) { + this.partName = partName; + this.table = table; + this.partition = partition; + this.commitSeqId = commitSeqId; + this.writeId = writeId; + this.state = state; + } + + public Timestamp getCreationTime() { + return creationTime; + } + + public void setCreationTime(Timestamp creationTime) { + this.creationTime = creationTime; + } + + public long getCommitSeqId() { + return commitSeqId; + } + + public void setCommitSeqId(long commitSeqId) { + this.commitSeqId = commitSeqId; + } + + public char getState() { + return state; + } + + public void setState(char state) { + this.state = state; + } + + public String getPartName() { + return partName; + } + + public void setPartName(String partName) { + this.partName = partName; + } + + public MTable getTable() { + return table; + } + + public void setTable(MTable table) { + this.table = table; + } + + public MPartition getMPartition() { + return partition; + } + + public void setMPartition(MPartition partition) { + this.partition = partition; + } + + public long getWriteId() { + return writeId; + } + + public void setWriteId(long writeId) { + this.writeId = writeId; + } + + public String getWriteIdList() { + return writeIdList; + } + + public void setWriteIdList(String writeIdList) { + this.writeIdList = writeIdList; + } +} diff --git standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/model/MTable.java standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/model/MTable.java index 38ad47915b..59afd818ba 100644 --- standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/model/MTable.java +++ standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/model/MTable.java @@ -37,6 +37,7 @@ private String viewExpandedText; private boolean rewriteEnabled; private String tableType; + private MUpdaterTransaction updaterTransaction; public MTable() {} @@ -270,4 +271,12 @@ public void setTableType(String tableType) { public String getTableType() { return tableType; } + + public MUpdaterTransaction getUpdaterTransaction() { + return updaterTransaction; + } + + public void setUpdaterTransaction(MUpdaterTransaction updaterTransaction) { + this.updaterTransaction = updaterTransaction; + } } diff --git standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/model/MTableColumnStatistics.java standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/model/MTableColumnStatistics.java index 731cd6f7fa..7e97af0503 100644 --- standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/model/MTableColumnStatistics.java +++ standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/model/MTableColumnStatistics.java @@ -53,6 +53,7 @@ private Long numTrues; private Long numFalses; private long lastAnalyzed; + private MUpdaterTransaction updaterTransaction; public MTableColumnStatistics() {} @@ -269,4 +270,12 @@ public void setDecimalHighValue(String decimalHighValue) { public void setBitVector(byte[] bitVector) { this.bitVector = bitVector; } + + public MUpdaterTransaction getUpdaterTransaction() { + return updaterTransaction; + } + + public void setUpdaterTransaction(MUpdaterTransaction updaterTransaction) { + this.updaterTransaction = updaterTransaction; + } } diff --git standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/model/MUpdaterTransaction.java standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/model/MUpdaterTransaction.java new file mode 100644 index 0000000000..ab0f888154 --- /dev/null +++ standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/model/MUpdaterTransaction.java @@ -0,0 +1,122 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.apache.hadoop.hive.metastore.model; + +import java.sql.Timestamp; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class MUpdaterTransaction { + private String dbName; + private String tblName; + private MTable table; + private Timestamp creationTime; + private char state; + private long writeId; // The corresponding column name is WRITE_ID. + private String writeIdList; + // Column UPDATE_ID is used as database identity. + + public MUpdaterTransaction() {} + + public MUpdaterTransaction( + String dbName, + String tblName, + MTable table, + char state, + long writeId, + String writeIdList) { + this.dbName = dbName; + this.tblName = tblName; + this.table = table; + this.state = state; + this.writeId = writeId; + this.writeIdList = writeIdList; + } + + public MUpdaterTransaction( + String dbName, + String tblName, + MTable table, + long writeId, + char state) { + this.dbName = dbName; + this.tblName = tblName; + this.table = table; + this.writeId = writeId; + this.state = state; + } + + public Timestamp getCreationTime() { + return creationTime; + } + + public void setCreationTime(Timestamp creationTime) { + this.creationTime = creationTime; + } + + public char getState() { + return state; + } + + public void setState(char state) { + this.state = state; + } + + public String getDbName() { + return dbName; + } + + public void setDbName(String dbName) { + this.dbName = dbName; + } + + public String getTblName() { + return tblName; + } + + public void setTblName(String tblName) { + this.tblName = tblName; + } + + public MTable getMTable() { + return table; + } + + public void setMTable(MTable table) { + this.table = table; + } + + public long getWriteId() { + return writeId; + } + + public void setWriteId(long writeId) { + this.writeId = writeId; + } + + public String getWriteIdList() { + return writeIdList; + } + + public void setWriteIdList(String writeIdList) { + this.writeIdList = writeIdList; + } +} + diff --git standalone-metastore/src/main/resources/package.jdo standalone-metastore/src/main/resources/package.jdo index 2d2cb19991..fbc59cd3f4 100644 --- standalone-metastore/src/main/resources/package.jdo +++ standalone-metastore/src/main/resources/package.jdo @@ -210,6 +210,36 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -489,6 +519,9 @@ + + + diff --git standalone-metastore/src/main/sql/derby/hive-schema-3.0.0.derby.sql standalone-metastore/src/main/sql/derby/hive-schema-3.0.0.derby.sql index e818e1b7e2..b9a2dd8d58 100644 --- standalone-metastore/src/main/sql/derby/hive-schema-3.0.0.derby.sql +++ standalone-metastore/src/main/sql/derby/hive-schema-3.0.0.derby.sql @@ -47,7 +47,7 @@ CREATE TABLE "APP"."IDXS" ("INDEX_ID" BIGINT NOT NULL, "CREATE_TIME" INTEGER NOT CREATE TABLE "APP"."INDEX_PARAMS" ("INDEX_ID" BIGINT NOT NULL, "PARAM_KEY" VARCHAR(256) NOT NULL, "PARAM_VALUE" VARCHAR(4000)); -CREATE TABLE "APP"."PARTITIONS" ("PART_ID" BIGINT NOT NULL, "CREATE_TIME" INTEGER NOT NULL, "LAST_ACCESS_TIME" INTEGER NOT NULL, "PART_NAME" VARCHAR(767), "SD_ID" BIGINT, "TBL_ID" BIGINT); +CREATE TABLE "APP"."PARTITIONS" ("PART_ID" BIGINT NOT NULL, "CREATE_TIME" INTEGER NOT NULL, "LAST_ACCESS_TIME" INTEGER NOT NULL, "PART_NAME" VARCHAR(767), "SD_ID" BIGINT, "TBL_ID" BIGINT, "UPDATE_ID" BIGINT DEFAULT 0); CREATE TABLE "APP"."SERDES" ("SERDE_ID" BIGINT NOT NULL, "NAME" VARCHAR(128), "SLIB" VARCHAR(4000), "DESCRIPTION" VARCHAR(4000), "SERIALIZER_CLASS" VARCHAR(4000), "DESERIALIZER_CLASS" VARCHAR(4000), SERDE_TYPE INTEGER); @@ -75,7 +75,7 @@ CREATE TABLE "APP"."COLUMNS" ("SD_ID" BIGINT NOT NULL, "COMMENT" VARCHAR(256), " CREATE TABLE "APP"."ROLES" ("ROLE_ID" BIGINT NOT NULL, "CREATE_TIME" INTEGER NOT NULL, "OWNER_NAME" VARCHAR(128), "ROLE_NAME" VARCHAR(128)); -CREATE TABLE "APP"."TBLS" ("TBL_ID" BIGINT NOT NULL, "CREATE_TIME" INTEGER NOT NULL, "DB_ID" BIGINT, "LAST_ACCESS_TIME" INTEGER NOT NULL, "OWNER" VARCHAR(767), "OWNER_TYPE" VARCHAR(10), "RETENTION" INTEGER NOT NULL, "SD_ID" BIGINT, "TBL_NAME" VARCHAR(256), "TBL_TYPE" VARCHAR(128), "VIEW_EXPANDED_TEXT" LONG VARCHAR, "VIEW_ORIGINAL_TEXT" LONG VARCHAR, "IS_REWRITE_ENABLED" CHAR(1) NOT NULL DEFAULT 'N'); +CREATE TABLE "APP"."TBLS" ("TBL_ID" BIGINT NOT NULL, "CREATE_TIME" INTEGER NOT NULL, "DB_ID" BIGINT, "LAST_ACCESS_TIME" INTEGER NOT NULL, "OWNER" VARCHAR(767), "OWNER_TYPE" VARCHAR(10), "RETENTION" INTEGER NOT NULL, "SD_ID" BIGINT, "TBL_NAME" VARCHAR(256), "TBL_TYPE" VARCHAR(128), "VIEW_EXPANDED_TEXT" LONG VARCHAR, "VIEW_ORIGINAL_TEXT" LONG VARCHAR, "IS_REWRITE_ENABLED" CHAR(1) NOT NULL DEFAULT 'N', "UPDATE_ID" BIGINT DEFAULT 0); CREATE TABLE "APP"."PARTITION_KEYS" ("TBL_ID" BIGINT NOT NULL, "PKEY_COMMENT" VARCHAR(4000), "PKEY_NAME" VARCHAR(128) NOT NULL, "PKEY_TYPE" VARCHAR(767) NOT NULL, "INTEGER_IDX" INTEGER NOT NULL); @@ -211,6 +211,17 @@ CREATE TABLE "APP"."CTLGS" ( "DESC" VARCHAR(4000), "LOCATION_URI" VARCHAR(4000) NOT NULL); +CREATE TABLE "APP"."UPD_TXNS" ( + "UPDATE_ID" BIGINT NOT NULL, + "CREATION_TIME" timestamp DEFAULT CURRENT_TIMESTAMP NOT NULL, + "DB_NAME" VARCHAR(128) NOT NULL, + "TBL_NAME" VARCHAR(256) NOT NULL, + "TBL_ID" BIGINT NOT NULL, + "STATE" CHAR(1) NOT NULL, + "WRITE_ID" BIGINT NOT NULL, + "WRITEID_LIST" CLOB +); + -- ---------------------------------------------- -- DML Statements -- ---------------------------------------------- @@ -373,6 +384,7 @@ ALTER TABLE "APP"."MV_CREATION_METADATA" ADD CONSTRAINT "MV_CREATION_METADATA_PK ALTER TABLE "APP"."CTLGS" ADD CONSTRAINT "CTLG_PK" PRIMARY KEY ("CTLG_ID"); +ALTER TABLE "APP"."UPD_TXNS" ADD CONSTRAINT "UPD_TXNS_PK" PRIMARY KEY ("UPDATE_ID"); -- foreign ALTER TABLE "APP"."IDXS" ADD CONSTRAINT "IDXS_FK1" FOREIGN KEY ("ORIG_TBL_ID") REFERENCES "APP"."TBLS" ("TBL_ID") ON DELETE NO ACTION ON UPDATE NO ACTION; @@ -483,6 +495,8 @@ ALTER TABLE "APP"."MV_TABLES_USED" ADD CONSTRAINT "MV_TABLES_USED_FK2" FOREIGN K ALTER TABLE "APP"."DBS" ADD CONSTRAINT "DBS_CTLG_FK" FOREIGN KEY ("CTLG_NAME") REFERENCES "APP"."CTLGS" ("NAME") ON DELETE NO ACTION ON UPDATE NO ACTION; +ALTER TABLE "APP"."UPD_TXNS" ADD CONSTRAINT "UPD_TXNS_FK1" FOREIGN KEY ("TBL_ID") REFERENCES "APP"."TBLS" ("TBL_ID") ON DELETE NO ACTION ON UPDATE NO ACTION; + -- ---------------------------------------------- -- DDL Statements for checks -- ---------------------------------------------- @@ -507,7 +521,7 @@ CREATE TABLE TXNS ( ); CREATE TABLE TXN_COMPONENTS ( - TC_TXNID bigint NOT NULL REFERENCES TXNS (TXN_ID), + TC_TXNID bigint REFERENCES TXNS (TXN_ID), TC_DATABASE varchar(128) NOT NULL, TC_TABLE varchar(128), TC_PARTITION varchar(767), @@ -518,7 +532,7 @@ CREATE TABLE TXN_COMPONENTS ( CREATE INDEX TC_TXNID_INDEX ON TXN_COMPONENTS (TC_TXNID); CREATE TABLE COMPLETED_TXN_COMPONENTS ( - CTC_TXNID bigint NOT NULL, + CTC_TXNID bigint, CTC_DATABASE varchar(128) NOT NULL, CTC_TABLE varchar(256), CTC_PARTITION varchar(767), diff --git standalone-metastore/src/main/sql/derby/upgrade-2.3.0-to-3.0.0.derby.sql standalone-metastore/src/main/sql/derby/upgrade-2.3.0-to-3.0.0.derby.sql index 7b7a8a24d9..e245bf8f6c 100644 --- standalone-metastore/src/main/sql/derby/upgrade-2.3.0-to-3.0.0.derby.sql +++ standalone-metastore/src/main/sql/derby/upgrade-2.3.0-to-3.0.0.derby.sql @@ -254,30 +254,24 @@ CREATE TABLE "APP"."RUNTIME_STATS" ( CREATE INDEX IDX_RUNTIME_STATS_CREATE_TIME ON RUNTIME_STATS(CREATE_TIME); --- HIVE-18193 --- Populate NEXT_WRITE_ID for each Transactional table and set next write ID same as next txn ID -INSERT INTO NEXT_WRITE_ID (NWI_DATABASE, NWI_TABLE, NWI_NEXT) - SELECT * FROM - (SELECT DB.NAME, TBL_INFO.TBL_NAME FROM DBS DB, - (SELECT TBL.DB_ID, TBL.TBL_NAME FROM TBLS TBL, - (SELECT TBL_ID FROM TABLE_PARAMS WHERE PARAM_KEY='transactional' AND CAST(PARAM_VALUE AS VARCHAR(128))='true') TBL_PARAM - WHERE TBL.TBL_ID=TBL_PARAM.TBL_ID) TBL_INFO - where DB.DB_ID=TBL_INFO.DB_ID) DB_TBL_NAME, - (SELECT NTXN_NEXT FROM NEXT_TXN_ID) NEXT_WRITE; - --- Populate TXN_TO_WRITE_ID for each aborted/open txns and set write ID equal to txn ID -INSERT INTO TXN_TO_WRITE_ID (T2W_DATABASE, T2W_TABLE, T2W_TXNID, T2W_WRITEID) - SELECT * FROM - (SELECT DB.NAME, TBL_INFO.TBL_NAME FROM DBS DB, - (SELECT TBL.DB_ID, TBL.TBL_NAME FROM TBLS TBL, - (SELECT TBL_ID FROM TABLE_PARAMS WHERE PARAM_KEY='transactional' AND CAST(PARAM_VALUE AS VARCHAR(128))='true') TBL_PARAM - WHERE TBL.TBL_ID=TBL_PARAM.TBL_ID) TBL_INFO - where DB.DB_ID=TBL_INFO.DB_ID) DB_TBL_NAME, - (SELECT TXN_ID, TXN_ID as WRITE_ID FROM TXNS) TXN_INFO; - --- Update TXN_COMPONENTS and COMPLETED_TXN_COMPONENTS for write ID which is same as txn ID -UPDATE TXN_COMPONENTS SET TC_WRITEID = TC_TXNID; -UPDATE COMPLETED_TXN_COMPONENTS SET CTC_WRITEID = CTC_TXNID; +-- HIVE-19416 +CREATE TABLE "APP"."UPD_TXNS" ( + "UPDATE_ID" BIGINT NOT NULL, + "CREATION_TIME" timestamp DEFAULT CURRENT_TIMESTAMP NOT NULL, + "DB_NAME" VARCHAR(128) NOT NULL, + "TBL_NAME" VARCHAR(256) NOT NULL, + "TBL_ID" BIGINT NOT NULL, + "STATE" CHAR(1) NOT NULL, + "WRITE_ID" BIGINT NOT NULL, + "WRITEID_LIST" CLOB +); + +ALTER TABLE "APP"."UPD_TXNS" ADD CONSTRAINT "UPD_TXNS_PK" PRIMARY KEY ("UPDATE_ID"); + +ALTER TABLE "APP"."UPD_TXNS" ADD CONSTRAINT "UPD_TXNS_FK1" FOREIGN KEY ("TBL_ID") REFERENCES "APP"."TBLS" ("TBL_ID") ON DELETE NO ACTION ON UPDATE NO ACTION; + +ALTER TABLE "APP"."TBLS" ADD UPDATE_ID bigint DEFAULT 0; +ALTER TABLE "APP"."PARTITIONS" ADD UPDATE_ID bigint DEFAULT 0; -- This needs to be the last thing done. Insert any changes above this line. UPDATE "APP".VERSION SET SCHEMA_VERSION='3.0.0', VERSION_COMMENT='Hive release version 3.0.0' where VER_ID=1; diff --git standalone-metastore/src/main/sql/mssql/hive-schema-3.0.0.mssql.sql standalone-metastore/src/main/sql/mssql/hive-schema-3.0.0.mssql.sql index c88fb18973..350650e87a 100644 --- standalone-metastore/src/main/sql/mssql/hive-schema-3.0.0.mssql.sql +++ standalone-metastore/src/main/sql/mssql/hive-schema-3.0.0.mssql.sql @@ -144,7 +144,8 @@ CREATE TABLE PARTITIONS LAST_ACCESS_TIME int NOT NULL, PART_NAME nvarchar(767) NULL, SD_ID bigint NULL, - TBL_ID bigint NULL + TBL_ID bigint NULL, + UPDATE_ID bigint NULL ); ALTER TABLE PARTITIONS ADD CONSTRAINT PARTITIONS_PK PRIMARY KEY (PART_ID); @@ -369,7 +370,8 @@ CREATE TABLE TBLS TBL_TYPE nvarchar(128) NULL, VIEW_EXPANDED_TEXT text NULL, VIEW_ORIGINAL_TEXT text NULL, - IS_REWRITE_ENABLED bit NOT NULL DEFAULT 0 + IS_REWRITE_ENABLED bit NOT NULL DEFAULT 0, + UPDATE_ID bigint NULL ); ALTER TABLE TBLS ADD CONSTRAINT TBLS_PK PRIMARY KEY (TBL_ID); @@ -1022,7 +1024,7 @@ PRIMARY KEY CLUSTERED ); CREATE TABLE COMPLETED_TXN_COMPONENTS( - CTC_TXNID bigint NOT NULL, + CTC_TXNID bigint NULL, CTC_DATABASE nvarchar(128) NOT NULL, CTC_TABLE nvarchar(128) NULL, CTC_PARTITION nvarchar(767) NULL, @@ -1091,7 +1093,7 @@ PRIMARY KEY CLUSTERED ); CREATE TABLE TXN_COMPONENTS( - TC_TXNID bigint NOT NULL, + TC_TXNID bigint NULL, TC_DATABASE nvarchar(128) NOT NULL, TC_TABLE nvarchar(128) NULL, TC_PARTITION nvarchar(767) NULL, @@ -1240,6 +1242,21 @@ CREATE TABLE RUNTIME_STATS ( CREATE INDEX IDX_RUNTIME_STATS_CREATE_TIME ON RUNTIME_STATS(CREATE_TIME); +CREATE TABLE "UPD_TXNS" ( + "UPDATE_ID" bigint NOT NULL, + "CREATION_TIME" timestamp DEFAULT CURRENT_TIMESTAMP NOT NULL, + "DB_NAME" VARCHAR(128) NOT NULL, + "TBL_NAME" VARCHAR(256) NOT NULL, + "TBL_ID" bigint NOT NULL, + "STATE" CHAR(1) NOT NULL, + "WRITE_ID" bigint NOT NULL, + "WRITEID_LIST" text NULL +); + +ALTER TABLE "UPD_TXNS" ADD CONSTRAINT "UPD_TXNS_PK" PRIMARY KEY ("UPDATE_ID"); + +ALTER TABLE "UPD_TXNS" WITH CHECK ADD FOREIGN KEY("TBL_ID") REFERENCES "TBLS" ("TBL_ID"); + -- ----------------------------------------------------------------- -- Record schema version. Should be the last step in the init script -- ----------------------------------------------------------------- diff --git standalone-metastore/src/main/sql/mssql/upgrade-2.3.0-to-3.0.0.mssql.sql standalone-metastore/src/main/sql/mssql/upgrade-2.3.0-to-3.0.0.mssql.sql index 14c3deb44c..09727b9a4c 100644 --- standalone-metastore/src/main/sql/mssql/upgrade-2.3.0-to-3.0.0.mssql.sql +++ standalone-metastore/src/main/sql/mssql/upgrade-2.3.0-to-3.0.0.mssql.sql @@ -321,30 +321,24 @@ CREATE TABLE RUNTIME_STATS ( CREATE INDEX IDX_RUNTIME_STATS_CREATE_TIME ON RUNTIME_STATS(CREATE_TIME); --- HIVE-18193 --- Populate NEXT_WRITE_ID for each Transactional table and set next write ID same as next txn ID -INSERT INTO NEXT_WRITE_ID (NWI_DATABASE, NWI_TABLE, NWI_NEXT) - SELECT * FROM - (SELECT DB.NAME, TBL_INFO.TBL_NAME FROM DBS DB, - (SELECT TBL.DB_ID, TBL.TBL_NAME FROM TBLS TBL, - (SELECT TBL_ID FROM TABLE_PARAMS WHERE PARAM_KEY='transactional' AND PARAM_VALUE='true') TBL_PARAM - WHERE TBL.TBL_ID=TBL_PARAM.TBL_ID) TBL_INFO - where DB.DB_ID=TBL_INFO.DB_ID) DB_TBL_NAME, - (SELECT NTXN_NEXT FROM NEXT_TXN_ID) NEXT_WRITE; - --- Populate TXN_TO_WRITE_ID for each aborted/open txns and set write ID equal to txn ID -INSERT INTO TXN_TO_WRITE_ID (T2W_DATABASE, T2W_TABLE, T2W_TXNID, T2W_WRITEID) - SELECT * FROM - (SELECT DB.NAME, TBL_INFO.TBL_NAME FROM DBS DB, - (SELECT TBL.DB_ID, TBL.TBL_NAME FROM TBLS TBL, - (SELECT TBL_ID FROM TABLE_PARAMS WHERE PARAM_KEY='transactional' AND PARAM_VALUE='true') TBL_PARAM - WHERE TBL.TBL_ID=TBL_PARAM.TBL_ID) TBL_INFO - where DB.DB_ID=TBL_INFO.DB_ID) DB_TBL_NAME, - (SELECT TXN_ID, TXN_ID as WRITE_ID FROM TXNS) TXN_INFO; - --- Update TXN_COMPONENTS and COMPLETED_TXN_COMPONENTS for write ID which is same as txn ID -UPDATE TXN_COMPONENTS SET TC_WRITEID = TC_TXNID; -UPDATE COMPLETED_TXN_COMPONENTS SET CTC_WRITEID = CTC_TXNID; +-- HIVE-19416 +CREATE TABLE "UPD_TXNS" ( + "UPDATE_ID" bigint NOT NULL, + "CREATION_TIME" timestamp DEFAULT CURRENT_TIMESTAMP NOT NULL, + "DB_NAME" VARCHAR(128) NOT NULL, + "TBL_NAME" VARCHAR(256) NOT NULL, + "TBL_ID" bigint NOT NULL, + "STATE" CHAR(1) NOT NULL, + "WRITE_ID" bigint NOT NULL, + "WRITEID_LIST" text NULL +); + +ALTER TABLE "UPD_TXNS" ADD CONSTRAINT "UPD_TXNS_PK" PRIMARY KEY ("UPDATE_ID"); + +ALTER TABLE "UPD_TXNS" WITH CHECK ADD FOREIGN KEY("TBL_ID") REFERENCES "TBLS" ("TBL_ID"); + +ALTER TABLE TBLS ADD UPDATE_ID bigint NULL; +ALTER TABLE PARTITIONS ADD UPDATE_ID bigint NULL; -- These lines need to be last. Insert any changes above. UPDATE VERSION SET SCHEMA_VERSION='3.0.0', VERSION_COMMENT='Hive release version 3.0.0' where VER_ID=1; diff --git standalone-metastore/src/main/sql/mysql/hive-schema-3.0.0.mysql.sql standalone-metastore/src/main/sql/mysql/hive-schema-3.0.0.mysql.sql index c54df55ed9..a02ca68b50 100644 --- standalone-metastore/src/main/sql/mysql/hive-schema-3.0.0.mysql.sql +++ standalone-metastore/src/main/sql/mysql/hive-schema-3.0.0.mysql.sql @@ -222,6 +222,7 @@ CREATE TABLE IF NOT EXISTS `PARTITIONS` ( `PART_NAME` varchar(767) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, `SD_ID` bigint(20) DEFAULT NULL, `TBL_ID` bigint(20) DEFAULT NULL, + `UPDATE_ID` bigint(20) DEFAULT 0, PRIMARY KEY (`PART_ID`), UNIQUE KEY `UNIQUEPARTITION` (`PART_NAME`,`TBL_ID`), KEY `PARTITIONS_N49` (`TBL_ID`), @@ -625,6 +626,7 @@ CREATE TABLE IF NOT EXISTS `TBLS` ( `VIEW_EXPANDED_TEXT` mediumtext, `VIEW_ORIGINAL_TEXT` mediumtext, `IS_REWRITE_ENABLED` bit(1) NOT NULL DEFAULT 0, + `UPDATE_ID` bigint(20) DEFAULT 0, PRIMARY KEY (`TBL_ID`), UNIQUE KEY `UNIQUETABLE` (`TBL_NAME`,`DB_ID`), KEY `TBLS_N50` (`SD_ID`), @@ -983,7 +985,7 @@ CREATE TABLE TXNS ( CREATE TABLE TXN_COMPONENTS ( TC_TXNID bigint NOT NULL, TC_DATABASE varchar(128) NOT NULL, - TC_TABLE varchar(128), + TC_TABLE varchar(128) NOT NULL, TC_PARTITION varchar(767), TC_OPERATION_TYPE char(1) NOT NULL, TC_WRITEID bigint, @@ -1165,6 +1167,19 @@ CREATE TABLE RUNTIME_STATS ( CREATE INDEX IDX_RUNTIME_STATS_CREATE_TIME ON RUNTIME_STATS(CREATE_TIME); +CREATE TABLE `UPD_TXNS` ( + `UPDATE_ID` bigint(20) NOT NULL, + `CREATION_TIME` timestamp DEFAULT CURRENT_TIMESTAMP NOT NULL, + `DB_NAME` varchar(128) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `TBL_NAME` varchar(256) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `TBL_ID` bigint(20) NOT NULL, + `STATE` char(1) NOT NULL, + `WRITE_ID` bigint(20) NOT NULL, + `WRITEID_LIST` TEXT DEFAULT NULL, + PRIMARY KEY (`UPDATE_ID`), + CONSTRAINT `UPD_TXNS_FK1` FOREIGN KEY (`TBL_ID`) REFERENCES `TBLS` (`TBL_ID`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; + -- ----------------------------------------------------------------- -- Record schema version. Should be the last step in the init script -- ----------------------------------------------------------------- diff --git standalone-metastore/src/main/sql/mysql/upgrade-2.3.0-to-3.0.0.mysql.sql standalone-metastore/src/main/sql/mysql/upgrade-2.3.0-to-3.0.0.mysql.sql index 9b87563b8a..e42b4f0809 100644 --- standalone-metastore/src/main/sql/mysql/upgrade-2.3.0-to-3.0.0.mysql.sql +++ standalone-metastore/src/main/sql/mysql/upgrade-2.3.0-to-3.0.0.mysql.sql @@ -292,35 +292,27 @@ CREATE TABLE RUNTIME_STATS ( CREATE INDEX IDX_RUNTIME_STATS_CREATE_TIME ON RUNTIME_STATS(CREATE_TIME); --- HIVE-18193 --- Populate NEXT_WRITE_ID for each Transactional table and set next write ID same as next txn ID -INSERT INTO NEXT_WRITE_ID (NWI_DATABASE, NWI_TABLE, NWI_NEXT) - SELECT * FROM - (SELECT DB.NAME, TBL_INFO.TBL_NAME FROM DBS DB, - (SELECT TBL.DB_ID, TBL.TBL_NAME FROM TBLS TBL, - (SELECT TBL_ID FROM TABLE_PARAMS WHERE PARAM_KEY='transactional' AND PARAM_VALUE='true') TBL_PARAM - WHERE TBL.TBL_ID=TBL_PARAM.TBL_ID) TBL_INFO - where DB.DB_ID=TBL_INFO.DB_ID) DB_TBL_NAME, - (SELECT NTXN_NEXT FROM NEXT_TXN_ID) NEXT_WRITE; - --- Populate TXN_TO_WRITE_ID for each aborted/open txns and set write ID equal to txn ID -INSERT INTO TXN_TO_WRITE_ID (T2W_DATABASE, T2W_TABLE, T2W_TXNID, T2W_WRITEID) - SELECT * FROM - (SELECT DB.NAME, TBL_INFO.TBL_NAME FROM DBS DB, - (SELECT TBL.DB_ID, TBL.TBL_NAME FROM TBLS TBL, - (SELECT TBL_ID FROM TABLE_PARAMS WHERE PARAM_KEY='transactional' AND PARAM_VALUE='true') TBL_PARAM - WHERE TBL.TBL_ID=TBL_PARAM.TBL_ID) TBL_INFO - where DB.DB_ID=TBL_INFO.DB_ID) DB_TBL_NAME, - (SELECT TXN_ID, TXN_ID as WRITE_ID FROM TXNS) TXN_INFO; - --- Update TXN_COMPONENTS and COMPLETED_TXN_COMPONENTS for write ID which is same as txn ID -UPDATE TXN_COMPONENTS SET TC_WRITEID = TC_TXNID; -UPDATE COMPLETED_TXN_COMPONENTS SET CTC_WRITEID = CTC_TXNID; - -ALTER TABLE TXN_COMPONENTS MODIFY COLUMN TC_TABLE varchar(128) NULL; +-- HIVE-19416 +CREATE TABLE "APP"."UPD_TXNS" ( + "UPDATE_ID" BIGINT NOT NULL, + "CREATION_TIME" timestamp DEFAULT CURRENT_TIMESTAMP NOT NULL, + "DB_NAME" VARCHAR(128) NOT NULL, + "TBL_NAME" VARCHAR(256) NOT NULL, + "TBL_ID" BIGINT NOT NULL, + "STATE" CHAR(1) NOT NULL, + "WRITE_ID" BIGINT NOT NULL, + "WRITEID_LIST" CLOB +); + +ALTER TABLE "APP"."UPD_TXNS" ADD CONSTRAINT "UPD_TXNS_PK" PRIMARY KEY ("UPDATE_ID"); + +ALTER TABLE "APP"."UPD_TXNS" ADD CONSTRAINT "UPD_TXNS_FK1" FOREIGN KEY ("TBL_ID") REFERENCES "APP"."TBLS" ("TBL_ID") ON DELETE NO ACTION ON UPDATE NO ACTION; + +ALTER TABLE TBLS ADD UPDATE_ID bigint; +ALTER TABLE PARTITIONS ADD UPDATE_ID bigint; -- These lines need to be last. Insert any changes above. UPDATE VERSION SET SCHEMA_VERSION='3.0.0', VERSION_COMMENT='Hive release version 3.0.0' where VER_ID=1; SELECT 'Finished upgrading MetaStore schema from 2.3.0 to 3.0.0' AS ' '; -ALTER TABLE `TBLS` ADD COLUMN `OWNER_TYPE` VARCHAR(10) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL; \ No newline at end of file +ALTER TABLE `TBLS` ADD COLUMN `OWNER_TYPE` VARCHAR(10) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL; diff --git standalone-metastore/src/main/sql/oracle/hive-schema-3.0.0.oracle.sql standalone-metastore/src/main/sql/oracle/hive-schema-3.0.0.oracle.sql index 63cc1f75e2..df42f337b3 100644 --- standalone-metastore/src/main/sql/oracle/hive-schema-3.0.0.oracle.sql +++ standalone-metastore/src/main/sql/oracle/hive-schema-3.0.0.oracle.sql @@ -162,7 +162,8 @@ CREATE TABLE PARTITIONS LAST_ACCESS_TIME NUMBER (10) NOT NULL, PART_NAME VARCHAR2(767) NULL, SD_ID NUMBER NULL, - TBL_ID NUMBER NULL + TBL_ID NUMBER NULL, + UPDATE_ID NUMBER NULL ); ALTER TABLE PARTITIONS ADD CONSTRAINT PARTITIONS_PK PRIMARY KEY (PART_ID); @@ -189,7 +190,8 @@ CREATE TABLE TBL_COL_PRIVS PRINCIPAL_NAME VARCHAR2(128) NULL, PRINCIPAL_TYPE VARCHAR2(128) NULL, TBL_COL_PRIV VARCHAR2(128) NULL, - TBL_ID NUMBER NULL + TBL_ID NUMBER NULL, + UPDATE_ID NUMBER NULL ); ALTER TABLE TBL_COL_PRIVS ADD CONSTRAINT TBL_COL_PRIVS_PK PRIMARY KEY (TBL_COLUMN_GRANT_ID); @@ -392,7 +394,8 @@ CREATE TABLE TBLS TBL_TYPE VARCHAR2(128) NULL, VIEW_EXPANDED_TEXT CLOB NULL, VIEW_ORIGINAL_TEXT CLOB NULL, - IS_REWRITE_ENABLED NUMBER(1) DEFAULT 0 NOT NULL CHECK (IS_REWRITE_ENABLED IN (1,0)) + IS_REWRITE_ENABLED NUMBER(1) DEFAULT 0 NOT NULL CHECK (IS_REWRITE_ENABLED IN (1,0)), + UPDATE_ID NUMBER NULL ); ALTER TABLE TBLS ADD CONSTRAINT TBLS_PK PRIMARY KEY (TBL_ID); @@ -563,7 +566,8 @@ CREATE TABLE PART_COL_STATS ( MAX_COL_LEN NUMBER, NUM_TRUES NUMBER, NUM_FALSES NUMBER, - LAST_ANALYZED NUMBER NOT NULL + LAST_ANALYZED NUMBER NOT NULL, + UPDATE_ID NUMBER NULL ); ALTER TABLE PART_COL_STATS ADD CONSTRAINT PART_COL_STATS_PKEY PRIMARY KEY (CS_ID); @@ -1134,6 +1138,43 @@ CREATE TABLE RUNTIME_STATS ( CREATE INDEX IDX_RUNTIME_STATS_CREATE_TIME ON RUNTIME_STATS(CREATE_TIME); +CREATE TABLE "UPD_TXNS" ( + "UPDATE_ID" number NOT NULL, + "CREATION_TIME" timestamp DEFAULT CURRENT_TIMESTAMP NOT NULL, + "COMMIT_SEQID" number NOT NULL, + "DB_NAME" VARCHAR(128) NOT NULL, + "TBL_NAME" VARCHAR(256) NOT NULL, + "TBL_ID" number NOT NULL, + "STATE" CHAR(1) NOT NULL, + "WRITE_ID" number NOT NULL, + "WRITEID_LIST" CLOB NULL +); + +ALTER TABLE "UPD_TXNS" ADD CONSTRAINT "UPD_TXNS_PK" PRIMARY KEY ("UPDATE_ID"); + +ALTER TABLE "UPD_TXNS" ADD CONSTRAINT "UPD_TXNS_FK1" FOREIGN KEY("TBL_ID") REFERENCES "TBLS" ("TBL_ID") INITIALLY DEFERRED ; + +CREATE TABLE "UPD_PARTTXNS" ( + "UPDATE_ID" number NOT NULL, + "CREATION_TIME" timestamp DEFAULT CURRENT_TIMESTAMP NOT NULL, + "COMMIT_SEQID" number NOT NULL, + "PART_NAME" VARCHAR(767) NOT NULL, + "PART_ID" number NOT NULL, + "TBL_ID" number NOT NULL, + "STATE" CHAR(1) NOT NULL, + "WRITE_ID" number NOT NULL, + "WRITEID_LIST" CLOB NULL +); + +ALTER TABLE "UPD_PARTTXNS" ADD CONSTRAINT "UPD_PARTTXNS_PK" PRIMARY KEY ("UPDATE_ID"); + +ALTER TABLE "UPD_PARTTXNS" ADD CONSTRAINT "UPD_PARTTXNS_FK1" FOREIGN KEY ("PART_ID") REFERENCES "PARTITIONS" ("PART_ID") INITIALLY DEFERRED ; + +CREATE TABLE NEXT_UPDATE_COMMIT_SEQID ( + NUCS_NEXT number NOT NULL +); + +INSERT INTO NEXT_UPDATE_COMMIT_SEQID VALUES(1); -- ----------------------------------------------------------------- -- Record schema version. Should be the last step in the init script diff --git standalone-metastore/src/main/sql/oracle/upgrade-2.3.0-to-3.0.0.oracle.sql standalone-metastore/src/main/sql/oracle/upgrade-2.3.0-to-3.0.0.oracle.sql index ce3437f723..347f5e79e2 100644 --- standalone-metastore/src/main/sql/oracle/upgrade-2.3.0-to-3.0.0.oracle.sql +++ standalone-metastore/src/main/sql/oracle/upgrade-2.3.0-to-3.0.0.oracle.sql @@ -335,8 +335,52 @@ INSERT INTO TXN_TO_WRITE_ID (T2W_DATABASE, T2W_TABLE, T2W_TXNID, T2W_WRITEID) UPDATE TXN_COMPONENTS SET TC_WRITEID = TC_TXNID; UPDATE COMPLETED_TXN_COMPONENTS SET CTC_WRITEID = CTC_TXNID; +CREATE TABLE "UPD_TXNS" ( + "UPDATE_ID" number NOT NULL, + "CREATION_TIME" timestamp DEFAULT CURRENT_TIMESTAMP NOT NULL, + "COMMIT_SEQID" number NOT NULL, + "DB_NAME" VARCHAR(128) NOT NULL, + "TBL_NAME" VARCHAR(256) NOT NULL, + "TBL_ID" number NOT NULL, + "STATE" CHAR(1) NOT NULL, + "WRITE_ID" number NOT NULL, + "WRITEID_LIST" CLOB NULL +); + +ALTER TABLE "UPD_TXNS" ADD CONSTRAINT "UPD_TXNS_PK" PRIMARY KEY ("UPDATE_ID"); + +ALTER TABLE "UPD_TXNS" ADD CONSTRAINT "UPD_TXNS_FK1" FOREIGN KEY("TBL_ID") REFERENCES "TBLS" ("TBL_ID") INITIALLY DEFERRED ; + +CREATE TABLE "UPD_PARTTXNS" ( + "UPDATE_ID" number NOT NULL, + "CREATION_TIME" timestamp DEFAULT CURRENT_TIMESTAMP NOT NULL, + "COMMIT_SEQID" number NOT NULL, + "PART_NAME" VARCHAR(767) NOT NULL, + "PART_ID" number NOT NULL, + "TBL_ID" number NOT NULL, + "STATE" CHAR(1) NOT NULL, + "WRITE_ID" number NOT NULL, + "WRITEID_LIST" CLOB NULL +); + +ALTER TABLE "UPD_PARTTXNS" ADD CONSTRAINT "UPD_PARTTXNS_PK" PRIMARY KEY ("UPDATE_ID"); + +ALTER TABLE "UPD_PARTTXNS" ADD CONSTRAINT "UPD_PARTTXNS_FK1" FOREIGN KEY ("PART_ID") REFERENCES "PARTITIONS" ("PART_ID") INITIALLY DEFERRED ; + +CREATE TABLE NEXT_UPDATE_COMMIT_SEQID ( + NUCS_NEXT number NOT NULL +); + +INSERT INTO NEXT_UPDATE_COMMIT_SEQID VALUES(1); + +ALTER TABLE TBLS ADD UPDATE_ID number NULL; +ALTER TABLE PARTITIONS ADD UPDATE_ID number NULL; + +ALTER TABLE TAB_COL_STATS ADD UPDATE_ID number NULL; +ALTER TABLE PART_COL_STATS ADD UPDATE_ID number NULL; + -- These lines need to be last. Insert any changes above. UPDATE VERSION SET SCHEMA_VERSION='3.0.0', VERSION_COMMENT='Hive release version 3.0.0' where VER_ID=1; SELECT 'Finished upgrading MetaStore schema from 2.3.0 to 3.0.0' AS Status from dual; -ALTER TABLE TBLS ADD OWNER_TYPE VARCHAR2(10) NULL; \ No newline at end of file +ALTER TABLE TBLS ADD OWNER_TYPE VARCHAR2(10) NULL; diff --git standalone-metastore/src/main/sql/postgres/hive-schema-3.0.0.postgres.sql standalone-metastore/src/main/sql/postgres/hive-schema-3.0.0.postgres.sql index d210a55fcf..47af97b8c7 100644 --- standalone-metastore/src/main/sql/postgres/hive-schema-3.0.0.postgres.sql +++ standalone-metastore/src/main/sql/postgres/hive-schema-3.0.0.postgres.sql @@ -166,7 +166,8 @@ CREATE TABLE "PARTITIONS" ( "LAST_ACCESS_TIME" bigint NOT NULL, "PART_NAME" character varying(767) DEFAULT NULL::character varying, "SD_ID" bigint, - "TBL_ID" bigint + "TBL_ID" bigint, + "UPDATE_ID" bigint ); @@ -388,7 +389,8 @@ CREATE TABLE "TBLS" ( "TBL_TYPE" character varying(128) DEFAULT NULL::character varying, "VIEW_EXPANDED_TEXT" text, "VIEW_ORIGINAL_TEXT" text, - "IS_REWRITE_ENABLED" boolean NOT NULL DEFAULT false + "IS_REWRITE_ENABLED" boolean NOT NULL DEFAULT false, + "UPDATE_ID" bigint ); -- @@ -539,7 +541,8 @@ CREATE TABLE "TAB_COL_STATS" ( "MAX_COL_LEN" bigint, "NUM_TRUES" bigint, "NUM_FALSES" bigint, - "LAST_ANALYZED" bigint NOT NULL + "LAST_ANALYZED" bigint NOT NULL, + "UPDATE_ID" bigint ); -- @@ -577,7 +580,8 @@ CREATE TABLE "PART_COL_STATS" ( "MAX_COL_LEN" bigint, "NUM_TRUES" bigint, "NUM_FALSES" bigint, - "LAST_ANALYZED" bigint NOT NULL + "LAST_ANALYZED" bigint NOT NULL, + "UPDATE_ID" bigint ); -- @@ -698,6 +702,36 @@ CREATE TABLE "WM_MAPPING" ( "ORDERING" integer ); +CREATE TABLE "APP"."UPD_TXNS" ( + "UPDATE_ID" BIGINT NOT NULL, + "CREATION_TIME" timestamp DEFAULT CURRENT_TIMESTAMP NOT NULL, + "COMMIT_SEQID" BIGINT NOT NULL, + "DB_NAME" VARCHAR(128) NOT NULL, + "TBL_NAME" VARCHAR(256) NOT NULL, + "TBL_ID" BIGINT NOT NULL, + "STATE" CHAR(1) NOT NULL, + "WRITE_ID" BIGINT NOT NULL, + "WRITEID_LIST" text +); + +CREATE TABLE "APP"."UPD_PARTTXNS" ( + "UPDATE_ID" BIGINT NOT NULL, + "CREATION_TIME" timestamp DEFAULT CURRENT_TIMESTAMP NOT NULL, + "COMMIT_SEQID" BIGINT NOT NULL, + "PART_NAME" VARCHAR(767) NOT NULL, + "PART_ID" BIGINT NOT NULL, + "TBL_ID" BIGINT NOT NULL, + "STATE" CHAR(1) NOT NULL, + "WRITE_ID" BIGINT NOT NULL, + "WRITEID_LIST" text +); + +CREATE TABLE NEXT_UPDATE_COMMIT_SEQID ( + NUCS_NEXT bigint NOT NULL +); + +INSERT INTO NEXT_UPDATE_COMMIT_SEQID VALUES(1); + -- -- Name: BUCKETING_COLS_pkey; Type: CONSTRAINT; Schema: public; Owner: hiveuser; Tablespace: -- @@ -1074,6 +1108,14 @@ ALTER TABLE ONLY "WM_MAPPING" ALTER TABLE ONLY "WM_MAPPING" ADD CONSTRAINT "UNIQUE_WM_MAPPING" UNIQUE ("RP_ID", "ENTITY_TYPE", "ENTITY_NAME"); +-- Transactional table stats PK constraints + +ALTER TABLE ONLY "UPD_TXNS" + ADD CONSTRAINT "UPD_TXNS_PK" PRIMARY KEY ("UPDATE_ID"); + +ALTER TABLE ONLY "UPD_PARTTXNS" + ADD CONSTRAINT "UPD_PARTTXNS_PK" PRIMARY KEY ("UPDATE_ID"); + -- -- Name: BUCKETING_COLS_N49; Type: INDEX; Schema: public; Owner: hiveuser; Tablespace: -- @@ -1618,6 +1660,14 @@ ALTER TABLE ONLY "MV_TABLES_USED" ALTER TABLE ONLY "MV_TABLES_USED" ADD CONSTRAINT "MV_TABLES_USED_FK2" FOREIGN KEY ("TBL_ID") REFERENCES "TBLS" ("TBL_ID") DEFERRABLE; +-- Transactional table stats FK constraints + +ALTER TABLE ONLY "UPD_TXNS" + ADD CONSTRAINT "UPD_TXNS_FK1" FOREIGN KEY ("TBL_ID") REFERENCES "TBLS" ("TBL_ID") DEFERRABLE; + +ALTER TABLE ONLY "UPD_PARTTXNS" + ADD CONSTRAINT "UPD_PARTTXNS_FK1" FOREIGN KEY ("PART_ID") REFERENCES "PARTITIONS" ("PART_ID") DEFERRABLE; + -- -- Name: public; Type: ACL; Schema: -; Owner: hiveuser -- @@ -1822,7 +1872,6 @@ CREATE TABLE RUNTIME_STATS ( CREATE INDEX IDX_RUNTIME_STATS_CREATE_TIME ON RUNTIME_STATS(CREATE_TIME); - -- ----------------------------------------------------------------- -- Record schema version. Should be the last step in the init script -- ----------------------------------------------------------------- diff --git standalone-metastore/src/main/sql/postgres/upgrade-2.3.0-to-3.0.0.postgres.sql standalone-metastore/src/main/sql/postgres/upgrade-2.3.0-to-3.0.0.postgres.sql index f2571d8f2b..d715458676 100644 --- standalone-metastore/src/main/sql/postgres/upgrade-2.3.0-to-3.0.0.postgres.sql +++ standalone-metastore/src/main/sql/postgres/upgrade-2.3.0-to-3.0.0.postgres.sql @@ -354,6 +354,56 @@ INSERT INTO TXN_TO_WRITE_ID (T2W_DATABASE, T2W_TABLE, T2W_TXNID, T2W_WRITEID) UPDATE TXN_COMPONENTS SET TC_WRITEID = TC_TXNID; UPDATE COMPLETED_TXN_COMPONENTS SET CTC_WRITEID = CTC_TXNID; +-- HIVE-19416 + +CREATE TABLE "UPD_TXNS" ( + "UPDATE_ID" BIGINT NOT NULL, + "CREATION_TIME" timestamp DEFAULT CURRENT_TIMESTAMP NOT NULL, + "COMMIT_SEQID" BIGINT NOT NULL, + "DB_NAME" VARCHAR(128) NOT NULL, + "TBL_NAME" VARCHAR(256) NOT NULL, + "TBL_ID" BIGINT NOT NULL, + "STATE" CHAR(1) NOT NULL, + "WRITE_ID" BIGINT NOT NULL, + "WRITEID_LIST" text +); + +CREATE TABLE "UPD_PARTTXNS" ( + "UPDATE_ID" BIGINT NOT NULL, + "CREATION_TIME" timestamp DEFAULT CURRENT_TIMESTAMP NOT NULL, + "COMMIT_SEQID" BIGINT NOT NULL, + "PART_NAME" VARCHAR(767) NOT NULL, + "PART_ID" BIGINT NOT NULL, + "TBL_ID" BIGINT NOT NULL, + "STATE" CHAR(1) NOT NULL, + "WRITE_ID" BIGINT NOT NULL, + "WRITEID_LIST" text +); + +CREATE TABLE NEXT_UPDATE_COMMIT_SEQID ( + NUCS_NEXT bigint NOT NULL +); + +INSERT INTO NEXT_UPDATE_COMMIT_SEQID VALUES(1); + +ALTER TABLE ONLY "UPD_TXNS" + ADD CONSTRAINT "UPD_TXNS_PK" PRIMARY KEY ("UPDATE_ID"); + +ALTER TABLE ONLY "UPD_PARTTXNS" + ADD CONSTRAINT "UPD_PARTTXNS_PK" PRIMARY KEY ("UPDATE_ID"); + +ALTER TABLE ONLY "UPD_TXNS" + ADD CONSTRAINT "UPD_TXNS_FK1" FOREIGN KEY ("TBL_ID") REFERENCES "TBLS" ("TBL_ID") DEFERRABLE; + +ALTER TABLE ONLY "UPD_PARTTXNS" + ADD CONSTRAINT "UPD_PARTTXNS_FK1" FOREIGN KEY ("PART_ID") REFERENCES "PARTITIONS" ("PART_ID") DEFERRABLE; + +ALTER TABLE "TBLS" ADD "UPDATE_ID" bigint; +ALTER TABLE "PARTITIONS" ADD "UPDATE_ID" bigint; + +ALTER TABLE "TAB_COL_STATS" ADD "UPDATE_ID" bigint; +ALTER TABLE "PART_COL_STATS" ADD "UPDATE_ID" bigint; + -- These lines need to be last. Insert any changes above. UPDATE "VERSION" SET "SCHEMA_VERSION"='3.0.0', "VERSION_COMMENT"='Hive release version 3.0.0' where "VER_ID"=1; SELECT 'Finished upgrading MetaStore schema from 2.3.0 to 3.0.0'; diff --git standalone-metastore/src/main/thrift/hive_metastore.thrift standalone-metastore/src/main/thrift/hive_metastore.thrift index 19d4433078..b3b0810102 100644 --- standalone-metastore/src/main/thrift/hive_metastore.thrift +++ standalone-metastore/src/main/thrift/hive_metastore.thrift @@ -424,7 +424,9 @@ struct Table { 15: optional bool rewriteEnabled, // rewrite enabled or not 16: optional CreationMetadata creationMetadata, // only for MVs, it stores table names used and txn list at MV creation 17: optional string catName, // Name of the catalog the table is in - 18: optional PrincipalType ownerType = PrincipalType.USER // owner type of this table (default to USER for backward compatibility) + 18: optional PrincipalType ownerType = PrincipalType.USER, // owner type of this table (default to USER for backward compatibility) + 19: optional i64 writeId=-1, + 20: optional string validWriteIdList } struct Partition { @@ -436,7 +438,9 @@ struct Partition { 6: StorageDescriptor sd, 7: map parameters, 8: optional PrincipalPrivilegeSet privileges, - 9: optional string catName + 9: optional string catName, + 10: optional i64 writeId=-1, + 11: optional string validWriteIdList } struct PartitionWithoutSD { @@ -451,6 +455,8 @@ struct PartitionWithoutSD { struct PartitionSpecWithSharedSD { 1: list partitions, 2: StorageDescriptor sd, + 3: optional i64 writeId=-1, + 4: optional string validWriteIdList } struct PartitionListComposingSpec { @@ -553,7 +559,9 @@ struct ColumnStatisticsDesc { 3: required string tableName, 4: optional string partName, 5: optional i64 lastAnalyzed, -6: optional string catName +6: optional string catName, +7: optional i64 writeId=-1, +8: optional string validWriteIdList } struct ColumnStatistics { @@ -568,7 +576,9 @@ struct AggrStats { struct SetPartitionsStatsRequest { 1: required list colStats, -2: optional bool needMerge //stats need to be merged with the existing stats +2: optional bool needMerge, //stats need to be merged with the existing stats +3: optional i64 writeId=-1, +4: optional string validWriteIdList } // schema of the table/query results etc. @@ -708,7 +718,9 @@ struct TableStatsRequest { 1: required string dbName, 2: required string tblName, 3: required list colNames - 4: optional string catName + 4: optional string catName, + 5: optional i64 writeId=-1, + 6: optional string validWriteIdList } struct PartitionsStatsRequest { @@ -716,7 +728,9 @@ struct PartitionsStatsRequest { 2: required string tblName, 3: required list colNames, 4: required list partNames, - 5: optional string catName + 5: optional string catName, + 6: optional i64 writeId=-1, + 7: optional string validWriteIdList } // Return type for add_partitions_req @@ -1203,7 +1217,9 @@ struct GetTableRequest { 1: required string dbName, 2: required string tblName, 3: optional ClientCapabilities capabilities, - 4: optional string catName + 4: optional string catName, + 5: optional i64 writeId=-1, + 6: optional string validWriteIdList } struct GetTableResult {