yihua commented on code in PR #13670:
URL: https://github.com/apache/hudi/pull/13670#discussion_r2250283257


##########
hudi-common/src/main/java/org/apache/hudi/common/table/read/InputSplit.java:
##########
@@ -37,27 +39,25 @@
 public class InputSplit {
   private final Option<HoodieBaseFile> baseFileOption;
   private final List<HoodieLogFile> logFiles;
+  private final Option<Iterator<Map.Entry<Serializable, BufferedRecord>>> 
inputs;

Review Comment:
   Use `Either` here so that the `InputSplit` can take either `logFiles` or 
`recordIterator`, but not both.



##########
hudi-common/src/main/java/org/apache/hudi/common/table/read/InputSplit.java:
##########
@@ -37,27 +39,25 @@
 public class InputSplit {
   private final Option<HoodieBaseFile> baseFileOption;
   private final List<HoodieLogFile> logFiles;
+  private final Option<Iterator<Map.Entry<Serializable, BufferedRecord>>> 
inputs;

Review Comment:
   ```suggestion
     private final Option<Iterator<Map.Entry<Serializable, BufferedRecord>>> 
recordIterator;
   ```



##########
hudi-common/src/main/java/org/apache/hudi/common/table/read/InputSplit.java:
##########
@@ -37,27 +39,25 @@
 public class InputSplit {
   private final Option<HoodieBaseFile> baseFileOption;
   private final List<HoodieLogFile> logFiles;
+  private final Option<Iterator<Map.Entry<Serializable, BufferedRecord>>> 
inputs;
   private final String partitionPath;
   // Byte offset to start reading from the base file
   private final long start;
   // Length of bytes to read from the base file
   private final long length;
 
-  InputSplit(Option<HoodieBaseFile> baseFileOption, Stream<HoodieLogFile> 
logFiles, String partitionPath, long start, long length) {
+  InputSplit(Option<HoodieBaseFile> baseFileOption, Stream<HoodieLogFile> 
logFiles, String partitionPath, long start, long length,

Review Comment:
   Provide two constructors: one taking `baseFileOption` and `logFiles`, 
another taking `baseFileOption` and `recordIterator`.



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

Reply via email to