buraksenn opened a new pull request, #20845: URL: https://github.com/apache/datafusion/pull/20845
## Which issue does this PR close? Does not close but part of #20766 ## Rationale for this change If `distinct_count` is known for the column from statistics we can directly use it in `COUNT(DISTINCT column))` expressions instead of calculating. ## What changes are included in this PR? - Return distinct_count value if exists from statistics - Unit tests ## Are these changes tested? Added additional tests ## 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]
