Skip to content

[hotfix] Use literal directly instead of PARTITION_GENERATE_LEGCY_NAME to avoid NoSuchField error#1880

Merged
luoyuxia merged 2 commits into
apache:mainfrom
luoyuxia:use-litera-paimon
Oct 29, 2025
Merged

[hotfix] Use literal directly instead of PARTITION_GENERATE_LEGCY_NAME to avoid NoSuchField error#1880
luoyuxia merged 2 commits into
apache:mainfrom
luoyuxia:use-litera-paimon

Conversation

@luoyuxia

Copy link
Copy Markdown
Contributor

Purpose

Linked issue: close #xxx
Use literal directly instead of PARTITION_GENERATE_LEGCY_NAME to avoid NoSuchField error when mix with a paimon with higher version which has changed PARTITION_GENERATE_LEGCY_NAME to PARTITION_GENERATE_LEGACY_NAME

Brief change log

Tests

API and Format

Documentation

…ON_GENERATE_LEGCY_NAME to avoid NoSuchField error
@LiebingYu

Copy link
Copy Markdown
Contributor

+1

// use literal directly, a future paimon version will rename
// the variable PARTITION_GENERATE_LEGCY_NAME to PARTITION_GENERATE_LEGACY_NAME, use literal
// can help avoid NoSuchField error
PAIMON_UNSETTABLE_OPTIONS.add("partition.legacy-name");

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.

also modified PARTITION_GENERATE_LEGCY_NAME in setPaimonDefaultProperties

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.

+1, looks like paimon has a typo LEGCY vs LEGACY

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I still don't want to modified. Keep PARTITION_GENERATE_LEGCY_NAME can help us find problem quickly(compile will fail) if Paimon remove PARTITION_GENERATE_LEGCY_NAME since we does rely on paimon's behavior of PARTITION_GENERATE_LEGCY_NAME.

Since it's a tempory hacky fix since it's a typo of paimon, after we ungrade paimon to higer version, we can fall back to use PARTITION_GENERATE_LEGACY_NAME again, which I believe won't be changed in paimon

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.

LOL, I just pointed out a typo in paimon and we should fix it in paimon project in a compatible way instead of using the internal key here.

@luoyuxia luoyuxia Oct 29, 2025

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Let's change all to literal to make ervery thing consistent. If paimon remove this optioin, the existing test should discover it.

@luoyuxia luoyuxia merged commit e51f72b into apache:main Oct 29, 2025
5 of 9 checks passed
wuchong pushed a commit that referenced this pull request Nov 2, 2025
…E to avoid NoSuchField error (#1880)

(cherry picked from commit e51f72b)
Ugbot pushed a commit to Ugbot/fluss that referenced this pull request Apr 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants