SteNicholas commented on PR #8753:
URL: https://github.com/apache/hudi/pull/8753#issuecomment-1552838233

   @danny0405, we could use watermark to infer the partitions need to commit  
and need to create as follows:
   ```
   hiveBeforeCommitEndTime = 
waterMarkToCurrentPartitionTime(hiveBeforeCommitEndTime, commitType);
   hiveAfterCommitEndTime = 
waterMarkToCurrentPartitionTime(convertReadyCommitTime(hiveAfterCommitEndTime, 
watermark, partitionInterval), commitType);
   List<List<String>> hiveBeforeNeedCommit = 
getNeedCommitList(hiveBeforeCommitStartTime, hiveBeforeCommitEndTime, 
partitionInterval, commitType);
   List<List<String>> hiveAfterNeedCommit = 
getNeedCommitList(hiveAfterCommitStartTime, hiveAfterCommitEndTime, 
partitionInterval, commitType);
   ```


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