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/09/22 14:57:20 UTC
[jira] [Commented] (SPARK-17635) Remove hardcode "agg_plan" in
HashAggregateExec
[ https://issues.apache.org/jira/browse/SPARK-17635?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15513504#comment-15513504 ]
Apache Spark commented on SPARK-17635:
--------------------------------------
User 'yucai' has created a pull request for this issue:
https://github.com/apache/spark/pull/15199
> Remove hardcode "agg_plan" in HashAggregateExec
> -----------------------------------------------
>
> Key: SPARK-17635
> URL: https://issues.apache.org/jira/browse/SPARK-17635
> Project: Spark
> Issue Type: Bug
> Components: SQL
> Affects Versions: 2.0.0
> Reporter: yucai
>
> "agg_plan" is hardcoded in HashAggregateExec, which has potential issue.
> {code}
> ctx.addMutableState(fastHashMapClassName, fastHashMapTerm,
> s"$fastHashMapTerm = new $fastHashMapClassName(" +
> s"agg_plan.getTaskMemoryManager(), agg_plan.getEmptyAggregationBuffer());")
> {code}
> I faced this issue when I work on sort agg's codegen support. Below codes will trigger bug:
> {code}
> private def variablePrefix: String = this match {
> - case _: HashAggregateExec => "agg"
> + case _: HashAggregateExec => "hagg"
> + case _: SortAggregateExec => "sagg"
> {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