Skip to content
Snippets Groups Projects
Commit 79159a1e authored by Yucai Yu's avatar Yucai Yu Committed by Reynold Xin
Browse files

[SPARK-17635][SQL] Remove hardcode "agg_plan" in HashAggregateExec

## 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 <yucai.yu@intel.com>

Closes #15199 from yucai/agg_plan.
parent a1661968
No related branches found
No related tags found
No related merge requests found
......@@ -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, "")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment