Skip to content

Commit

Permalink
[HUDI-5334] Fix checkpoint reading for structured streaming
Browse files Browse the repository at this point in the history
  • Loading branch information
xushiyan committed Dec 6, 2022
1 parent 74f8d94 commit b608fa6
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,8 @@ public static HashMap<String, String> getFileIdWithoutSuffixAndRelativePaths(Map
* @return An optional commit metadata with latest checkpoint.
*/
public static Option<HoodieCommitMetadata> getLatestCommitMetadataWithValidCheckpointInfo(HoodieTimeline timeline, String checkpointKey) {
return (Option<HoodieCommitMetadata>) timeline.getReverseOrderedInstants().map(instant -> {
return (Option<HoodieCommitMetadata>) timeline.filterCompletedInstants()
.getReverseOrderedInstants().map(instant -> {
try {
HoodieCommitMetadata commitMetadata = HoodieCommitMetadata
.fromBytes(timeline.getInstantDetails(instant).get(), HoodieCommitMetadata.class);
Expand Down

0 comments on commit b608fa6

Please sign in to comment.