You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Danny Chen (Jira)" <ji...@apache.org> on 2019/12/18 03:15:00 UTC

[jira] [Resolved] (CALCITE-3590) Support SQL hints for Aggregate

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

Danny Chen resolved CALCITE-3590.
---------------------------------
    Resolution: Fixed

Fixed in [0c7c1ec|https://github.com/apache/calcite/commit/0c7c1ec088497c4d21d402ffa2eb6219d777dd73], thanks for your PR, [~icshuo] !

> Support SQL hints for Aggregate
> -------------------------------
>
>                 Key: CALCITE-3590
>                 URL: https://issues.apache.org/jira/browse/CALCITE-3590
>             Project: Calcite
>          Issue Type: Sub-task
>          Components: core
>    Affects Versions: 1.21.0
>            Reporter: Shuo Cheng
>            Assignee: Shuo Cheng
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.22.0
>
>          Time Spent: 1.5h
>  Remaining Estimate: 0h
>
> Currently inĀ CALCITE-482, hints are only supported for Project, Join and TableScan. It's also necessary to support hints for Aggregate so as to enable fine grained Aggregate configuration, e.g., two-stage-aggregation.
> SELECT /*+ TWO_STAGE_AGG(true) */ 
>  dep_id,
>  grade, 
>  avg(annual_salary),
>  min(annual_salary),
>  max(annual_salary)
>  FROM T
>  GROUP BY dep_id, grade;



--
This message was sent by Atlassian Jira
(v8.3.4#803005)