cloud-fan commented on a change in pull request #23259: [SPARK-26215][SQL] 
Define reserved/non-reserved keywords based on the ANSI SQL standard
URL: https://github.com/apache/spark/pull/23259#discussion_r258370407
 
 

 ##########
 File path: 
sql/catalyst/src/main/antlr4/org/apache/spark/sql/catalyst/parser/SqlBase.g4
 ##########
 @@ -762,8 +763,11 @@ ansiReserved
     | USING | WHEN | WHERE | WITH
     ;
 
+// When `spark.sql.parser.ansi.enabled` = true, the `ansiNonReserved` keywords 
can be used for identifiers.
 
 Review comment:
   so `ansiReserved` + `ansiNonReserved` are all the keywords in Spark? Can we 
add a note here? If in the future someone adds a new keyword, he must put it 
either in `ansiReserved` or in `ansiNonReserved`.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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