Skip to content

Return validity errors from CaseWhen and Zip conditions instead of panicking - #12559

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

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

Conversation

@vortex-claude

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

Copy link
Copy Markdown
Contributor

mask keeps its mask argument as the lazy validity of its result, so a condition executed to a BoolArray can carry a validity whose execution fails on the data, such as a checked subtraction that overflows. BoolArrayExt::to_mask_fill_null_false turned that legitimate VortexError into a panic, so it now returns VortexResult<Mask>, and CaseWhen, Zip and the Python filter binding propagate the error. This changes the signature of the public BoolArrayExt::to_mask_fill_null_false.

AI assistance: Claude (run).

…nicking

Tracking Issue: #12531

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 2, 2026
@vortex-claude

vortex-claude Bot commented Dec 2, 2026

Copy link
Copy Markdown
Contributor Author

Review nits from fuzz-fix-review:

  • nit vortex-array/src/arrays/bool/array.rs:132: Changing the return type of the public trait method BoolArrayExt::to_mask_fill_null_false breaks downstream callers.
  • nit vortex-array/src/arrays/varbin/compute/filter.rs:77: The same pattern, execute_mask(...).vortex_expect("Failed to compute validity mask"), remains in functions that already return VortexResult (here and at line 184), and in encodings/sparse/src/canonical.rs at lines 607 and 808. A lazy validity that fails would panic there too. The fuzz input does not reach these call sites.

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