You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ta...@apache.org on 2021/11/25 11:52:22 UTC

[iotdb] branch xianyi updated: fix deviceID split

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

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


The following commit(s) were added to refs/heads/xianyi by this push:
     new be96c07  fix deviceID split
be96c07 is described below

commit be96c0739d99341d6ba4152744bb81dd5df41697
Author: LebronAl <TX...@gmail.com>
AuthorDate: Thu Nov 25 19:51:42 2021 +0800

    fix deviceID split
---
 cli/src/main/java/org/apache/iotdb/cli/AbstractCli.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cli/src/main/java/org/apache/iotdb/cli/AbstractCli.java b/cli/src/main/java/org/apache/iotdb/cli/AbstractCli.java
index 74f1ae2..2f131b0 100644
--- a/cli/src/main/java/org/apache/iotdb/cli/AbstractCli.java
+++ b/cli/src/main/java/org/apache/iotdb/cli/AbstractCli.java
@@ -379,7 +379,7 @@ public abstract class AbstractCli {
     }
 
     if (specialCmd.startsWith(SELECT_COUNT) && nodeList.size() != 0) {
-      String[] paths = specialCmd.split("\\.");
+      String[] paths = specialCmd.split(" ");
       String deviceId = paths[paths.length - 1];
       EndPoint endpoint = nodeList.get(deviceId.hashCode() % nodeList.size());
       if (endpoint.port == Integer.parseInt(port)) {