cloud-fan commented on code in PR #43867:
URL: https://github.com/apache/spark/pull/43867#discussion_r1400638381
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/optimizer/InlineCTE.scala:
##########
@@ -96,7 +96,7 @@ case class InlineCTE(alwaysInline: Boolean = false) extends
Rule[LogicalPlan] {
}
buildCTEMap(child, cteMap, outerCTEId)
- case ref: CTERelationRef =>
+ case ref: CTERelationRef if cteMap.contains(ref.cteId) =>
Review Comment:
do we still need to change this file?
--
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]