Skip to content

Commit

Permalink
fix the condition for updating record index
Browse files Browse the repository at this point in the history
  • Loading branch information
codope committed Jan 24, 2025
1 parent c433c05 commit 179fc3b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1096,7 +1096,7 @@ engineContext, dataWriteConfig, commitMetadata, instantTime, dataMetaClient, get

// Updates for record index are created by parsing the WriteStatus which is a hudi-client object. Hence, we cannot yet move this code
// to the HoodieTableMetadataUtil class in hudi-common.
if (dataWriteConfig.isRecordIndexEnabled() && RECORD_INDEX.isMetadataPartitionAvailable(dataMetaClient)) {
if (getMetadataPartitionsToUpdate().contains(RECORD_INDEX.getPartitionPath())) {
HoodieData<HoodieRecord> additionalUpdates = getRecordIndexAdditionalUpserts(partitionToRecordMap.get(RECORD_INDEX.getPartitionPath()), commitMetadata);
partitionToRecordMap.put(RECORD_INDEX.getPartitionPath(), partitionToRecordMap.get(RECORD_INDEX.getPartitionPath()).union(additionalUpdates));
}
Expand Down

0 comments on commit 179fc3b

Please sign in to comment.