Skip to content

Commit

Permalink
[HUDI-4807] Use base table instant for metadata initialization (#6629)
Browse files Browse the repository at this point in the history
  • Loading branch information
YuweiXiao authored and yuzhaojing committed Sep 22, 2022
1 parent be528cd commit f0d85e5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public Option<HoodieIndexPlan> execute() {
.orElseThrow(() -> new HoodieIndexException(String.format("Could not get metadata writer to initialize filegroups for indexing for instant: %s", instantTime)));
if (!finalPartitionsToIndex.get(0).getPartitionPath().equals(MetadataPartitionType.FILES.getPartitionPath())) {
// initialize metadata partition only if not for FILES partition.
metadataWriter.initializeMetadataPartitions(table.getMetaClient(), finalPartitionsToIndex, indexInstant.getTimestamp());
metadataWriter.initializeMetadataPartitions(table.getMetaClient(), finalPartitionsToIndex, indexUptoInstant.get().getTimestamp());
}

// for each partitionToIndex add that time to the plan
Expand Down

0 comments on commit f0d85e5

Please sign in to comment.