From 91ab8ae542985dd713017dfdc3644e1f38a6ca29 Mon Sep 17 00:00:00 2001 From: ffccites <99155080+PDGGK@users.noreply.github.com> Date: Thu, 5 Feb 2026 18:00:50 +0800 Subject: [PATCH] =?UTF-8?q?Fix=20typo:=20AGGREGRATE=5FTIME=5FLIST=20?= =?UTF-8?q?=E2=86=92=20AGGREGATE=5FTIME=5FLIST?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #17155 - AbstractCli.java: Rename constant from AGGREGRATE_TIME_LIST to AGGREGATE_TIME_LIST - Cli.java: Update all references to use correct spelling Co-Authored-By: Claude Opus 4.5 --- .../cli/src/main/java/org/apache/iotdb/cli/AbstractCli.java | 2 +- iotdb-client/cli/src/main/java/org/apache/iotdb/cli/Cli.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/iotdb-client/cli/src/main/java/org/apache/iotdb/cli/AbstractCli.java b/iotdb-client/cli/src/main/java/org/apache/iotdb/cli/AbstractCli.java index 8fd0a179063c7..87563aa9ac6d5 100644 --- a/iotdb-client/cli/src/main/java/org/apache/iotdb/cli/AbstractCli.java +++ b/iotdb-client/cli/src/main/java/org/apache/iotdb/cli/AbstractCli.java @@ -88,7 +88,7 @@ public abstract class AbstractCli { static final int CODE_ERROR = 1; static final String ISO8601_ARGS = "disableISO8601"; - static final List AGGREGRATE_TIME_LIST = new ArrayList<>(); + static final List 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"; diff --git a/iotdb-client/cli/src/main/java/org/apache/iotdb/cli/Cli.java b/iotdb-client/cli/src/main/java/org/apache/iotdb/cli/Cli.java index b34cfe249c4a6..dce105207c3fc 100644 --- a/iotdb-client/cli/src/main/java/org/apache/iotdb/cli/Cli.java +++ b/iotdb-client/cli/src/main/java/org/apache/iotdb/cli/Cli.java @@ -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) { @@ -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);