You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem or challenge?
We can compute cardinality by looking at the offsets in the GenericListArray. The current implementation creates a new array slice for every row and then fetches the length of the slice, which involves a lot of unnecessary per-row overhead.
For lists whose elements are scalar types, this is straightforward. For lists whose elements are themselves lists, this is possible but would be more complex (#25085)
Activity
neilconway commentedon Sep 8, 2026
take
[-]Compute list/map cardinality from offsets when possible[/-][+]Compute list/map cardinality from offsets[/+][-]Compute list/map cardinality from offsets[/-][+]Compute list/map `cardinality` from offsets[/+]perf: compute `cardinality` from list/map offsets (apache#25079)