You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (JIRA)" <ji...@apache.org> on 2016/06/21 08:20:58 UTC

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

    [ https://issues.apache.org/jira/browse/SPARK-16094?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15341355#comment-15341355 ] 

Apache Spark commented on SPARK-16094:
--------------------------------------

User 'maropu' has created a pull request for this issue:
https://github.com/apache/spark/pull/13802

> 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.4#6332)

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