[
https://issues.apache.org/jira/browse/CALCITE-1853?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16056386#comment-16056386
]
Zain Humayun commented on CALCITE-1853:
---------------------------------------
PR: https://github.com/apache/calcite/pull/478
> 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
>
> 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)