Skip to content

fix(arrow/ipc): preserve minSpaceSavings in stream writer - #1143

Merged
zeroshade merged 1 commit into
apache:mainfrom
fallintoplace:fix/ipc-writer-min-space-savings
Aug 11, 2026
Merged

fix(arrow/ipc): preserve minSpaceSavings in stream writer#1143
zeroshade merged 1 commit into
apache:mainfrom
fallintoplace:fix/ipc-writer-min-space-savings

Conversation

@fallintoplace

Copy link
Copy Markdown
Contributor

Rationale for this change

NewWriterWithPayloadWriter copies minSpaceSavings, but NewWriter did not. As a result, WithMinSpaceSavings was ignored by the regular stream writer.

What changes are included in this PR?

Copy the configured value in NewWriter and add a regression test.

Are these changes tested?

  • go test ./arrow/ipc

Are there any user-facing changes?

The regular IPC stream writer now honors WithMinSpaceSavings.

@fallintoplace
fallintoplace marked this pull request as ready for review August 8, 2026 15:52

@zeroshade zeroshade left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM — NewWriter now propagates minSpaceSavings consistently with the payload and file writer constructors, so the public stream writer honors WithMinSpaceSavings.

I ran the constructor regression 100 times, a public stream API threshold probe 50 times, focused race tests, and the full arrow/ipc package on head 5a31fbd246b8; all passed. CI is fully green with 23 of 23 checks passing.


This review was drafted by an AI-assisted tool and confirmed by an Apache Arrow Go maintainer. The maintainer approving this PR has read the findings and signed off. If something feels off, please reply on the PR and a maintainer will follow up.

More on how Apache Arrow Go handles maintainer review: CONTRIBUTING.md.

@zeroshade
zeroshade merged commit 693da67 into apache:main Aug 11, 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