EnricoMi commented on code in PR #37407:
URL: https://github.com/apache/spark/pull/37407#discussion_r972790708
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/QueryPlan.scala:
##########
@@ -208,6 +208,7 @@ abstract class QueryPlan[PlanType <: QueryPlan[PlanType]]
}
def recursiveTransform(arg: Any): AnyRef = arg match {
+ case ue: UnpivotExpr =>
ue.withNewChildren(ue.exprs.map(transformExpression))
Review Comment:
This is a very special treatment in a very generic method. Not nice, but the
best way I could find to make `mapExpressions` tranform `UnpivotExpr.exprs` as
a top-level expression. See comment on top-level expression in PR discussion.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]