Add UnionArray compute functions#8884
Merged
Merged
Conversation
Merged
Contributor
Polar Signals Profiling ResultsLatest Run
Previous Runs (7)
Powered by Polar Signals Cloud |
Contributor
Benchmarks: Vortex queries 📖Verdict: No clear signal (low confidence) How to read Verdict and Engines
datafusion / vortex-file-compressed (1.045x ➖, 0↑ 0↓)
datafusion / parquet (1.006x ➖, 0↑ 0↓)
duckdb / vortex-file-compressed (0.996x ➖, 0↑ 0↓)
duckdb / parquet (1.010x ➖, 0↑ 0↓)
No file size changes detected. |
connortsui20
force-pushed
the
ct/union-array-compute
branch
from
July 21, 2026 17:48
6fe53ba to
a6b7e6c
Compare
connortsui20
force-pushed
the
ct/union-array
branch
2 times, most recently
from
July 21, 2026 17:59
96923e7 to
3233233
Compare
connortsui20
force-pushed
the
ct/union-array-compute
branch
from
July 21, 2026 17:59
a6b7e6c to
1e867dd
Compare
Merging this PR will not alter performance
Comparing Footnotes
|
connortsui20
force-pushed
the
ct/union-array-compute
branch
from
July 21, 2026 18:28
1e867dd to
98f8f06
Compare
connortsui20
force-pushed
the
ct/union-array
branch
from
July 21, 2026 18:28
3233233 to
cd92358
Compare
connortsui20
force-pushed
the
ct/union-array
branch
from
July 21, 2026 18:45
cd92358 to
9c9debf
Compare
connortsui20
force-pushed
the
ct/union-array-compute
branch
2 times, most recently
from
July 21, 2026 20:31
e32db9e to
f2427ce
Compare
connortsui20
force-pushed
the
ct/union-array
branch
2 times, most recently
from
July 21, 2026 21:08
dd86118 to
772b738
Compare
connortsui20
force-pushed
the
ct/union-array-compute
branch
from
July 21, 2026 21:11
f2427ce to
ab33ec0
Compare
connortsui20
force-pushed
the
ct/union-array
branch
from
July 22, 2026 18:07
772b738 to
f51f2dd
Compare
connortsui20
force-pushed
the
ct/union-array-compute
branch
from
July 22, 2026 18:07
ab33ec0 to
ec92eef
Compare
connortsui20
added a commit
that referenced
this pull request
Jul 23, 2026
## Rationale for this change Tracking issue: #8769 This is the array layer of the Union stack. The compute integration has been split into the stacked follow-up #8884. ## What changes are included in this PR? - Adds the canonical sparse `UnionArray` encoding with nullable u8 type IDs and row-aligned children. - Adds construction and invariant validation, typed accessors, scalar access, top-level validity, serialization, and session registration. - Registers UnionArray as the canonical representation for Union dtypes. - Leaves filter, take, slice, mask, cast, aggregate, constant/chunked canonicalization, and compression support to #8884. I think that this is a mostly straightforward implementation. The one implementation thing I will shout out is that we do not validate that the entire type IDs array has valid type IDs. If we come across an invalid type ID, we just panic, and that is similar behavior to `DictArray` validation. ## What APIs are changed? Are there any user-facing changes? Adds the public Union, UnionArray, UnionArrayExt, and UnionDataParts APIs. --------- Signed-off-by: Connor Tsui <connor.tsui20@gmail.com>
connortsui20
force-pushed
the
ct/union-array-compute
branch
4 times, most recently
from
July 23, 2026 16:22
4ee0231 to
4616292
Compare
Signed-off-by: Connor Tsui <connor.tsui20@gmail.com>
connortsui20
force-pushed
the
ct/union-array-compute
branch
from
July 23, 2026 16:23
4616292 to
c9d2f58
Compare
connortsui20
marked this pull request as ready for review
July 23, 2026 16:26
connortsui20
requested review from
joseph-isaacs and
robert3005
and removed request for
robert3005
July 23, 2026 16:26
UnionArray compute functions
8 tasks
robert3005
approved these changes
Jul 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Rationale for this change
Tracking issue: #7882
This PR adds the straightforward compute support for canonical sparse Union arrays while keeping operations with unresolved nullability or placeholder semantics in focused follow-ups.
What changes are included in this PR?
Deferred follow-ups
The source TODOs record the required semantics at each deferred dispatch point.