cloud-fan commented on code in PR #39925:
URL: https://github.com/apache/spark/pull/39925#discussion_r1103967545
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/ColumnResolutionHelper.scala:
##########
@@ -369,4 +381,47 @@ trait ColumnResolutionHelper extends Logging {
throws = true,
allowOuter = allowOuter)
}
+
+ private def resolveExpressionByPlanId(
+ e: Expression,
+ q: LogicalPlan): Expression = {
+ if (!e.exists(_.getTagValue(LogicalPlan.PLAN_ID_TAG).nonEmpty)) {
+ return e
+ }
+
+ e match {
+ case u: UnresolvedAttribute =>
+ resolveUnresolvedAttributeByPlanId(u, q).getOrElse(u)
+ case l: LeafExpression => l
Review Comment:
this line can be removed. the next line covers it.
--
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]