codope commented on code in PR #5247:
URL: https://github.com/apache/hudi/pull/5247#discussion_r1042185616


##########
hudi-flink-datasource/hudi-flink/src/main/java/org/apache/hudi/source/IncrementalInputSplits.java:
##########
@@ -213,7 +213,7 @@ public Result inputSplits(
     }
 
     HoodieTableFileSystemView fsView = new 
HoodieTableFileSystemView(metaClient, commitTimeline, fileStatuses);
-    final String endInstant = instantToIssue.getTimestamp();
+    final String endInstant = instantRange == null ? 
fsView.getLastInstant().get().getTimestamp() : instantToIssue.getTimestamp();
     final AtomicInteger cnt = new AtomicInteger(0);

Review Comment:
   Good point from Danny.
   @cuibo01 Can you please explain that? Is it still a vlid scenario?



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