mgaido91 commented on a change in pull request #23392: [SPARK-26450][SQL] Avoid
rebuilding map of schema for every column in projection
URL: https://github.com/apache/spark/pull/23392#discussion_r245490711
##########
File path:
sql/core/src/main/scala/org/apache/spark/sql/execution/aggregate/HashAggregateExec.scala
##########
@@ -506,9 +501,8 @@ case class HashAggregateExec(
// generate result based on grouping key
ctx.INPUT_ROW = keyTerm
ctx.currentVars = null
- val eval = resultExpressions.map{ e =>
- BindReferences.bindReference(e, groupingAttributes).genCode(ctx)
- }
+ val eval = bindReferences[Expression](resultExpressions,
Review comment:
ditto
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]