Skip to content

Return an error when a CASE WHEN or zip condition's validity fails - #12560

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

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

Conversation

@vortex-claude

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

Copy link
Copy Markdown
Contributor

mask attaches its mask child as lazy validity, so an invalid user expression inside it, such as a cast of nulls to a non-nullable type, fails only when that validity is executed. BoolArrayExt::to_mask_fill_null_false executed the validity with vortex_expect, which turned the error into a panic in CASE WHEN, zip and Python filter; it now returns VortexResult<Mask> so that callers propagate the error. This changes the signature of the public BoolArrayExt trait.

AI assistance: Claude (run).

Tracking Issue: #12552

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:135: Changing to_mask_fill_null_false to return VortexResult<Mask> breaks downstream implementers and callers of the public BoolArrayExt trait.

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