You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@datafusion.apache.org by "jayzhan211 (via GitHub)" <gi...@apache.org> on 2025/05/03 02:39:01 UTC
Re: [I] `select count(distinct ..)` query doesn't go to the specialized distinct accumulator [datafusion]
jayzhan211 commented on issue #15850:
URL: https://github.com/apache/datafusion/issues/15850#issuecomment-2848380600
Another idea is that what if we alter this plan to count distinct specific
```
05)--------AggregateExec: mode=FinalPartitioned, gby=[alias1@0 as alias1], aggr=[]
```
```
05)--------AggregateExec: mode=Final, gby=[alias1@0 as alias1], aggr=[], count_distinct_specialized=true
```
And, we return the sum of group keys from each partition, it should be the same result as the output of `02)--AggregateExec: mode=Final, gby=[], aggr=[count(alias1)]`.
--
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: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org