Skip to content

Commit

Permalink
[HUDI-5334] Fix checkpoint reading for structured streaming (#7389)
Browse files Browse the repository at this point in the history
  • Loading branch information
xushiyan authored Dec 7, 2022
1 parent 6629bf7 commit 4d9035e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ 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 4d9035e

Please sign in to comment.