Skip to content

Allow nullable takes from filtered union arrays - #12832

Draft
vortex-claude[bot] wants to merge 1 commit into
developfrom
fuzzer-fix/issue-12830
Draft

vortex-claude[bot] wants to merge 1 commit into
developfrom
fuzzer-fix/issue-12830

Conversation

@vortex-claude

@vortex-claude vortex-claude Bot commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

The slice and filter fast paths of the Filter take kernel widen the result to a nullable dtype with a cast, but union arrays do not support casting yet, so a take with nullable, all-valid indices from a filtered non-nullable union failed when executed. For unions whose nullability the take would widen, the kernel now uses its index-translation path and the union's own take, which already widens nullability through the type IDs; implementing union casting is left to its existing TODO.

AI assistance: Claude (run).

Tracking Issue: #12830

Signed-off-by: vortex-claude[bot] <274007616+vortex-claude[bot]@users.noreply.github.com>
@vortex-claude vortex-claude Bot added changelog/fix A bug fix fuzzer-fix A fix auto-generated from a fuzzer issue labels Dec 4, 2026
@vortex-claude

vortex-claude Bot commented Dec 4, 2026

Copy link
Copy Markdown
Contributor Author

Review nits from fuzz-fix-review:

  • nit vortex-array/src/scalar_fn/builtin/mask/mod.rs:178: Other code also widens nullability with a cast and would fail the same way for a union: execute_constant with an all-true mask here, and the all-valid struct field rule in arrays/struct_/compute/rules.rs:120. The fuzz input does not reach either.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog/fix A bug fix fuzzer-fix A fix auto-generated from a fuzzer issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants