Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public abstract class AbstractCli {
static final int CODE_ERROR = 1;

static final String ISO8601_ARGS = "disableISO8601";
static final List<String> AGGREGRATE_TIME_LIST = new ArrayList<>();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like this list is useless. Better to remove it?

static final List<String> AGGREGATE_TIME_LIST = new ArrayList<>();
static final String RPC_COMPRESS_ARGS = "c";
private static final String RPC_COMPRESS_NAME = "rpcCompressed";
static final String TIMEOUT_ARGS = "timeout";
Expand Down
4 changes: 2 additions & 2 deletions iotdb-client/cli/src/main/java/org/apache/iotdb/cli/Cli.java
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ private static void executeSql(CliContext ctx) throws TException {
connection.setQueryTimeout(queryTimeout);
properties = connection.getServerProperties();
timestampPrecision = properties.getTimestampPrecision();
AGGREGRATE_TIME_LIST.addAll(properties.getSupportedTimeAggregationOperations());
AGGREGATE_TIME_LIST.addAll(properties.getSupportedTimeAggregationOperations());
processCommand(ctx, execute, connection);
ctx.exit(lastProcessStatus);
} catch (SQLException e) {
Expand All @@ -200,7 +200,7 @@ private static void receiveCommands(CliContext ctx) throws TException {
DriverManager.getConnection(Config.IOTDB_URL_PREFIX + host + ":" + port + "/", info)) {
connection.setQueryTimeout(queryTimeout);
properties = connection.getServerProperties();
AGGREGRATE_TIME_LIST.addAll(properties.getSupportedTimeAggregationOperations());
AGGREGATE_TIME_LIST.addAll(properties.getSupportedTimeAggregationOperations());
timestampPrecision = properties.getTimestampPrecision();

echoStarting(ctx);
Expand Down
Loading