You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kylin.apache.org by "Dong Li (JIRA)" <ji...@apache.org> on 2016/04/21 13:06:25 UTC
[jira] [Resolved] (KYLIN-1016) Count distinct on any dimension
should work even not a predefined measure
[ https://issues.apache.org/jira/browse/KYLIN-1016?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dong Li resolved KYLIN-1016.
----------------------------
Resolution: Fixed
Fix Version/s: v1.5.2
Currently undefined count distinct of dimension will be calculated in query engine.
> Count distinct on any dimension should work even not a predefined measure
> -------------------------------------------------------------------------
>
> Key: KYLIN-1016
> URL: https://issues.apache.org/jira/browse/KYLIN-1016
> Project: Kylin
> Issue Type: Bug
> Reporter: liyang
> Assignee: Dong Li
> Fix For: v1.5.2
>
> Attachments: 1.x-0001-KYLIN-1016-Count-distinct-on-any-dimension-should-wo.patch
>
>
> Currently count distinct on a dimension does not work:
> {"sql":"select DATE'2015-07-18' , count(distinct country) as uniquecountry from pc_session e INNER JOIN pc_cal c ON e.part_date = c.cal_dt WHERE (part_date BETWEEN DATE'2015-07-18' AND DATE'2015-08-19') ","offset":0,"limit":10,"acceptPartial":true,"project":"tracking"}
> "exception": "Can't find any realization. Please confirm with providers. SQL digest: fact table DEFAULT.PC_SESSION,group by [],filter on [DEFAULT.PC_SESSION.PART_DATE],with aggregates[FunctionDesc [expression=COUNT_DISTINCT, parameter=ParameterDesc [type=column, value=COUNTRY], returnType=null]].
> while executing SQL: "select DATE'2015-07-18' , count(distinct country) as uniquecountry from pc_session e INNER JOIN pc_cal c ON e.part_date = c.cal_dt WHERE (part_date BETWEEN DATE'2015-07-18' AND DATE'2015-08-19') LIMIT 10""
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)