You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "fallintoplace (via GitHub)" <gi...@apache.org> on 2026/07/24 23:32:20 UTC

[PR] fix(parquet/compress): allocate uncompressed codec output [arrow-go]

fallintoplace opened a new pull request, #1004:
URL: https://github.com/apache/arrow-go/pull/1004

   ### Rationale for this change
   
   The Codec contract allows a nil or undersized destination and requires the codec to allocate when needed. The uncompressed codec returned the unchanged destination, producing empty or truncated output.
   
   ### What changes are included in this PR?
   
   Use append-based copying for Encode, EncodeLevel, and Decode so the destination is reused when possible and grown when necessary. Add nil and undersized destination tests.
   
   ### Are these changes tested?
   
   Yes. go test ./parquet/compress
   
   ### Are there any user-facing changes?
   
   The uncompressed codec now follows the same destination allocation contract as the compressed codecs.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] fix(parquet/compress): allocate uncompressed output for short destinations [arrow-go]

Posted by "zeroshade (via GitHub)" <gi...@apache.org>.
zeroshade merged PR #1004:
URL: https://github.com/apache/arrow-go/pull/1004


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org