kumarUjjawal opened a new pull request, #27888:
URL: https://github.com/apache/datafusion/pull/27888

   ## Which issue does this PR close?
   
   - Closes #25611
   
   ## Rationale for this change
   
   The TPC-H return flag and status query estimates 5,787,395 groups for 4 
actual groups.
   
   ## What changes are included in this PR?
   
   Use Parquet payload sizes and trusted extrema to prove a one-byte string 
domain, carry its bound through statistics merges, filters, cross joins, 
lossless casts, and protobuf/FFI, and apply the tighter available bound to 
final `GROUP BY` estimates.
   
   ## What is the testing strategy for this PR?
   
   Parquet SQL tests cover nullable one-byte keys, longer strings with matching 
extrema, and files with mixed distinct-count coverage, and Rust tests cover 
propagation, bound precedence, and FFI round-trips.
   
   ## Are there any user-facing changes?
   
   The TPC-H estimate drops to 180, and exhaustive Rust literals for 
`ColumnStatistics` and generated `ColumnStats` need the optional 
`distinct_count_upper_bound` field documented in the 57.0.0 upgrade guide.
   


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

Reply via email to