Skip to content

Commit

Permalink
[HUDI-4807] Use base table instant for metadata initialization (apach…
Browse files Browse the repository at this point in the history
  • Loading branch information
YuweiXiao authored and voonhous committed Oct 7, 2022
1 parent 30f6988 commit 769d37f
Showing 1 changed file with 1 addition and 1 deletion.
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 769d37f

Please sign in to comment.