Skip to content

fix(arrow/array): avoid panics cleaning partial tables - #1103

Merged
zeroshade merged 1 commit into
apache:mainfrom
fallintoplace:fix/table-records-cleanup
Aug 7, 2026
Merged

fix(arrow/array): avoid panics cleaning partial tables#1103
zeroshade merged 1 commit into
apache:mainfrom
fallintoplace:fix/table-records-cleanup

Conversation

@fallintoplace

@fallintoplace fallintoplace commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Rationale for this change

NewTableFromRecords releases every entry in its column slice when construction fails. Entries that have not been initialized contain nil data, so cleanup can panic and hide the original construction error.

What changes are included in this PR?

Skip uninitialized columns while unwinding and add a checked-allocator regression test.

Are these changes tested?

  • go test ./arrow/array

Are there any user-facing changes?

No API changes. This corrects the reported behavior while preserving the existing ownership and compatibility contracts.

@fallintoplace fallintoplace changed the title fix(arrow/array): clean up partial table construction from records fix(arrow/array): avoid panics cleaning partial tables Aug 5, 2026
@zeroshade
zeroshade merged commit 38d768e into apache:main Aug 7, 2026
23 checks passed
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.

2 participants