Skip to content

Conversation

@mxm
Copy link
Contributor

@mxm mxm commented Dec 2, 2025

Adds support for case-insensitive field name lookups when adding and moving columns in SchemaUpdate. This ensures that move operations work correctly in case-insensitive mode, fixing a bug where newly added fields could not be referenced with different casing.

Adds support for case-insensitive field name lookups when adding and
moving columns in SchemaUpdate. This ensures that move operations work
correctly in case-insensitive mode, fixing a bug where newly added
fields could not be referenced with different casing.
@pvary pvary requested a review from nastra December 2, 2025 15:29
@nastra nastra requested a review from Fokko January 7, 2026 09:02
@pvary
Copy link
Contributor

pvary commented Jan 7, 2026

@singhpk234: What do you think about the change? Shall we invite someone else to review this too?


// update tracking for moves
addedNameToId.put(fullName, newId);
addedNameToId.put(caseSensitivityAwareName(fullName), newId);
Copy link
Contributor

Choose a reason for hiding this comment

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

initially I was thinking that we should not store the name in a case insensitive way but only keep the lookup case insensitive (similar to how we do it when we lookup fields in Schema. However, Schema keeps two maps, one which is case sensitive and the other which is case insensitive. I was also thinking whether this distinction would make sense for SchemaUpdate but couldn't find a good enough argument to justify this, so I think the changes you have here make sense to me

Copy link
Contributor

@nastra nastra left a comment

Choose a reason for hiding this comment

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

thanks @mxm, the changes make sense to me

@pvary pvary merged commit a1c1c1b into apache:main Jan 9, 2026
44 checks passed
@pvary
Copy link
Contributor

pvary commented Jan 9, 2026

Merged to main.
Thanks @mxm for the fix and @singhpk234, @nastra for the reviews!

@mxm mxm deleted the case-sensitivity-for-moves branch January 9, 2026 12:34
@mxm
Copy link
Contributor Author

mxm commented Jan 9, 2026

Thanks for the reviews @pvary @singhpk234 @nastra! Thanks for merging @pvary!

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants