rraulinio opened a new issue, #1688:
URL: https://github.com/apache/arrow-go/issues/1688

   ### Describe the enhancement requested
   
   Arrow Go already calculates the smallest and largest values for each column 
chunk (one column in a row group). It drops either value from the Parquet 
metadata if it exceeds the default 4 KiB statistics limit. A caller that keeps 
a separate file summary can't reuse the bounds Arrow already calculated.
   
   For example, write one row with a 4,097-byte string and statistics enabled. 
Arrow computes both bounds, but neither is available in the finished file 
metadata. A caller might only need a short range summary to skip files that 
can't match a query. Raising `WithMaxStatsSize` can grow the Parquet metadata 
and only moves the cutoff; recalculating the bounds repeats work.
   
   Could we add an optional writer callback that receives the column path and 
the existing min/max before the size limit is applied? It would only report 
bounds that Arrow actually computed and leave the limit, default behavior, and 
bytes written to Parquet unchanged. A local Arrow test verified that the 
callback can receive the 4,097-byte bounds while the resulting file stays 
byte-for-byte identical.
   
   
   ### Component(s)
   
   Parquet


-- 
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]

Reply via email to