Skip to content

[HUDI-9638] infer and validate merging table configs for table version 9 #13615

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

linliu-code
Copy link
Contributor

@linliu-code linliu-code commented Jul 24, 2025

Change Logs

During table creation in version 9, the merging properties should be also inferred and validated based on the given input.
We add this logic.

We also check payload class is updated during following data ingestion by comparing payload class with legacy payload class if the payload class is the builtin payload classes. Other merging properties are checked as well.

Impact

Then table configurations will be consistent during upgrade/downgrade, table creation, and data ingestion.

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

Medium.

Documentation Update

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

  • The config description must be updated if new configs are added or the default value of the configs are changed
  • Any new feature or user-facing change requires updating the Hudi website. Please create a Jira ticket, attach the
    ticket number here and follow the instruction to make
    changes to the website.

Contributor's checklist

  • Read through contributor's guide
  • Change Logs and Impact were stated clearly
  • Adequate tests were added if applicable
  • CI passed

@github-actions github-actions bot added the size:M PR with lines of changes in (100, 300] label Jul 24, 2025
@github-actions github-actions bot added size:L PR with lines of changes in (300, 1000] and removed size:M PR with lines of changes in (100, 300] labels Jul 25, 2025
@github-actions github-actions bot added size:XL PR with lines of changes > 1000 and removed size:L PR with lines of changes in (300, 1000] labels Jul 25, 2025
@github-actions github-actions bot added size:L PR with lines of changes in (300, 1000] and removed size:XL PR with lines of changes > 1000 labels Jul 26, 2025
@linliu-code linliu-code marked this pull request as ready for review July 26, 2025 01:38
@linliu-code linliu-code changed the title [HUDI-9638] Consolidate table configs during table creation for table version 9 [HUDI-9638] infer and validate merging table configs for table version 9 Jul 26, 2025
* Handle table config creation logic when creating a table for Table Version 9,
* since it has some different logic from previous versions.
*/
public static Map<String, String> inferMergingConfigsForVersion9(RecordMergeMode recordMergeMode,
Copy link
Contributor

Choose a reason for hiding this comment

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

why public?
Also, lets avoid making static methods everywhere. if we can keep it private, lets go for it.
why make every method static

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is similar to inferCorrectMergingBehavior.

@linliu-code linliu-code force-pushed the HUDI-9638 branch 2 times, most recently from b4b52de to 42bfd23 Compare July 26, 2025 14:22
@hudi-bot
Copy link

hudi-bot commented Aug 4, 2025

CI report:

Bot commands @hudi-bot supports the following commands:
  • @hudi-bot run azure re-run the last Azure build

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:L PR with lines of changes in (300, 1000]
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants