cloud-fan commented on code in PR #42036:
URL: https://github.com/apache/spark/pull/42036#discussion_r1272959878
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/logical/v2Commands.scala:
##########
@@ -1234,12 +1241,16 @@ case class RepairTable(
case class AlterViewAs(
child: LogicalPlan,
originalText: String,
- query: LogicalPlan) extends BinaryCommand {
+ query: LogicalPlan) extends BinaryCommand with CTEInChildren {
override def left: LogicalPlan = child
override def right: LogicalPlan = query
override protected def withNewChildrenInternal(
newLeft: LogicalPlan, newRight: LogicalPlan): LogicalPlan =
copy(child = newLeft, query = newRight)
+
+ override def withCTEDefs(cteDefs: Seq[CTERelationDef]): LogicalPlan = {
+ withNewChildren(Seq(child, WithCTE(query, cteDefs)))
Review Comment:
`withNewChildren` can copy over the tree node tags.
--
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]