maheshk114 commented on a change in pull request #614: HIVE-21678
URL: https://github.com/apache/hive/pull/614#discussion_r281053245
 
 

 ##########
 File path: ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java
 ##########
 @@ -7644,7 +7645,8 @@ protected Operator genFileSinkPlan(String dest, QB qb, 
Operator input)
             checkAcidConstraints(qb, tableDescriptor, null);
           }
           // isReplace = false in case concurrent operation is executed
-          ltd = new LoadTableDesc(queryTmpdir, tableDescriptor, dpCtx, acidOp, 
false, writeId);
+          ltd = new LoadTableDesc(queryTmpdir, tableDescriptor, dpCtx, acidOp, 
false, writeId,
+                  true);
 
 Review comment:
   in this case write id is already passed, and the write id allocation does 
not check if the table is already present or not. Just uses the table name. So 
it may not be required to pass the flag. The write id should be populated 
correctly in load table desc.

----------------------------------------------------------------
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