maropu commented on a change in pull request #27342: [SPARK-30620][SQL] avoid
unnecessary serialization in AggregateExpression
URL: https://github.com/apache/spark/pull/27342#discussion_r370092344
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/aggregate/interfaces.scala
##########
@@ -96,6 +96,7 @@ case class AggregateExpression(
extends Expression
with Unevaluable {
+ @transient
lazy val resultAttribute: Attribute = if (aggregateFunction.resolved) {
Review comment:
Oh, I checked this method is called inside the planning phase (`AggUtils`
and `PhysicalAggregation`) only, so this fix looks reasonable.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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]