mhatipog opened a new issue, #19160: URL: https://github.com/apache/iceberg/issues/19160
### Apache Iceberg version main (development, v4) ### Query engine Other (Java core) ### Please describe the bug Follow-up to the review of #19065 (https://github.com/apache/iceberg/pull/19065#pullrequestreview-6075462836). For a five-record file with three present parent structs whose float child is NaN and two null parent structs, v4 child statistics can report `value_count=3`, `nan_value_count=3`. `InclusiveStatsEvaluator` currently rejects `notNaN("location.lat")` because the counts are equal, although the two null-parent rows match Iceberg's `notNaN` predicate. The regression in `TestInclusiveStatsEvaluator.notNaNForFieldsUnderOptionalStruct` fails against unmodified upstream (`6cf1f6e4`) with expected true, actual false. Guarding the shared `containsNaNsOnly` helper by record count fixes this but unnecessarily loses finite equality pruning for the same file (verified by a second failing assertion). A guard specific to `notNaN` retains that optimization. The revised tests and Spotless pass, including against upstream `9d2bf51b` with the patch applied. ### Willingness to contribute - [x] I can contribute a fix for this bug independently -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
