haohuaijin opened a new pull request, #25228: URL: https://github.com/apache/datafusion/pull/25228
### Which issue does this PR close? - close: #25226 ### Rationale for this change MIN/MAX queries can return only the extrema of row groups with statistics, overlooking values in other groups. ### What changes are included in this PR? Return `Absent` for incomplete bounds, handling min and max independently. Preserve valid bounds when the missing statistics belong to an empty or proven all-null group. ### What is the testing strategy for this PR? Unit tests cover missing bounds, empty/all-null groups and both row-group orders. `parquet_missing_bounds.slt` generates its input at runtime with Rust writer APIs, enabling statistics for the first row group and disabling them for the second, then checks rows and aggregates. No generated file is committed or footer manually modified. ### Are there any user-facing changes? Correct MIN/MAX results for files with incomplete row-group statistics. -- 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]
