Skip to content

fix: Metadata.Equal comparison with keys in different order - #571

Merged
zeroshade merged 1 commit into
apache:mainfrom
zeroshade:sorted-metadata-indices
Nov 11, 2025
Merged

fix: Metadata.Equal comparison with keys in different order#571
zeroshade merged 1 commit into
apache:mainfrom
zeroshade:sorted-metadata-indices

Conversation

@zeroshade

Copy link
Copy Markdown
Member

Rationale for this change

fixes #565

What changes are included in this PR?

Fixing Metadata.sortedIndices to properly sort the key indices

Are these changes tested?

Yes, a unit test is added for this situation

Are there any user-facing changes?

No

@zeroshade
zeroshade requested review from alamb and lidavidm November 10, 2025 21:47

@alamb alamb left a comment

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.

Thank you @zeroshade 🙏

I am not quite enough of a go expert to understand the code change, but the test changes make sense to me 👍

@jbonofre

Copy link
Copy Markdown
Member

LGTM (FYI, it impacts arrow-java, see apache/arrow-java#908).

@zeroshade
zeroshade merged commit ad7125a into apache:main Nov 11, 2025
16 checks passed
@pixelherodev

Copy link
Copy Markdown
Contributor

Quick question just for my edification; is it legal for there to be multiple entries for the same key in a Metadata? Was trying to figure out why it's not a map..

@zeroshade
zeroshade deleted the sorted-metadata-indices branch March 27, 2026 15:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

5 participants