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

   > [!IMPORTANT]
   >
   > **Fork CI setup:** For pull requests from a fork to `main`, enable 
workflows in your fork's **Actions** tab before you push.
   > See the [fork CI setup 
guide](https://datafusion.apache.org/contributor-guide/#pull-requests-from-forks).
   
   ## Which issue does this PR close?
   
   - Closes #25615.
   
   ## Rationale for this change
   
   The TPC-H SF1 reproduction estimates 1,200,000 matches for `HAVING 
SUM(l_quantity) > 300` and returns 57 rows.
   
   ## What changes are included in this PR?
   
   A defaulted aggregate UDF hook carries totals for nonnegative integer and 
decimal sums across aggregation stages, and filters use checked wide arithmetic 
to cap their estimates.
   
   ## What is the testing strategy for this PR?
   
   `filter_statistics_decimal.slt` checks a wide decimal total through parallel 
aggregation, and Rust tests cover widened integer totals, exact totals, and 
unusable bounds.
   
   ## Are there any user-facing changes?
   
   The Q18 estimate falls to 1,000,169 rows, with further improvement dependent 
on statistics about the distribution of group sums.
   


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