[ 
https://issues.apache.org/jira/browse/CALCITE-1556?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Baofeng Zhang updated CALCITE-1556:
-----------------------------------
    Description: 
I found a window validation bug when the agg on order by does not occur in 
select clause.

bg. 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




  was:
I found a window validation bug when the agg on order by does not occur in 
select clause.

{{
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
}}




> 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.
> bg. 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



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

Reply via email to