Skip to content

Fix string array equality when the values buffer is the same and only the offsets to access it differ - #9325

Merged
alamb merged 2 commits into
apache:mainfrom
jhorstmann:fix-string-array-eq
Feb 2, 2026
Merged

alamb merged 2 commits into
apache:mainfrom
jhorstmann:fix-string-array-eq

Conversation

@jhorstmann

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Rationale for this change

This bug seems to have existed for at least the last 5 years (before that, array equality had a lot more issues with offsets).

What changes are included in this PR?

Are these changes tested?

Tested with unit tests.

Are there any user-facing changes?

no

@github-actions github-actions Bot added the arrow Changes to the arrow crate label Feb 1, 2026

@Jefffrey Jefffrey 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.

Should be good to go once clippy is fixed

@jhorstmann

Copy link
Copy Markdown
Contributor Author

Should be good to go once clippy is fixed

Thanks, I always forget the --tests parameter for clippy.

@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.

Makes sense to me - thanks @Jefffrey and @jhorstmann

I will also create a PR to backport this to the 57 patch release

@alamb
alamb merged commit 100269a into apache:main Feb 2, 2026
alamb pushed a commit to alamb/arrow-rs that referenced this pull request Feb 2, 2026
… the offsets to access it differ (apache#9325)

# Which issue does this PR close?

<!--
We generally require a GitHub issue to be filed for all bug fixes and
enhancements and this helps us generate change logs for our releases.
You can link an issue to this PR using the GitHub syntax.
-->

- Closes apache#9323.

# Rationale for this change

This bug seems to have existed for at least the last 5 years (before
that, array equality had a lot more issues with offsets).

<!--
Why are you proposing this change? If this is already explained clearly
in the issue then this section is not needed.
Explaining clearly why changes are proposed helps reviewers understand
your changes and offer better suggestions for fixes.
-->

# What changes are included in this PR?

<!--
There is no need to duplicate the description in the issue here but it
is sometimes worth providing a summary of the individual changes in this
PR.
-->

# Are these changes tested?

Tested with unit tests.

# Are there any user-facing changes?

no
@alamb

alamb commented Feb 2, 2026

Copy link
Copy Markdown
Contributor

alamb added a commit that referenced this pull request Feb 2, 2026
…the same and only the offsets to access it differ (#9325) (#9330)

- Part of #9240
- Related to #9323

This is a backport of the following PR  to the 57 line
- #9325 from @jhorstmann

Co-authored-by: Jörn Horstmann <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

arrow Changes to the arrow crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

string array equal comparison fails to consider offsets

3 participants