Skip to content

fix(parquet/compress): avoid closing caller streams for uncompressed wrappers#1003

Open
fallintoplace wants to merge 1 commit into
apache:mainfrom
fallintoplace:fix/parquet-uncompressed-stream-close
Open

fix(parquet/compress): avoid closing caller streams for uncompressed wrappers#1003
fallintoplace wants to merge 1 commit into
apache:mainfrom
fallintoplace:fix/parquet-uncompressed-stream-close

Conversation

@fallintoplace

@fallintoplace fallintoplace commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

The compressed streaming codecs close their own wrappers without taking ownership of the caller stream. The uncompressed codec passed through existing closers directly, so closing the wrapper also closed the underlying reader or writer.

This always wraps uncompressed streams in no-op closers and adds regression tests for both read and write wrappers.

Tests: go test ./parquet/compress

@fallintoplace
fallintoplace requested a review from zeroshade as a code owner July 24, 2026 23:32
@fallintoplace fallintoplace changed the title fix(parquet/compress): preserve uncompressed stream ownership fix(parquet/compress): wrap uncompressed streams with no-op closers Jul 25, 2026
@fallintoplace fallintoplace changed the title fix(parquet/compress): wrap uncompressed streams with no-op closers fix(parquet/compress): keep uncompressed wrappers from closing caller streams Jul 25, 2026
@fallintoplace fallintoplace changed the title fix(parquet/compress): keep uncompressed wrappers from closing caller streams fix(parquet/compress): avoid closing caller streams for uncompressed wrappers Jul 25, 2026
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