SourabhBadhya commented on code in PR #5076:
URL: https://github.com/apache/hive/pull/5076#discussion_r1505607087


##########
ql/src/java/org/apache/hadoop/hive/ql/plan/ConditionalResolverMergeFiles.java:
##########
@@ -147,18 +171,23 @@ public List<Task<?>> getTasks(HiveConf conf, Object 
objCtx) {
       Path dirPath = new Path(dirName);
       FileSystem inpFs = dirPath.getFileSystem(conf);
       DynamicPartitionCtx dpCtx = ctx.getDPCtx();
+      HiveStorageHandler storageHandler = HiveUtils.getStorageHandler(conf, 
ctx.getStorageHandlerClass());
+      boolean dirExists = inpFs.exists(dirPath);
+      boolean useCustomStorageHandler = storageHandler != null && 
storageHandler.supportsMergeFiles();
 
-      if (inpFs.exists(dirPath)) {
+      MapWork work = null;
+      if (dirExists || useCustomStorageHandler) {

Review Comment:
   Removed.



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