[
https://issues.apache.org/jira/browse/KYLIN-3322?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16779823#comment-16779823
]
KANG-SEN LU commented on KYLIN-3322:
------------------------------------
If the second point is properly handled, then first point is not important.
Could it be that when kylin decided to access TOPN(SUM(X), GROUP-BY B), it does
not check if in the real query the GROUP-BY list does include dimension B? That
would be a serious problem.
I am curious why you are willing to accept this unnecessary requirement that
the SUM(X) must be defined in the same cube that TOPN(SUM(X)) is configured. I
suspect there are some code somehow assumes SUM(X) is a metric when processing
TOPN(SUM(X)). Maybe it is just too difficult to debug this buggy code.
Kang-sen
> TopN requires a SUM to work
> ---------------------------
>
> Key: KYLIN-3322
> URL: https://issues.apache.org/jira/browse/KYLIN-3322
> Project: Kylin
> Issue Type: Bug
> Components: Measure - TopN
> Reporter: liyang
> Assignee: Na Zhai
> Priority: Major
>
> Currently if user creates a measure of TopN seller by sum of price, it is
> required that user also creates a measure of SUM(price). Otherwise, NPE will
> be thrown at query time.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)