You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Zain Humayun (JIRA)" <ji...@apache.org> on 2017/06/20 17:37:00 UTC

[jira] [Created] (CALCITE-1853) Push Count distinct into Druid when approximate results are acceptable

Zain Humayun created CALCITE-1853:
-------------------------------------

             Summary: 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)