You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ignite.apache.org by "korlov42 (via GitHub)" <gi...@apache.org> on 2023/08/21 05:56:16 UTC

[GitHub] [ignite-3] korlov42 commented on a diff in pull request #2452: IGNITE-20196 Sql. Review list of reserved keywords

korlov42 commented on code in PR #2452:
URL: https://github.com/apache/ignite-3/pull/2452#discussion_r1299641336


##########
modules/sql-engine/src/main/codegen/config.fmpp:
##########
@@ -57,85 +57,47 @@ data: {
     # not a reserved keyword, add it to the 'nonReservedKeywords' section.
     keywords: [
       "COLOCATE"
-      "SEMI"
       "IF"
       "INDEX"
       "ENGINE"
-#     "KEY_TYPE" // already presented in Calcite
       "TREE"
       "HASH"
-      "RENAME",
-      "UUID",
+      "RENAME"
+      "UUID"
     ]
 
     # List of non-reserved keywords to add;
-    # items in this list become non-reserved
-    nonReservedKeywords: [
-      "SEMI"
+    # items in this list become non-reserved.
+    nonReservedKeywordsToAdd: [

Review Comment:
   This patch changes the configuration of FMPP task in order to take an advantage of a default configuration introduced in [CALCITE-4238](https://issues.apache.org/jira/browse/CALCITE-4238). Having default configuration, any sub parser (as Ignite parser, for instance) may omit redundant configuration, and concentrate only on extensions to the grammar. One of such extensions is a list of keywords that should not be reserved. That is, keywords that can be freely used as identifiers of a table/column/index/whatever without need to be quoted.
   
   A "nonReservedKeywordsToAdd" is an extension point to convert any keyword to non-reserved. Any keyword from this list, as well as any keyword from `default_config.fmpp#nonReservedKeywords`, can be used as an identifier without quoting.



-- 
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: notifications-unsubscribe@ignite.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org