kumarUjjawal opened a new pull request, #27574: URL: https://github.com/apache/datafusion/pull/27574
## Which issue does this PR close? - Part of #25611 (shipping-year estimate) ## Rationale for this change In the issue’s TPC-H SF1 example, grouping by shipping year returns seven groups but the planner estimates 6,001,215. ## What changes are included in this PR? Derive year bounds for `Date32` inputs, propagate inexact bounds through projections and partial aggregates, and use integer ranges to estimate final groups when distinct counts are absent. ## What is the testing strategy for this PR? The two-partition case in `parquet_statistics.slt` checks the final estimate and query results, and Rust tests cover bounds propagation, NULL groups, and fallbacks. ## Are there any user-facing changes? Tighter group estimates can change join plans. -- 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]
