Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,8 @@ public static <R> HoodieData<HoodieRecord<R>> tagGlobalLocationBackToRecords(
boolean isCommitTimeOrdered = readerContext.getMergeMode() == RecordMergeMode.COMMIT_TIME_ORDERING;
// if the index is not updating the partition of the record, and the table is COW, then we do not need to do merging at
// this phase since the writer path will merge when rewriting the files as part of the upsert operation.
boolean requiresMergingWithOlderRecordVersion = shouldUpdatePartitionPath || table.getMetaClient().getTableConfig().getTableType() == HoodieTableType.MERGE_ON_READ;
boolean requiresMergingWithOlderRecordVersion = shouldUpdatePartitionPath
|| (!isCommitTimeOrdered && table.getMetaClient().getTableConfig().getTableType() == HoodieTableType.MERGE_ON_READ);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice catch~

DeleteContext deleteContext = DeleteContext.fromRecordSchema(properties, writerSchema);

// Pair of incoming record and the global location if meant for merged lookup in later stage
Expand Down
Loading
Loading