Skip to content

fix(arrow/ipc): return compression errors from record encoder - #1141

Open
fallintoplace wants to merge 1 commit into
apache:mainfrom
fallintoplace:fix/ipc-compression-errors
Open

fix(arrow/ipc): return compression errors from record encoder#1141
fallintoplace wants to merge 1 commit into
apache:mainfrom
fallintoplace:fix/ipc-compression-errors

Conversation

@fallintoplace

Copy link
Copy Markdown
Contributor

Rationale for this change

recordEncoder.encode ignored errors returned by body compression, so a failed compressor could still result in record metadata being built and returned as a successful encode.

What changes are included in this PR?

Return compression errors from recordEncoder.encode, release the temporary compressed buffer on failure, and add a regression test with a failing compressor.

Are these changes tested?

  • go test ./arrow/ipc

Are there any user-facing changes?

IPC record encoding now reports compressor failures to the caller.

@fallintoplace
fallintoplace marked this pull request as ready for review August 8, 2026 15:52
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