anuragshekhar2020 commented on a change in pull request #2687:
URL: https://github.com/apache/hive/pull/2687#discussion_r720174703



##########
File path: ql/src/java/org/apache/hadoop/hive/ql/parse/LoadSemanticAnalyzer.java
##########
@@ -518,7 +518,12 @@ private void reparseAndSuperAnalyze(Table table, URI 
fromURI) throws SemanticExc
     // Step 2 : create the Insert query
     StringBuilder rewrittenQueryStr = new StringBuilder();
 
-    rewrittenQueryStr.append("insert into table ");
+    if (isOverWrite) {
+      rewrittenQueryStr.append("insert overwrite table ");
+    } else {

Review comment:
       LGTM
   Excellent catch.




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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



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

Reply via email to