Skip to content

fix(compute): propagate nested expression serialization errors - #1160

Draft
fallintoplace wants to merge 1 commit into
apache:mainfrom
fallintoplace:fix/compute-serialize-expr-errors
Draft

fix(compute): propagate nested expression serialization errors#1160
fallintoplace wants to merge 1 commit into
apache:mainfrom
fallintoplace:fix/compute-serialize-expr-errors

Conversation

@fallintoplace

Copy link
Copy Markdown
Contributor

Rationale for this change

SerializeExpr ignores errors returned while visiting call arguments. A nested unsupported literal can therefore produce a successful result with incomplete metadata, and scalar columns allocated before the error are not released.

What changes are included in this PR?

Propagate errors from nested arguments and release all temporary scalar columns on both success and failure paths.

Are these changes tested?

Yes. The regression test places a valid scalar before an unsupported nested array literal and checks both the returned error and allocator cleanup. The full arrow/compute package suite passes.

Are there any user-facing changes?

Nested serialization failures are now returned to the caller instead of being silently ignored.

@fallintoplace
fallintoplace marked this pull request as ready for review August 9, 2026 22:51
@fallintoplace
fallintoplace marked this pull request as draft August 9, 2026 22:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant