[
https://issues.apache.org/jira/browse/CALCITE-1853?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16059617#comment-16059617
]
Zain Humayun commented on CALCITE-1853:
---------------------------------------
Thanks [~jcamachorodriguez] for the quick turnaround!
> Push Count distinct into Druid when approximate results are acceptable
> ----------------------------------------------------------------------
>
> Key: CALCITE-1853
> URL: https://issues.apache.org/jira/browse/CALCITE-1853
> Project: Calcite
> Issue Type: Bug
> Components: druid
> Reporter: Zain Humayun
> Assignee: Zain Humayun
> Fix For: 1.13.0
>
>
> Currently queries such as
> {code:sql}
> select count(distinct "dimension") from "table";
> {code}
> are not pushed into Druid using the cardinality aggregator because it
> produces an approximate result. There exists a JDBC string parameter called
> {{approximateDistinctCount}} introduced in CALCITE-1587 that lets the user
> specify whether approximate results are acceptable in count distinct queries,
> however this parameter is not currently utilized by the Druid adapter.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)