maheshk114 commented on a change in pull request #628: HIVE-21731 : Hive import 
fails, post upgrade of source 3.0 cluster, to a target 4.0 cluster with strict 
managed table set to true.
URL: https://github.com/apache/hive/pull/628#discussion_r284828193
 
 

 ##########
 File path: 
ql/src/java/org/apache/hadoop/hive/ql/exec/repl/bootstrap/load/table/LoadTable.java
 ##########
 @@ -159,10 +159,20 @@ public TaskTracker tasks() throws Exception {
     return tracker;
   }
 
-  private ReplLoadOpType getLoadTableType(Table table) throws 
InvalidOperationException, HiveException {
+  private ReplLoadOpType getLoadTableType(Table table, boolean 
isBootstrapDuringInc)
+          throws InvalidOperationException, HiveException {
     if (table == null) {
       return ReplLoadOpType.LOAD_NEW;
     }
+
+    // In case user has asked for bootstrap of transactional table, we replace 
the old one if present. This is to
+    // make sure that the transactional info like write id etc for the table 
is consistent between the
+    // source and target cluster.
+    if (isBootstrapDuringInc && AcidUtils.isTransactionalTable(table)) {
 
 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]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to