HuaHuaY opened a new pull request, #50694:
URL: https://github.com/apache/arrow/pull/50694

   ### Rationale for this change
   
   To prevent negative `null_count` and `distinct_count` values ​​from leading 
to incorrect statistics-based pruning, we had better to check for negative 
values.
   
   ### What changes are included in this PR?
   
   Modify `ColumnIndex::Make`at `cpp/src/parquet/page_index.cc` and 
`MakeTypedColumnStats` at `cpp/src/parquet/metadata.cc`. When reading 
`null_count` and `distinct_count` from a file, we no longer silently assume 
that the values ​​are natural numbers.
   
   ### Are these changes tested?
   
   Yes.
   
   ### Are there any user-facing changes?
   
   No.
   


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