You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ro...@apache.org on 2021/07/19 10:35:21 UTC

[iotdb] branch select-into updated (89f278b -> a017715)

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

rong pushed a change to branch select-into
in repository https://gitbox.apache.org/repos/asf/iotdb.git.


    from 89f278b  fix a bug in sql parser and add an example in SessionExample
     new dc6a691  fix matcher
     new a017715  set rowCount when get

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../apache/iotdb/db/engine/selectinto/InsertTabletPlanGenerator.java  | 1 +
 .../apache/iotdb/db/engine/selectinto/InsertTabletPlansIterator.java  | 4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)

[iotdb] 02/02: set rowCount when get

Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

rong pushed a commit to branch select-into
in repository https://gitbox.apache.org/repos/asf/iotdb.git

commit a017715d29b7d95ebe31c003c80c6631e5750a50
Author: Steve Yurong Su <ro...@apache.org>
AuthorDate: Mon Jul 19 18:34:46 2021 +0800

    set rowCount when get
---
 .../org/apache/iotdb/db/engine/selectinto/InsertTabletPlanGenerator.java | 1 +
 1 file changed, 1 insertion(+)

diff --git a/server/src/main/java/org/apache/iotdb/db/engine/selectinto/InsertTabletPlanGenerator.java b/server/src/main/java/org/apache/iotdb/db/engine/selectinto/InsertTabletPlanGenerator.java
index 0665696..73c510f 100644
--- a/server/src/main/java/org/apache/iotdb/db/engine/selectinto/InsertTabletPlanGenerator.java
+++ b/server/src/main/java/org/apache/iotdb/db/engine/selectinto/InsertTabletPlanGenerator.java
@@ -168,6 +168,7 @@ public class InsertTabletPlanGenerator {
   }
 
   public InsertTabletPlan getInsertTabletPlan() {
+    insertTabletPlan.setRowCount(rowCount);
     return insertTabletPlan;
   }
 }

[iotdb] 01/02: fix matcher

Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

rong pushed a commit to branch select-into
in repository https://gitbox.apache.org/repos/asf/iotdb.git

commit dc6a691d3f37d04915592fc2a4a372a8c1e77ea0
Author: Steve Yurong Su <ro...@apache.org>
AuthorDate: Mon Jul 19 18:25:22 2021 +0800

    fix matcher
---
 .../apache/iotdb/db/engine/selectinto/InsertTabletPlansIterator.java  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/server/src/main/java/org/apache/iotdb/db/engine/selectinto/InsertTabletPlansIterator.java b/server/src/main/java/org/apache/iotdb/db/engine/selectinto/InsertTabletPlansIterator.java
index c47e0b9..f48966d 100644
--- a/server/src/main/java/org/apache/iotdb/db/engine/selectinto/InsertTabletPlansIterator.java
+++ b/server/src/main/java/org/apache/iotdb/db/engine/selectinto/InsertTabletPlansIterator.java
@@ -61,7 +61,7 @@ public class InsertTabletPlansIterator {
   }
 
   private PartialPath generateActualIntoPath(int index) throws IllegalPathException {
-    String[] nodes = intoPaths.get(index).getNodes();
+    String[] nodes = new PartialPath(queryDataSet.getPaths().get(index).getFullPath()).getNodes();
 
     int indexOfLeftBracket = nodes[0].indexOf("(");
     if (indexOfLeftBracket != -1) {
@@ -73,7 +73,7 @@ public class InsertTabletPlansIterator {
     }
 
     StringBuffer sb = new StringBuffer();
-    Matcher m = leveledPathNodePattern.matcher(queryDataSet.getPaths().get(index).getFullPath());
+    Matcher m = leveledPathNodePattern.matcher(intoPaths.get(index).getFullPath());
     while (m.find()) {
       String param = m.group();
       String value = nodes[Integer.parseInt(param.substring(2, param.length() - 1).trim())];