xianyinxin commented on a change in pull request #26536: [SPARK-29907][SQL] 
Move DELETE/UPDATE/MERGE relative rules to dmlStatementNoWith to support cte
URL: https://github.com/apache/spark/pull/26536#discussion_r347091387
 
 

 ##########
 File path: 
sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/parser/DDLParserSuite.scala
 ##########
 @@ -784,6 +784,16 @@ class DDLParserSuite extends AnalysisTest {
         Some(EqualTo(UnresolvedAttribute("t.a"), Literal(2)))))
   }
 
+  test("delete from table: cte") {
+    parseCompare("WITH c(a) AS (SELECT 2) DELETE FROM testcat.ns1.ns2.tbl AS t 
WHERE t.a = c.a",
+      With(DeleteFromTable(
 
 Review comment:
   Yeah, you're right, we should do that. Will update soon.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to