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

Hudson commented on LENS-1264:
------------------------------

FAILURE: Integrated in Lens-Commit #1316 (See 
[https://builds.apache.org/job/Lens-Commit/1316/])
LENS-1264 : Fix aggregate resolution with aggregate around dim (amareshwari: 
rev 017c40310e39af81bb75c6888a2494dd4bd4304a)
* lens-cube/src/test/java/org/apache/lens/cube/parse/TestCubeRewriter.java
* lens-cube/src/test/java/org/apache/lens/cube/parse/CubeTestSetup.java
* lens-cube/src/main/java/org/apache/lens/cube/parse/AggregateResolver.java


> Group by promotion not happening with aggregate dim attributes 
> ---------------------------------------------------------------
>
>                 Key: LENS-1264
>                 URL: https://issues.apache.org/jira/browse/LENS-1264
>             Project: Apache Lens
>          Issue Type: Bug
>          Components: cube
>            Reporter: Sushil Mohanty
>            Assignee: Sushil Mohanty
>             Fix For: 2.7
>
>         Attachments: LENS-1264.patch
>
>
> {CODE}
> <expression name="distinct_users" _type="BIGINT" display_string="Distinct 
> Users">
> <expr_spec expr="count(distinct(user))"/>
> </expression>
> cube query : 
> query execute cube select country,distinct_users from testcube where 
> time_range_in(time_col,'2016-07-31-00','2016-07-31-01')
> rewritten query :
> SELECT distinct (testcube.country), count(distinct (testcube.user)) FROM 
> db.fact_table testcube WHERE (((testcube.dt) in ('2016-07-31-00')))
> {CODE}
> Query  fails with the following:
> Error Message: Line 1:226 Not yet supported place for UDAF 'count'
> Column testcube.country should be part of group by as there is already 
> aggregate column used in select.



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

Reply via email to