You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Hyukjin Kwon (JIRA)" <ji...@apache.org> on 2017/02/03 13:09:51 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=15851473#comment-15851473 ]
Hyukjin Kwon commented on SPARK-16094:
--------------------------------------
[~maropu], I just happened to see this JIRA. Maybe would this JIRA be resolvable per https://github.com/apache/spark/pull/13802#issuecomment-243756620?
> 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