You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by GitBox <gi...@apache.org> on 2022/05/24 03:56:44 UTC

[GitHub] [hudi] danny0405 commented on a diff in pull request #5247: [HUDI-4144] Handle empty instants in Flink incremental input splits

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


##########
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:
   I'm confused, when `instantRange == null` is true, that means the user first time query from earliest, and we should   read to the latest commit instant, which should be `instantToIssue` here.



-- 
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: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org