diff --git itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/txn/compactor/TestCompactor.java itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/txn/compactor/TestCompactor.java index 30f742b052..c7856f8104 100644 --- itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/txn/compactor/TestCompactor.java +++ itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/txn/compactor/TestCompactor.java @@ -999,18 +999,6 @@ public void testCleanAbortAndMinorCompact() throws Exception { Assert.assertEquals(TxnDbUtil.queryToString(conf, "select * from COMPACTION_QUEUE"), 0, count); } - @Test - public void testCleanAbortedBatchSize() throws Exception { - String dbName = "default"; - String tblName = "cws"; - HiveStreamingConnection connection = prepareTableAndConnection(dbName, tblName, 2); - try { - connection.beginTransaction(); - Assert.fail("Should have thrown an exception because if the table" - + " is dynamic only batch size 1 can be used"); - } catch (StreamingException e) {} - } - private HiveStreamingConnection prepareTableAndConnection(String dbName, String tblName, int batchSize) throws Exception { String agentInfo = "UT_" + Thread.currentThread().getName(); diff --git ql/src/java/org/apache/hadoop/hive/ql/io/AcidUtils.java ql/src/java/org/apache/hadoop/hive/ql/io/AcidUtils.java index 739793097e..c895abd52a 100644 --- ql/src/java/org/apache/hadoop/hive/ql/io/AcidUtils.java +++ ql/src/java/org/apache/hadoop/hive/ql/io/AcidUtils.java @@ -2541,7 +2541,7 @@ public static void validateAcidPartitionLocation(String location, Configuration } public static List deleteDeltaDirectories(Path rootPartition, - Configuration conf, List writeIds) throws IOException { + Configuration conf, Set writeIds) throws IOException { FileSystem fs = rootPartition.getFileSystem(conf); PathFilter filter = (p) -> { String name = p.getName(); diff --git ql/src/java/org/apache/hadoop/hive/ql/txn/compactor/Cleaner.java ql/src/java/org/apache/hadoop/hive/ql/txn/compactor/Cleaner.java index 4e7459fd53..7e440de8eb 100644 --- ql/src/java/org/apache/hadoop/hive/ql/txn/compactor/Cleaner.java +++ ql/src/java/org/apache/hadoop/hive/ql/txn/compactor/Cleaner.java @@ -395,7 +395,7 @@ private void rmFilesClean(String rootLocation, CompactionInfo ci) throws IOExcep for (FileStatus dead : deleted) { Path deadPath = dead.getPath(); - LOG.debug("Going to delete path " + deadPath.toString()); + LOG.debug("Deleted path " + deadPath.toString()); if (isSourceOfRepl) { replChangeManager.recycle(deadPath, ReplChangeManager.RecycleType.MOVE, true); } diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AllocateTableWriteIdsRequest.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AllocateTableWriteIdsRequest.java index d505ee13d1..d05e7bac8a 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AllocateTableWriteIdsRequest.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AllocateTableWriteIdsRequest.java @@ -43,7 +43,6 @@ private static final org.apache.thrift.protocol.TField TXN_IDS_FIELD_DESC = new org.apache.thrift.protocol.TField("txnIds", org.apache.thrift.protocol.TType.LIST, (short)3); private static final org.apache.thrift.protocol.TField REPL_POLICY_FIELD_DESC = new org.apache.thrift.protocol.TField("replPolicy", org.apache.thrift.protocol.TType.STRING, (short)4); private static final org.apache.thrift.protocol.TField SRC_TXN_TO_WRITE_ID_LIST_FIELD_DESC = new org.apache.thrift.protocol.TField("srcTxnToWriteIdList", org.apache.thrift.protocol.TType.LIST, (short)5); - private static final org.apache.thrift.protocol.TField DYNAMIC_PARTITIONS_FIELD_DESC = new org.apache.thrift.protocol.TField("dynamicPartitions", org.apache.thrift.protocol.TType.BOOL, (short)6); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { @@ -56,7 +55,6 @@ private List txnIds; // optional private String replPolicy; // optional private List srcTxnToWriteIdList; // optional - private boolean dynamicPartitions; // 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 { @@ -64,8 +62,7 @@ TABLE_NAME((short)2, "tableName"), TXN_IDS((short)3, "txnIds"), REPL_POLICY((short)4, "replPolicy"), - SRC_TXN_TO_WRITE_ID_LIST((short)5, "srcTxnToWriteIdList"), - DYNAMIC_PARTITIONS((short)6, "dynamicPartitions"); + SRC_TXN_TO_WRITE_ID_LIST((short)5, "srcTxnToWriteIdList"); private static final Map byName = new HashMap(); @@ -90,8 +87,6 @@ public static _Fields findByThriftId(int fieldId) { return REPL_POLICY; case 5: // SRC_TXN_TO_WRITE_ID_LIST return SRC_TXN_TO_WRITE_ID_LIST; - case 6: // DYNAMIC_PARTITIONS - return DYNAMIC_PARTITIONS; default: return null; } @@ -132,9 +127,7 @@ public String getFieldName() { } // isset id assignments - private static final int __DYNAMICPARTITIONS_ISSET_ID = 0; - private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.TXN_IDS,_Fields.REPL_POLICY,_Fields.SRC_TXN_TO_WRITE_ID_LIST,_Fields.DYNAMIC_PARTITIONS}; + private static final _Fields optionals[] = {_Fields.TXN_IDS,_Fields.REPL_POLICY,_Fields.SRC_TXN_TO_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); @@ -150,8 +143,6 @@ public String getFieldName() { tmpMap.put(_Fields.SRC_TXN_TO_WRITE_ID_LIST, new org.apache.thrift.meta_data.FieldMetaData("srcTxnToWriteIdList", org.apache.thrift.TFieldRequirementType.OPTIONAL, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT , "TxnToWriteId")))); - tmpMap.put(_Fields.DYNAMIC_PARTITIONS, new org.apache.thrift.meta_data.FieldMetaData("dynamicPartitions", org.apache.thrift.TFieldRequirementType.OPTIONAL, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(AllocateTableWriteIdsRequest.class, metaDataMap); } @@ -172,7 +163,6 @@ public AllocateTableWriteIdsRequest( * Performs a deep copy on other. */ public AllocateTableWriteIdsRequest(AllocateTableWriteIdsRequest other) { - __isset_bitfield = other.__isset_bitfield; if (other.isSetDbName()) { this.dbName = other.dbName; } @@ -193,7 +183,6 @@ public AllocateTableWriteIdsRequest(AllocateTableWriteIdsRequest other) { } this.srcTxnToWriteIdList = __this__srcTxnToWriteIdList; } - this.dynamicPartitions = other.dynamicPartitions; } public AllocateTableWriteIdsRequest deepCopy() { @@ -207,8 +196,6 @@ public void clear() { this.txnIds = null; this.replPolicy = null; this.srcTxnToWriteIdList = null; - setDynamicPartitionsIsSet(false); - this.dynamicPartitions = false; } public String getDbName() { @@ -356,28 +343,6 @@ public void setSrcTxnToWriteIdListIsSet(boolean value) { } } - public boolean isDynamicPartitions() { - return this.dynamicPartitions; - } - - public void setDynamicPartitions(boolean dynamicPartitions) { - this.dynamicPartitions = dynamicPartitions; - setDynamicPartitionsIsSet(true); - } - - public void unsetDynamicPartitions() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __DYNAMICPARTITIONS_ISSET_ID); - } - - /** Returns true if field dynamicPartitions is set (has been assigned a value) and false otherwise */ - public boolean isSetDynamicPartitions() { - return EncodingUtils.testBit(__isset_bitfield, __DYNAMICPARTITIONS_ISSET_ID); - } - - public void setDynamicPartitionsIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __DYNAMICPARTITIONS_ISSET_ID, value); - } - public void setFieldValue(_Fields field, Object value) { switch (field) { case DB_NAME: @@ -420,14 +385,6 @@ public void setFieldValue(_Fields field, Object value) { } break; - case DYNAMIC_PARTITIONS: - if (value == null) { - unsetDynamicPartitions(); - } else { - setDynamicPartitions((Boolean)value); - } - break; - } } @@ -448,9 +405,6 @@ public Object getFieldValue(_Fields field) { case SRC_TXN_TO_WRITE_ID_LIST: return getSrcTxnToWriteIdList(); - case DYNAMIC_PARTITIONS: - return isDynamicPartitions(); - } throw new IllegalStateException(); } @@ -472,8 +426,6 @@ public boolean isSet(_Fields field) { return isSetReplPolicy(); case SRC_TXN_TO_WRITE_ID_LIST: return isSetSrcTxnToWriteIdList(); - case DYNAMIC_PARTITIONS: - return isSetDynamicPartitions(); } throw new IllegalStateException(); } @@ -536,15 +488,6 @@ public boolean equals(AllocateTableWriteIdsRequest that) { return false; } - boolean this_present_dynamicPartitions = true && this.isSetDynamicPartitions(); - boolean that_present_dynamicPartitions = true && that.isSetDynamicPartitions(); - if (this_present_dynamicPartitions || that_present_dynamicPartitions) { - if (!(this_present_dynamicPartitions && that_present_dynamicPartitions)) - return false; - if (this.dynamicPartitions != that.dynamicPartitions) - return false; - } - return true; } @@ -577,11 +520,6 @@ public int hashCode() { if (present_srcTxnToWriteIdList) list.add(srcTxnToWriteIdList); - boolean present_dynamicPartitions = true && (isSetDynamicPartitions()); - list.add(present_dynamicPartitions); - if (present_dynamicPartitions) - list.add(dynamicPartitions); - return list.hashCode(); } @@ -643,16 +581,6 @@ public int compareTo(AllocateTableWriteIdsRequest other) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDynamicPartitions()).compareTo(other.isSetDynamicPartitions()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetDynamicPartitions()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dynamicPartitions, other.dynamicPartitions); - if (lastComparison != 0) { - return lastComparison; - } - } return 0; } @@ -718,12 +646,6 @@ public String toString() { } first = false; } - if (isSetDynamicPartitions()) { - if (!first) sb.append(", "); - sb.append("dynamicPartitions:"); - sb.append(this.dynamicPartitions); - first = false; - } sb.append(")"); return sb.toString(); } @@ -751,8 +673,6 @@ 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); @@ -838,14 +758,6 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, AllocateTableWriteI org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 6: // DYNAMIC_PARTITIONS - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.dynamicPartitions = iprot.readBool(); - struct.setDynamicPartitionsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -904,11 +816,6 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, AllocateTableWrite oprot.writeFieldEnd(); } } - if (struct.isSetDynamicPartitions()) { - oprot.writeFieldBegin(DYNAMIC_PARTITIONS_FIELD_DESC); - oprot.writeBool(struct.dynamicPartitions); - oprot.writeFieldEnd(); - } oprot.writeFieldStop(); oprot.writeStructEnd(); } @@ -938,10 +845,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, AllocateTableWriteI if (struct.isSetSrcTxnToWriteIdList()) { optionals.set(2); } - if (struct.isSetDynamicPartitions()) { - optionals.set(3); - } - oprot.writeBitSet(optionals, 4); + oprot.writeBitSet(optionals, 3); if (struct.isSetTxnIds()) { { oprot.writeI32(struct.txnIds.size()); @@ -963,9 +867,6 @@ public void write(org.apache.thrift.protocol.TProtocol prot, AllocateTableWriteI } } } - if (struct.isSetDynamicPartitions()) { - oprot.writeBool(struct.dynamicPartitions); - } } @Override @@ -975,7 +876,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, AllocateTableWriteId struct.setDbNameIsSet(true); struct.tableName = iprot.readString(); struct.setTableNameIsSet(true); - BitSet incoming = iprot.readBitSet(4); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { org.apache.thrift.protocol.TList _list660 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); @@ -1007,10 +908,6 @@ public void read(org.apache.thrift.protocol.TProtocol prot, AllocateTableWriteId } struct.setSrcTxnToWriteIdListIsSet(true); } - if (incoming.get(3)) { - struct.dynamicPartitions = iprot.readBool(); - struct.setDynamicPartitionsIsSet(true); - } } } diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CompactionInfoStruct.java standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CompactionInfoStruct.java index f660bbe1af..14d8a76e83 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CompactionInfoStruct.java +++ standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CompactionInfoStruct.java @@ -50,7 +50,7 @@ private static final org.apache.thrift.protocol.TField WORKER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("workerId", org.apache.thrift.protocol.TType.STRING, (short)10); private static final org.apache.thrift.protocol.TField START_FIELD_DESC = new org.apache.thrift.protocol.TField("start", org.apache.thrift.protocol.TType.I64, (short)11); private static final org.apache.thrift.protocol.TField HIGHEST_WRITE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("highestWriteId", org.apache.thrift.protocol.TType.I64, (short)12); - private static final org.apache.thrift.protocol.TField WRITE_IDS_FIELD_DESC = new org.apache.thrift.protocol.TField("writeIds", org.apache.thrift.protocol.TType.LIST, (short)13); + private static final org.apache.thrift.protocol.TField WRITE_IDS_FIELD_DESC = new org.apache.thrift.protocol.TField("writeIds", org.apache.thrift.protocol.TType.SET, (short)13); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { @@ -70,7 +70,7 @@ private String workerId; // optional private long start; // optional private long highestWriteId; // optional - private List writeIds; // optional + private Set writeIds; // 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 { @@ -205,7 +205,7 @@ public String getFieldName() { tmpMap.put(_Fields.HIGHEST_WRITE_ID, new org.apache.thrift.meta_data.FieldMetaData("highestWriteId", org.apache.thrift.TFieldRequirementType.OPTIONAL, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.WRITE_IDS, new org.apache.thrift.meta_data.FieldMetaData("writeIds", org.apache.thrift.TFieldRequirementType.OPTIONAL, - new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.SetMetaData(org.apache.thrift.protocol.TType.SET, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(CompactionInfoStruct.class, metaDataMap); @@ -262,7 +262,7 @@ public CompactionInfoStruct(CompactionInfoStruct other) { this.start = other.start; this.highestWriteId = other.highestWriteId; if (other.isSetWriteIds()) { - List __this__writeIds = new ArrayList(other.writeIds); + Set __this__writeIds = new HashSet(other.writeIds); this.writeIds = __this__writeIds; } } @@ -582,16 +582,16 @@ public int getWriteIdsSize() { public void addToWriteIds(long elem) { if (this.writeIds == null) { - this.writeIds = new ArrayList(); + this.writeIds = new HashSet(); } this.writeIds.add(elem); } - public List getWriteIds() { + public Set getWriteIds() { return this.writeIds; } - public void setWriteIds(List writeIds) { + public void setWriteIds(Set writeIds) { this.writeIds = writeIds; } @@ -712,7 +712,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetWriteIds(); } else { - setWriteIds((List)value); + setWriteIds((Set)value); } break; @@ -1427,17 +1427,17 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, CompactionInfoStruc } break; case 13: // WRITE_IDS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + if (schemeField.type == org.apache.thrift.protocol.TType.SET) { { - org.apache.thrift.protocol.TList _list716 = iprot.readListBegin(); - struct.writeIds = new ArrayList(_list716.size); + org.apache.thrift.protocol.TSet _set716 = iprot.readSetBegin(); + struct.writeIds = new HashSet(2*_set716.size); long _elem717; - for (int _i718 = 0; _i718 < _list716.size; ++_i718) + for (int _i718 = 0; _i718 < _set716.size; ++_i718) { _elem717 = iprot.readI64(); struct.writeIds.add(_elem717); } - iprot.readListEnd(); + iprot.readSetEnd(); } struct.setWriteIdsIsSet(true); } else { @@ -1529,12 +1529,12 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, CompactionInfoStru if (struct.isSetWriteIds()) { oprot.writeFieldBegin(WRITE_IDS_FIELD_DESC); { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, struct.writeIds.size())); + oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, struct.writeIds.size())); for (long _iter719 : struct.writeIds) { oprot.writeI64(_iter719); } - oprot.writeListEnd(); + oprot.writeSetEnd(); } oprot.writeFieldEnd(); } @@ -1670,10 +1670,10 @@ public void read(org.apache.thrift.protocol.TProtocol prot, CompactionInfoStruct } if (incoming.get(8)) { { - org.apache.thrift.protocol.TList _list721 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.writeIds = new ArrayList(_list721.size); + org.apache.thrift.protocol.TSet _set721 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.writeIds = new HashSet(2*_set721.size); long _elem722; - for (int _i723 = 0; _i723 < _list721.size; ++_i723) + for (int _i723 = 0; _i723 < _set721.size; ++_i723) { _elem722 = iprot.readI64(); struct.writeIds.add(_elem722); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php standalone-metastore/metastore-common/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php index 064fba0c8c..b07589b938 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php +++ standalone-metastore/metastore-common/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php @@ -16344,14 +16344,14 @@ class ThriftHiveMetastore_get_databases_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size903 = 0; - $_etype906 = 0; - $xfer += $input->readListBegin($_etype906, $_size903); - for ($_i907 = 0; $_i907 < $_size903; ++$_i907) + $_size904 = 0; + $_etype907 = 0; + $xfer += $input->readListBegin($_etype907, $_size904); + for ($_i908 = 0; $_i908 < $_size904; ++$_i908) { - $elem908 = null; - $xfer += $input->readString($elem908); - $this->success []= $elem908; + $elem909 = null; + $xfer += $input->readString($elem909); + $this->success []= $elem909; } $xfer += $input->readListEnd(); } else { @@ -16387,9 +16387,9 @@ class ThriftHiveMetastore_get_databases_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter909) + foreach ($this->success as $iter910) { - $xfer += $output->writeString($iter909); + $xfer += $output->writeString($iter910); } } $output->writeListEnd(); @@ -16520,14 +16520,14 @@ class ThriftHiveMetastore_get_all_databases_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size910 = 0; - $_etype913 = 0; - $xfer += $input->readListBegin($_etype913, $_size910); - for ($_i914 = 0; $_i914 < $_size910; ++$_i914) + $_size911 = 0; + $_etype914 = 0; + $xfer += $input->readListBegin($_etype914, $_size911); + for ($_i915 = 0; $_i915 < $_size911; ++$_i915) { - $elem915 = null; - $xfer += $input->readString($elem915); - $this->success []= $elem915; + $elem916 = null; + $xfer += $input->readString($elem916); + $this->success []= $elem916; } $xfer += $input->readListEnd(); } else { @@ -16563,9 +16563,9 @@ class ThriftHiveMetastore_get_all_databases_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter916) + foreach ($this->success as $iter917) { - $xfer += $output->writeString($iter916); + $xfer += $output->writeString($iter917); } } $output->writeListEnd(); @@ -17566,18 +17566,18 @@ class ThriftHiveMetastore_get_type_all_result { case 0: if ($ftype == TType::MAP) { $this->success = array(); - $_size917 = 0; - $_ktype918 = 0; - $_vtype919 = 0; - $xfer += $input->readMapBegin($_ktype918, $_vtype919, $_size917); - for ($_i921 = 0; $_i921 < $_size917; ++$_i921) + $_size918 = 0; + $_ktype919 = 0; + $_vtype920 = 0; + $xfer += $input->readMapBegin($_ktype919, $_vtype920, $_size918); + for ($_i922 = 0; $_i922 < $_size918; ++$_i922) { - $key922 = ''; - $val923 = new \metastore\Type(); - $xfer += $input->readString($key922); - $val923 = new \metastore\Type(); - $xfer += $val923->read($input); - $this->success[$key922] = $val923; + $key923 = ''; + $val924 = new \metastore\Type(); + $xfer += $input->readString($key923); + $val924 = new \metastore\Type(); + $xfer += $val924->read($input); + $this->success[$key923] = $val924; } $xfer += $input->readMapEnd(); } else { @@ -17613,10 +17613,10 @@ class ThriftHiveMetastore_get_type_all_result { { $output->writeMapBegin(TType::STRING, TType::STRUCT, count($this->success)); { - foreach ($this->success as $kiter924 => $viter925) + foreach ($this->success as $kiter925 => $viter926) { - $xfer += $output->writeString($kiter924); - $xfer += $viter925->write($output); + $xfer += $output->writeString($kiter925); + $xfer += $viter926->write($output); } } $output->writeMapEnd(); @@ -17820,15 +17820,15 @@ class ThriftHiveMetastore_get_fields_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size926 = 0; - $_etype929 = 0; - $xfer += $input->readListBegin($_etype929, $_size926); - for ($_i930 = 0; $_i930 < $_size926; ++$_i930) + $_size927 = 0; + $_etype930 = 0; + $xfer += $input->readListBegin($_etype930, $_size927); + for ($_i931 = 0; $_i931 < $_size927; ++$_i931) { - $elem931 = null; - $elem931 = new \metastore\FieldSchema(); - $xfer += $elem931->read($input); - $this->success []= $elem931; + $elem932 = null; + $elem932 = new \metastore\FieldSchema(); + $xfer += $elem932->read($input); + $this->success []= $elem932; } $xfer += $input->readListEnd(); } else { @@ -17880,9 +17880,9 @@ class ThriftHiveMetastore_get_fields_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter932) + foreach ($this->success as $iter933) { - $xfer += $iter932->write($output); + $xfer += $iter933->write($output); } } $output->writeListEnd(); @@ -18124,15 +18124,15 @@ class ThriftHiveMetastore_get_fields_with_environment_context_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size933 = 0; - $_etype936 = 0; - $xfer += $input->readListBegin($_etype936, $_size933); - for ($_i937 = 0; $_i937 < $_size933; ++$_i937) + $_size934 = 0; + $_etype937 = 0; + $xfer += $input->readListBegin($_etype937, $_size934); + for ($_i938 = 0; $_i938 < $_size934; ++$_i938) { - $elem938 = null; - $elem938 = new \metastore\FieldSchema(); - $xfer += $elem938->read($input); - $this->success []= $elem938; + $elem939 = null; + $elem939 = new \metastore\FieldSchema(); + $xfer += $elem939->read($input); + $this->success []= $elem939; } $xfer += $input->readListEnd(); } else { @@ -18184,9 +18184,9 @@ class ThriftHiveMetastore_get_fields_with_environment_context_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter939) + foreach ($this->success as $iter940) { - $xfer += $iter939->write($output); + $xfer += $iter940->write($output); } } $output->writeListEnd(); @@ -18400,15 +18400,15 @@ class ThriftHiveMetastore_get_schema_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size940 = 0; - $_etype943 = 0; - $xfer += $input->readListBegin($_etype943, $_size940); - for ($_i944 = 0; $_i944 < $_size940; ++$_i944) + $_size941 = 0; + $_etype944 = 0; + $xfer += $input->readListBegin($_etype944, $_size941); + for ($_i945 = 0; $_i945 < $_size941; ++$_i945) { - $elem945 = null; - $elem945 = new \metastore\FieldSchema(); - $xfer += $elem945->read($input); - $this->success []= $elem945; + $elem946 = null; + $elem946 = new \metastore\FieldSchema(); + $xfer += $elem946->read($input); + $this->success []= $elem946; } $xfer += $input->readListEnd(); } else { @@ -18460,9 +18460,9 @@ class ThriftHiveMetastore_get_schema_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter946) + foreach ($this->success as $iter947) { - $xfer += $iter946->write($output); + $xfer += $iter947->write($output); } } $output->writeListEnd(); @@ -18704,15 +18704,15 @@ class ThriftHiveMetastore_get_schema_with_environment_context_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size947 = 0; - $_etype950 = 0; - $xfer += $input->readListBegin($_etype950, $_size947); - for ($_i951 = 0; $_i951 < $_size947; ++$_i951) + $_size948 = 0; + $_etype951 = 0; + $xfer += $input->readListBegin($_etype951, $_size948); + for ($_i952 = 0; $_i952 < $_size948; ++$_i952) { - $elem952 = null; - $elem952 = new \metastore\FieldSchema(); - $xfer += $elem952->read($input); - $this->success []= $elem952; + $elem953 = null; + $elem953 = new \metastore\FieldSchema(); + $xfer += $elem953->read($input); + $this->success []= $elem953; } $xfer += $input->readListEnd(); } else { @@ -18764,9 +18764,9 @@ class ThriftHiveMetastore_get_schema_with_environment_context_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter953) + foreach ($this->success as $iter954) { - $xfer += $iter953->write($output); + $xfer += $iter954->write($output); } } $output->writeListEnd(); @@ -19438,15 +19438,15 @@ class ThriftHiveMetastore_create_table_with_constraints_args { case 2: if ($ftype == TType::LST) { $this->primaryKeys = array(); - $_size954 = 0; - $_etype957 = 0; - $xfer += $input->readListBegin($_etype957, $_size954); - for ($_i958 = 0; $_i958 < $_size954; ++$_i958) + $_size955 = 0; + $_etype958 = 0; + $xfer += $input->readListBegin($_etype958, $_size955); + for ($_i959 = 0; $_i959 < $_size955; ++$_i959) { - $elem959 = null; - $elem959 = new \metastore\SQLPrimaryKey(); - $xfer += $elem959->read($input); - $this->primaryKeys []= $elem959; + $elem960 = null; + $elem960 = new \metastore\SQLPrimaryKey(); + $xfer += $elem960->read($input); + $this->primaryKeys []= $elem960; } $xfer += $input->readListEnd(); } else { @@ -19456,15 +19456,15 @@ class ThriftHiveMetastore_create_table_with_constraints_args { case 3: if ($ftype == TType::LST) { $this->foreignKeys = array(); - $_size960 = 0; - $_etype963 = 0; - $xfer += $input->readListBegin($_etype963, $_size960); - for ($_i964 = 0; $_i964 < $_size960; ++$_i964) + $_size961 = 0; + $_etype964 = 0; + $xfer += $input->readListBegin($_etype964, $_size961); + for ($_i965 = 0; $_i965 < $_size961; ++$_i965) { - $elem965 = null; - $elem965 = new \metastore\SQLForeignKey(); - $xfer += $elem965->read($input); - $this->foreignKeys []= $elem965; + $elem966 = null; + $elem966 = new \metastore\SQLForeignKey(); + $xfer += $elem966->read($input); + $this->foreignKeys []= $elem966; } $xfer += $input->readListEnd(); } else { @@ -19474,15 +19474,15 @@ class ThriftHiveMetastore_create_table_with_constraints_args { case 4: if ($ftype == TType::LST) { $this->uniqueConstraints = array(); - $_size966 = 0; - $_etype969 = 0; - $xfer += $input->readListBegin($_etype969, $_size966); - for ($_i970 = 0; $_i970 < $_size966; ++$_i970) + $_size967 = 0; + $_etype970 = 0; + $xfer += $input->readListBegin($_etype970, $_size967); + for ($_i971 = 0; $_i971 < $_size967; ++$_i971) { - $elem971 = null; - $elem971 = new \metastore\SQLUniqueConstraint(); - $xfer += $elem971->read($input); - $this->uniqueConstraints []= $elem971; + $elem972 = null; + $elem972 = new \metastore\SQLUniqueConstraint(); + $xfer += $elem972->read($input); + $this->uniqueConstraints []= $elem972; } $xfer += $input->readListEnd(); } else { @@ -19492,15 +19492,15 @@ class ThriftHiveMetastore_create_table_with_constraints_args { case 5: if ($ftype == TType::LST) { $this->notNullConstraints = array(); - $_size972 = 0; - $_etype975 = 0; - $xfer += $input->readListBegin($_etype975, $_size972); - for ($_i976 = 0; $_i976 < $_size972; ++$_i976) + $_size973 = 0; + $_etype976 = 0; + $xfer += $input->readListBegin($_etype976, $_size973); + for ($_i977 = 0; $_i977 < $_size973; ++$_i977) { - $elem977 = null; - $elem977 = new \metastore\SQLNotNullConstraint(); - $xfer += $elem977->read($input); - $this->notNullConstraints []= $elem977; + $elem978 = null; + $elem978 = new \metastore\SQLNotNullConstraint(); + $xfer += $elem978->read($input); + $this->notNullConstraints []= $elem978; } $xfer += $input->readListEnd(); } else { @@ -19510,15 +19510,15 @@ class ThriftHiveMetastore_create_table_with_constraints_args { case 6: if ($ftype == TType::LST) { $this->defaultConstraints = array(); - $_size978 = 0; - $_etype981 = 0; - $xfer += $input->readListBegin($_etype981, $_size978); - for ($_i982 = 0; $_i982 < $_size978; ++$_i982) + $_size979 = 0; + $_etype982 = 0; + $xfer += $input->readListBegin($_etype982, $_size979); + for ($_i983 = 0; $_i983 < $_size979; ++$_i983) { - $elem983 = null; - $elem983 = new \metastore\SQLDefaultConstraint(); - $xfer += $elem983->read($input); - $this->defaultConstraints []= $elem983; + $elem984 = null; + $elem984 = new \metastore\SQLDefaultConstraint(); + $xfer += $elem984->read($input); + $this->defaultConstraints []= $elem984; } $xfer += $input->readListEnd(); } else { @@ -19528,15 +19528,15 @@ class ThriftHiveMetastore_create_table_with_constraints_args { case 7: if ($ftype == TType::LST) { $this->checkConstraints = array(); - $_size984 = 0; - $_etype987 = 0; - $xfer += $input->readListBegin($_etype987, $_size984); - for ($_i988 = 0; $_i988 < $_size984; ++$_i988) + $_size985 = 0; + $_etype988 = 0; + $xfer += $input->readListBegin($_etype988, $_size985); + for ($_i989 = 0; $_i989 < $_size985; ++$_i989) { - $elem989 = null; - $elem989 = new \metastore\SQLCheckConstraint(); - $xfer += $elem989->read($input); - $this->checkConstraints []= $elem989; + $elem990 = null; + $elem990 = new \metastore\SQLCheckConstraint(); + $xfer += $elem990->read($input); + $this->checkConstraints []= $elem990; } $xfer += $input->readListEnd(); } else { @@ -19572,9 +19572,9 @@ class ThriftHiveMetastore_create_table_with_constraints_args { { $output->writeListBegin(TType::STRUCT, count($this->primaryKeys)); { - foreach ($this->primaryKeys as $iter990) + foreach ($this->primaryKeys as $iter991) { - $xfer += $iter990->write($output); + $xfer += $iter991->write($output); } } $output->writeListEnd(); @@ -19589,9 +19589,9 @@ class ThriftHiveMetastore_create_table_with_constraints_args { { $output->writeListBegin(TType::STRUCT, count($this->foreignKeys)); { - foreach ($this->foreignKeys as $iter991) + foreach ($this->foreignKeys as $iter992) { - $xfer += $iter991->write($output); + $xfer += $iter992->write($output); } } $output->writeListEnd(); @@ -19606,9 +19606,9 @@ class ThriftHiveMetastore_create_table_with_constraints_args { { $output->writeListBegin(TType::STRUCT, count($this->uniqueConstraints)); { - foreach ($this->uniqueConstraints as $iter992) + foreach ($this->uniqueConstraints as $iter993) { - $xfer += $iter992->write($output); + $xfer += $iter993->write($output); } } $output->writeListEnd(); @@ -19623,9 +19623,9 @@ class ThriftHiveMetastore_create_table_with_constraints_args { { $output->writeListBegin(TType::STRUCT, count($this->notNullConstraints)); { - foreach ($this->notNullConstraints as $iter993) + foreach ($this->notNullConstraints as $iter994) { - $xfer += $iter993->write($output); + $xfer += $iter994->write($output); } } $output->writeListEnd(); @@ -19640,9 +19640,9 @@ class ThriftHiveMetastore_create_table_with_constraints_args { { $output->writeListBegin(TType::STRUCT, count($this->defaultConstraints)); { - foreach ($this->defaultConstraints as $iter994) + foreach ($this->defaultConstraints as $iter995) { - $xfer += $iter994->write($output); + $xfer += $iter995->write($output); } } $output->writeListEnd(); @@ -19657,9 +19657,9 @@ class ThriftHiveMetastore_create_table_with_constraints_args { { $output->writeListBegin(TType::STRUCT, count($this->checkConstraints)); { - foreach ($this->checkConstraints as $iter995) + foreach ($this->checkConstraints as $iter996) { - $xfer += $iter995->write($output); + $xfer += $iter996->write($output); } } $output->writeListEnd(); @@ -21659,14 +21659,14 @@ class ThriftHiveMetastore_truncate_table_args { case 3: if ($ftype == TType::LST) { $this->partNames = array(); - $_size996 = 0; - $_etype999 = 0; - $xfer += $input->readListBegin($_etype999, $_size996); - for ($_i1000 = 0; $_i1000 < $_size996; ++$_i1000) + $_size997 = 0; + $_etype1000 = 0; + $xfer += $input->readListBegin($_etype1000, $_size997); + for ($_i1001 = 0; $_i1001 < $_size997; ++$_i1001) { - $elem1001 = null; - $xfer += $input->readString($elem1001); - $this->partNames []= $elem1001; + $elem1002 = null; + $xfer += $input->readString($elem1002); + $this->partNames []= $elem1002; } $xfer += $input->readListEnd(); } else { @@ -21704,9 +21704,9 @@ class ThriftHiveMetastore_truncate_table_args { { $output->writeListBegin(TType::STRING, count($this->partNames)); { - foreach ($this->partNames as $iter1002) + foreach ($this->partNames as $iter1003) { - $xfer += $output->writeString($iter1002); + $xfer += $output->writeString($iter1003); } } $output->writeListEnd(); @@ -22142,14 +22142,14 @@ class ThriftHiveMetastore_get_tables_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1003 = 0; - $_etype1006 = 0; - $xfer += $input->readListBegin($_etype1006, $_size1003); - for ($_i1007 = 0; $_i1007 < $_size1003; ++$_i1007) + $_size1004 = 0; + $_etype1007 = 0; + $xfer += $input->readListBegin($_etype1007, $_size1004); + for ($_i1008 = 0; $_i1008 < $_size1004; ++$_i1008) { - $elem1008 = null; - $xfer += $input->readString($elem1008); - $this->success []= $elem1008; + $elem1009 = null; + $xfer += $input->readString($elem1009); + $this->success []= $elem1009; } $xfer += $input->readListEnd(); } else { @@ -22185,9 +22185,9 @@ class ThriftHiveMetastore_get_tables_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1009) + foreach ($this->success as $iter1010) { - $xfer += $output->writeString($iter1009); + $xfer += $output->writeString($iter1010); } } $output->writeListEnd(); @@ -22389,14 +22389,14 @@ class ThriftHiveMetastore_get_tables_by_type_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1010 = 0; - $_etype1013 = 0; - $xfer += $input->readListBegin($_etype1013, $_size1010); - for ($_i1014 = 0; $_i1014 < $_size1010; ++$_i1014) + $_size1011 = 0; + $_etype1014 = 0; + $xfer += $input->readListBegin($_etype1014, $_size1011); + for ($_i1015 = 0; $_i1015 < $_size1011; ++$_i1015) { - $elem1015 = null; - $xfer += $input->readString($elem1015); - $this->success []= $elem1015; + $elem1016 = null; + $xfer += $input->readString($elem1016); + $this->success []= $elem1016; } $xfer += $input->readListEnd(); } else { @@ -22432,9 +22432,9 @@ class ThriftHiveMetastore_get_tables_by_type_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1016) + foreach ($this->success as $iter1017) { - $xfer += $output->writeString($iter1016); + $xfer += $output->writeString($iter1017); } } $output->writeListEnd(); @@ -22590,14 +22590,14 @@ class ThriftHiveMetastore_get_materialized_views_for_rewriting_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1017 = 0; - $_etype1020 = 0; - $xfer += $input->readListBegin($_etype1020, $_size1017); - for ($_i1021 = 0; $_i1021 < $_size1017; ++$_i1021) + $_size1018 = 0; + $_etype1021 = 0; + $xfer += $input->readListBegin($_etype1021, $_size1018); + for ($_i1022 = 0; $_i1022 < $_size1018; ++$_i1022) { - $elem1022 = null; - $xfer += $input->readString($elem1022); - $this->success []= $elem1022; + $elem1023 = null; + $xfer += $input->readString($elem1023); + $this->success []= $elem1023; } $xfer += $input->readListEnd(); } else { @@ -22633,9 +22633,9 @@ class ThriftHiveMetastore_get_materialized_views_for_rewriting_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1023) + foreach ($this->success as $iter1024) { - $xfer += $output->writeString($iter1023); + $xfer += $output->writeString($iter1024); } } $output->writeListEnd(); @@ -22740,14 +22740,14 @@ class ThriftHiveMetastore_get_table_meta_args { case 3: if ($ftype == TType::LST) { $this->tbl_types = array(); - $_size1024 = 0; - $_etype1027 = 0; - $xfer += $input->readListBegin($_etype1027, $_size1024); - for ($_i1028 = 0; $_i1028 < $_size1024; ++$_i1028) + $_size1025 = 0; + $_etype1028 = 0; + $xfer += $input->readListBegin($_etype1028, $_size1025); + for ($_i1029 = 0; $_i1029 < $_size1025; ++$_i1029) { - $elem1029 = null; - $xfer += $input->readString($elem1029); - $this->tbl_types []= $elem1029; + $elem1030 = null; + $xfer += $input->readString($elem1030); + $this->tbl_types []= $elem1030; } $xfer += $input->readListEnd(); } else { @@ -22785,9 +22785,9 @@ class ThriftHiveMetastore_get_table_meta_args { { $output->writeListBegin(TType::STRING, count($this->tbl_types)); { - foreach ($this->tbl_types as $iter1030) + foreach ($this->tbl_types as $iter1031) { - $xfer += $output->writeString($iter1030); + $xfer += $output->writeString($iter1031); } } $output->writeListEnd(); @@ -22864,15 +22864,15 @@ class ThriftHiveMetastore_get_table_meta_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1031 = 0; - $_etype1034 = 0; - $xfer += $input->readListBegin($_etype1034, $_size1031); - for ($_i1035 = 0; $_i1035 < $_size1031; ++$_i1035) + $_size1032 = 0; + $_etype1035 = 0; + $xfer += $input->readListBegin($_etype1035, $_size1032); + for ($_i1036 = 0; $_i1036 < $_size1032; ++$_i1036) { - $elem1036 = null; - $elem1036 = new \metastore\TableMeta(); - $xfer += $elem1036->read($input); - $this->success []= $elem1036; + $elem1037 = null; + $elem1037 = new \metastore\TableMeta(); + $xfer += $elem1037->read($input); + $this->success []= $elem1037; } $xfer += $input->readListEnd(); } else { @@ -22908,9 +22908,9 @@ class ThriftHiveMetastore_get_table_meta_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1037) + foreach ($this->success as $iter1038) { - $xfer += $iter1037->write($output); + $xfer += $iter1038->write($output); } } $output->writeListEnd(); @@ -23066,14 +23066,14 @@ class ThriftHiveMetastore_get_all_tables_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1038 = 0; - $_etype1041 = 0; - $xfer += $input->readListBegin($_etype1041, $_size1038); - for ($_i1042 = 0; $_i1042 < $_size1038; ++$_i1042) + $_size1039 = 0; + $_etype1042 = 0; + $xfer += $input->readListBegin($_etype1042, $_size1039); + for ($_i1043 = 0; $_i1043 < $_size1039; ++$_i1043) { - $elem1043 = null; - $xfer += $input->readString($elem1043); - $this->success []= $elem1043; + $elem1044 = null; + $xfer += $input->readString($elem1044); + $this->success []= $elem1044; } $xfer += $input->readListEnd(); } else { @@ -23109,9 +23109,9 @@ class ThriftHiveMetastore_get_all_tables_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1044) + foreach ($this->success as $iter1045) { - $xfer += $output->writeString($iter1044); + $xfer += $output->writeString($iter1045); } } $output->writeListEnd(); @@ -23426,14 +23426,14 @@ class ThriftHiveMetastore_get_table_objects_by_name_args { case 2: if ($ftype == TType::LST) { $this->tbl_names = array(); - $_size1045 = 0; - $_etype1048 = 0; - $xfer += $input->readListBegin($_etype1048, $_size1045); - for ($_i1049 = 0; $_i1049 < $_size1045; ++$_i1049) + $_size1046 = 0; + $_etype1049 = 0; + $xfer += $input->readListBegin($_etype1049, $_size1046); + for ($_i1050 = 0; $_i1050 < $_size1046; ++$_i1050) { - $elem1050 = null; - $xfer += $input->readString($elem1050); - $this->tbl_names []= $elem1050; + $elem1051 = null; + $xfer += $input->readString($elem1051); + $this->tbl_names []= $elem1051; } $xfer += $input->readListEnd(); } else { @@ -23466,9 +23466,9 @@ class ThriftHiveMetastore_get_table_objects_by_name_args { { $output->writeListBegin(TType::STRING, count($this->tbl_names)); { - foreach ($this->tbl_names as $iter1051) + foreach ($this->tbl_names as $iter1052) { - $xfer += $output->writeString($iter1051); + $xfer += $output->writeString($iter1052); } } $output->writeListEnd(); @@ -23533,15 +23533,15 @@ class ThriftHiveMetastore_get_table_objects_by_name_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1052 = 0; - $_etype1055 = 0; - $xfer += $input->readListBegin($_etype1055, $_size1052); - for ($_i1056 = 0; $_i1056 < $_size1052; ++$_i1056) + $_size1053 = 0; + $_etype1056 = 0; + $xfer += $input->readListBegin($_etype1056, $_size1053); + for ($_i1057 = 0; $_i1057 < $_size1053; ++$_i1057) { - $elem1057 = null; - $elem1057 = new \metastore\Table(); - $xfer += $elem1057->read($input); - $this->success []= $elem1057; + $elem1058 = null; + $elem1058 = new \metastore\Table(); + $xfer += $elem1058->read($input); + $this->success []= $elem1058; } $xfer += $input->readListEnd(); } else { @@ -23569,9 +23569,9 @@ class ThriftHiveMetastore_get_table_objects_by_name_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1058) + foreach ($this->success as $iter1059) { - $xfer += $iter1058->write($output); + $xfer += $iter1059->write($output); } } $output->writeListEnd(); @@ -24771,14 +24771,14 @@ class ThriftHiveMetastore_get_table_names_by_filter_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1059 = 0; - $_etype1062 = 0; - $xfer += $input->readListBegin($_etype1062, $_size1059); - for ($_i1063 = 0; $_i1063 < $_size1059; ++$_i1063) + $_size1060 = 0; + $_etype1063 = 0; + $xfer += $input->readListBegin($_etype1063, $_size1060); + for ($_i1064 = 0; $_i1064 < $_size1060; ++$_i1064) { - $elem1064 = null; - $xfer += $input->readString($elem1064); - $this->success []= $elem1064; + $elem1065 = null; + $xfer += $input->readString($elem1065); + $this->success []= $elem1065; } $xfer += $input->readListEnd(); } else { @@ -24830,9 +24830,9 @@ class ThriftHiveMetastore_get_table_names_by_filter_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1065) + foreach ($this->success as $iter1066) { - $xfer += $output->writeString($iter1065); + $xfer += $output->writeString($iter1066); } } $output->writeListEnd(); @@ -26355,15 +26355,15 @@ class ThriftHiveMetastore_add_partitions_args { case 1: if ($ftype == TType::LST) { $this->new_parts = array(); - $_size1066 = 0; - $_etype1069 = 0; - $xfer += $input->readListBegin($_etype1069, $_size1066); - for ($_i1070 = 0; $_i1070 < $_size1066; ++$_i1070) + $_size1067 = 0; + $_etype1070 = 0; + $xfer += $input->readListBegin($_etype1070, $_size1067); + for ($_i1071 = 0; $_i1071 < $_size1067; ++$_i1071) { - $elem1071 = null; - $elem1071 = new \metastore\Partition(); - $xfer += $elem1071->read($input); - $this->new_parts []= $elem1071; + $elem1072 = null; + $elem1072 = new \metastore\Partition(); + $xfer += $elem1072->read($input); + $this->new_parts []= $elem1072; } $xfer += $input->readListEnd(); } else { @@ -26391,9 +26391,9 @@ class ThriftHiveMetastore_add_partitions_args { { $output->writeListBegin(TType::STRUCT, count($this->new_parts)); { - foreach ($this->new_parts as $iter1072) + foreach ($this->new_parts as $iter1073) { - $xfer += $iter1072->write($output); + $xfer += $iter1073->write($output); } } $output->writeListEnd(); @@ -26608,15 +26608,15 @@ class ThriftHiveMetastore_add_partitions_pspec_args { case 1: if ($ftype == TType::LST) { $this->new_parts = array(); - $_size1073 = 0; - $_etype1076 = 0; - $xfer += $input->readListBegin($_etype1076, $_size1073); - for ($_i1077 = 0; $_i1077 < $_size1073; ++$_i1077) + $_size1074 = 0; + $_etype1077 = 0; + $xfer += $input->readListBegin($_etype1077, $_size1074); + for ($_i1078 = 0; $_i1078 < $_size1074; ++$_i1078) { - $elem1078 = null; - $elem1078 = new \metastore\PartitionSpec(); - $xfer += $elem1078->read($input); - $this->new_parts []= $elem1078; + $elem1079 = null; + $elem1079 = new \metastore\PartitionSpec(); + $xfer += $elem1079->read($input); + $this->new_parts []= $elem1079; } $xfer += $input->readListEnd(); } else { @@ -26644,9 +26644,9 @@ class ThriftHiveMetastore_add_partitions_pspec_args { { $output->writeListBegin(TType::STRUCT, count($this->new_parts)); { - foreach ($this->new_parts as $iter1079) + foreach ($this->new_parts as $iter1080) { - $xfer += $iter1079->write($output); + $xfer += $iter1080->write($output); } } $output->writeListEnd(); @@ -26896,14 +26896,14 @@ class ThriftHiveMetastore_append_partition_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size1080 = 0; - $_etype1083 = 0; - $xfer += $input->readListBegin($_etype1083, $_size1080); - for ($_i1084 = 0; $_i1084 < $_size1080; ++$_i1084) + $_size1081 = 0; + $_etype1084 = 0; + $xfer += $input->readListBegin($_etype1084, $_size1081); + for ($_i1085 = 0; $_i1085 < $_size1081; ++$_i1085) { - $elem1085 = null; - $xfer += $input->readString($elem1085); - $this->part_vals []= $elem1085; + $elem1086 = null; + $xfer += $input->readString($elem1086); + $this->part_vals []= $elem1086; } $xfer += $input->readListEnd(); } else { @@ -26941,9 +26941,9 @@ class ThriftHiveMetastore_append_partition_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1086) + foreach ($this->part_vals as $iter1087) { - $xfer += $output->writeString($iter1086); + $xfer += $output->writeString($iter1087); } } $output->writeListEnd(); @@ -27445,14 +27445,14 @@ class ThriftHiveMetastore_append_partition_with_environment_context_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size1087 = 0; - $_etype1090 = 0; - $xfer += $input->readListBegin($_etype1090, $_size1087); - for ($_i1091 = 0; $_i1091 < $_size1087; ++$_i1091) + $_size1088 = 0; + $_etype1091 = 0; + $xfer += $input->readListBegin($_etype1091, $_size1088); + for ($_i1092 = 0; $_i1092 < $_size1088; ++$_i1092) { - $elem1092 = null; - $xfer += $input->readString($elem1092); - $this->part_vals []= $elem1092; + $elem1093 = null; + $xfer += $input->readString($elem1093); + $this->part_vals []= $elem1093; } $xfer += $input->readListEnd(); } else { @@ -27498,9 +27498,9 @@ class ThriftHiveMetastore_append_partition_with_environment_context_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1093) + foreach ($this->part_vals as $iter1094) { - $xfer += $output->writeString($iter1093); + $xfer += $output->writeString($iter1094); } } $output->writeListEnd(); @@ -28354,14 +28354,14 @@ class ThriftHiveMetastore_drop_partition_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size1094 = 0; - $_etype1097 = 0; - $xfer += $input->readListBegin($_etype1097, $_size1094); - for ($_i1098 = 0; $_i1098 < $_size1094; ++$_i1098) + $_size1095 = 0; + $_etype1098 = 0; + $xfer += $input->readListBegin($_etype1098, $_size1095); + for ($_i1099 = 0; $_i1099 < $_size1095; ++$_i1099) { - $elem1099 = null; - $xfer += $input->readString($elem1099); - $this->part_vals []= $elem1099; + $elem1100 = null; + $xfer += $input->readString($elem1100); + $this->part_vals []= $elem1100; } $xfer += $input->readListEnd(); } else { @@ -28406,9 +28406,9 @@ class ThriftHiveMetastore_drop_partition_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1100) + foreach ($this->part_vals as $iter1101) { - $xfer += $output->writeString($iter1100); + $xfer += $output->writeString($iter1101); } } $output->writeListEnd(); @@ -28661,14 +28661,14 @@ class ThriftHiveMetastore_drop_partition_with_environment_context_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size1101 = 0; - $_etype1104 = 0; - $xfer += $input->readListBegin($_etype1104, $_size1101); - for ($_i1105 = 0; $_i1105 < $_size1101; ++$_i1105) + $_size1102 = 0; + $_etype1105 = 0; + $xfer += $input->readListBegin($_etype1105, $_size1102); + for ($_i1106 = 0; $_i1106 < $_size1102; ++$_i1106) { - $elem1106 = null; - $xfer += $input->readString($elem1106); - $this->part_vals []= $elem1106; + $elem1107 = null; + $xfer += $input->readString($elem1107); + $this->part_vals []= $elem1107; } $xfer += $input->readListEnd(); } else { @@ -28721,9 +28721,9 @@ class ThriftHiveMetastore_drop_partition_with_environment_context_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1107) + foreach ($this->part_vals as $iter1108) { - $xfer += $output->writeString($iter1107); + $xfer += $output->writeString($iter1108); } } $output->writeListEnd(); @@ -29737,14 +29737,14 @@ class ThriftHiveMetastore_get_partition_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size1108 = 0; - $_etype1111 = 0; - $xfer += $input->readListBegin($_etype1111, $_size1108); - for ($_i1112 = 0; $_i1112 < $_size1108; ++$_i1112) + $_size1109 = 0; + $_etype1112 = 0; + $xfer += $input->readListBegin($_etype1112, $_size1109); + for ($_i1113 = 0; $_i1113 < $_size1109; ++$_i1113) { - $elem1113 = null; - $xfer += $input->readString($elem1113); - $this->part_vals []= $elem1113; + $elem1114 = null; + $xfer += $input->readString($elem1114); + $this->part_vals []= $elem1114; } $xfer += $input->readListEnd(); } else { @@ -29782,9 +29782,9 @@ class ThriftHiveMetastore_get_partition_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1114) + foreach ($this->part_vals as $iter1115) { - $xfer += $output->writeString($iter1114); + $xfer += $output->writeString($iter1115); } } $output->writeListEnd(); @@ -30026,17 +30026,17 @@ class ThriftHiveMetastore_exchange_partition_args { case 1: if ($ftype == TType::MAP) { $this->partitionSpecs = array(); - $_size1115 = 0; - $_ktype1116 = 0; - $_vtype1117 = 0; - $xfer += $input->readMapBegin($_ktype1116, $_vtype1117, $_size1115); - for ($_i1119 = 0; $_i1119 < $_size1115; ++$_i1119) + $_size1116 = 0; + $_ktype1117 = 0; + $_vtype1118 = 0; + $xfer += $input->readMapBegin($_ktype1117, $_vtype1118, $_size1116); + for ($_i1120 = 0; $_i1120 < $_size1116; ++$_i1120) { - $key1120 = ''; - $val1121 = ''; - $xfer += $input->readString($key1120); - $xfer += $input->readString($val1121); - $this->partitionSpecs[$key1120] = $val1121; + $key1121 = ''; + $val1122 = ''; + $xfer += $input->readString($key1121); + $xfer += $input->readString($val1122); + $this->partitionSpecs[$key1121] = $val1122; } $xfer += $input->readMapEnd(); } else { @@ -30092,10 +30092,10 @@ class ThriftHiveMetastore_exchange_partition_args { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->partitionSpecs)); { - foreach ($this->partitionSpecs as $kiter1122 => $viter1123) + foreach ($this->partitionSpecs as $kiter1123 => $viter1124) { - $xfer += $output->writeString($kiter1122); - $xfer += $output->writeString($viter1123); + $xfer += $output->writeString($kiter1123); + $xfer += $output->writeString($viter1124); } } $output->writeMapEnd(); @@ -30407,17 +30407,17 @@ class ThriftHiveMetastore_exchange_partitions_args { case 1: if ($ftype == TType::MAP) { $this->partitionSpecs = array(); - $_size1124 = 0; - $_ktype1125 = 0; - $_vtype1126 = 0; - $xfer += $input->readMapBegin($_ktype1125, $_vtype1126, $_size1124); - for ($_i1128 = 0; $_i1128 < $_size1124; ++$_i1128) + $_size1125 = 0; + $_ktype1126 = 0; + $_vtype1127 = 0; + $xfer += $input->readMapBegin($_ktype1126, $_vtype1127, $_size1125); + for ($_i1129 = 0; $_i1129 < $_size1125; ++$_i1129) { - $key1129 = ''; - $val1130 = ''; - $xfer += $input->readString($key1129); - $xfer += $input->readString($val1130); - $this->partitionSpecs[$key1129] = $val1130; + $key1130 = ''; + $val1131 = ''; + $xfer += $input->readString($key1130); + $xfer += $input->readString($val1131); + $this->partitionSpecs[$key1130] = $val1131; } $xfer += $input->readMapEnd(); } else { @@ -30473,10 +30473,10 @@ class ThriftHiveMetastore_exchange_partitions_args { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->partitionSpecs)); { - foreach ($this->partitionSpecs as $kiter1131 => $viter1132) + foreach ($this->partitionSpecs as $kiter1132 => $viter1133) { - $xfer += $output->writeString($kiter1131); - $xfer += $output->writeString($viter1132); + $xfer += $output->writeString($kiter1132); + $xfer += $output->writeString($viter1133); } } $output->writeMapEnd(); @@ -30609,15 +30609,15 @@ class ThriftHiveMetastore_exchange_partitions_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1133 = 0; - $_etype1136 = 0; - $xfer += $input->readListBegin($_etype1136, $_size1133); - for ($_i1137 = 0; $_i1137 < $_size1133; ++$_i1137) + $_size1134 = 0; + $_etype1137 = 0; + $xfer += $input->readListBegin($_etype1137, $_size1134); + for ($_i1138 = 0; $_i1138 < $_size1134; ++$_i1138) { - $elem1138 = null; - $elem1138 = new \metastore\Partition(); - $xfer += $elem1138->read($input); - $this->success []= $elem1138; + $elem1139 = null; + $elem1139 = new \metastore\Partition(); + $xfer += $elem1139->read($input); + $this->success []= $elem1139; } $xfer += $input->readListEnd(); } else { @@ -30677,9 +30677,9 @@ class ThriftHiveMetastore_exchange_partitions_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1139) + foreach ($this->success as $iter1140) { - $xfer += $iter1139->write($output); + $xfer += $iter1140->write($output); } } $output->writeListEnd(); @@ -30825,14 +30825,14 @@ class ThriftHiveMetastore_get_partition_with_auth_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size1140 = 0; - $_etype1143 = 0; - $xfer += $input->readListBegin($_etype1143, $_size1140); - for ($_i1144 = 0; $_i1144 < $_size1140; ++$_i1144) + $_size1141 = 0; + $_etype1144 = 0; + $xfer += $input->readListBegin($_etype1144, $_size1141); + for ($_i1145 = 0; $_i1145 < $_size1141; ++$_i1145) { - $elem1145 = null; - $xfer += $input->readString($elem1145); - $this->part_vals []= $elem1145; + $elem1146 = null; + $xfer += $input->readString($elem1146); + $this->part_vals []= $elem1146; } $xfer += $input->readListEnd(); } else { @@ -30849,14 +30849,14 @@ class ThriftHiveMetastore_get_partition_with_auth_args { case 5: if ($ftype == TType::LST) { $this->group_names = array(); - $_size1146 = 0; - $_etype1149 = 0; - $xfer += $input->readListBegin($_etype1149, $_size1146); - for ($_i1150 = 0; $_i1150 < $_size1146; ++$_i1150) + $_size1147 = 0; + $_etype1150 = 0; + $xfer += $input->readListBegin($_etype1150, $_size1147); + for ($_i1151 = 0; $_i1151 < $_size1147; ++$_i1151) { - $elem1151 = null; - $xfer += $input->readString($elem1151); - $this->group_names []= $elem1151; + $elem1152 = null; + $xfer += $input->readString($elem1152); + $this->group_names []= $elem1152; } $xfer += $input->readListEnd(); } else { @@ -30894,9 +30894,9 @@ class ThriftHiveMetastore_get_partition_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1152) + foreach ($this->part_vals as $iter1153) { - $xfer += $output->writeString($iter1152); + $xfer += $output->writeString($iter1153); } } $output->writeListEnd(); @@ -30916,9 +30916,9 @@ class ThriftHiveMetastore_get_partition_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter1153) + foreach ($this->group_names as $iter1154) { - $xfer += $output->writeString($iter1153); + $xfer += $output->writeString($iter1154); } } $output->writeListEnd(); @@ -31509,15 +31509,15 @@ class ThriftHiveMetastore_get_partitions_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1154 = 0; - $_etype1157 = 0; - $xfer += $input->readListBegin($_etype1157, $_size1154); - for ($_i1158 = 0; $_i1158 < $_size1154; ++$_i1158) + $_size1155 = 0; + $_etype1158 = 0; + $xfer += $input->readListBegin($_etype1158, $_size1155); + for ($_i1159 = 0; $_i1159 < $_size1155; ++$_i1159) { - $elem1159 = null; - $elem1159 = new \metastore\Partition(); - $xfer += $elem1159->read($input); - $this->success []= $elem1159; + $elem1160 = null; + $elem1160 = new \metastore\Partition(); + $xfer += $elem1160->read($input); + $this->success []= $elem1160; } $xfer += $input->readListEnd(); } else { @@ -31561,9 +31561,9 @@ class ThriftHiveMetastore_get_partitions_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1160) + foreach ($this->success as $iter1161) { - $xfer += $iter1160->write($output); + $xfer += $iter1161->write($output); } } $output->writeListEnd(); @@ -31709,14 +31709,14 @@ class ThriftHiveMetastore_get_partitions_with_auth_args { case 5: if ($ftype == TType::LST) { $this->group_names = array(); - $_size1161 = 0; - $_etype1164 = 0; - $xfer += $input->readListBegin($_etype1164, $_size1161); - for ($_i1165 = 0; $_i1165 < $_size1161; ++$_i1165) + $_size1162 = 0; + $_etype1165 = 0; + $xfer += $input->readListBegin($_etype1165, $_size1162); + for ($_i1166 = 0; $_i1166 < $_size1162; ++$_i1166) { - $elem1166 = null; - $xfer += $input->readString($elem1166); - $this->group_names []= $elem1166; + $elem1167 = null; + $xfer += $input->readString($elem1167); + $this->group_names []= $elem1167; } $xfer += $input->readListEnd(); } else { @@ -31764,9 +31764,9 @@ class ThriftHiveMetastore_get_partitions_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter1167) + foreach ($this->group_names as $iter1168) { - $xfer += $output->writeString($iter1167); + $xfer += $output->writeString($iter1168); } } $output->writeListEnd(); @@ -31855,15 +31855,15 @@ class ThriftHiveMetastore_get_partitions_with_auth_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1168 = 0; - $_etype1171 = 0; - $xfer += $input->readListBegin($_etype1171, $_size1168); - for ($_i1172 = 0; $_i1172 < $_size1168; ++$_i1172) + $_size1169 = 0; + $_etype1172 = 0; + $xfer += $input->readListBegin($_etype1172, $_size1169); + for ($_i1173 = 0; $_i1173 < $_size1169; ++$_i1173) { - $elem1173 = null; - $elem1173 = new \metastore\Partition(); - $xfer += $elem1173->read($input); - $this->success []= $elem1173; + $elem1174 = null; + $elem1174 = new \metastore\Partition(); + $xfer += $elem1174->read($input); + $this->success []= $elem1174; } $xfer += $input->readListEnd(); } else { @@ -31907,9 +31907,9 @@ class ThriftHiveMetastore_get_partitions_with_auth_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1174) + foreach ($this->success as $iter1175) { - $xfer += $iter1174->write($output); + $xfer += $iter1175->write($output); } } $output->writeListEnd(); @@ -32129,15 +32129,15 @@ class ThriftHiveMetastore_get_partitions_pspec_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1175 = 0; - $_etype1178 = 0; - $xfer += $input->readListBegin($_etype1178, $_size1175); - for ($_i1179 = 0; $_i1179 < $_size1175; ++$_i1179) + $_size1176 = 0; + $_etype1179 = 0; + $xfer += $input->readListBegin($_etype1179, $_size1176); + for ($_i1180 = 0; $_i1180 < $_size1176; ++$_i1180) { - $elem1180 = null; - $elem1180 = new \metastore\PartitionSpec(); - $xfer += $elem1180->read($input); - $this->success []= $elem1180; + $elem1181 = null; + $elem1181 = new \metastore\PartitionSpec(); + $xfer += $elem1181->read($input); + $this->success []= $elem1181; } $xfer += $input->readListEnd(); } else { @@ -32181,9 +32181,9 @@ class ThriftHiveMetastore_get_partitions_pspec_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1181) + foreach ($this->success as $iter1182) { - $xfer += $iter1181->write($output); + $xfer += $iter1182->write($output); } } $output->writeListEnd(); @@ -32402,14 +32402,14 @@ class ThriftHiveMetastore_get_partition_names_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1182 = 0; - $_etype1185 = 0; - $xfer += $input->readListBegin($_etype1185, $_size1182); - for ($_i1186 = 0; $_i1186 < $_size1182; ++$_i1186) + $_size1183 = 0; + $_etype1186 = 0; + $xfer += $input->readListBegin($_etype1186, $_size1183); + for ($_i1187 = 0; $_i1187 < $_size1183; ++$_i1187) { - $elem1187 = null; - $xfer += $input->readString($elem1187); - $this->success []= $elem1187; + $elem1188 = null; + $xfer += $input->readString($elem1188); + $this->success []= $elem1188; } $xfer += $input->readListEnd(); } else { @@ -32453,9 +32453,9 @@ class ThriftHiveMetastore_get_partition_names_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1188) + foreach ($this->success as $iter1189) { - $xfer += $output->writeString($iter1188); + $xfer += $output->writeString($iter1189); } } $output->writeListEnd(); @@ -32786,14 +32786,14 @@ class ThriftHiveMetastore_get_partitions_ps_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size1189 = 0; - $_etype1192 = 0; - $xfer += $input->readListBegin($_etype1192, $_size1189); - for ($_i1193 = 0; $_i1193 < $_size1189; ++$_i1193) + $_size1190 = 0; + $_etype1193 = 0; + $xfer += $input->readListBegin($_etype1193, $_size1190); + for ($_i1194 = 0; $_i1194 < $_size1190; ++$_i1194) { - $elem1194 = null; - $xfer += $input->readString($elem1194); - $this->part_vals []= $elem1194; + $elem1195 = null; + $xfer += $input->readString($elem1195); + $this->part_vals []= $elem1195; } $xfer += $input->readListEnd(); } else { @@ -32838,9 +32838,9 @@ class ThriftHiveMetastore_get_partitions_ps_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1195) + foreach ($this->part_vals as $iter1196) { - $xfer += $output->writeString($iter1195); + $xfer += $output->writeString($iter1196); } } $output->writeListEnd(); @@ -32934,15 +32934,15 @@ class ThriftHiveMetastore_get_partitions_ps_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1196 = 0; - $_etype1199 = 0; - $xfer += $input->readListBegin($_etype1199, $_size1196); - for ($_i1200 = 0; $_i1200 < $_size1196; ++$_i1200) + $_size1197 = 0; + $_etype1200 = 0; + $xfer += $input->readListBegin($_etype1200, $_size1197); + for ($_i1201 = 0; $_i1201 < $_size1197; ++$_i1201) { - $elem1201 = null; - $elem1201 = new \metastore\Partition(); - $xfer += $elem1201->read($input); - $this->success []= $elem1201; + $elem1202 = null; + $elem1202 = new \metastore\Partition(); + $xfer += $elem1202->read($input); + $this->success []= $elem1202; } $xfer += $input->readListEnd(); } else { @@ -32986,9 +32986,9 @@ class ThriftHiveMetastore_get_partitions_ps_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1202) + foreach ($this->success as $iter1203) { - $xfer += $iter1202->write($output); + $xfer += $iter1203->write($output); } } $output->writeListEnd(); @@ -33135,14 +33135,14 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size1203 = 0; - $_etype1206 = 0; - $xfer += $input->readListBegin($_etype1206, $_size1203); - for ($_i1207 = 0; $_i1207 < $_size1203; ++$_i1207) + $_size1204 = 0; + $_etype1207 = 0; + $xfer += $input->readListBegin($_etype1207, $_size1204); + for ($_i1208 = 0; $_i1208 < $_size1204; ++$_i1208) { - $elem1208 = null; - $xfer += $input->readString($elem1208); - $this->part_vals []= $elem1208; + $elem1209 = null; + $xfer += $input->readString($elem1209); + $this->part_vals []= $elem1209; } $xfer += $input->readListEnd(); } else { @@ -33166,14 +33166,14 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { case 6: if ($ftype == TType::LST) { $this->group_names = array(); - $_size1209 = 0; - $_etype1212 = 0; - $xfer += $input->readListBegin($_etype1212, $_size1209); - for ($_i1213 = 0; $_i1213 < $_size1209; ++$_i1213) + $_size1210 = 0; + $_etype1213 = 0; + $xfer += $input->readListBegin($_etype1213, $_size1210); + for ($_i1214 = 0; $_i1214 < $_size1210; ++$_i1214) { - $elem1214 = null; - $xfer += $input->readString($elem1214); - $this->group_names []= $elem1214; + $elem1215 = null; + $xfer += $input->readString($elem1215); + $this->group_names []= $elem1215; } $xfer += $input->readListEnd(); } else { @@ -33211,9 +33211,9 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1215) + foreach ($this->part_vals as $iter1216) { - $xfer += $output->writeString($iter1215); + $xfer += $output->writeString($iter1216); } } $output->writeListEnd(); @@ -33238,9 +33238,9 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter1216) + foreach ($this->group_names as $iter1217) { - $xfer += $output->writeString($iter1216); + $xfer += $output->writeString($iter1217); } } $output->writeListEnd(); @@ -33329,15 +33329,15 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1217 = 0; - $_etype1220 = 0; - $xfer += $input->readListBegin($_etype1220, $_size1217); - for ($_i1221 = 0; $_i1221 < $_size1217; ++$_i1221) + $_size1218 = 0; + $_etype1221 = 0; + $xfer += $input->readListBegin($_etype1221, $_size1218); + for ($_i1222 = 0; $_i1222 < $_size1218; ++$_i1222) { - $elem1222 = null; - $elem1222 = new \metastore\Partition(); - $xfer += $elem1222->read($input); - $this->success []= $elem1222; + $elem1223 = null; + $elem1223 = new \metastore\Partition(); + $xfer += $elem1223->read($input); + $this->success []= $elem1223; } $xfer += $input->readListEnd(); } else { @@ -33381,9 +33381,9 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1223) + foreach ($this->success as $iter1224) { - $xfer += $iter1223->write($output); + $xfer += $iter1224->write($output); } } $output->writeListEnd(); @@ -33504,14 +33504,14 @@ class ThriftHiveMetastore_get_partition_names_ps_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size1224 = 0; - $_etype1227 = 0; - $xfer += $input->readListBegin($_etype1227, $_size1224); - for ($_i1228 = 0; $_i1228 < $_size1224; ++$_i1228) + $_size1225 = 0; + $_etype1228 = 0; + $xfer += $input->readListBegin($_etype1228, $_size1225); + for ($_i1229 = 0; $_i1229 < $_size1225; ++$_i1229) { - $elem1229 = null; - $xfer += $input->readString($elem1229); - $this->part_vals []= $elem1229; + $elem1230 = null; + $xfer += $input->readString($elem1230); + $this->part_vals []= $elem1230; } $xfer += $input->readListEnd(); } else { @@ -33556,9 +33556,9 @@ class ThriftHiveMetastore_get_partition_names_ps_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1230) + foreach ($this->part_vals as $iter1231) { - $xfer += $output->writeString($iter1230); + $xfer += $output->writeString($iter1231); } } $output->writeListEnd(); @@ -33651,14 +33651,14 @@ class ThriftHiveMetastore_get_partition_names_ps_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1231 = 0; - $_etype1234 = 0; - $xfer += $input->readListBegin($_etype1234, $_size1231); - for ($_i1235 = 0; $_i1235 < $_size1231; ++$_i1235) + $_size1232 = 0; + $_etype1235 = 0; + $xfer += $input->readListBegin($_etype1235, $_size1232); + for ($_i1236 = 0; $_i1236 < $_size1232; ++$_i1236) { - $elem1236 = null; - $xfer += $input->readString($elem1236); - $this->success []= $elem1236; + $elem1237 = null; + $xfer += $input->readString($elem1237); + $this->success []= $elem1237; } $xfer += $input->readListEnd(); } else { @@ -33702,9 +33702,9 @@ class ThriftHiveMetastore_get_partition_names_ps_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1237) + foreach ($this->success as $iter1238) { - $xfer += $output->writeString($iter1237); + $xfer += $output->writeString($iter1238); } } $output->writeListEnd(); @@ -33947,15 +33947,15 @@ class ThriftHiveMetastore_get_partitions_by_filter_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1238 = 0; - $_etype1241 = 0; - $xfer += $input->readListBegin($_etype1241, $_size1238); - for ($_i1242 = 0; $_i1242 < $_size1238; ++$_i1242) + $_size1239 = 0; + $_etype1242 = 0; + $xfer += $input->readListBegin($_etype1242, $_size1239); + for ($_i1243 = 0; $_i1243 < $_size1239; ++$_i1243) { - $elem1243 = null; - $elem1243 = new \metastore\Partition(); - $xfer += $elem1243->read($input); - $this->success []= $elem1243; + $elem1244 = null; + $elem1244 = new \metastore\Partition(); + $xfer += $elem1244->read($input); + $this->success []= $elem1244; } $xfer += $input->readListEnd(); } else { @@ -33999,9 +33999,9 @@ class ThriftHiveMetastore_get_partitions_by_filter_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1244) + foreach ($this->success as $iter1245) { - $xfer += $iter1244->write($output); + $xfer += $iter1245->write($output); } } $output->writeListEnd(); @@ -34244,15 +34244,15 @@ class ThriftHiveMetastore_get_part_specs_by_filter_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1245 = 0; - $_etype1248 = 0; - $xfer += $input->readListBegin($_etype1248, $_size1245); - for ($_i1249 = 0; $_i1249 < $_size1245; ++$_i1249) + $_size1246 = 0; + $_etype1249 = 0; + $xfer += $input->readListBegin($_etype1249, $_size1246); + for ($_i1250 = 0; $_i1250 < $_size1246; ++$_i1250) { - $elem1250 = null; - $elem1250 = new \metastore\PartitionSpec(); - $xfer += $elem1250->read($input); - $this->success []= $elem1250; + $elem1251 = null; + $elem1251 = new \metastore\PartitionSpec(); + $xfer += $elem1251->read($input); + $this->success []= $elem1251; } $xfer += $input->readListEnd(); } else { @@ -34296,9 +34296,9 @@ class ThriftHiveMetastore_get_part_specs_by_filter_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1251) + foreach ($this->success as $iter1252) { - $xfer += $iter1251->write($output); + $xfer += $iter1252->write($output); } } $output->writeListEnd(); @@ -34864,14 +34864,14 @@ class ThriftHiveMetastore_get_partitions_by_names_args { case 3: if ($ftype == TType::LST) { $this->names = array(); - $_size1252 = 0; - $_etype1255 = 0; - $xfer += $input->readListBegin($_etype1255, $_size1252); - for ($_i1256 = 0; $_i1256 < $_size1252; ++$_i1256) + $_size1253 = 0; + $_etype1256 = 0; + $xfer += $input->readListBegin($_etype1256, $_size1253); + for ($_i1257 = 0; $_i1257 < $_size1253; ++$_i1257) { - $elem1257 = null; - $xfer += $input->readString($elem1257); - $this->names []= $elem1257; + $elem1258 = null; + $xfer += $input->readString($elem1258); + $this->names []= $elem1258; } $xfer += $input->readListEnd(); } else { @@ -34909,9 +34909,9 @@ class ThriftHiveMetastore_get_partitions_by_names_args { { $output->writeListBegin(TType::STRING, count($this->names)); { - foreach ($this->names as $iter1258) + foreach ($this->names as $iter1259) { - $xfer += $output->writeString($iter1258); + $xfer += $output->writeString($iter1259); } } $output->writeListEnd(); @@ -35000,15 +35000,15 @@ class ThriftHiveMetastore_get_partitions_by_names_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1259 = 0; - $_etype1262 = 0; - $xfer += $input->readListBegin($_etype1262, $_size1259); - for ($_i1263 = 0; $_i1263 < $_size1259; ++$_i1263) + $_size1260 = 0; + $_etype1263 = 0; + $xfer += $input->readListBegin($_etype1263, $_size1260); + for ($_i1264 = 0; $_i1264 < $_size1260; ++$_i1264) { - $elem1264 = null; - $elem1264 = new \metastore\Partition(); - $xfer += $elem1264->read($input); - $this->success []= $elem1264; + $elem1265 = null; + $elem1265 = new \metastore\Partition(); + $xfer += $elem1265->read($input); + $this->success []= $elem1265; } $xfer += $input->readListEnd(); } else { @@ -35052,9 +35052,9 @@ class ThriftHiveMetastore_get_partitions_by_names_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1265) + foreach ($this->success as $iter1266) { - $xfer += $iter1265->write($output); + $xfer += $iter1266->write($output); } } $output->writeListEnd(); @@ -35393,15 +35393,15 @@ class ThriftHiveMetastore_alter_partitions_args { case 3: if ($ftype == TType::LST) { $this->new_parts = array(); - $_size1266 = 0; - $_etype1269 = 0; - $xfer += $input->readListBegin($_etype1269, $_size1266); - for ($_i1270 = 0; $_i1270 < $_size1266; ++$_i1270) + $_size1267 = 0; + $_etype1270 = 0; + $xfer += $input->readListBegin($_etype1270, $_size1267); + for ($_i1271 = 0; $_i1271 < $_size1267; ++$_i1271) { - $elem1271 = null; - $elem1271 = new \metastore\Partition(); - $xfer += $elem1271->read($input); - $this->new_parts []= $elem1271; + $elem1272 = null; + $elem1272 = new \metastore\Partition(); + $xfer += $elem1272->read($input); + $this->new_parts []= $elem1272; } $xfer += $input->readListEnd(); } else { @@ -35439,9 +35439,9 @@ class ThriftHiveMetastore_alter_partitions_args { { $output->writeListBegin(TType::STRUCT, count($this->new_parts)); { - foreach ($this->new_parts as $iter1272) + foreach ($this->new_parts as $iter1273) { - $xfer += $iter1272->write($output); + $xfer += $iter1273->write($output); } } $output->writeListEnd(); @@ -35656,15 +35656,15 @@ class ThriftHiveMetastore_alter_partitions_with_environment_context_args { case 3: if ($ftype == TType::LST) { $this->new_parts = array(); - $_size1273 = 0; - $_etype1276 = 0; - $xfer += $input->readListBegin($_etype1276, $_size1273); - for ($_i1277 = 0; $_i1277 < $_size1273; ++$_i1277) + $_size1274 = 0; + $_etype1277 = 0; + $xfer += $input->readListBegin($_etype1277, $_size1274); + for ($_i1278 = 0; $_i1278 < $_size1274; ++$_i1278) { - $elem1278 = null; - $elem1278 = new \metastore\Partition(); - $xfer += $elem1278->read($input); - $this->new_parts []= $elem1278; + $elem1279 = null; + $elem1279 = new \metastore\Partition(); + $xfer += $elem1279->read($input); + $this->new_parts []= $elem1279; } $xfer += $input->readListEnd(); } else { @@ -35710,9 +35710,9 @@ class ThriftHiveMetastore_alter_partitions_with_environment_context_args { { $output->writeListBegin(TType::STRUCT, count($this->new_parts)); { - foreach ($this->new_parts as $iter1279) + foreach ($this->new_parts as $iter1280) { - $xfer += $iter1279->write($output); + $xfer += $iter1280->write($output); } } $output->writeListEnd(); @@ -36400,14 +36400,14 @@ class ThriftHiveMetastore_rename_partition_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size1280 = 0; - $_etype1283 = 0; - $xfer += $input->readListBegin($_etype1283, $_size1280); - for ($_i1284 = 0; $_i1284 < $_size1280; ++$_i1284) + $_size1281 = 0; + $_etype1284 = 0; + $xfer += $input->readListBegin($_etype1284, $_size1281); + for ($_i1285 = 0; $_i1285 < $_size1281; ++$_i1285) { - $elem1285 = null; - $xfer += $input->readString($elem1285); - $this->part_vals []= $elem1285; + $elem1286 = null; + $xfer += $input->readString($elem1286); + $this->part_vals []= $elem1286; } $xfer += $input->readListEnd(); } else { @@ -36453,9 +36453,9 @@ class ThriftHiveMetastore_rename_partition_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1286) + foreach ($this->part_vals as $iter1287) { - $xfer += $output->writeString($iter1286); + $xfer += $output->writeString($iter1287); } } $output->writeListEnd(); @@ -36850,14 +36850,14 @@ class ThriftHiveMetastore_partition_name_has_valid_characters_args { case 1: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size1287 = 0; - $_etype1290 = 0; - $xfer += $input->readListBegin($_etype1290, $_size1287); - for ($_i1291 = 0; $_i1291 < $_size1287; ++$_i1291) + $_size1288 = 0; + $_etype1291 = 0; + $xfer += $input->readListBegin($_etype1291, $_size1288); + for ($_i1292 = 0; $_i1292 < $_size1288; ++$_i1292) { - $elem1292 = null; - $xfer += $input->readString($elem1292); - $this->part_vals []= $elem1292; + $elem1293 = null; + $xfer += $input->readString($elem1293); + $this->part_vals []= $elem1293; } $xfer += $input->readListEnd(); } else { @@ -36892,9 +36892,9 @@ class ThriftHiveMetastore_partition_name_has_valid_characters_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter1293) + foreach ($this->part_vals as $iter1294) { - $xfer += $output->writeString($iter1293); + $xfer += $output->writeString($iter1294); } } $output->writeListEnd(); @@ -37348,14 +37348,14 @@ class ThriftHiveMetastore_partition_name_to_vals_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1294 = 0; - $_etype1297 = 0; - $xfer += $input->readListBegin($_etype1297, $_size1294); - for ($_i1298 = 0; $_i1298 < $_size1294; ++$_i1298) + $_size1295 = 0; + $_etype1298 = 0; + $xfer += $input->readListBegin($_etype1298, $_size1295); + for ($_i1299 = 0; $_i1299 < $_size1295; ++$_i1299) { - $elem1299 = null; - $xfer += $input->readString($elem1299); - $this->success []= $elem1299; + $elem1300 = null; + $xfer += $input->readString($elem1300); + $this->success []= $elem1300; } $xfer += $input->readListEnd(); } else { @@ -37391,9 +37391,9 @@ class ThriftHiveMetastore_partition_name_to_vals_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1300) + foreach ($this->success as $iter1301) { - $xfer += $output->writeString($iter1300); + $xfer += $output->writeString($iter1301); } } $output->writeListEnd(); @@ -37553,17 +37553,17 @@ class ThriftHiveMetastore_partition_name_to_spec_result { case 0: if ($ftype == TType::MAP) { $this->success = array(); - $_size1301 = 0; - $_ktype1302 = 0; - $_vtype1303 = 0; - $xfer += $input->readMapBegin($_ktype1302, $_vtype1303, $_size1301); - for ($_i1305 = 0; $_i1305 < $_size1301; ++$_i1305) + $_size1302 = 0; + $_ktype1303 = 0; + $_vtype1304 = 0; + $xfer += $input->readMapBegin($_ktype1303, $_vtype1304, $_size1302); + for ($_i1306 = 0; $_i1306 < $_size1302; ++$_i1306) { - $key1306 = ''; - $val1307 = ''; - $xfer += $input->readString($key1306); - $xfer += $input->readString($val1307); - $this->success[$key1306] = $val1307; + $key1307 = ''; + $val1308 = ''; + $xfer += $input->readString($key1307); + $xfer += $input->readString($val1308); + $this->success[$key1307] = $val1308; } $xfer += $input->readMapEnd(); } else { @@ -37599,10 +37599,10 @@ class ThriftHiveMetastore_partition_name_to_spec_result { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->success)); { - foreach ($this->success as $kiter1308 => $viter1309) + foreach ($this->success as $kiter1309 => $viter1310) { - $xfer += $output->writeString($kiter1308); - $xfer += $output->writeString($viter1309); + $xfer += $output->writeString($kiter1309); + $xfer += $output->writeString($viter1310); } } $output->writeMapEnd(); @@ -37722,17 +37722,17 @@ class ThriftHiveMetastore_markPartitionForEvent_args { case 3: if ($ftype == TType::MAP) { $this->part_vals = array(); - $_size1310 = 0; - $_ktype1311 = 0; - $_vtype1312 = 0; - $xfer += $input->readMapBegin($_ktype1311, $_vtype1312, $_size1310); - for ($_i1314 = 0; $_i1314 < $_size1310; ++$_i1314) + $_size1311 = 0; + $_ktype1312 = 0; + $_vtype1313 = 0; + $xfer += $input->readMapBegin($_ktype1312, $_vtype1313, $_size1311); + for ($_i1315 = 0; $_i1315 < $_size1311; ++$_i1315) { - $key1315 = ''; - $val1316 = ''; - $xfer += $input->readString($key1315); - $xfer += $input->readString($val1316); - $this->part_vals[$key1315] = $val1316; + $key1316 = ''; + $val1317 = ''; + $xfer += $input->readString($key1316); + $xfer += $input->readString($val1317); + $this->part_vals[$key1316] = $val1317; } $xfer += $input->readMapEnd(); } else { @@ -37777,10 +37777,10 @@ class ThriftHiveMetastore_markPartitionForEvent_args { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $kiter1317 => $viter1318) + foreach ($this->part_vals as $kiter1318 => $viter1319) { - $xfer += $output->writeString($kiter1317); - $xfer += $output->writeString($viter1318); + $xfer += $output->writeString($kiter1318); + $xfer += $output->writeString($viter1319); } } $output->writeMapEnd(); @@ -38102,17 +38102,17 @@ class ThriftHiveMetastore_isPartitionMarkedForEvent_args { case 3: if ($ftype == TType::MAP) { $this->part_vals = array(); - $_size1319 = 0; - $_ktype1320 = 0; - $_vtype1321 = 0; - $xfer += $input->readMapBegin($_ktype1320, $_vtype1321, $_size1319); - for ($_i1323 = 0; $_i1323 < $_size1319; ++$_i1323) + $_size1320 = 0; + $_ktype1321 = 0; + $_vtype1322 = 0; + $xfer += $input->readMapBegin($_ktype1321, $_vtype1322, $_size1320); + for ($_i1324 = 0; $_i1324 < $_size1320; ++$_i1324) { - $key1324 = ''; - $val1325 = ''; - $xfer += $input->readString($key1324); - $xfer += $input->readString($val1325); - $this->part_vals[$key1324] = $val1325; + $key1325 = ''; + $val1326 = ''; + $xfer += $input->readString($key1325); + $xfer += $input->readString($val1326); + $this->part_vals[$key1325] = $val1326; } $xfer += $input->readMapEnd(); } else { @@ -38157,10 +38157,10 @@ class ThriftHiveMetastore_isPartitionMarkedForEvent_args { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $kiter1326 => $viter1327) + foreach ($this->part_vals as $kiter1327 => $viter1328) { - $xfer += $output->writeString($kiter1326); - $xfer += $output->writeString($viter1327); + $xfer += $output->writeString($kiter1327); + $xfer += $output->writeString($viter1328); } } $output->writeMapEnd(); @@ -43639,14 +43639,14 @@ class ThriftHiveMetastore_get_functions_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1328 = 0; - $_etype1331 = 0; - $xfer += $input->readListBegin($_etype1331, $_size1328); - for ($_i1332 = 0; $_i1332 < $_size1328; ++$_i1332) + $_size1329 = 0; + $_etype1332 = 0; + $xfer += $input->readListBegin($_etype1332, $_size1329); + for ($_i1333 = 0; $_i1333 < $_size1329; ++$_i1333) { - $elem1333 = null; - $xfer += $input->readString($elem1333); - $this->success []= $elem1333; + $elem1334 = null; + $xfer += $input->readString($elem1334); + $this->success []= $elem1334; } $xfer += $input->readListEnd(); } else { @@ -43682,9 +43682,9 @@ class ThriftHiveMetastore_get_functions_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1334) + foreach ($this->success as $iter1335) { - $xfer += $output->writeString($iter1334); + $xfer += $output->writeString($iter1335); } } $output->writeListEnd(); @@ -44553,14 +44553,14 @@ class ThriftHiveMetastore_get_role_names_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1335 = 0; - $_etype1338 = 0; - $xfer += $input->readListBegin($_etype1338, $_size1335); - for ($_i1339 = 0; $_i1339 < $_size1335; ++$_i1339) + $_size1336 = 0; + $_etype1339 = 0; + $xfer += $input->readListBegin($_etype1339, $_size1336); + for ($_i1340 = 0; $_i1340 < $_size1336; ++$_i1340) { - $elem1340 = null; - $xfer += $input->readString($elem1340); - $this->success []= $elem1340; + $elem1341 = null; + $xfer += $input->readString($elem1341); + $this->success []= $elem1341; } $xfer += $input->readListEnd(); } else { @@ -44596,9 +44596,9 @@ class ThriftHiveMetastore_get_role_names_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1341) + foreach ($this->success as $iter1342) { - $xfer += $output->writeString($iter1341); + $xfer += $output->writeString($iter1342); } } $output->writeListEnd(); @@ -45289,15 +45289,15 @@ class ThriftHiveMetastore_list_roles_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1342 = 0; - $_etype1345 = 0; - $xfer += $input->readListBegin($_etype1345, $_size1342); - for ($_i1346 = 0; $_i1346 < $_size1342; ++$_i1346) + $_size1343 = 0; + $_etype1346 = 0; + $xfer += $input->readListBegin($_etype1346, $_size1343); + for ($_i1347 = 0; $_i1347 < $_size1343; ++$_i1347) { - $elem1347 = null; - $elem1347 = new \metastore\Role(); - $xfer += $elem1347->read($input); - $this->success []= $elem1347; + $elem1348 = null; + $elem1348 = new \metastore\Role(); + $xfer += $elem1348->read($input); + $this->success []= $elem1348; } $xfer += $input->readListEnd(); } else { @@ -45333,9 +45333,9 @@ class ThriftHiveMetastore_list_roles_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1348) + foreach ($this->success as $iter1349) { - $xfer += $iter1348->write($output); + $xfer += $iter1349->write($output); } } $output->writeListEnd(); @@ -45997,14 +45997,14 @@ class ThriftHiveMetastore_get_privilege_set_args { case 3: if ($ftype == TType::LST) { $this->group_names = array(); - $_size1349 = 0; - $_etype1352 = 0; - $xfer += $input->readListBegin($_etype1352, $_size1349); - for ($_i1353 = 0; $_i1353 < $_size1349; ++$_i1353) + $_size1350 = 0; + $_etype1353 = 0; + $xfer += $input->readListBegin($_etype1353, $_size1350); + for ($_i1354 = 0; $_i1354 < $_size1350; ++$_i1354) { - $elem1354 = null; - $xfer += $input->readString($elem1354); - $this->group_names []= $elem1354; + $elem1355 = null; + $xfer += $input->readString($elem1355); + $this->group_names []= $elem1355; } $xfer += $input->readListEnd(); } else { @@ -46045,9 +46045,9 @@ class ThriftHiveMetastore_get_privilege_set_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter1355) + foreach ($this->group_names as $iter1356) { - $xfer += $output->writeString($iter1355); + $xfer += $output->writeString($iter1356); } } $output->writeListEnd(); @@ -46355,15 +46355,15 @@ class ThriftHiveMetastore_list_privileges_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1356 = 0; - $_etype1359 = 0; - $xfer += $input->readListBegin($_etype1359, $_size1356); - for ($_i1360 = 0; $_i1360 < $_size1356; ++$_i1360) + $_size1357 = 0; + $_etype1360 = 0; + $xfer += $input->readListBegin($_etype1360, $_size1357); + for ($_i1361 = 0; $_i1361 < $_size1357; ++$_i1361) { - $elem1361 = null; - $elem1361 = new \metastore\HiveObjectPrivilege(); - $xfer += $elem1361->read($input); - $this->success []= $elem1361; + $elem1362 = null; + $elem1362 = new \metastore\HiveObjectPrivilege(); + $xfer += $elem1362->read($input); + $this->success []= $elem1362; } $xfer += $input->readListEnd(); } else { @@ -46399,9 +46399,9 @@ class ThriftHiveMetastore_list_privileges_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1362) + foreach ($this->success as $iter1363) { - $xfer += $iter1362->write($output); + $xfer += $iter1363->write($output); } } $output->writeListEnd(); @@ -47269,14 +47269,14 @@ class ThriftHiveMetastore_set_ugi_args { case 2: if ($ftype == TType::LST) { $this->group_names = array(); - $_size1363 = 0; - $_etype1366 = 0; - $xfer += $input->readListBegin($_etype1366, $_size1363); - for ($_i1367 = 0; $_i1367 < $_size1363; ++$_i1367) + $_size1364 = 0; + $_etype1367 = 0; + $xfer += $input->readListBegin($_etype1367, $_size1364); + for ($_i1368 = 0; $_i1368 < $_size1364; ++$_i1368) { - $elem1368 = null; - $xfer += $input->readString($elem1368); - $this->group_names []= $elem1368; + $elem1369 = null; + $xfer += $input->readString($elem1369); + $this->group_names []= $elem1369; } $xfer += $input->readListEnd(); } else { @@ -47309,9 +47309,9 @@ class ThriftHiveMetastore_set_ugi_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter1369) + foreach ($this->group_names as $iter1370) { - $xfer += $output->writeString($iter1369); + $xfer += $output->writeString($iter1370); } } $output->writeListEnd(); @@ -47387,14 +47387,14 @@ class ThriftHiveMetastore_set_ugi_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1370 = 0; - $_etype1373 = 0; - $xfer += $input->readListBegin($_etype1373, $_size1370); - for ($_i1374 = 0; $_i1374 < $_size1370; ++$_i1374) + $_size1371 = 0; + $_etype1374 = 0; + $xfer += $input->readListBegin($_etype1374, $_size1371); + for ($_i1375 = 0; $_i1375 < $_size1371; ++$_i1375) { - $elem1375 = null; - $xfer += $input->readString($elem1375); - $this->success []= $elem1375; + $elem1376 = null; + $xfer += $input->readString($elem1376); + $this->success []= $elem1376; } $xfer += $input->readListEnd(); } else { @@ -47430,9 +47430,9 @@ class ThriftHiveMetastore_set_ugi_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1376) + foreach ($this->success as $iter1377) { - $xfer += $output->writeString($iter1376); + $xfer += $output->writeString($iter1377); } } $output->writeListEnd(); @@ -48549,14 +48549,14 @@ class ThriftHiveMetastore_get_all_token_identifiers_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1377 = 0; - $_etype1380 = 0; - $xfer += $input->readListBegin($_etype1380, $_size1377); - for ($_i1381 = 0; $_i1381 < $_size1377; ++$_i1381) + $_size1378 = 0; + $_etype1381 = 0; + $xfer += $input->readListBegin($_etype1381, $_size1378); + for ($_i1382 = 0; $_i1382 < $_size1378; ++$_i1382) { - $elem1382 = null; - $xfer += $input->readString($elem1382); - $this->success []= $elem1382; + $elem1383 = null; + $xfer += $input->readString($elem1383); + $this->success []= $elem1383; } $xfer += $input->readListEnd(); } else { @@ -48584,9 +48584,9 @@ class ThriftHiveMetastore_get_all_token_identifiers_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1383) + foreach ($this->success as $iter1384) { - $xfer += $output->writeString($iter1383); + $xfer += $output->writeString($iter1384); } } $output->writeListEnd(); @@ -49225,14 +49225,14 @@ class ThriftHiveMetastore_get_master_keys_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1384 = 0; - $_etype1387 = 0; - $xfer += $input->readListBegin($_etype1387, $_size1384); - for ($_i1388 = 0; $_i1388 < $_size1384; ++$_i1388) + $_size1385 = 0; + $_etype1388 = 0; + $xfer += $input->readListBegin($_etype1388, $_size1385); + for ($_i1389 = 0; $_i1389 < $_size1385; ++$_i1389) { - $elem1389 = null; - $xfer += $input->readString($elem1389); - $this->success []= $elem1389; + $elem1390 = null; + $xfer += $input->readString($elem1390); + $this->success []= $elem1390; } $xfer += $input->readListEnd(); } else { @@ -49260,9 +49260,9 @@ class ThriftHiveMetastore_get_master_keys_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1390) + foreach ($this->success as $iter1391) { - $xfer += $output->writeString($iter1390); + $xfer += $output->writeString($iter1391); } } $output->writeListEnd(); @@ -53016,14 +53016,14 @@ class ThriftHiveMetastore_find_columns_with_stats_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1391 = 0; - $_etype1394 = 0; - $xfer += $input->readListBegin($_etype1394, $_size1391); - for ($_i1395 = 0; $_i1395 < $_size1391; ++$_i1395) + $_size1392 = 0; + $_etype1395 = 0; + $xfer += $input->readListBegin($_etype1395, $_size1392); + for ($_i1396 = 0; $_i1396 < $_size1392; ++$_i1396) { - $elem1396 = null; - $xfer += $input->readString($elem1396); - $this->success []= $elem1396; + $elem1397 = null; + $xfer += $input->readString($elem1397); + $this->success []= $elem1397; } $xfer += $input->readListEnd(); } else { @@ -53051,9 +53051,9 @@ class ThriftHiveMetastore_find_columns_with_stats_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1397) + foreach ($this->success as $iter1398) { - $xfer += $output->writeString($iter1397); + $xfer += $output->writeString($iter1398); } } $output->writeListEnd(); @@ -61224,15 +61224,15 @@ class ThriftHiveMetastore_get_schema_all_versions_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1398 = 0; - $_etype1401 = 0; - $xfer += $input->readListBegin($_etype1401, $_size1398); - for ($_i1402 = 0; $_i1402 < $_size1398; ++$_i1402) + $_size1399 = 0; + $_etype1402 = 0; + $xfer += $input->readListBegin($_etype1402, $_size1399); + for ($_i1403 = 0; $_i1403 < $_size1399; ++$_i1403) { - $elem1403 = null; - $elem1403 = new \metastore\SchemaVersion(); - $xfer += $elem1403->read($input); - $this->success []= $elem1403; + $elem1404 = null; + $elem1404 = new \metastore\SchemaVersion(); + $xfer += $elem1404->read($input); + $this->success []= $elem1404; } $xfer += $input->readListEnd(); } else { @@ -61276,9 +61276,9 @@ class ThriftHiveMetastore_get_schema_all_versions_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1404) + foreach ($this->success as $iter1405) { - $xfer += $iter1404->write($output); + $xfer += $iter1405->write($output); } } $output->writeListEnd(); @@ -63147,15 +63147,15 @@ class ThriftHiveMetastore_get_runtime_stats_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1405 = 0; - $_etype1408 = 0; - $xfer += $input->readListBegin($_etype1408, $_size1405); - for ($_i1409 = 0; $_i1409 < $_size1405; ++$_i1409) + $_size1406 = 0; + $_etype1409 = 0; + $xfer += $input->readListBegin($_etype1409, $_size1406); + for ($_i1410 = 0; $_i1410 < $_size1406; ++$_i1410) { - $elem1410 = null; - $elem1410 = new \metastore\RuntimeStat(); - $xfer += $elem1410->read($input); - $this->success []= $elem1410; + $elem1411 = null; + $elem1411 = new \metastore\RuntimeStat(); + $xfer += $elem1411->read($input); + $this->success []= $elem1411; } $xfer += $input->readListEnd(); } else { @@ -63191,9 +63191,9 @@ class ThriftHiveMetastore_get_runtime_stats_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1411) + foreach ($this->success as $iter1412) { - $xfer += $iter1411->write($output); + $xfer += $iter1412->write($output); } } $output->writeListEnd(); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-php/metastore/Types.php standalone-metastore/metastore-common/src/gen/thrift/gen-php/metastore/Types.php index dc5f7ce844..06400c2768 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-php/metastore/Types.php +++ standalone-metastore/metastore-common/src/gen/thrift/gen-php/metastore/Types.php @@ -18706,10 +18706,6 @@ class AllocateTableWriteIdsRequest { * @var \metastore\TxnToWriteId[] */ public $srcTxnToWriteIdList = null; - /** - * @var bool - */ - public $dynamicPartitions = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { @@ -18743,10 +18739,6 @@ class AllocateTableWriteIdsRequest { 'class' => '\metastore\TxnToWriteId', ), ), - 6 => array( - 'var' => 'dynamicPartitions', - 'type' => TType::BOOL, - ), ); } if (is_array($vals)) { @@ -18765,9 +18757,6 @@ class AllocateTableWriteIdsRequest { if (isset($vals['srcTxnToWriteIdList'])) { $this->srcTxnToWriteIdList = $vals['srcTxnToWriteIdList']; } - if (isset($vals['dynamicPartitions'])) { - $this->dynamicPartitions = $vals['dynamicPartitions']; - } } } @@ -18846,13 +18835,6 @@ class AllocateTableWriteIdsRequest { $xfer += $input->skip($ftype); } break; - case 6: - if ($ftype == TType::BOOL) { - $xfer += $input->readBool($this->dynamicPartitions); - } else { - $xfer += $input->skip($ftype); - } - break; default: $xfer += $input->skip($ftype); break; @@ -18915,11 +18897,6 @@ class AllocateTableWriteIdsRequest { } $xfer += $output->writeFieldEnd(); } - if ($this->dynamicPartitions !== null) { - $xfer += $output->writeFieldBegin('dynamicPartitions', TType::BOOL, 6); - $xfer += $output->writeBool($this->dynamicPartitions); - $xfer += $output->writeFieldEnd(); - } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; @@ -21295,7 +21272,7 @@ class CompactionInfoStruct { ), 13 => array( 'var' => 'writeIds', - 'type' => TType::LST, + 'type' => TType::SET, 'etype' => TType::I64, 'elem' => array( 'type' => TType::I64, @@ -21450,18 +21427,22 @@ class CompactionInfoStruct { } break; case 13: - if ($ftype == TType::LST) { + if ($ftype == TType::SET) { $this->writeIds = array(); $_size632 = 0; $_etype635 = 0; - $xfer += $input->readListBegin($_etype635, $_size632); + $xfer += $input->readSetBegin($_etype635, $_size632); for ($_i636 = 0; $_i636 < $_size632; ++$_i636) { $elem637 = null; $xfer += $input->readI64($elem637); - $this->writeIds []= $elem637; + if (is_scalar($elem637)) { + $this->writeIds[$elem637] = true; + } else { + $this->writeIds []= $elem637; + } } - $xfer += $input->readListEnd(); + $xfer += $input->readSetEnd(); } else { $xfer += $input->skip($ftype); } @@ -21543,16 +21524,20 @@ class CompactionInfoStruct { if (!is_array($this->writeIds)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } - $xfer += $output->writeFieldBegin('writeIds', TType::LST, 13); + $xfer += $output->writeFieldBegin('writeIds', TType::SET, 13); { - $output->writeListBegin(TType::I64, count($this->writeIds)); + $output->writeSetBegin(TType::I64, count($this->writeIds)); { - foreach ($this->writeIds as $iter638) + foreach ($this->writeIds as $iter638 => $iter639) { + if (is_scalar($iter639)) { $xfer += $output->writeI64($iter638); + } else { + $xfer += $output->writeI64($iter639); + } } } - $output->writeListEnd(); + $output->writeSetEnd(); } $xfer += $output->writeFieldEnd(); } @@ -22136,15 +22121,15 @@ class ShowCompactResponse { case 1: if ($ftype == TType::LST) { $this->compacts = array(); - $_size639 = 0; - $_etype642 = 0; - $xfer += $input->readListBegin($_etype642, $_size639); - for ($_i643 = 0; $_i643 < $_size639; ++$_i643) + $_size640 = 0; + $_etype643 = 0; + $xfer += $input->readListBegin($_etype643, $_size640); + for ($_i644 = 0; $_i644 < $_size640; ++$_i644) { - $elem644 = null; - $elem644 = new \metastore\ShowCompactResponseElement(); - $xfer += $elem644->read($input); - $this->compacts []= $elem644; + $elem645 = null; + $elem645 = new \metastore\ShowCompactResponseElement(); + $xfer += $elem645->read($input); + $this->compacts []= $elem645; } $xfer += $input->readListEnd(); } else { @@ -22172,9 +22157,9 @@ class ShowCompactResponse { { $output->writeListBegin(TType::STRUCT, count($this->compacts)); { - foreach ($this->compacts as $iter645) + foreach ($this->compacts as $iter646) { - $xfer += $iter645->write($output); + $xfer += $iter646->write($output); } } $output->writeListEnd(); @@ -22321,14 +22306,14 @@ class AddDynamicPartitions { case 5: if ($ftype == TType::LST) { $this->partitionnames = array(); - $_size646 = 0; - $_etype649 = 0; - $xfer += $input->readListBegin($_etype649, $_size646); - for ($_i650 = 0; $_i650 < $_size646; ++$_i650) + $_size647 = 0; + $_etype650 = 0; + $xfer += $input->readListBegin($_etype650, $_size647); + for ($_i651 = 0; $_i651 < $_size647; ++$_i651) { - $elem651 = null; - $xfer += $input->readString($elem651); - $this->partitionnames []= $elem651; + $elem652 = null; + $xfer += $input->readString($elem652); + $this->partitionnames []= $elem652; } $xfer += $input->readListEnd(); } else { @@ -22383,9 +22368,9 @@ class AddDynamicPartitions { { $output->writeListBegin(TType::STRING, count($this->partitionnames)); { - foreach ($this->partitionnames as $iter652) + foreach ($this->partitionnames as $iter653) { - $xfer += $output->writeString($iter652); + $xfer += $output->writeString($iter653); } } $output->writeListEnd(); @@ -22720,17 +22705,17 @@ class CreationMetadata { case 4: if ($ftype == TType::SET) { $this->tablesUsed = array(); - $_size653 = 0; - $_etype656 = 0; - $xfer += $input->readSetBegin($_etype656, $_size653); - for ($_i657 = 0; $_i657 < $_size653; ++$_i657) + $_size654 = 0; + $_etype657 = 0; + $xfer += $input->readSetBegin($_etype657, $_size654); + for ($_i658 = 0; $_i658 < $_size654; ++$_i658) { - $elem658 = null; - $xfer += $input->readString($elem658); - if (is_scalar($elem658)) { - $this->tablesUsed[$elem658] = true; + $elem659 = null; + $xfer += $input->readString($elem659); + if (is_scalar($elem659)) { + $this->tablesUsed[$elem659] = true; } else { - $this->tablesUsed []= $elem658; + $this->tablesUsed []= $elem659; } } $xfer += $input->readSetEnd(); @@ -22788,12 +22773,12 @@ class CreationMetadata { { $output->writeSetBegin(TType::STRING, count($this->tablesUsed)); { - foreach ($this->tablesUsed as $iter659 => $iter660) + foreach ($this->tablesUsed as $iter660 => $iter661) { - if (is_scalar($iter660)) { - $xfer += $output->writeString($iter659); - } else { + if (is_scalar($iter661)) { $xfer += $output->writeString($iter660); + } else { + $xfer += $output->writeString($iter661); } } } @@ -22904,14 +22889,14 @@ class NotificationEventRequest { case 3: if ($ftype == TType::LST) { $this->eventTypeSkipList = array(); - $_size661 = 0; - $_etype664 = 0; - $xfer += $input->readListBegin($_etype664, $_size661); - for ($_i665 = 0; $_i665 < $_size661; ++$_i665) + $_size662 = 0; + $_etype665 = 0; + $xfer += $input->readListBegin($_etype665, $_size662); + for ($_i666 = 0; $_i666 < $_size662; ++$_i666) { - $elem666 = null; - $xfer += $input->readString($elem666); - $this->eventTypeSkipList []= $elem666; + $elem667 = null; + $xfer += $input->readString($elem667); + $this->eventTypeSkipList []= $elem667; } $xfer += $input->readListEnd(); } else { @@ -22949,9 +22934,9 @@ class NotificationEventRequest { { $output->writeListBegin(TType::STRING, count($this->eventTypeSkipList)); { - foreach ($this->eventTypeSkipList as $iter667) + foreach ($this->eventTypeSkipList as $iter668) { - $xfer += $output->writeString($iter667); + $xfer += $output->writeString($iter668); } } $output->writeListEnd(); @@ -23252,15 +23237,15 @@ class NotificationEventResponse { case 1: if ($ftype == TType::LST) { $this->events = array(); - $_size668 = 0; - $_etype671 = 0; - $xfer += $input->readListBegin($_etype671, $_size668); - for ($_i672 = 0; $_i672 < $_size668; ++$_i672) + $_size669 = 0; + $_etype672 = 0; + $xfer += $input->readListBegin($_etype672, $_size669); + for ($_i673 = 0; $_i673 < $_size669; ++$_i673) { - $elem673 = null; - $elem673 = new \metastore\NotificationEvent(); - $xfer += $elem673->read($input); - $this->events []= $elem673; + $elem674 = null; + $elem674 = new \metastore\NotificationEvent(); + $xfer += $elem674->read($input); + $this->events []= $elem674; } $xfer += $input->readListEnd(); } else { @@ -23288,9 +23273,9 @@ class NotificationEventResponse { { $output->writeListBegin(TType::STRUCT, count($this->events)); { - foreach ($this->events as $iter674) + foreach ($this->events as $iter675) { - $xfer += $iter674->write($output); + $xfer += $iter675->write($output); } } $output->writeListEnd(); @@ -23719,14 +23704,14 @@ class InsertEventRequestData { case 2: if ($ftype == TType::LST) { $this->filesAdded = array(); - $_size675 = 0; - $_etype678 = 0; - $xfer += $input->readListBegin($_etype678, $_size675); - for ($_i679 = 0; $_i679 < $_size675; ++$_i679) + $_size676 = 0; + $_etype679 = 0; + $xfer += $input->readListBegin($_etype679, $_size676); + for ($_i680 = 0; $_i680 < $_size676; ++$_i680) { - $elem680 = null; - $xfer += $input->readString($elem680); - $this->filesAdded []= $elem680; + $elem681 = null; + $xfer += $input->readString($elem681); + $this->filesAdded []= $elem681; } $xfer += $input->readListEnd(); } else { @@ -23736,14 +23721,14 @@ class InsertEventRequestData { case 3: if ($ftype == TType::LST) { $this->filesAddedChecksum = array(); - $_size681 = 0; - $_etype684 = 0; - $xfer += $input->readListBegin($_etype684, $_size681); - for ($_i685 = 0; $_i685 < $_size681; ++$_i685) + $_size682 = 0; + $_etype685 = 0; + $xfer += $input->readListBegin($_etype685, $_size682); + for ($_i686 = 0; $_i686 < $_size682; ++$_i686) { - $elem686 = null; - $xfer += $input->readString($elem686); - $this->filesAddedChecksum []= $elem686; + $elem687 = null; + $xfer += $input->readString($elem687); + $this->filesAddedChecksum []= $elem687; } $xfer += $input->readListEnd(); } else { @@ -23753,14 +23738,14 @@ class InsertEventRequestData { case 4: if ($ftype == TType::LST) { $this->subDirectoryList = array(); - $_size687 = 0; - $_etype690 = 0; - $xfer += $input->readListBegin($_etype690, $_size687); - for ($_i691 = 0; $_i691 < $_size687; ++$_i691) + $_size688 = 0; + $_etype691 = 0; + $xfer += $input->readListBegin($_etype691, $_size688); + for ($_i692 = 0; $_i692 < $_size688; ++$_i692) { - $elem692 = null; - $xfer += $input->readString($elem692); - $this->subDirectoryList []= $elem692; + $elem693 = null; + $xfer += $input->readString($elem693); + $this->subDirectoryList []= $elem693; } $xfer += $input->readListEnd(); } else { @@ -23793,9 +23778,9 @@ class InsertEventRequestData { { $output->writeListBegin(TType::STRING, count($this->filesAdded)); { - foreach ($this->filesAdded as $iter693) + foreach ($this->filesAdded as $iter694) { - $xfer += $output->writeString($iter693); + $xfer += $output->writeString($iter694); } } $output->writeListEnd(); @@ -23810,9 +23795,9 @@ class InsertEventRequestData { { $output->writeListBegin(TType::STRING, count($this->filesAddedChecksum)); { - foreach ($this->filesAddedChecksum as $iter694) + foreach ($this->filesAddedChecksum as $iter695) { - $xfer += $output->writeString($iter694); + $xfer += $output->writeString($iter695); } } $output->writeListEnd(); @@ -23827,9 +23812,9 @@ class InsertEventRequestData { { $output->writeListBegin(TType::STRING, count($this->subDirectoryList)); { - foreach ($this->subDirectoryList as $iter695) + foreach ($this->subDirectoryList as $iter696) { - $xfer += $output->writeString($iter695); + $xfer += $output->writeString($iter696); } } $output->writeListEnd(); @@ -24058,14 +24043,14 @@ class FireEventRequest { case 5: if ($ftype == TType::LST) { $this->partitionVals = array(); - $_size696 = 0; - $_etype699 = 0; - $xfer += $input->readListBegin($_etype699, $_size696); - for ($_i700 = 0; $_i700 < $_size696; ++$_i700) + $_size697 = 0; + $_etype700 = 0; + $xfer += $input->readListBegin($_etype700, $_size697); + for ($_i701 = 0; $_i701 < $_size697; ++$_i701) { - $elem701 = null; - $xfer += $input->readString($elem701); - $this->partitionVals []= $elem701; + $elem702 = null; + $xfer += $input->readString($elem702); + $this->partitionVals []= $elem702; } $xfer += $input->readListEnd(); } else { @@ -24123,9 +24108,9 @@ class FireEventRequest { { $output->writeListBegin(TType::STRING, count($this->partitionVals)); { - foreach ($this->partitionVals as $iter702) + foreach ($this->partitionVals as $iter703) { - $xfer += $output->writeString($iter702); + $xfer += $output->writeString($iter703); } } $output->writeListEnd(); @@ -24336,14 +24321,14 @@ class WriteNotificationLogRequest { case 6: if ($ftype == TType::LST) { $this->partitionVals = array(); - $_size703 = 0; - $_etype706 = 0; - $xfer += $input->readListBegin($_etype706, $_size703); - for ($_i707 = 0; $_i707 < $_size703; ++$_i707) + $_size704 = 0; + $_etype707 = 0; + $xfer += $input->readListBegin($_etype707, $_size704); + for ($_i708 = 0; $_i708 < $_size704; ++$_i708) { - $elem708 = null; - $xfer += $input->readString($elem708); - $this->partitionVals []= $elem708; + $elem709 = null; + $xfer += $input->readString($elem709); + $this->partitionVals []= $elem709; } $xfer += $input->readListEnd(); } else { @@ -24399,9 +24384,9 @@ class WriteNotificationLogRequest { { $output->writeListBegin(TType::STRING, count($this->partitionVals)); { - foreach ($this->partitionVals as $iter709) + foreach ($this->partitionVals as $iter710) { - $xfer += $output->writeString($iter709); + $xfer += $output->writeString($iter710); } } $output->writeListEnd(); @@ -24629,18 +24614,18 @@ class GetFileMetadataByExprResult { case 1: if ($ftype == TType::MAP) { $this->metadata = array(); - $_size710 = 0; - $_ktype711 = 0; - $_vtype712 = 0; - $xfer += $input->readMapBegin($_ktype711, $_vtype712, $_size710); - for ($_i714 = 0; $_i714 < $_size710; ++$_i714) + $_size711 = 0; + $_ktype712 = 0; + $_vtype713 = 0; + $xfer += $input->readMapBegin($_ktype712, $_vtype713, $_size711); + for ($_i715 = 0; $_i715 < $_size711; ++$_i715) { - $key715 = 0; - $val716 = new \metastore\MetadataPpdResult(); - $xfer += $input->readI64($key715); - $val716 = new \metastore\MetadataPpdResult(); - $xfer += $val716->read($input); - $this->metadata[$key715] = $val716; + $key716 = 0; + $val717 = new \metastore\MetadataPpdResult(); + $xfer += $input->readI64($key716); + $val717 = new \metastore\MetadataPpdResult(); + $xfer += $val717->read($input); + $this->metadata[$key716] = $val717; } $xfer += $input->readMapEnd(); } else { @@ -24675,10 +24660,10 @@ class GetFileMetadataByExprResult { { $output->writeMapBegin(TType::I64, TType::STRUCT, count($this->metadata)); { - foreach ($this->metadata as $kiter717 => $viter718) + foreach ($this->metadata as $kiter718 => $viter719) { - $xfer += $output->writeI64($kiter717); - $xfer += $viter718->write($output); + $xfer += $output->writeI64($kiter718); + $xfer += $viter719->write($output); } } $output->writeMapEnd(); @@ -24780,14 +24765,14 @@ class GetFileMetadataByExprRequest { case 1: if ($ftype == TType::LST) { $this->fileIds = array(); - $_size719 = 0; - $_etype722 = 0; - $xfer += $input->readListBegin($_etype722, $_size719); - for ($_i723 = 0; $_i723 < $_size719; ++$_i723) + $_size720 = 0; + $_etype723 = 0; + $xfer += $input->readListBegin($_etype723, $_size720); + for ($_i724 = 0; $_i724 < $_size720; ++$_i724) { - $elem724 = null; - $xfer += $input->readI64($elem724); - $this->fileIds []= $elem724; + $elem725 = null; + $xfer += $input->readI64($elem725); + $this->fileIds []= $elem725; } $xfer += $input->readListEnd(); } else { @@ -24836,9 +24821,9 @@ class GetFileMetadataByExprRequest { { $output->writeListBegin(TType::I64, count($this->fileIds)); { - foreach ($this->fileIds as $iter725) + foreach ($this->fileIds as $iter726) { - $xfer += $output->writeI64($iter725); + $xfer += $output->writeI64($iter726); } } $output->writeListEnd(); @@ -24932,17 +24917,17 @@ class GetFileMetadataResult { case 1: if ($ftype == TType::MAP) { $this->metadata = array(); - $_size726 = 0; - $_ktype727 = 0; - $_vtype728 = 0; - $xfer += $input->readMapBegin($_ktype727, $_vtype728, $_size726); - for ($_i730 = 0; $_i730 < $_size726; ++$_i730) + $_size727 = 0; + $_ktype728 = 0; + $_vtype729 = 0; + $xfer += $input->readMapBegin($_ktype728, $_vtype729, $_size727); + for ($_i731 = 0; $_i731 < $_size727; ++$_i731) { - $key731 = 0; - $val732 = ''; - $xfer += $input->readI64($key731); - $xfer += $input->readString($val732); - $this->metadata[$key731] = $val732; + $key732 = 0; + $val733 = ''; + $xfer += $input->readI64($key732); + $xfer += $input->readString($val733); + $this->metadata[$key732] = $val733; } $xfer += $input->readMapEnd(); } else { @@ -24977,10 +24962,10 @@ class GetFileMetadataResult { { $output->writeMapBegin(TType::I64, TType::STRING, count($this->metadata)); { - foreach ($this->metadata as $kiter733 => $viter734) + foreach ($this->metadata as $kiter734 => $viter735) { - $xfer += $output->writeI64($kiter733); - $xfer += $output->writeString($viter734); + $xfer += $output->writeI64($kiter734); + $xfer += $output->writeString($viter735); } } $output->writeMapEnd(); @@ -25049,14 +25034,14 @@ class GetFileMetadataRequest { case 1: if ($ftype == TType::LST) { $this->fileIds = array(); - $_size735 = 0; - $_etype738 = 0; - $xfer += $input->readListBegin($_etype738, $_size735); - for ($_i739 = 0; $_i739 < $_size735; ++$_i739) + $_size736 = 0; + $_etype739 = 0; + $xfer += $input->readListBegin($_etype739, $_size736); + for ($_i740 = 0; $_i740 < $_size736; ++$_i740) { - $elem740 = null; - $xfer += $input->readI64($elem740); - $this->fileIds []= $elem740; + $elem741 = null; + $xfer += $input->readI64($elem741); + $this->fileIds []= $elem741; } $xfer += $input->readListEnd(); } else { @@ -25084,9 +25069,9 @@ class GetFileMetadataRequest { { $output->writeListBegin(TType::I64, count($this->fileIds)); { - foreach ($this->fileIds as $iter741) + foreach ($this->fileIds as $iter742) { - $xfer += $output->writeI64($iter741); + $xfer += $output->writeI64($iter742); } } $output->writeListEnd(); @@ -25226,14 +25211,14 @@ class PutFileMetadataRequest { case 1: if ($ftype == TType::LST) { $this->fileIds = array(); - $_size742 = 0; - $_etype745 = 0; - $xfer += $input->readListBegin($_etype745, $_size742); - for ($_i746 = 0; $_i746 < $_size742; ++$_i746) + $_size743 = 0; + $_etype746 = 0; + $xfer += $input->readListBegin($_etype746, $_size743); + for ($_i747 = 0; $_i747 < $_size743; ++$_i747) { - $elem747 = null; - $xfer += $input->readI64($elem747); - $this->fileIds []= $elem747; + $elem748 = null; + $xfer += $input->readI64($elem748); + $this->fileIds []= $elem748; } $xfer += $input->readListEnd(); } else { @@ -25243,14 +25228,14 @@ class PutFileMetadataRequest { case 2: if ($ftype == TType::LST) { $this->metadata = array(); - $_size748 = 0; - $_etype751 = 0; - $xfer += $input->readListBegin($_etype751, $_size748); - for ($_i752 = 0; $_i752 < $_size748; ++$_i752) + $_size749 = 0; + $_etype752 = 0; + $xfer += $input->readListBegin($_etype752, $_size749); + for ($_i753 = 0; $_i753 < $_size749; ++$_i753) { - $elem753 = null; - $xfer += $input->readString($elem753); - $this->metadata []= $elem753; + $elem754 = null; + $xfer += $input->readString($elem754); + $this->metadata []= $elem754; } $xfer += $input->readListEnd(); } else { @@ -25285,9 +25270,9 @@ class PutFileMetadataRequest { { $output->writeListBegin(TType::I64, count($this->fileIds)); { - foreach ($this->fileIds as $iter754) + foreach ($this->fileIds as $iter755) { - $xfer += $output->writeI64($iter754); + $xfer += $output->writeI64($iter755); } } $output->writeListEnd(); @@ -25302,9 +25287,9 @@ class PutFileMetadataRequest { { $output->writeListBegin(TType::STRING, count($this->metadata)); { - foreach ($this->metadata as $iter755) + foreach ($this->metadata as $iter756) { - $xfer += $output->writeString($iter755); + $xfer += $output->writeString($iter756); } } $output->writeListEnd(); @@ -25423,14 +25408,14 @@ class ClearFileMetadataRequest { case 1: if ($ftype == TType::LST) { $this->fileIds = array(); - $_size756 = 0; - $_etype759 = 0; - $xfer += $input->readListBegin($_etype759, $_size756); - for ($_i760 = 0; $_i760 < $_size756; ++$_i760) + $_size757 = 0; + $_etype760 = 0; + $xfer += $input->readListBegin($_etype760, $_size757); + for ($_i761 = 0; $_i761 < $_size757; ++$_i761) { - $elem761 = null; - $xfer += $input->readI64($elem761); - $this->fileIds []= $elem761; + $elem762 = null; + $xfer += $input->readI64($elem762); + $this->fileIds []= $elem762; } $xfer += $input->readListEnd(); } else { @@ -25458,9 +25443,9 @@ class ClearFileMetadataRequest { { $output->writeListBegin(TType::I64, count($this->fileIds)); { - foreach ($this->fileIds as $iter762) + foreach ($this->fileIds as $iter763) { - $xfer += $output->writeI64($iter762); + $xfer += $output->writeI64($iter763); } } $output->writeListEnd(); @@ -25744,15 +25729,15 @@ class GetAllFunctionsResponse { case 1: if ($ftype == TType::LST) { $this->functions = array(); - $_size763 = 0; - $_etype766 = 0; - $xfer += $input->readListBegin($_etype766, $_size763); - for ($_i767 = 0; $_i767 < $_size763; ++$_i767) + $_size764 = 0; + $_etype767 = 0; + $xfer += $input->readListBegin($_etype767, $_size764); + for ($_i768 = 0; $_i768 < $_size764; ++$_i768) { - $elem768 = null; - $elem768 = new \metastore\Function(); - $xfer += $elem768->read($input); - $this->functions []= $elem768; + $elem769 = null; + $elem769 = new \metastore\Function(); + $xfer += $elem769->read($input); + $this->functions []= $elem769; } $xfer += $input->readListEnd(); } else { @@ -25780,9 +25765,9 @@ class GetAllFunctionsResponse { { $output->writeListBegin(TType::STRUCT, count($this->functions)); { - foreach ($this->functions as $iter769) + foreach ($this->functions as $iter770) { - $xfer += $iter769->write($output); + $xfer += $iter770->write($output); } } $output->writeListEnd(); @@ -25846,14 +25831,14 @@ class ClientCapabilities { case 1: if ($ftype == TType::LST) { $this->values = array(); - $_size770 = 0; - $_etype773 = 0; - $xfer += $input->readListBegin($_etype773, $_size770); - for ($_i774 = 0; $_i774 < $_size770; ++$_i774) + $_size771 = 0; + $_etype774 = 0; + $xfer += $input->readListBegin($_etype774, $_size771); + for ($_i775 = 0; $_i775 < $_size771; ++$_i775) { - $elem775 = null; - $xfer += $input->readI32($elem775); - $this->values []= $elem775; + $elem776 = null; + $xfer += $input->readI32($elem776); + $this->values []= $elem776; } $xfer += $input->readListEnd(); } else { @@ -25881,9 +25866,9 @@ class ClientCapabilities { { $output->writeListBegin(TType::I32, count($this->values)); { - foreach ($this->values as $iter776) + foreach ($this->values as $iter777) { - $xfer += $output->writeI32($iter776); + $xfer += $output->writeI32($iter777); } } $output->writeListEnd(); @@ -26263,14 +26248,14 @@ class GetTablesRequest { case 2: if ($ftype == TType::LST) { $this->tblNames = array(); - $_size777 = 0; - $_etype780 = 0; - $xfer += $input->readListBegin($_etype780, $_size777); - for ($_i781 = 0; $_i781 < $_size777; ++$_i781) + $_size778 = 0; + $_etype781 = 0; + $xfer += $input->readListBegin($_etype781, $_size778); + for ($_i782 = 0; $_i782 < $_size778; ++$_i782) { - $elem782 = null; - $xfer += $input->readString($elem782); - $this->tblNames []= $elem782; + $elem783 = null; + $xfer += $input->readString($elem783); + $this->tblNames []= $elem783; } $xfer += $input->readListEnd(); } else { @@ -26318,9 +26303,9 @@ class GetTablesRequest { { $output->writeListBegin(TType::STRING, count($this->tblNames)); { - foreach ($this->tblNames as $iter783) + foreach ($this->tblNames as $iter784) { - $xfer += $output->writeString($iter783); + $xfer += $output->writeString($iter784); } } $output->writeListEnd(); @@ -26398,15 +26383,15 @@ class GetTablesResult { case 1: if ($ftype == TType::LST) { $this->tables = array(); - $_size784 = 0; - $_etype787 = 0; - $xfer += $input->readListBegin($_etype787, $_size784); - for ($_i788 = 0; $_i788 < $_size784; ++$_i788) + $_size785 = 0; + $_etype788 = 0; + $xfer += $input->readListBegin($_etype788, $_size785); + for ($_i789 = 0; $_i789 < $_size785; ++$_i789) { - $elem789 = null; - $elem789 = new \metastore\Table(); - $xfer += $elem789->read($input); - $this->tables []= $elem789; + $elem790 = null; + $elem790 = new \metastore\Table(); + $xfer += $elem790->read($input); + $this->tables []= $elem790; } $xfer += $input->readListEnd(); } else { @@ -26434,9 +26419,9 @@ class GetTablesResult { { $output->writeListBegin(TType::STRUCT, count($this->tables)); { - foreach ($this->tables as $iter790) + foreach ($this->tables as $iter791) { - $xfer += $iter790->write($output); + $xfer += $iter791->write($output); } } $output->writeListEnd(); @@ -28243,15 +28228,15 @@ class WMFullResourcePlan { case 2: if ($ftype == TType::LST) { $this->pools = array(); - $_size791 = 0; - $_etype794 = 0; - $xfer += $input->readListBegin($_etype794, $_size791); - for ($_i795 = 0; $_i795 < $_size791; ++$_i795) + $_size792 = 0; + $_etype795 = 0; + $xfer += $input->readListBegin($_etype795, $_size792); + for ($_i796 = 0; $_i796 < $_size792; ++$_i796) { - $elem796 = null; - $elem796 = new \metastore\WMPool(); - $xfer += $elem796->read($input); - $this->pools []= $elem796; + $elem797 = null; + $elem797 = new \metastore\WMPool(); + $xfer += $elem797->read($input); + $this->pools []= $elem797; } $xfer += $input->readListEnd(); } else { @@ -28261,15 +28246,15 @@ class WMFullResourcePlan { case 3: if ($ftype == TType::LST) { $this->mappings = array(); - $_size797 = 0; - $_etype800 = 0; - $xfer += $input->readListBegin($_etype800, $_size797); - for ($_i801 = 0; $_i801 < $_size797; ++$_i801) + $_size798 = 0; + $_etype801 = 0; + $xfer += $input->readListBegin($_etype801, $_size798); + for ($_i802 = 0; $_i802 < $_size798; ++$_i802) { - $elem802 = null; - $elem802 = new \metastore\WMMapping(); - $xfer += $elem802->read($input); - $this->mappings []= $elem802; + $elem803 = null; + $elem803 = new \metastore\WMMapping(); + $xfer += $elem803->read($input); + $this->mappings []= $elem803; } $xfer += $input->readListEnd(); } else { @@ -28279,15 +28264,15 @@ class WMFullResourcePlan { case 4: if ($ftype == TType::LST) { $this->triggers = array(); - $_size803 = 0; - $_etype806 = 0; - $xfer += $input->readListBegin($_etype806, $_size803); - for ($_i807 = 0; $_i807 < $_size803; ++$_i807) + $_size804 = 0; + $_etype807 = 0; + $xfer += $input->readListBegin($_etype807, $_size804); + for ($_i808 = 0; $_i808 < $_size804; ++$_i808) { - $elem808 = null; - $elem808 = new \metastore\WMTrigger(); - $xfer += $elem808->read($input); - $this->triggers []= $elem808; + $elem809 = null; + $elem809 = new \metastore\WMTrigger(); + $xfer += $elem809->read($input); + $this->triggers []= $elem809; } $xfer += $input->readListEnd(); } else { @@ -28297,15 +28282,15 @@ class WMFullResourcePlan { case 5: if ($ftype == TType::LST) { $this->poolTriggers = array(); - $_size809 = 0; - $_etype812 = 0; - $xfer += $input->readListBegin($_etype812, $_size809); - for ($_i813 = 0; $_i813 < $_size809; ++$_i813) + $_size810 = 0; + $_etype813 = 0; + $xfer += $input->readListBegin($_etype813, $_size810); + for ($_i814 = 0; $_i814 < $_size810; ++$_i814) { - $elem814 = null; - $elem814 = new \metastore\WMPoolTrigger(); - $xfer += $elem814->read($input); - $this->poolTriggers []= $elem814; + $elem815 = null; + $elem815 = new \metastore\WMPoolTrigger(); + $xfer += $elem815->read($input); + $this->poolTriggers []= $elem815; } $xfer += $input->readListEnd(); } else { @@ -28341,9 +28326,9 @@ class WMFullResourcePlan { { $output->writeListBegin(TType::STRUCT, count($this->pools)); { - foreach ($this->pools as $iter815) + foreach ($this->pools as $iter816) { - $xfer += $iter815->write($output); + $xfer += $iter816->write($output); } } $output->writeListEnd(); @@ -28358,9 +28343,9 @@ class WMFullResourcePlan { { $output->writeListBegin(TType::STRUCT, count($this->mappings)); { - foreach ($this->mappings as $iter816) + foreach ($this->mappings as $iter817) { - $xfer += $iter816->write($output); + $xfer += $iter817->write($output); } } $output->writeListEnd(); @@ -28375,9 +28360,9 @@ class WMFullResourcePlan { { $output->writeListBegin(TType::STRUCT, count($this->triggers)); { - foreach ($this->triggers as $iter817) + foreach ($this->triggers as $iter818) { - $xfer += $iter817->write($output); + $xfer += $iter818->write($output); } } $output->writeListEnd(); @@ -28392,9 +28377,9 @@ class WMFullResourcePlan { { $output->writeListBegin(TType::STRUCT, count($this->poolTriggers)); { - foreach ($this->poolTriggers as $iter818) + foreach ($this->poolTriggers as $iter819) { - $xfer += $iter818->write($output); + $xfer += $iter819->write($output); } } $output->writeListEnd(); @@ -29020,15 +29005,15 @@ class WMGetAllResourcePlanResponse { case 1: if ($ftype == TType::LST) { $this->resourcePlans = array(); - $_size819 = 0; - $_etype822 = 0; - $xfer += $input->readListBegin($_etype822, $_size819); - for ($_i823 = 0; $_i823 < $_size819; ++$_i823) + $_size820 = 0; + $_etype823 = 0; + $xfer += $input->readListBegin($_etype823, $_size820); + for ($_i824 = 0; $_i824 < $_size820; ++$_i824) { - $elem824 = null; - $elem824 = new \metastore\WMResourcePlan(); - $xfer += $elem824->read($input); - $this->resourcePlans []= $elem824; + $elem825 = null; + $elem825 = new \metastore\WMResourcePlan(); + $xfer += $elem825->read($input); + $this->resourcePlans []= $elem825; } $xfer += $input->readListEnd(); } else { @@ -29056,9 +29041,9 @@ class WMGetAllResourcePlanResponse { { $output->writeListBegin(TType::STRUCT, count($this->resourcePlans)); { - foreach ($this->resourcePlans as $iter825) + foreach ($this->resourcePlans as $iter826) { - $xfer += $iter825->write($output); + $xfer += $iter826->write($output); } } $output->writeListEnd(); @@ -29510,14 +29495,14 @@ class WMValidateResourcePlanResponse { case 1: if ($ftype == TType::LST) { $this->errors = array(); - $_size826 = 0; - $_etype829 = 0; - $xfer += $input->readListBegin($_etype829, $_size826); - for ($_i830 = 0; $_i830 < $_size826; ++$_i830) + $_size827 = 0; + $_etype830 = 0; + $xfer += $input->readListBegin($_etype830, $_size827); + for ($_i831 = 0; $_i831 < $_size827; ++$_i831) { - $elem831 = null; - $xfer += $input->readString($elem831); - $this->errors []= $elem831; + $elem832 = null; + $xfer += $input->readString($elem832); + $this->errors []= $elem832; } $xfer += $input->readListEnd(); } else { @@ -29527,14 +29512,14 @@ class WMValidateResourcePlanResponse { case 2: if ($ftype == TType::LST) { $this->warnings = array(); - $_size832 = 0; - $_etype835 = 0; - $xfer += $input->readListBegin($_etype835, $_size832); - for ($_i836 = 0; $_i836 < $_size832; ++$_i836) + $_size833 = 0; + $_etype836 = 0; + $xfer += $input->readListBegin($_etype836, $_size833); + for ($_i837 = 0; $_i837 < $_size833; ++$_i837) { - $elem837 = null; - $xfer += $input->readString($elem837); - $this->warnings []= $elem837; + $elem838 = null; + $xfer += $input->readString($elem838); + $this->warnings []= $elem838; } $xfer += $input->readListEnd(); } else { @@ -29562,9 +29547,9 @@ class WMValidateResourcePlanResponse { { $output->writeListBegin(TType::STRING, count($this->errors)); { - foreach ($this->errors as $iter838) + foreach ($this->errors as $iter839) { - $xfer += $output->writeString($iter838); + $xfer += $output->writeString($iter839); } } $output->writeListEnd(); @@ -29579,9 +29564,9 @@ class WMValidateResourcePlanResponse { { $output->writeListBegin(TType::STRING, count($this->warnings)); { - foreach ($this->warnings as $iter839) + foreach ($this->warnings as $iter840) { - $xfer += $output->writeString($iter839); + $xfer += $output->writeString($iter840); } } $output->writeListEnd(); @@ -30323,15 +30308,15 @@ class WMGetTriggersForResourePlanResponse { case 1: if ($ftype == TType::LST) { $this->triggers = array(); - $_size840 = 0; - $_etype843 = 0; - $xfer += $input->readListBegin($_etype843, $_size840); - for ($_i844 = 0; $_i844 < $_size840; ++$_i844) + $_size841 = 0; + $_etype844 = 0; + $xfer += $input->readListBegin($_etype844, $_size841); + for ($_i845 = 0; $_i845 < $_size841; ++$_i845) { - $elem845 = null; - $elem845 = new \metastore\WMTrigger(); - $xfer += $elem845->read($input); - $this->triggers []= $elem845; + $elem846 = null; + $elem846 = new \metastore\WMTrigger(); + $xfer += $elem846->read($input); + $this->triggers []= $elem846; } $xfer += $input->readListEnd(); } else { @@ -30359,9 +30344,9 @@ class WMGetTriggersForResourePlanResponse { { $output->writeListBegin(TType::STRUCT, count($this->triggers)); { - foreach ($this->triggers as $iter846) + foreach ($this->triggers as $iter847) { - $xfer += $iter846->write($output); + $xfer += $iter847->write($output); } } $output->writeListEnd(); @@ -31991,15 +31976,15 @@ class SchemaVersion { case 4: if ($ftype == TType::LST) { $this->cols = array(); - $_size847 = 0; - $_etype850 = 0; - $xfer += $input->readListBegin($_etype850, $_size847); - for ($_i851 = 0; $_i851 < $_size847; ++$_i851) + $_size848 = 0; + $_etype851 = 0; + $xfer += $input->readListBegin($_etype851, $_size848); + for ($_i852 = 0; $_i852 < $_size848; ++$_i852) { - $elem852 = null; - $elem852 = new \metastore\FieldSchema(); - $xfer += $elem852->read($input); - $this->cols []= $elem852; + $elem853 = null; + $elem853 = new \metastore\FieldSchema(); + $xfer += $elem853->read($input); + $this->cols []= $elem853; } $xfer += $input->readListEnd(); } else { @@ -32088,9 +32073,9 @@ class SchemaVersion { { $output->writeListBegin(TType::STRUCT, count($this->cols)); { - foreach ($this->cols as $iter853) + foreach ($this->cols as $iter854) { - $xfer += $iter853->write($output); + $xfer += $iter854->write($output); } } $output->writeListEnd(); @@ -32412,15 +32397,15 @@ class FindSchemasByColsResp { case 1: if ($ftype == TType::LST) { $this->schemaVersions = array(); - $_size854 = 0; - $_etype857 = 0; - $xfer += $input->readListBegin($_etype857, $_size854); - for ($_i858 = 0; $_i858 < $_size854; ++$_i858) + $_size855 = 0; + $_etype858 = 0; + $xfer += $input->readListBegin($_etype858, $_size855); + for ($_i859 = 0; $_i859 < $_size855; ++$_i859) { - $elem859 = null; - $elem859 = new \metastore\SchemaVersionDescriptor(); - $xfer += $elem859->read($input); - $this->schemaVersions []= $elem859; + $elem860 = null; + $elem860 = new \metastore\SchemaVersionDescriptor(); + $xfer += $elem860->read($input); + $this->schemaVersions []= $elem860; } $xfer += $input->readListEnd(); } else { @@ -32448,9 +32433,9 @@ class FindSchemasByColsResp { { $output->writeListBegin(TType::STRUCT, count($this->schemaVersions)); { - foreach ($this->schemaVersions as $iter860) + foreach ($this->schemaVersions as $iter861) { - $xfer += $iter860->write($output); + $xfer += $iter861->write($output); } } $output->writeListEnd(); @@ -33103,15 +33088,15 @@ class AlterPartitionsRequest { case 4: if ($ftype == TType::LST) { $this->partitions = array(); - $_size861 = 0; - $_etype864 = 0; - $xfer += $input->readListBegin($_etype864, $_size861); - for ($_i865 = 0; $_i865 < $_size861; ++$_i865) + $_size862 = 0; + $_etype865 = 0; + $xfer += $input->readListBegin($_etype865, $_size862); + for ($_i866 = 0; $_i866 < $_size862; ++$_i866) { - $elem866 = null; - $elem866 = new \metastore\Partition(); - $xfer += $elem866->read($input); - $this->partitions []= $elem866; + $elem867 = null; + $elem867 = new \metastore\Partition(); + $xfer += $elem867->read($input); + $this->partitions []= $elem867; } $xfer += $input->readListEnd(); } else { @@ -33176,9 +33161,9 @@ class AlterPartitionsRequest { { $output->writeListBegin(TType::STRUCT, count($this->partitions)); { - foreach ($this->partitions as $iter867) + foreach ($this->partitions as $iter868) { - $xfer += $iter867->write($output); + $xfer += $iter868->write($output); } } $output->writeListEnd(); @@ -33387,14 +33372,14 @@ class RenamePartitionRequest { case 4: if ($ftype == TType::LST) { $this->partVals = array(); - $_size868 = 0; - $_etype871 = 0; - $xfer += $input->readListBegin($_etype871, $_size868); - for ($_i872 = 0; $_i872 < $_size868; ++$_i872) + $_size869 = 0; + $_etype872 = 0; + $xfer += $input->readListBegin($_etype872, $_size869); + for ($_i873 = 0; $_i873 < $_size869; ++$_i873) { - $elem873 = null; - $xfer += $input->readString($elem873); - $this->partVals []= $elem873; + $elem874 = null; + $xfer += $input->readString($elem874); + $this->partVals []= $elem874; } $xfer += $input->readListEnd(); } else { @@ -33452,9 +33437,9 @@ class RenamePartitionRequest { { $output->writeListBegin(TType::STRING, count($this->partVals)); { - foreach ($this->partVals as $iter874) + foreach ($this->partVals as $iter875) { - $xfer += $output->writeString($iter874); + $xfer += $output->writeString($iter875); } } $output->writeListEnd(); @@ -33876,14 +33861,14 @@ class GetPartitionsProjectionSpec { case 1: if ($ftype == TType::LST) { $this->fieldList = array(); - $_size875 = 0; - $_etype878 = 0; - $xfer += $input->readListBegin($_etype878, $_size875); - for ($_i879 = 0; $_i879 < $_size875; ++$_i879) + $_size876 = 0; + $_etype879 = 0; + $xfer += $input->readListBegin($_etype879, $_size876); + for ($_i880 = 0; $_i880 < $_size876; ++$_i880) { - $elem880 = null; - $xfer += $input->readString($elem880); - $this->fieldList []= $elem880; + $elem881 = null; + $xfer += $input->readString($elem881); + $this->fieldList []= $elem881; } $xfer += $input->readListEnd(); } else { @@ -33925,9 +33910,9 @@ class GetPartitionsProjectionSpec { { $output->writeListBegin(TType::STRING, count($this->fieldList)); { - foreach ($this->fieldList as $iter881) + foreach ($this->fieldList as $iter882) { - $xfer += $output->writeString($iter881); + $xfer += $output->writeString($iter882); } } $output->writeListEnd(); @@ -34019,14 +34004,14 @@ class GetPartitionsFilterSpec { case 8: if ($ftype == TType::LST) { $this->filters = array(); - $_size882 = 0; - $_etype885 = 0; - $xfer += $input->readListBegin($_etype885, $_size882); - for ($_i886 = 0; $_i886 < $_size882; ++$_i886) + $_size883 = 0; + $_etype886 = 0; + $xfer += $input->readListBegin($_etype886, $_size883); + for ($_i887 = 0; $_i887 < $_size883; ++$_i887) { - $elem887 = null; - $xfer += $input->readString($elem887); - $this->filters []= $elem887; + $elem888 = null; + $xfer += $input->readString($elem888); + $this->filters []= $elem888; } $xfer += $input->readListEnd(); } else { @@ -34059,9 +34044,9 @@ class GetPartitionsFilterSpec { { $output->writeListBegin(TType::STRING, count($this->filters)); { - foreach ($this->filters as $iter888) + foreach ($this->filters as $iter889) { - $xfer += $output->writeString($iter888); + $xfer += $output->writeString($iter889); } } $output->writeListEnd(); @@ -34126,15 +34111,15 @@ class GetPartitionsResponse { case 1: if ($ftype == TType::LST) { $this->partitionSpec = array(); - $_size889 = 0; - $_etype892 = 0; - $xfer += $input->readListBegin($_etype892, $_size889); - for ($_i893 = 0; $_i893 < $_size889; ++$_i893) + $_size890 = 0; + $_etype893 = 0; + $xfer += $input->readListBegin($_etype893, $_size890); + for ($_i894 = 0; $_i894 < $_size890; ++$_i894) { - $elem894 = null; - $elem894 = new \metastore\PartitionSpec(); - $xfer += $elem894->read($input); - $this->partitionSpec []= $elem894; + $elem895 = null; + $elem895 = new \metastore\PartitionSpec(); + $xfer += $elem895->read($input); + $this->partitionSpec []= $elem895; } $xfer += $input->readListEnd(); } else { @@ -34162,9 +34147,9 @@ class GetPartitionsResponse { { $output->writeListBegin(TType::STRUCT, count($this->partitionSpec)); { - foreach ($this->partitionSpec as $iter895) + foreach ($this->partitionSpec as $iter896) { - $xfer += $iter895->write($output); + $xfer += $iter896->write($output); } } $output->writeListEnd(); @@ -34342,14 +34327,14 @@ class GetPartitionsRequest { case 6: if ($ftype == TType::LST) { $this->groupNames = array(); - $_size896 = 0; - $_etype899 = 0; - $xfer += $input->readListBegin($_etype899, $_size896); - for ($_i900 = 0; $_i900 < $_size896; ++$_i900) + $_size897 = 0; + $_etype900 = 0; + $xfer += $input->readListBegin($_etype900, $_size897); + for ($_i901 = 0; $_i901 < $_size897; ++$_i901) { - $elem901 = null; - $xfer += $input->readString($elem901); - $this->groupNames []= $elem901; + $elem902 = null; + $xfer += $input->readString($elem902); + $this->groupNames []= $elem902; } $xfer += $input->readListEnd(); } else { @@ -34418,9 +34403,9 @@ class GetPartitionsRequest { { $output->writeListBegin(TType::STRING, count($this->groupNames)); { - foreach ($this->groupNames as $iter902) + foreach ($this->groupNames as $iter903) { - $xfer += $output->writeString($iter902); + $xfer += $output->writeString($iter903); } } $output->writeListEnd(); diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-py/hive_metastore/ttypes.py standalone-metastore/metastore-common/src/gen/thrift/gen-py/hive_metastore/ttypes.py index 21a8700206..7d6dc5e722 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-py/hive_metastore/ttypes.py +++ standalone-metastore/metastore-common/src/gen/thrift/gen-py/hive_metastore/ttypes.py @@ -13026,7 +13026,6 @@ class AllocateTableWriteIdsRequest: - txnIds - replPolicy - srcTxnToWriteIdList - - dynamicPartitions """ thrift_spec = ( @@ -13036,16 +13035,14 @@ class AllocateTableWriteIdsRequest: (3, TType.LIST, 'txnIds', (TType.I64,None), None, ), # 3 (4, TType.STRING, 'replPolicy', None, None, ), # 4 (5, TType.LIST, 'srcTxnToWriteIdList', (TType.STRUCT,(TxnToWriteId, TxnToWriteId.thrift_spec)), None, ), # 5 - (6, TType.BOOL, 'dynamicPartitions', None, None, ), # 6 ) - def __init__(self, dbName=None, tableName=None, txnIds=None, replPolicy=None, srcTxnToWriteIdList=None, dynamicPartitions=None,): + def __init__(self, dbName=None, tableName=None, txnIds=None, replPolicy=None, srcTxnToWriteIdList=None,): self.dbName = dbName self.tableName = tableName self.txnIds = txnIds self.replPolicy = replPolicy self.srcTxnToWriteIdList = srcTxnToWriteIdList - self.dynamicPartitions = dynamicPartitions 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: @@ -13092,11 +13089,6 @@ def read(self, iprot): iprot.readListEnd() else: iprot.skip(ftype) - elif fid == 6: - if ftype == TType.BOOL: - self.dynamicPartitions = iprot.readBool() - else: - iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -13133,10 +13125,6 @@ def write(self, oprot): iter585.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() - if self.dynamicPartitions is not None: - oprot.writeFieldBegin('dynamicPartitions', TType.BOOL, 6) - oprot.writeBool(self.dynamicPartitions) - oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -13155,7 +13143,6 @@ def __hash__(self): value = (value * 31) ^ hash(self.txnIds) value = (value * 31) ^ hash(self.replPolicy) value = (value * 31) ^ hash(self.srcTxnToWriteIdList) - value = (value * 31) ^ hash(self.dynamicPartitions) return value def __repr__(self): @@ -14817,7 +14804,7 @@ class CompactionInfoStruct: (10, TType.STRING, 'workerId', None, None, ), # 10 (11, TType.I64, 'start', None, None, ), # 11 (12, TType.I64, 'highestWriteId', None, None, ), # 12 - (13, TType.LIST, 'writeIds', (TType.I64,None), None, ), # 13 + (13, TType.SET, 'writeIds', (TType.I64,None), None, ), # 13 ) def __init__(self, id=None, dbname=None, tablename=None, partitionname=None, type=None, runas=None, properties=None, toomanyaborts=None, state=None, workerId=None, start=None, highestWriteId=None, writeIds=None,): @@ -14905,13 +14892,13 @@ def read(self, iprot): else: iprot.skip(ftype) elif fid == 13: - if ftype == TType.LIST: - self.writeIds = [] - (_etype633, _size630) = iprot.readListBegin() + if ftype == TType.SET: + self.writeIds = set() + (_etype633, _size630) = iprot.readSetBegin() for _i634 in xrange(_size630): _elem635 = iprot.readI64() - self.writeIds.append(_elem635) - iprot.readListEnd() + self.writeIds.add(_elem635) + iprot.readSetEnd() else: iprot.skip(ftype) else: @@ -14973,11 +14960,11 @@ def write(self, oprot): oprot.writeI64(self.highestWriteId) oprot.writeFieldEnd() if self.writeIds is not None: - oprot.writeFieldBegin('writeIds', TType.LIST, 13) - oprot.writeListBegin(TType.I64, len(self.writeIds)) + oprot.writeFieldBegin('writeIds', TType.SET, 13) + oprot.writeSetBegin(TType.I64, len(self.writeIds)) for iter636 in self.writeIds: oprot.writeI64(iter636) - oprot.writeListEnd() + oprot.writeSetEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() diff --git standalone-metastore/metastore-common/src/gen/thrift/gen-rb/hive_metastore_types.rb standalone-metastore/metastore-common/src/gen/thrift/gen-rb/hive_metastore_types.rb index 478134a41b..34fc482f1c 100644 --- standalone-metastore/metastore-common/src/gen/thrift/gen-rb/hive_metastore_types.rb +++ standalone-metastore/metastore-common/src/gen/thrift/gen-rb/hive_metastore_types.rb @@ -2891,15 +2891,13 @@ class AllocateTableWriteIdsRequest TXNIDS = 3 REPLPOLICY = 4 SRCTXNTOWRITEIDLIST = 5 - DYNAMICPARTITIONS = 6 FIELDS = { DBNAME => {:type => ::Thrift::Types::STRING, :name => 'dbName'}, TABLENAME => {:type => ::Thrift::Types::STRING, :name => 'tableName'}, TXNIDS => {:type => ::Thrift::Types::LIST, :name => 'txnIds', :element => {:type => ::Thrift::Types::I64}, :optional => true}, REPLPOLICY => {:type => ::Thrift::Types::STRING, :name => 'replPolicy', :optional => true}, - SRCTXNTOWRITEIDLIST => {:type => ::Thrift::Types::LIST, :name => 'srcTxnToWriteIdList', :element => {:type => ::Thrift::Types::STRUCT, :class => ::TxnToWriteId}, :optional => true}, - DYNAMICPARTITIONS => {:type => ::Thrift::Types::BOOL, :name => 'dynamicPartitions', :optional => true} + SRCTXNTOWRITEIDLIST => {:type => ::Thrift::Types::LIST, :name => 'srcTxnToWriteIdList', :element => {:type => ::Thrift::Types::STRUCT, :class => ::TxnToWriteId}, :optional => true} } def struct_fields; FIELDS; end @@ -3311,7 +3309,7 @@ class CompactionInfoStruct WORKERID => {:type => ::Thrift::Types::STRING, :name => 'workerId', :optional => true}, START => {:type => ::Thrift::Types::I64, :name => 'start', :optional => true}, HIGHESTWRITEID => {:type => ::Thrift::Types::I64, :name => 'highestWriteId', :optional => true}, - WRITEIDS => {:type => ::Thrift::Types::LIST, :name => 'writeIds', :element => {:type => ::Thrift::Types::I64}, :optional => true} + WRITEIDS => {:type => ::Thrift::Types::SET, :name => 'writeIds', :element => {:type => ::Thrift::Types::I64}, :optional => true} } def struct_fields; FIELDS; end diff --git standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java index 1af3d24e27..748b56b0a2 100644 --- standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java +++ standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java @@ -2921,16 +2921,6 @@ public long allocateTableWriteId(long txnId, String dbName, String tableName) th return allocateTableWriteIdsBatchIntr(rqst); } - @Override - public List allocateTableWriteIdsBatch(List txnIds, String dbName, - String tableName, boolean dynamicPartitions) - throws TException { - AllocateTableWriteIdsRequest rqst = new AllocateTableWriteIdsRequest(dbName, tableName); - rqst.setTxnIds(txnIds); - rqst.setDynamicPartitions(dynamicPartitions); - return allocateTableWriteIdsBatchIntr(rqst); - } - @Override public List replAllocateTableWriteIdsBatch(String dbName, String tableName, String replPolicy, List srcTxnToWriteIdList) throws TException { diff --git standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java index 42918d83a5..c96bf0d90e 100644 --- standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java +++ standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java @@ -3005,17 +3005,6 @@ void replTableWriteIdState(String validWriteIdList, String dbName, String tableN */ List allocateTableWriteIdsBatch(List txnIds, String dbName, String tableName) throws TException; - /** - * Allocate a per table write ID and associate it with the given transaction. - * @param txnIds ids of transaction batchto which the allocated write ID to be associated. - * @param dbName name of DB in which the table belongs. - * @param tableName table to which the write ID to be allocated - * @param dynamicPartitions indicate whether the table is dynamic partitioned and new partitions - * will be created in the transaction. - * @throws TException - */ - List allocateTableWriteIdsBatch(List txnIds, String dbName, String tableName, boolean dynamicPartitions) throws TException; - /** * Allocate a per table write ID and associate it with the given transaction. Used by replication load task. * @param dbName name of DB in which the table belongs. diff --git standalone-metastore/metastore-common/src/main/thrift/hive_metastore.thrift standalone-metastore/metastore-common/src/main/thrift/hive_metastore.thrift index ed53aa5e45..fff946b8be 100644 --- standalone-metastore/metastore-common/src/main/thrift/hive_metastore.thrift +++ standalone-metastore/metastore-common/src/main/thrift/hive_metastore.thrift @@ -977,7 +977,6 @@ struct AllocateTableWriteIdsRequest { 4: optional string replPolicy, // The list is assumed to be sorted by both txnids and write ids. The write id list is assumed to be contiguous. 5: optional list srcTxnToWriteIdList, - 6: optional bool dynamicPartitions, } // Map for allocated write id against the txn for which it is allocated @@ -1095,7 +1094,7 @@ struct CompactionInfoStruct { 10: optional string workerId 11: optional i64 start 12: optional i64 highestWriteId - 13: optional list writeIds + 13: optional set writeIds } struct CompactionResponse { diff --git standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/txn/CompactionInfo.java standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/txn/CompactionInfo.java index da402d6790..e1c8dc8453 100644 --- standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/txn/CompactionInfo.java +++ standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/txn/CompactionInfo.java @@ -28,6 +28,7 @@ import java.sql.SQLException; import java.util.List; import java.util.Objects; +import java.util.Set; /** * Information on a possible or running compaction. @@ -66,7 +67,7 @@ private String fullTableName = null; // This is used for the compactions of type 'p' - public List writeIds; + public Set writeIds; public CompactionInfo(String dbname, String tableName, String partName, CompactionType type) { this.dbname = dbname; diff --git standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/txn/CompactionTxnHandler.java standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/txn/CompactionTxnHandler.java index cb671b52df..4f0867b2a0 100644 --- standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/txn/CompactionTxnHandler.java +++ standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/txn/CompactionTxnHandler.java @@ -281,8 +281,8 @@ public void markCompacted(CompactionInfo info) throws MetaException { pStmt.setString(1, ci.dbname); pStmt.setString(2, ci.tableName); pStmt.setString(3, String.valueOf(OperationType.ALL_PARTITIONS.getSqlConst())); - ci.writeIds = new ArrayList<>(); rs = pStmt.executeQuery(); + ci.writeIds = new HashSet<>(); while(rs.next()) { ci.writeIds.add(rs.getLong(1)); } @@ -376,7 +376,7 @@ public void markCleaned(CompactionInfo info) throws MetaException { pStmt = dbConn.prepareStatement("select CQ_ID, CQ_DATABASE, CQ_TABLE, CQ_PARTITION, CQ_STATE, CQ_TYPE, CQ_TBLPROPERTIES, CQ_WORKER_ID, CQ_START, CQ_RUN_AS, CQ_HIGHEST_WRITE_ID, CQ_META_INFO, CQ_HADOOP_JOB_ID from COMPACTION_QUEUE WHERE CQ_ID = ?"); pStmt.setLong(1, info.id); rs = pStmt.executeQuery(); - List writeIds = info.writeIds; + Set writeIds = info.writeIds; if(rs.next()) { info = CompactionInfo.loadFullFromCompactionQueue(rs); info.writeIds = writeIds; @@ -442,8 +442,9 @@ public void markCleaned(CompactionInfo info) throws MetaException { if (info.partName != null) s += " and tc_partition = ?"; if (info.writeIds != null && info.writeIds.size() > 0) { String[] wriStr = new String[info.writeIds.size()]; - for (int i = 0; i < info.writeIds.size(); i++) { - wriStr[i] = info.writeIds.get(i).toString(); + int i = 0; + for (Long writeId: writeIds) { + wriStr[i++] = writeId.toString(); } s += " and tc_writeid in (" + String.join(",", wriStr) + ")"; } @@ -486,8 +487,9 @@ public void markCleaned(CompactionInfo info) throws MetaException { } if (info.writeIds != null && info.writeIds.size() > 0) { String[] wriStr = new String[info.writeIds.size()]; - for (int i = 0; i < info.writeIds.size(); i++) { - wriStr[i] = info.writeIds.get(i).toString(); + int i = 0; + for (Long writeId: writeIds) { + wriStr[i++] = writeId.toString(); } suffix.append(" and tc_writeid in (").append(String.join(",", wriStr)).append(")"); } diff --git standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/txn/TxnHandler.java standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/txn/TxnHandler.java index 330d0bf050..8f1da9fdd5 100644 --- standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/txn/TxnHandler.java +++ standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/txn/TxnHandler.java @@ -1756,17 +1756,6 @@ public AllocateTableWriteIdsResponse allocateTableWriteIds(AllocateTableWriteIds // This is for idempotent case. return new AllocateTableWriteIdsResponse(txnToWriteIds); } - - // We are going to add an entry to TXN_COMPONENTS so in case the transaction is aborted - // before calling addDynamicPartitions we will delete all the possible dirty files. - // This is only possible if the there's a single transaction since we wouldn't know - // what files to delete if there where more. - if (rqst.isSetDynamicPartitions() && rqst.isDynamicPartitions() && numOfWriteIds > 1) { - throw new MetaException( - "When using dynamic partitions only a single transaction is allowed in the batch," - + " number of transactions = " + numOfWriteIds); - } - long srcWriteId = 0; if (rqst.isSetReplPolicy()) { // In replication flow, we always need to allocate write ID equal to that of source. @@ -1845,22 +1834,6 @@ public AllocateTableWriteIdsResponse allocateTableWriteIds(AllocateTableWriteIds pst.execute(); } - // Add the entry to TXN_COMPONENTS in case the transaction fails - // before calling addDynamicPartitions - if (rqst.isSetDynamicPartitions() && rqst.isDynamicPartitions()) { - long onlyWriteId = writeId - 1; - long txnIdComponents = txnIds.get(0); - s = "insert into TXN_COMPONENTS(TC_TXNID, TC_DATABASE, TC_TABLE," - + " TC_OPERATION_TYPE, TC_WRITEID) values (?, ?, ?, ?, ?)"; - LOG.debug("Going to execute insert < " + s.replaceAll("\\?", "{}")+ ">", - txnIdComponents, quoteString(dbName), quoteString(tblName), - quoteChar(OperationType.ALL_PARTITIONS.getSqlConst()), onlyWriteId); - PreparedStatement insertPreparedStmt = sqlGenerator.prepareStmtWithParameters(dbConn, s, - Arrays.asList(Long.toString(txnIdComponents), dbName, tblName, - OperationType.ALL_PARTITIONS.toString(), Long.toString(onlyWriteId))); - insertPreparedStmt.execute(); - } - if (transactionalListeners != null) { MetaStoreListenerNotifier.notifyEventWithDirectSql(transactionalListeners, EventMessage.EventType.ALLOC_WRITE_ID, @@ -2385,6 +2358,7 @@ private ConnectionLockIdPair enqueueLockWithRetry(LockRequest rqst) throws NoSuc continue; } boolean updateTxnComponents; + OperationType op = null; if(!lc.isSetOperationType()) { //request came from old version of the client updateTxnComponents = true;//this matches old behavior @@ -2394,19 +2368,12 @@ private ConnectionLockIdPair enqueueLockWithRetry(LockRequest rqst) throws NoSuc case INSERT: case UPDATE: case DELETE: - if(!lc.isSetIsDynamicPartitionWrite()) { - //must be old client talking, i.e. we don't know if it's DP so be conservative - updateTxnComponents = true; - } - else { - /** - * we know this is part of DP operation and so we'll get - * {@link #addDynamicPartitions(AddDynamicPartitions)} call with the list - * of partitions actually changed. In case the transaction is aborted before - * this, we have already added an entry in TXN_COMPONENTS to account for this - * in {@link #allocateTableWriteIds(AllocateTableWriteIdsRequest)}. - */ - updateTxnComponents = !lc.isIsDynamicPartitionWrite(); + updateTxnComponents = true; + op = OperationType.fromDataOperationType(lc.getOperationType()); + if (lc.isSetIsDynamicPartitionWrite()) { + if (lc.isIsDynamicPartitionWrite()) { + op = OperationType.ALL_PARTITIONS; + } } break; case SELECT: @@ -2450,7 +2417,7 @@ private ConnectionLockIdPair enqueueLockWithRetry(LockRequest rqst) throws NoSuc rows.add(txnid + ", ?, " + (tblName == null ? "null" : "?") + ", " + (partName == null ? "null" : "?")+ "," + - quoteString(OperationType.fromDataOperationType(lc.getOperationType()).toString())+ "," + + quoteString(op.toString())+ "," + (writeId == null ? "null" : writeId)); List params = new ArrayList<>(); params.add(dbName); @@ -3035,9 +3002,11 @@ public CompactionResponse compact(CompactionRequest rqst) throws MetaException { // partition but in this case it would be in READY_FOR_CLEANING state. StringBuilder sb = new StringBuilder("select cq_id, cq_state from COMPACTION_QUEUE where"). append(" cq_state IN(").append(quoteChar(INITIATED_STATE)). - append(",").append(quoteChar(WORKING_STATE)). - append(",").append(quoteChar(READY_FOR_CLEANING)). - append(") AND cq_database=?"). + append(",").append(quoteChar(WORKING_STATE)); + if (rqst.getType().equals(CompactionType.CLEAN_ABORTED)) { + sb.append(",").append(quoteChar(READY_FOR_CLEANING)); + } + sb.append(") AND cq_database=?"). append(" AND cq_table=?").append(" AND "); params.add(rqst.getDbname()); params.add(rqst.getTablename()); diff --git standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClientPreCatalog.java standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClientPreCatalog.java index 74cb341c9b..0380566188 100644 --- standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClientPreCatalog.java +++ standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClientPreCatalog.java @@ -2356,17 +2356,7 @@ public long allocateTableWriteId(long txnId, String dbName, String tableName) th rqst.setSrcTxnToWriteIdList(srcTxnToWriteIdList); return allocateTableWriteIdsBatchIntr(rqst); } - - @Override - public List allocateTableWriteIdsBatch(List txnIds, String dbName, - String tableName, boolean dynamicPartitions) - throws TException { - AllocateTableWriteIdsRequest rqst = new AllocateTableWriteIdsRequest(dbName, tableName); - rqst.setTxnIds(txnIds); - rqst.setDynamicPartitions(dynamicPartitions); - return allocateTableWriteIdsBatchIntr(rqst); - } - + private List allocateTableWriteIdsBatchIntr(AllocateTableWriteIdsRequest rqst) throws TException { return client.allocate_table_write_ids(rqst).getTxnToWriteIds(); } diff --git streaming/src/java/org/apache/hive/streaming/TransactionBatch.java streaming/src/java/org/apache/hive/streaming/TransactionBatch.java index f0639cb0b7..a625759c0b 100644 --- streaming/src/java/org/apache/hive/streaming/TransactionBatch.java +++ streaming/src/java/org/apache/hive/streaming/TransactionBatch.java @@ -207,7 +207,7 @@ private void setupHeartBeatThread() { private List allocateWriteIdsImpl(final List txnIds) throws TException { return conn.getMSC().allocateTableWriteIdsBatch(txnIds, conn.getDatabase(), - conn.getTable().getTableName(), conn.isDynamicPartitioning()); + conn.getTable().getTableName()); } @Override