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


##########
ql/src/java/org/apache/hadoop/hive/ql/io/CombineHiveRecordReader.java:
##########
@@ -88,14 +90,26 @@ public CombineHiveRecordReader(InputSplit split, 
Configuration conf,
       }
     }
 
+    FileSplit inputSplit;
     // create a split for the given partition
-    FileSplit fsplit = new FileSplit(hsplit.getPaths()[partition], hsplit
-        .getStartOffsets()[partition], hsplit.getLengths()[partition], hsplit
-        .getLocations());
+    if (inputFormat instanceof CombineHiveInputFormat.MergeSplit) {
+      if (mrwork == null) {
+        mrwork = (MapWork) Utilities.getMergeWork(jobConf);
+        if (mrwork == null) {

Review Comment:
   It can be null, hence we do Utilities.getMapWork()



##########
ql/src/java/org/apache/hadoop/hive/ql/io/CombineHiveInputFormat.java:
##########
@@ -768,4 +763,8 @@ public String toString() {
   public interface AvoidSplitCombination {
     boolean shouldSkipCombine(Path path, Configuration conf) throws 
IOException;
   }
+
+  public interface MergeSplit {

Review Comment:
   This is generic interface for creating merge splits. 



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