gatorsmile commented on a change in pull request #25626: [SPARK-28892][SQL] Add
UPDATE support for DataSource V2
URL: https://github.com/apache/spark/pull/25626#discussion_r319738668
##########
File path:
sql/catalyst/src/main/antlr4/org/apache/spark/sql/catalyst/parser/SqlBase.g4
##########
@@ -474,6 +475,14 @@ selectClause
: SELECT (hints+=hint)* setQuantifier? namedExpressionSeq
;
+setClause
+ : SET assign (',' assign)*
+ ;
+
+assign
+ : key=multipartIdentifier EQ value=valueExpression
Review comment:
valueExpression -> expression.
Although we do not support subqueries, we should make the parser support it
and issue an exception in the analyzer.
----------------------------------------------------------------
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]