[ 
https://issues.apache.org/jira/browse/KYLIN-1619?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15259803#comment-15259803
 ] 

Shaofeng SHI commented on KYLIN-1619:
-------------------------------------

We don't recommend to make the Top-N 'GroupBy' column as a dimension; or say if 
a column has already been defined as dimension, it should not be added into 
Top-N as GroupBy; The main considerations are, 1) Top-N is for filtering the 
"long tail", if puting it as a dimension, that will not help; 2) if 'GroupBy' 
column is dimension, for all the cuboids that has this column, the Top-N 
measure will only has 1 cell, which is duplicated with the info on rowkey; 3) 
when a query comes,  Kylin would be confusing whether or not to use Top-N, as 
the 'GroupBy' column is also a dimension. 

Hope it helps to explain; We can enhance the cube designer, to give user hints 
if he/she made a such selection.

> Can't find any realization coursed by Top-N measure
> ---------------------------------------------------
>
>                 Key: KYLIN-1619
>                 URL: https://issues.apache.org/jira/browse/KYLIN-1619
>             Project: Kylin
>          Issue Type: Bug
>          Components: Metadata
>    Affects Versions: v1.5.1
>            Reporter: simplogic
>
> When I add a Top-N mesure to a cube, If GroupBy column is also a dimension 
> column, but OrderBy is not a measure, then  in the query time, a "Can't find 
> any realization" error reported.
> Maybe this is not a good practice of cube designing , but it will bring many 
> confusion i think.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to