Skip to content

fix(parquet/compress): honor LZ4 raw destination contract - #1147

Open
fallintoplace wants to merge 1 commit into
apache:mainfrom
fallintoplace:fix/lz4-raw-dst-contract
Open

fix(parquet/compress): honor LZ4 raw destination contract#1147
fallintoplace wants to merge 1 commit into
apache:mainfrom
fallintoplace:fix/lz4-raw-dst-contract

Conversation

@fallintoplace

Copy link
Copy Markdown
Contributor

What

The LZ4 raw codec passed the provided capacity straight to CompressBlock. Nil or undersized destinations could panic instead of allocating as promised by Codec.Encode. This allocates the compression bound when the destination capacity is insufficient.

Test

  • go test ./parquet/compress -count=1

@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