Skip to content

API: Relax partition name check when source column is dropped#15967

Merged
huaxingao merged 1 commit intoapache:mainfrom
RussellSpitzer:fix/partition-name-check-dropped-source
Apr 14, 2026
Merged

API: Relax partition name check when source column is dropped#15967
huaxingao merged 1 commit intoapache:mainfrom
RussellSpitzer:fix/partition-name-check-dropped-source

Conversation

@RussellSpitzer
Copy link
Copy Markdown
Member

Skip the identity name pairing when the partition source id no longer resolves in the schema, so historical specs do not block re-adding a column with the same name. Add API and Spark extension tests.

Used Cursor - Claude-4.6-opus-high

Skip the identity name pairing when the partition source id no longer
resolves in the schema, so historical specs do not block re-adding a
column with the same name. Add API and Spark extension tests.
Types.NestedField schemaField =
this.caseSensitive ? schema.findField(name) : schema.caseInsensitiveFindField(name);
if (checkConflicts) {
if (sourceColumnId != null) {
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I flipped this around because I kept getting confused now its

  1. Normal case, no source id
  2. Checking for partition transforms with source id (like identity)

Copy link
Copy Markdown
Contributor

@huaxingao huaxingao left a comment

Choose a reason for hiding this comment

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

LGTM

@huaxingao huaxingao merged commit 5e3c284 into apache:main Apr 14, 2026
37 checks passed
@huaxingao
Copy link
Copy Markdown
Contributor

Thanks @RussellSpitzer for the PR! Thanks @singhpk234 @dramaticlly for the review!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants