rraulinio opened a new pull request, #1689: URL: https://github.com/apache/arrow-go/pull/1689
### Rationale for this change Arrow already finds the smallest and largest values in each column chunk, but drops either bound from the Parquet metadata if it exceeds the default 4 KiB limit. Callers that keep a separate file summary should be able to reuse those bounds without scanning the rows again or making the Parquet file bigger. Closes #1688. ### What changes are included in this PR? Add `WithColumnChunkBoundsObserver`, an optional callback that receives the column path and the min/max Arrow already calculated, before the size limit is applied. The callback is only called when both bounds are available, and its inputs are read-only. ### Are these changes tested? - The regression test confirms the callback receives 4,097-byte bounds while the footer still drops them. With and without the callback, the Parquet files are byte-for-byte identical. - Empty strings still have bounds. All-null chunks and columns with stats disabled do not call the observer. - The regression test fails without the hook. The short Parquet suite passed with `assert,test` and `assert,test,noasm`. ### Are there any user-facing changes? Only for callers who opt in to the new writer option. The statistics size limit, default behavior, and Parquet output are unchanged. -- 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]
