umrndem opened a new pull request, #1661: URL: https://github.com/apache/arrow-go/pull/1661
### Rationale for this change Parquet column encoding statistics were appended in Go map iteration order, so identical writes could produce different footer bytes when a page type used several encodings. Fixes #1558. ### What changes are included in this PR? Sort the encoding keys before appending dictionary and data page statistics, keeping dictionary pages first. This reuses the sorting pattern already used for the column's encodings. ### Are these changes tested? Extended the existing metadata round-trip test to check the page types and encoding order. It failed on upstream during repeated runs and passed 30 runs with the fix. The metadata package tests, race check, and `go vet` passed. The metadata and Parquet file tests also passed with `-short -tags=assert,test,noasm`, using both test-data submodules. ### Are there any user-facing changes? The order of `encoding_stats` is stable across writes. -- 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]
