uros-b commented on code in PR #56792:
URL: https://github.com/apache/spark/pull/56792#discussion_r3481105622


##########
sql/api/src/main/antlr4/org/apache/spark/sql/catalyst/parser/SqlBaseParser.g4:
##########
@@ -739,8 +739,8 @@ resource
 dmlStatementNoWith
     : insertInto (query | LEFT_PAREN query RIGHT_PAREN queryAlias=tableAlias)  
    #singleInsertQuery
     | fromClause multiInsertQueryBody+                                         
    #multiInsertQuery
-    | DELETE FROM identifierReference tableAlias whereClause?                  
    #deleteFromTable
-    | UPDATE identifierReference tableAlias setClause whereClause?             
    #updateTable
+    | DELETE FROM identifierReference optionsClause? tableAlias whereClause?   
    #deleteFromTable
+    | UPDATE identifierReference optionsClause? tableAlias setClause 
whereClause?  #updateTable
     | MERGE (WITH SCHEMA EVOLUTION)? INTO target=identifierReference 
targetAlias=tableAlias

Review Comment:
   So this PR makes INSERT/DELETE/UPDATE accept WITH(...), but how about MERGE?



-- 
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]

Reply via email to