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


##########
hudi-common/src/main/java/org/apache/hudi/common/table/read/InputSplit.java:
##########
@@ -81,4 +89,13 @@ public long getLength() {
   public boolean isParquetBaseFile() {
     return baseFileOption.map(baseFile -> 
HoodieFileFormat.fromFileExtension(baseFile.getStoragePath().getFileExtension())
 == HoodieFileFormat.PARQUET).orElse(false);
   }
+
+  public boolean hasNoRecordsToMerge() {
+    return this.logFiles.isEmpty() && recordIterator.isEmpty();
+  }
+
+  public Option<Iterator<Pair<Serializable, BufferedRecord>>> 
getRecordIterator() {
+    ValidationUtils.checkArgument(recordIterator.isPresent(), "Record iterator 
is not initialized");

Review Comment:
   fixed



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