You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by zy...@apache.org on 2023/05/18 01:04:20 UTC

[iotdb] branch master updated: [IOTDB-5892] Support keyword VIEW as identifiers (#9875)

This is an automated email from the ASF dual-hosted git repository.

zyk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/master by this push:
     new da53260b3e [IOTDB-5892] Support keyword VIEW as identifiers (#9875)
da53260b3e is described below

commit da53260b3ea50d34a4b0330f7efc6f19e5dc8c32
Author: Chen YZ <43...@users.noreply.github.com>
AuthorDate: Thu May 18 09:04:12 2023 +0800

    [IOTDB-5892] Support keyword VIEW as identifiers (#9875)
---
 antlr/src/main/antlr4/org/apache/iotdb/db/qp/sql/IdentifierParser.g4 | 1 +
 docs/UserGuide/Reference/Keywords.md                                 | 1 +
 docs/zh/UserGuide/Reference/Keywords.md                              | 1 +
 3 files changed, 3 insertions(+)

diff --git a/antlr/src/main/antlr4/org/apache/iotdb/db/qp/sql/IdentifierParser.g4 b/antlr/src/main/antlr4/org/apache/iotdb/db/qp/sql/IdentifierParser.g4
index d56944d0e8..a55ddb3991 100644
--- a/antlr/src/main/antlr4/org/apache/iotdb/db/qp/sql/IdentifierParser.g4
+++ b/antlr/src/main/antlr4/org/apache/iotdb/db/qp/sql/IdentifierParser.g4
@@ -214,6 +214,7 @@ keyWords
     | VARIATION
     | VERIFY
     | VERSION
+    | VIEW
     | WHEN
     | WHERE
     | WITH
diff --git a/docs/UserGuide/Reference/Keywords.md b/docs/UserGuide/Reference/Keywords.md
index 88cd9c5b9e..101c7090bf 100644
--- a/docs/UserGuide/Reference/Keywords.md
+++ b/docs/UserGuide/Reference/Keywords.md
@@ -222,6 +222,7 @@ Common Keywords:
 - VALUES
 - VERIFY
 - VERSION
+- VIEW
 - WATERMARK_EMBEDDING
 - WHERE
 - WITH
diff --git a/docs/zh/UserGuide/Reference/Keywords.md b/docs/zh/UserGuide/Reference/Keywords.md
index 2d98f03490..1ce80b8d39 100644
--- a/docs/zh/UserGuide/Reference/Keywords.md
+++ b/docs/zh/UserGuide/Reference/Keywords.md
@@ -222,6 +222,7 @@
 - VALUES
 - VERIFY
 - VERSION
+- VIEW
 - WATERMARK_EMBEDDING
 - WHERE
 - WITH