You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@tajo.apache.org by "Dongkyu Hwangbo (JIRA)" <ji...@apache.org> on 2015/08/17 03:42:45 UTC

[jira] [Resolved] (TAJO-1773) GROUPING clause should be supported

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

Dongkyu Hwangbo resolved TAJO-1773.
-----------------------------------
    Resolution: Duplicate

> GROUPING clause should be supported
> -----------------------------------
>
>                 Key: TAJO-1773
>                 URL: https://issues.apache.org/jira/browse/TAJO-1773
>             Project: Tajo
>          Issue Type: Improvement
>    Affects Versions: 0.11.0
>            Reporter: Dongkyu Hwangbo
>            Priority: Minor
>              Labels: sql
>
> tajo cannot run ROLL UP, GROUPING clause.
> Here is example.(in tpc-ds q27)
> {code:SQL}
> select i_item_id,
>         s_state, grouping(s_state) g_state,
>         avg(ss_quantity) agg1,
>         avg(ss_list_price) agg2,
>         avg(ss_coupon_amt) agg3,
>         avg(ss_sales_price) agg4
>  from store_sales, customer_demographics, date_dim, store, item
>  where ss_sold_date_sk = d_date_sk and
>        ss_item_sk = i_item_sk and
>        ss_store_sk = s_store_sk and
>        ss_cdemo_sk = cd_demo_sk and
>        cd_gender = 'M' and
>        cd_marital_status = 'S' and
>        cd_education_status = 'College' and
>        d_year = 2002 and
>        s_state in ('TN','TN', 'TN', 'TN', 'TN', 'TN')
>  group by rollup (i_item_id, s_state)
>  order by i_item_id
>          ,s_state
>  limit 100;
> {code}



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