Skip to content

Commit

Permalink
[SPARK-17635][SQL] Remove hardcode "agg_plan" in HashAggregateExec
Browse files Browse the repository at this point in the history
## What changes were proposed in this pull request?

"agg_plan" are hardcoded in HashAggregateExec, which have potential issue, so removing them.

## How was this patch tested?

existing tests.

Author: Yucai Yu <[email protected]>

Closes apache#15199 from yucai/agg_plan.
  • Loading branch information
Yucai Yu authored and rxin committed Sep 23, 2016
1 parent a166196 commit 79159a1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@ case class HashAggregateExec(
} else {
ctx.addMutableState(fastHashMapClassName, fastHashMapTerm,
s"$fastHashMapTerm = new $fastHashMapClassName(" +
s"agg_plan.getTaskMemoryManager(), agg_plan.getEmptyAggregationBuffer());")
s"$thisPlan.getTaskMemoryManager(), $thisPlan.getEmptyAggregationBuffer());")
ctx.addMutableState(
"org.apache.spark.unsafe.KVIterator",
iterTermForFastHashMap, "")
Expand Down

0 comments on commit 79159a1

Please sign in to comment.