cloud-fan commented on code in PR #49386:
URL: https://github.com/apache/spark/pull/49386#discussion_r1904896615


##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/unresolved.scala:
##########
@@ -1071,3 +1072,29 @@ trait UnresolvedPlanId extends LeafExpression with 
Unevaluable {
   // Subclasses can override this function to provide more TreePatterns.
   def nodePatternsInternal(): Seq[TreePattern] = Seq()
 }
+
+case class UnresolvedWithColumns(
+     colNames: Seq[String],
+     exprs: Seq[Expression],
+     metadata: Option[Seq[Metadata]],
+     child: LogicalPlan)
+  extends UnresolvedUnaryNode {
+
+  final override val nodePatterns: Seq[TreePattern] = 
Seq(UNRESOLVED_WITH_COLUMNS)
+
+  override protected def withNewChildInternal(
+      newChild: LogicalPlan): UnresolvedWithColumns = copy(child = newChild)
+}
+
+case class UnresolvedWithColumnsRenamed(

Review Comment:
   I don't think we need new logical plans. See how we implement a similar 
feature for SQL pipe: 
https://github.com/apache/spark/commit/68be1da5ba8e54a67eb61822cdf7f8eb47926319



-- 
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: reviews-unsubscr...@spark.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to