You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Sean Owen (JIRA)" <ji...@apache.org> on 2017/02/03 13:56:51 UTC

[jira] [Resolved] (SPARK-16094) Support HashAggregateExec for non-partial aggregates

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

Sean Owen resolved SPARK-16094.
-------------------------------
    Resolution: Won't Fix

> Support HashAggregateExec for non-partial aggregates
> ----------------------------------------------------
>
>                 Key: SPARK-16094
>                 URL: https://issues.apache.org/jira/browse/SPARK-16094
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 1.6.1
>            Reporter: Takeshi Yamamuro
>
> The current spark cannot use `HashAggregateExec` for non-partial aggregates because `Collect` (`CollectSet`/`CollectList`) has a single shared buffer inside. Since SortAggregateExec is expensive for bigger data, we'd better off fixing this.
> This ticket is intended to change plans from
> {code}
> SortAggregate(key=[key#3077], functions=[collect_set(value#3078, 0, 0)], output=[key#3077,collect_set(value)#3088])
> +- *Sort [key#3077 ASC], false, 0
>    +- Exchange hashpartitioning(key#3077, 5)
>       +- Scan ExistingRDD[key#3077,value#3078]
> {code}
> into
> {code}
> HashAggregate(keys=[key#3077], functions=[collect_set(value#3078, 0, 0)], output=[key#3077, collect_set(value)#3088])
> +- Exchange hashpartitioning(key#3077, 5)
>    +- Scan ExistingRDD[key#3077,value#3078]
> {code}



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

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org