Skip to content

Commit

Permalink
[IOTDB-1670] Fix cli -e mode didn't fetch timestamp_precision from se…
Browse files Browse the repository at this point in the history
…rver (#3942)
  • Loading branch information
HTHou committed Sep 10, 2021
1 parent 601df56 commit a885ec9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions cli/src/main/java/org/apache/iotdb/cli/Cli.java
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ private static void serve() {
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;
Expand Down
1 change: 1 addition & 0 deletions cli/src/main/java/org/apache/iotdb/cli/WinCli.java
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ private static void serve() {
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;
Expand Down

0 comments on commit a885ec9

Please sign in to comment.