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

[iotdb] branch 1670_12 created (now a700a7c)

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

haonan pushed a change to branch 1670_12
in repository https://gitbox.apache.org/repos/asf/iotdb.git.


      at a700a7c  [IOTDB-1670] Fix cli -e mode didn't fetch timestamp_precision from server

This branch includes the following new commits:

     new a700a7c  [IOTDB-1670] Fix cli -e mode didn't fetch timestamp_precision from server

The 1 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.


[iotdb] 01/01: [IOTDB-1670] Fix cli -e mode didn't fetch timestamp_precision from server

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

haonan pushed a commit to branch 1670_12
in repository https://gitbox.apache.org/repos/asf/iotdb.git

commit a700a7c5609d67685beac022f921cc11ae823d2b
Author: HTHou <hh...@outlook.com>
AuthorDate: Fri Sep 10 14:47:08 2021 +0800

    [IOTDB-1670] Fix cli -e mode didn't fetch timestamp_precision from server
---
 cli/src/main/java/org/apache/iotdb/cli/Cli.java    | 1 +
 cli/src/main/java/org/apache/iotdb/cli/WinCli.java | 1 +
 2 files changed, 2 insertions(+)

diff --git a/cli/src/main/java/org/apache/iotdb/cli/Cli.java b/cli/src/main/java/org/apache/iotdb/cli/Cli.java
index d1b0735..0889735 100644
--- a/cli/src/main/java/org/apache/iotdb/cli/Cli.java
+++ b/cli/src/main/java/org/apache/iotdb/cli/Cli.java
@@ -121,6 +121,7 @@ public class Cli extends AbstractCli {
                 DriverManager.getConnection(
                     Config.IOTDB_URL_PREFIX + host + ":" + port + "/", username, password)) {
           properties = connection.getServerProperties();
+          timestampPrecision = properties.getTimestampPrecision();
           AGGREGRATE_TIME_LIST.addAll(properties.getSupportedTimeAggregationOperations());
           processCommand(execute, connection);
           return;
diff --git a/cli/src/main/java/org/apache/iotdb/cli/WinCli.java b/cli/src/main/java/org/apache/iotdb/cli/WinCli.java
index 1ef3cd9..34f44f7 100644
--- a/cli/src/main/java/org/apache/iotdb/cli/WinCli.java
+++ b/cli/src/main/java/org/apache/iotdb/cli/WinCli.java
@@ -133,6 +133,7 @@ public class WinCli extends AbstractCli {
                 DriverManager.getConnection(
                     Config.IOTDB_URL_PREFIX + host + ":" + port + "/", username, password)) {
           properties = connection.getServerProperties();
+          timestampPrecision = properties.getTimestampPrecision();
           AGGREGRATE_TIME_LIST.addAll(properties.getSupportedTimeAggregationOperations());
           processCommand(execute, connection);
           return;