Skip to content

fix(arrow/array): isolate table columns from caller slices - #1105

Merged
zeroshade merged 1 commit into
apache:mainfrom
fallintoplace:fix/table-column-slice-isolation
Aug 7, 2026
Merged

fix(arrow/array): isolate table columns from caller slices#1105
zeroshade merged 1 commit into
apache:mainfrom
fallintoplace:fix/table-column-slice-isolation

Conversation

@fallintoplace

@fallintoplace fallintoplace commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Rationale for this change

NewTable stores the caller's column slice directly. Replacing an element in that slice after construction can change the table and make its retained references inconsistent.

What changes are included in this PR?

Clone the slice before storing it. Column objects keep the same retain and release behavior as before.

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): isolate tables from caller column slices fix(arrow/array): copy table column slices on construction Aug 5, 2026
@fallintoplace fallintoplace changed the title fix(arrow/array): copy table column slices on construction fix(arrow/array): isolate table columns from caller slices Aug 6, 2026
@zeroshade
zeroshade merged commit 2a7ff42 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