You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by sp...@apache.org on 2023/07/12 15:23:49 UTC

[iotdb] 01/01: Fix auth anltr

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

spricoder pushed a commit to branch refactor/fix_auth_anltr
in repository https://gitbox.apache.org/repos/asf/iotdb.git

commit 35a6046a1f41d215bbaf2bd50abcaa537611fd5e
Author: spricoder <sp...@qq.com>
AuthorDate: Wed Jul 12 23:23:34 2023 +0800

    Fix auth anltr
---
 .../antlr/src/main/antlr4/org/apache/iotdb/db/qp/sql/SqlLexer.g4     | 4 ----
 .../src/test/java/org/apache/iotdb/commons/path/PartialPathTest.java | 5 +++++
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/iotdb-core/antlr/src/main/antlr4/org/apache/iotdb/db/qp/sql/SqlLexer.g4 b/iotdb-core/antlr/src/main/antlr4/org/apache/iotdb/db/qp/sql/SqlLexer.g4
index 4ab2ffbc495..e4e5acab678 100644
--- a/iotdb-core/antlr/src/main/antlr4/org/apache/iotdb/db/qp/sql/SqlLexer.g4
+++ b/iotdb-core/antlr/src/main/antlr4/org/apache/iotdb/db/qp/sql/SqlLexer.g4
@@ -955,10 +955,6 @@ MANAGE_DATABASE
     : M A N A G E '_' D A T A B A S E
     ;
 
-SET_STORAGE_GROUP
-    : S E T '_' S T O R A G E '_' G R O U P
-    ;
-
 SCHEMA_REPLICATION_FACTOR
     : S C H E M A '_' R E P L I C A T I O N '_' F A C T O R
     ;
diff --git a/iotdb-core/node-commons/src/test/java/org/apache/iotdb/commons/path/PartialPathTest.java b/iotdb-core/node-commons/src/test/java/org/apache/iotdb/commons/path/PartialPathTest.java
index 8874c34fd4e..232c4b87550 100644
--- a/iotdb-core/node-commons/src/test/java/org/apache/iotdb/commons/path/PartialPathTest.java
+++ b/iotdb-core/node-commons/src/test/java/org/apache/iotdb/commons/path/PartialPathTest.java
@@ -128,6 +128,11 @@ public class PartialPathTest {
     Assert.assertEquals("root.sg.abc", t.getFullPath());
     nodes = new String[] {"root", "sg", "abc"};
     checkNodes(nodes, t.getNodes());
+
+    PartialPath u = new PartialPath("root.sg.set_storage_group");
+    Assert.assertEquals("root.sg.set_storage_group", u.getFullPath());
+    nodes = new String[] {"root", "sg", "set_storage_group"};
+    checkNodes(nodes, u.getNodes());
   }
 
   @Test