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

Apache Spark reassigned SPARK-16094:
------------------------------------

    Assignee: Apache Spark

> 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
>            Assignee: Apache Spark
>
> 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.4#6332)

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

Reply via email to