danny0405 commented on code in PR #11947:
URL: https://github.com/apache/hudi/pull/11947#discussion_r1803972453
##########
hudi-utilities/src/main/java/org/apache/hudi/utilities/sources/SnapshotLoadQuerySplitter.java:
##########
@@ -118,6 +124,32 @@ public QueryInfo getNextCheckpoint(Dataset<Row> df,
QueryInfo queryInfo, Option<
.orElse(queryInfo);
}
+ public Option<CheckpointWithPredicates> getNextCheckpoint(Dataset<Row> df,
QueryContext queryContext,
+
Option<SourceProfileSupplier> sourceProfileSupplier) {
+ // the start instant would be included into the final query result. So we
need to get
+ // a strictly lower timestamp to have query splitter include the start
instant
+ Option<CheckpointWithPredicates> nextCheckpointWithPredicates =
+ getNextCheckpointWithPredicates(df,
instantTimeMinusMillis(queryContext.getBeginInstant().get(), 1));
Review Comment:
Can we define the behavior through range type?
--
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]