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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
