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

Jess Balint commented on CALCITE-1556:
--------------------------------------

Would this still not return 1 for every rank?

> Window validation bug with order by agg
> ---------------------------------------
>
>                 Key: CALCITE-1556
>                 URL: https://issues.apache.org/jira/browse/CALCITE-1556
>             Project: Calcite
>          Issue Type: Bug
>          Components: core
>            Reporter: Baofeng Zhang
>            Assignee: Julian Hyde
>
> I found a window validation bug when the agg on order by does not occur in 
> select clause.
> {quote}
> SELECT RANK() OVER (PARTITION BY ss_item_sk ORDER BY SUM(ss_net_profit) DESC) 
> AS ranking
> FROM tpcds.store_sales
> GROUP BY ss_item_sk
> {quote}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to