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

   Closes #55948.
   
   ### Rationale
   
   Parquet statistics can store a minimum of `-0.0` and a maximum of `+0.0` for 
a row group containing positive zeros. Treating those bounds as a single value 
lets filter simplification substitute negative zero and incorrectly skip 
matching rows.
   
   ### Changes
   
   Distinguish the signs of zero when deciding whether the bounds represent a 
single value. If the signs differ, retain the range guarantee. Add a regression 
test for a reciprocal filter on a row group containing positive zero.
   
   ### Tests
   
   All 61 tests in `arrow-dataset-file-parquet-test` passed, including the new 
regression in threaded and serial scans. A separate focused check showed the 
original code simplified the predicate to `false`; the fix preserves the 
predicate.
   
   ### User-facing changes
   
   **Critical Fix:** Sign-sensitive Parquet filters no longer drop matching 
rows in this case. No API changes.
   
   ### Was AI used for this PR?
   
   **PR code and description written by:**
   - [ ] Human
   - [x] AI
   
   **Reviewed before submission by:**
   - [x] Human
   - [ ] AI
   - [ ] Not reviewed
   
   AI helped prepare the patch, regression test, and description. The 
contributor reviewed the patch.


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