richox opened a new issue, #6195:
URL: https://github.com/apache/arrow-rs/issues/6195

   **Describe the bug**
   as described in https://issues.apache.org/jira/browse/PARQUET-251, parquet 
files created by parquet-mr version <= 1.6.0 might contain incorrect row-group 
statistics.
   
   newer parquet-mr version has added an extra logic to check parquet file 
creator, if it is created by buggy parquet-mr version. the statistics will be 
completely dropped. (the code is here: 
https://github.com/apache/parquet-java/blob/68e0eae9fb375d9b586ab3899828968f2a6d711e/parquet-column/src/main/java/org/apache/parquet/CorruptStatistics.java).
 we should keep the same logic with this implementation.
   
   **To Reproduce**
   query with buggy parquet file created by parquet-mr 1.6.0. the row group 
statisitcs is corrupted and results incorrect pruning and outpus.
   
   **Expected behavior**
   check parquet file creator, if created by buggy parquet-mr version, don't 
use its row group statistics.
   
   **Additional context**
   trino has fixed this bug: https://github.com/trinodb/trino/issues/1798


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