apache / apache/hudi

Move secondary index merge logic to MetadataPartitionType.combineMetadataPayloads

Open
#17,300 1 comment 0 reactions 1 assignee Assigned to @nsivabalan View on GitHub
from-jira priority:critical type:devtask
Dominant language
Java
Stars
6.2k
Forks
2.5k
Avg merge
2d 8h
Merged PRs (30d)
111

Description

[https://github.com/apache/hudi/pull/12105/files#r1815875535]

We need to move [this logic|https://github.com/apache/hudi/blob/a7512a206c5a1e8ce251cac7a302632a57d8c848/hudi-common/src/main/java/org/apache/hudi/metadata/HoodieBackedTableMetadata.java#L855-L858] inside `HoodieMetadataPayload.combineSecondaryIndexRecord`, and need to override `MetadataPartitionType.combineMetadataPayloads` for secondary index.

While updating secondary index, merging logic should follow same logic as readFromBaseAndMergeWithLogRecords API

## JIRA info

- Link: https://issues.apache.org/jira/browse/HUDI-8436
- Type: Sub-task
- Parent: https://issues.apache.org/jira/browse/HUDI-9096
- Fix version(s):
- 1.1.0

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.