You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ge...@apache.org on 2020/07/14 12:17:36 UTC

[incubator-iotdb] branch optimize_path updated: Update LogicalGenerator.java

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

geniuspig pushed a commit to branch optimize_path
in repository https://gitbox.apache.org/repos/asf/incubator-iotdb.git


The following commit(s) were added to refs/heads/optimize_path by this push:
     new 64ee555  Update LogicalGenerator.java
64ee555 is described below

commit 64ee555986c943d1bace2cedbdb4f67fa5f0bd8e
Author: zhutianci <zh...@gmail.com>
AuthorDate: Tue Jul 14 20:17:18 2020 +0800

    Update LogicalGenerator.java
---
 .../main/java/org/apache/iotdb/db/qp/strategy/LogicalGenerator.java   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/server/src/main/java/org/apache/iotdb/db/qp/strategy/LogicalGenerator.java b/server/src/main/java/org/apache/iotdb/db/qp/strategy/LogicalGenerator.java
index 24f4b1e..7f7c29b 100644
--- a/server/src/main/java/org/apache/iotdb/db/qp/strategy/LogicalGenerator.java
+++ b/server/src/main/java/org/apache/iotdb/db/qp/strategy/LogicalGenerator.java
@@ -785,10 +785,10 @@ public class LogicalGenerator extends SqlBaseBaseListener {
   @Override
   public void enterDeleteStorageGroup(DeleteStorageGroupContext ctx) {
     super.enterDeleteStorageGroup(ctx);
-    List<String> deletePaths = new ArrayList<>();
+    List<Path> deletePaths = new ArrayList<>();
     List<FullPathContext> fullPaths = ctx.fullPath();
     for (FullPathContext fullPath : fullPaths) {
-      deletePaths.add(fullPath.getText());
+      deletePaths.add(parseFullPath(fullPath));
     }
     DeleteStorageGroupOperator deleteStorageGroupOperator = new DeleteStorageGroupOperator(
         SQLConstant.TOK_METADATA_DELETE_FILE_LEVEL);