shivjha30 commented on code in PR #5000:
URL: https://github.com/apache/hive/pull/5000#discussion_r1576424351


##########
ql/src/java/org/apache/hadoop/hive/ql/parse/LoadSemanticAnalyzer.java:
##########
@@ -344,7 +358,7 @@ private void analyzeLoad(ASTNode ast) throws 
SemanticException {
     }
 
     // make sure the arguments make sense
-    List<FileStatus> files = applyConstraintsAndGetFiles(fromURI, 
ts.tableHandle);
+    List<FileStatus> files = applyConstraintsAndGetFiles(fromURI, 
ts.tableHandle, srcs);

Review Comment:
   In the partition case if the file doesn't exist then number of splits will 
be zero, as the splits are zero the mappers also will be equal to zero. As 
there are no mappers the CombineHiveInputformat will not be called.
   
   Now after the fix we would be validating at the server level, thus in all 
such cases in the existing applications, those queries needs to be corrected.



-- 
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: gitbox-unsubscr...@hive.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org
For additional commands, e-mail: gitbox-h...@hive.apache.org

Reply via email to