neilconway opened a new pull request, #25911: URL: https://github.com/apache/datafusion/pull/25911
## Which issue does this PR close? - N/A ## Rationale for this change `Count::value_from_stats` previously had a special-case to take advantage of the fact that `count(1)` is equivalent to a row-count. Generalize that slightly: * `count(k)` for any non-null constant is equivalent to a row count * `count(NULL)` is equivalent to 0 ## What changes are included in this PR? * Generalize `Count::value_from_stats` as described above * Update expected SLT plan shapes * Add new SLT test ## What is the testing strategy for this PR? Exising tests pass, new test added. I confirmed that the changes to the plan shapes are consistent with the intent behind each of the SLTs in question. ## Are there any user-facing changes? No. -- 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]
