milanisvet commented on code in PR #49232:
URL: https://github.com/apache/spark/pull/49232#discussion_r1901530829
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/logical/basicLogicalOperators.scala:
##########
@@ -884,6 +884,10 @@ case class CTERelationDef(
copy(child = newChild)
override def output: Seq[Attribute] = if (resolved) child.output else Nil
+
+ lazy val recursive: Boolean = child.exists(
+ (p: LogicalPlan) => p.isInstanceOf[CTERelationRef] &&
p.asInstanceOf[CTERelationRef].recursive
Review Comment:
Rewritten and added the condition. Let me know if this looks now good.
--
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]