apache / hudi

Upserts, Deletes And Incremental Processing on Big Data.
https://hudi.apache.org/
Apache License 2.0
5.45k stars 2.43k forks source link

[HUDI-8519] Fix update with multiple secondary indexes #12259

Closed codope closed 6 days ago

codope commented 1 week ago

Change Logs

Multiple secondary indexes (or functional index) exist in different partitions but still we use the same file id prefix. So, thre is a chance of collision in the append handle when two different secondary index have same file id prefix and same shard. This PR fixes the file id prefix in such a case. Added updates to the existing test case which creates multiple secondary index.

Impact

Fix updates with multiple secondary indexes.

Risk level (write none, low medium or high below)

low

only affects sec index and func index.

Documentation Update

Describe any necessary documentation update if there is any new feature, config, or user-facing change. If not, put "none".

Contributor's checklist

nsivabalan commented 1 week ago

can we write tests for functional index as well since the fix is applicable for FI as well

hudi-bot commented 1 week ago

CI report:

Bot commands @hudi-bot supports the following commands: - `@hudi-bot run azure` re-run the last Azure build
codope commented 6 days ago

Closing in favor of #12263