kishendas commented on a change in pull request #1095:
URL: https://github.com/apache/hive/pull/1095#discussion_r441749149
##########
File path: ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java
##########
@@ -5057,7 +5165,20 @@ public static boolean isHadoop1() {
public List<Partition> exchangeTablePartitions(Map<String, String>
partitionSpecs,
String sourceDb, String sourceTable, String destDb,
String destinationTableName) throws HiveException {
+ boolean txnOpened = false;
try {
+ Table srcTbl = getTable(sourceDb, sourceTable);
+ if (AcidUtils.isTransactionalTable(srcTbl) && !inReplication(srcTbl)) {
Review comment:
Sure
##########
File path:
ql/src/java/org/apache/hadoop/hive/ql/parse/RewriteSemanticAnalyzer.java
##########
@@ -409,7 +409,14 @@ private boolean isTargetTable(Entity entity, Table
targetTable) {
* is this the right way to compare? Should it just compare paths?
* equals() impl looks heavy weight
*/
- return targetTable.equals(entity.getTable());
+ long targetWriteId = targetTable.getTTable().getWriteId();
Review comment:
Done
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]