Skip to content

Conversation

@friendlymatthew
Copy link
Contributor

Which issue does this PR close?

Rationale for this change

This PR implements comparison logic for Union arrays against opaque (non-union) arrays in the ord kernel

When comparing a union to an opaque array, the comparison first checks if the union's type id matches the opaque array's type, then compares the actual values if types align. This provides a consistent ordering where union variants are ordered by their type id relative to the opaque type

Notes about this PR

Please review from the second commit. The first commit being #8838

@github-actions github-actions bot added the arrow Changes to the arrow crate label Nov 20, 2025
@friendlymatthew friendlymatthew force-pushed the friendlymatthew/union-to-opaque branch from 5f9ca9b to 35ec44d Compare November 20, 2025 20:19
@friendlymatthew
Copy link
Contributor Author

cc @alamb (sorry for the constant pinging I feel)

@alamb
Copy link
Contributor

alamb commented Nov 21, 2025

No problem @friendlymatthew -- I'll put it on my review queue

I am currently putting my arrow-rs focus on getting the release out. I'll probably have more time for reviews next week

It looks like there are several CI failures with this PR

@friendlymatthew friendlymatthew force-pushed the friendlymatthew/union-to-opaque branch from 35ec44d to e8a2b1e Compare November 21, 2025 15:18
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.

Extend comparison support for Union arrays against an opaque array

2 participants