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_r259227389
 
 

 ##########
 File path: docs/sql-reserved-and-non-reserved-keywords.md
 ##########
 @@ -0,0 +1,573 @@
+---
+layout: global
+title: SQL Reserved/Non-Reserved Keywords
+displayTitle: SQL Reserved/Non-Reserved Keywords
+---
+
+When `spark.sql.parser.ansi.enabled` is set to true (false by default), some 
keywords are reserved for Spark SQL.
 
 Review comment:
   ```
   In Spark SQL there are 2 kinds of keywords: non-reserved and reserved. 
Non-reserved keywords have a special meaning only in particular contexts and 
can be used as identifiers (e.g., table names, view names, column names, column 
aliases, table aliases) in other contexts. Reserved keywords can't be used as 
table alias, but can be used as other identifiers.
   
   The list of reserved and non-reserved keywords can change according to the 
config `spark.sql.parser.ansi.enabled`, which is false by default.
   ```

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