You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Kurt Young (Jira)" <ji...@apache.org> on 2019/11/25 14:20:00 UTC

[jira] [Closed] (FLINK-14874) add local aggregate to solve data skew for ROLLUP/CUBE case

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

Kurt Young closed FLINK-14874.
------------------------------
    Resolution: Fixed

merged to master: 75427bfbf3b48a30838ecb64270294370b63257d

> add local aggregate to solve data skew for ROLLUP/CUBE case
> -----------------------------------------------------------
>
>                 Key: FLINK-14874
>                 URL: https://issues.apache.org/jira/browse/FLINK-14874
>             Project: Flink
>          Issue Type: Sub-task
>          Components: Table SQL / Planner
>    Affects Versions: 1.9.1
>            Reporter: godfrey he
>            Assignee: godfrey he
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.10.0
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> Many tpc-ds queries have {{rollup}} keyword, which will be translated to multiple groups. 
> for example:  {{group by rollup (channel, id)}} is equivalent {{group by (channel, id)}} +  {{group by (channel)}} +  {{group by ()}}. 
> All data on empty group will be shuffled to a single node, It is a typical data skew case. If there is a local aggregate, the data size shuffled to the single node will be greatly reduced. However, currently the cost mode can't estimate the local aggregate's cost, and the plan with local aggregate may be chose even the query has {{rollup}} keyword.
> we could add a rule based phase (after physical phase) to enforce local aggregate if it's input has empty group.



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