You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ja...@apache.org on 2026/05/17 00:11:47 UTC

(iotdb) branch master updated: feat: add compile-time i18n for log and exception messages (#17613)

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

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


The following commit(s) were added to refs/heads/master by this push:
     new f797f8507a3 feat: add compile-time i18n for log and exception messages (#17613)
f797f8507a3 is described below

commit f797f8507a391b34f74c08f0c1f4f6dc4355b177
Author: Jackie Tien <ja...@gmail.com>
AuthorDate: Sun May 17 08:11:40 2026 +0800

    feat: add compile-time i18n for log and exception messages (#17613)
---
 .github/workflows/compile-check.yml                |    4 +
 CLAUDE.md                                          |    7 +
 README.md                                          |   10 +
 README_ZH.md                                       |   10 +
 external-service-impl/mqtt/pom.xml                 |    4 +
 .../org/apache/iotdb/mqtt/i18n/MqttMessages.java   |   54 +
 .../org/apache/iotdb/mqtt/i18n/MqttMessages.java   |   54 +
 .../apache/iotdb/mqtt/JSONPayloadFormatter.java    |    4 +-
 .../apache/iotdb/mqtt/LinePayloadFormatter.java    |   12 +-
 .../org/apache/iotdb/mqtt/MPPPublishHandler.java   |    7 +-
 .../java/org/apache/iotdb/mqtt/MQTTService.java    |    7 +-
 .../apache/iotdb/mqtt/PayloadFormatManager.java    |   15 +-
 external-service-impl/rest/pom.xml                 |    4 +
 .../org/apache/iotdb/rest/i18n/RestMessages.java   |   23 +-
 .../org/apache/iotdb/rest/i18n/RestMessages.java   |   23 +-
 .../java/org/apache/iotdb/rest/RestService.java    |    7 +-
 .../v1/handler/StatementConstructionHandler.java   |    4 +-
 .../v1/handler/StatementConstructionHandler.java   |    4 +-
 .../v2/handler/RequestValidationHandler.java       |    3 +-
 .../v2/handler/StatementConstructionHandler.java   |    4 +-
 iotdb-api/pipe-api/pom.xml                         |    8 +
 .../iotdb/pipe/api/i18n/PipeApiMessages.java       |   12 +-
 .../iotdb/pipe/api/i18n/PipeApiMessages.java       |   12 +-
 .../parameter/PipeParameterValidator.java          |    4 +-
 iotdb-api/trigger-api/pom.xml                      |    8 +
 .../trigger/api/i18n/TriggerApiMessages.java}      |   22 +-
 .../trigger/api/i18n/TriggerApiMessages.java}      |   22 +-
 .../iotdb/trigger/api/enums/FailureStrategy.java   |    4 +-
 .../iotdb/trigger/api/enums/TriggerEvent.java      |    5 +-
 .../iotdb/trigger/api/enums/TriggerType.java       |    5 +-
 iotdb-api/udf-api/pom.xml                          |    8 +
 .../apache/iotdb/udf/api/i18n/UdfApiMessages.java  |   77 ++
 .../apache/iotdb/udf/api/i18n/UdfApiMessages.java  |   76 ++
 .../analysis/AggregateFunctionAnalysis.java        |    4 +-
 .../analysis/ScalarFunctionAnalysis.java           |    4 +-
 .../api/customizer/config/UDFConfigurations.java   |    3 +-
 .../api/customizer/config/UDTFConfigurations.java  |    3 +-
 .../strategy/SlidingTimeWindowAccessStrategy.java  |    7 +-
 .../relational/table/MapTableFunctionHandle.java   |    7 +-
 .../table/TableFunctionProcessorProvider.java      |    7 +-
 .../api/relational/table/argument/Argument.java    |    4 +-
 .../relational/table/argument/DescribedSchema.java |    3 +-
 .../relational/table/argument/ScalarArgument.java  |    7 +-
 .../relational/table/argument/TableArgument.java   |    3 +-
 .../specification/ParameterSpecification.java      |    4 +-
 .../java/org/apache/iotdb/udf/api/type/Type.java   |    4 +-
 .../org/apache/iotdb/udf/api/utils/RowImpl.java    |   17 +-
 iotdb-client/cli/pom.xml                           |    4 +
 .../en/org/apache/iotdb/cli/i18n/CliMessages.java  |   70 +
 .../zh/org/apache/iotdb/cli/i18n/CliMessages.java  |   70 +
 .../java/org/apache/iotdb/cli/AbstractCli.java     |    3 +-
 .../org/apache/iotdb/cli/utils/CliContext.java     |    3 +-
 .../iotdb/tool/backup/IoTDBDataBackTool.java       |   41 +-
 .../apache/iotdb/tool/data/AbstractDataTool.java   |    3 +-
 .../org/apache/iotdb/tool/data/ImportData.java     |   17 +-
 .../org/apache/iotdb/tool/schema/ExportSchema.java |    3 +-
 .../iotdb/tool/schema/ExportSchemaTable.java       |    3 +-
 .../apache/iotdb/tool/schema/ExportSchemaTree.java |    3 +-
 .../iotdb/tool/schema/ImportSchemaTable.java       |    3 +-
 .../apache/iotdb/tool/schema/ImportSchemaTree.java |    3 +-
 .../iotdb/tool/tsfile/AbstractTsFileTool.java      |    3 +-
 .../iotdb/tool/tsfile/ImportTsFileRemotely.java    |    3 +-
 iotdb-client/isession/pom.xml                      |    8 +
 .../iotdb/isession/i18n/ISessionMessages.java      |   24 +-
 .../iotdb/isession/i18n/ISessionMessages.java      |   24 +-
 .../org/apache/iotdb/isession/SessionDataSet.java  |    5 +-
 .../apache/iotdb/isession/template/Template.java   |    5 +-
 .../org/apache/iotdb/jdbc/i18n/JdbcMessages.java   |  184 +++
 .../org/apache/iotdb/jdbc/i18n/JdbcMessages.java   |  184 +++
 .../main/java/org/apache/iotdb/jdbc/Constant.java  |    4 +-
 .../iotdb/jdbc/GroupedLSBWatermarkEncoder.java     |    6 +-
 .../iotdb/jdbc/IoTDBAbstractDatabaseMetadata.java  |   43 +-
 .../org/apache/iotdb/jdbc/IoTDBConnection.java     |   68 +-
 .../org/apache/iotdb/jdbc/IoTDBDataSource.java     |    6 +-
 .../apache/iotdb/jdbc/IoTDBDataSourceFactory.java  |    4 +-
 .../apache/iotdb/jdbc/IoTDBDatabaseMetadata.java   |    9 +-
 .../java/org/apache/iotdb/jdbc/IoTDBDriver.java    |    6 +-
 .../org/apache/iotdb/jdbc/IoTDBJDBCResultSet.java  |    7 +-
 .../apache/iotdb/jdbc/IoTDBPreparedStatement.java  |   11 +-
 .../org/apache/iotdb/jdbc/IoTDBResultMetadata.java |    8 +-
 .../java/org/apache/iotdb/jdbc/IoTDBStatement.java |   44 +-
 .../iotdb/jdbc/IoTDBTablePreparedStatement.java    |   19 +-
 .../org/apache/iotdb/jdbc/IoTDBTracingInfo.java    |    5 +-
 .../java/org/apache/iotdb/jdbc/StringUtils.java    |    6 +-
 .../IoTDBRelationalDatabaseMetadata.java           |    5 +-
 iotdb-client/service-rpc/pom.xml                   |    4 +
 .../en/org/apache/iotdb/rpc/i18n/RpcMessages.java  |   82 ++
 .../zh/org/apache/iotdb/rpc/i18n/RpcMessages.java  |   70 +
 .../apache/iotdb/rpc/BaseRpcTransportFactory.java  |    4 +-
 .../apache/iotdb/rpc/ConfigurableTByteBuffer.java  |    6 +-
 .../org/apache/iotdb/rpc/IoTDBJDBCDataSet.java     |   18 +-
 .../java/org/apache/iotdb/rpc/IoTDBRpcDataSet.java |   19 +-
 .../main/java/org/apache/iotdb/rpc/RpcUtils.java   |    5 +-
 .../org/apache/iotdb/rpc/SynchronizedHandler.java  |    6 +-
 .../apache/iotdb/rpc/TElasticFramedTransport.java  |   21 +-
 .../iotdb/rpc/stmt/PreparedParameterSerde.java     |    8 +-
 iotdb-client/session/pom.xml                       |    4 +
 .../apache/iotdb/session/i18n/SessionMessages.java |  262 ++++
 .../apache/iotdb/session/i18n/SessionMessages.java |  261 ++++
 .../org/apache/iotdb/session/NodesSupplier.java    |    5 +-
 .../java/org/apache/iotdb/session/Session.java     |   64 +-
 .../apache/iotdb/session/SessionConnection.java    |   20 +-
 .../org/apache/iotdb/session/ThriftConnection.java |    3 +-
 .../org/apache/iotdb/session/pool/SessionPool.java |  295 ++--
 .../iotdb/session/template/InternalNode.java       |    3 +-
 .../apache/iotdb/session/util/SessionUtils.java    |    3 +-
 iotdb-client/subscription/pom.xml                  |    8 +
 .../subscription/i18n/SubscriptionMessages.java    |   95 ++
 .../subscription/i18n/SubscriptionMessages.java    |   95 ++
 .../rpc/subscription/config/ConsumerConstant.java  |    4 +-
 .../rpc/subscription/config/TopicConstant.java     |    4 +-
 .../payload/poll/SubscriptionPollRequest.java      |    6 +-
 .../payload/poll/SubscriptionPollResponse.java     |    6 +-
 .../base/AbstractSubscriptionConsumer.java         |   14 +-
 .../base/AbstractSubscriptionProviders.java        |   11 +-
 .../base/AbstractSubscriptionPullConsumer.java     |    9 +-
 .../base/AbstractSubscriptionPushConsumer.java     |    9 +-
 .../base/SubscriptionExecutorServiceManager.java   |   16 +-
 .../session/subscription/util/IdentifierUtils.java |    7 +-
 .../iotdb/session/subscription/util/PollTimer.java |    4 +-
 iotdb-core/calc-commons/pom.xml                    |    4 +
 .../org/apache/iotdb/calc/i18n/CalcMessages.java   |  154 +++
 .../org/apache/iotdb/calc/i18n/CalcMessages.java   |  146 ++
 .../calc/execution/operator/AbstractOperator.java  |   13 +-
 .../operator/process/AbstractSortOperator.java     |    5 +-
 .../operator/process/FilterAndProjectOperator.java |    3 +-
 .../execution/operator/process/TopKOperator.java   |    5 +-
 .../function/TableFunctionLeafOperator.java        |    5 +-
 .../operator/process/function/partition/Slice.java |    7 +-
 .../process/join/merge/MergeSortComparator.java    |    4 +-
 .../merge/comparator/JoinKeyComparatorFactory.java |    4 +-
 .../rowpattern/PatternPartitionExecutor.java       |    3 +-
 .../rowpattern/expression/ArithmeticOperator.java  |   10 +-
 .../rowpattern/expression/CastComputation.java     |    3 +-
 .../rowpattern/expression/ComparisonOperator.java  |    5 +-
 .../process/rowpattern/expression/Computation.java |    7 +-
 .../rowpattern/expression/LogicalOperator.java     |    6 +-
 .../expression/PatternExpressionComputation.java   |    4 +-
 .../matcher/IrRowPatternToProgramRewriter.java     |    6 +-
 .../process/rowpattern/matcher/Matcher.java        |    3 +-
 .../process/window/TopKRankingOperator.java        |    5 +-
 .../process/window/partition/Partition.java        |    3 +-
 .../window/partition/PartitionExecutor.java        |    3 +-
 .../process/window/partition/frame/FrameInfo.java  |    6 +-
 .../window/partition/frame/GroupsFrame.java        |    5 +-
 .../process/window/partition/frame/RangeFrame.java |   29 +-
 .../process/window/partition/frame/RowsFrame.java  |    5 +-
 .../operator/process/window/utils/ColumnList.java  |    4 +-
 .../relational/aggregation/AccumulatorFactory.java |   18 +-
 .../ApproxPercentileWithWeightAccumulator.java     |   21 +-
 .../aggregation/CountAllAccumulator.java           |    5 +-
 .../relational/aggregation/CountIfAccumulator.java |    5 +-
 .../relational/aggregation/RecordIterator.java     |    7 +-
 .../relational/aggregation/TableAccumulator.java   |    5 +-
 .../UserDefinedAggregateFunctionAccumulator.java   |    7 +-
 .../aggregation/approximate/HyperLogLog.java       |    3 +-
 .../aggregation/approximate/TDigest.java           |   11 +-
 ...oupedApproxPercentileWithWeightAccumulator.java |   21 +-
 .../GroupedUserDefinedAggregateAccumulator.java    |    4 +-
 .../grouped/array/IntArrayFIFOQueue.java           |    7 +-
 .../grouped/array/LongBigArrayFIFOQueue.java       |    5 +-
 .../relational/ColumnTransformerBuilder.java       |   11 +-
 .../schedule/queue/IndexedBlockingQueue.java       |    4 +-
 .../queue/IndexedBlockingReserveQueue.java         |    6 +-
 .../calc/plan/planner/CommonOperatorUtils.java     |    6 +-
 .../calc/plan/planner/TableOperatorGenerator.java  |   23 +-
 .../planner/CastToBlobLiteralVisitor.java          |    3 +-
 .../planner/CastToBooleanLiteralVisitor.java       |    3 +-
 .../planner/CastToDateLiteralVisitor.java          |    3 +-
 .../planner/CastToDoubleLiteralVisitor.java        |    3 +-
 .../planner/CastToFloatLiteralVisitor.java         |    3 +-
 .../planner/CastToInt32LiteralVisitor.java         |    3 +-
 .../planner/CastToInt64LiteralVisitor.java         |    3 +-
 .../planner/CastToStringLiteralVisitor.java        |    3 +-
 .../planner/CastToTimestampLiteralVisitor.java     |    3 +-
 .../ir/GlobalTimePredicateExtractVisitor.java      |    3 +-
 .../AbstractTemporaryQueryDataFileService.java     |    9 +-
 .../column/TreeCaseWhenThenColumnTransformer.java  |    4 +-
 .../binary/ArithmeticBinaryColumnTransformer.java  |    3 +-
 .../binary/CompareBinaryColumnTransformer.java     |    3 +-
 .../binary/CompareEqualToColumnTransformer.java    |    3 +-
 .../binary/CompareNonEqualColumnTransformer.java   |    3 +-
 .../binary/LogicBinaryColumnTransformer.java       |    3 +-
 .../multi/LogicalMultiColumnTransformer.java       |    3 +-
 .../dag/column/unary/InColumnTransformer.java      |    9 +-
 .../column/unary/scalar/ExtractTransformer.java    |    3 +-
 .../unary/scalar/RoundColumnTransformer.java       |    3 +-
 .../scalar/factory/CodecStrategiesFactory.java     |    9 +-
 .../dag/column/unary/scalar/util/HexUtils.java     |    5 +-
 .../unary/scalar/util/SpookyHashV2Utils.java       |   11 +-
 .../transformation/dag/util/CastFunctionUtils.java |    4 +-
 .../dag/util/CommonTransformUtils.java             |    3 +-
 .../transformation/dag/util/InputRowUtils.java     |    4 +-
 .../row/ElasticSerializableRowList.java            |    3 +-
 .../datastructure/row/SerializableRowList.java     |    3 +-
 .../tv/ElasticSerializableBinaryTVList.java        |    3 +-
 .../datastructure/tv/SerializableTVList.java       |    3 +-
 .../apache/iotdb/calc/utils/ObjectTypeUtils.java   |    7 +-
 .../iotdb/calc/utils/sort/SortBufferManager.java   |    3 +-
 iotdb-core/confignode/pom.xml                      |   25 +
 .../iotdb/confignode/i18n/ConfigNodeMessages.java  |  525 +++++++
 .../iotdb/confignode/i18n/ManagerMessages.java     |  528 ++++++++
 .../iotdb/confignode/i18n/ProcedureMessages.java   | 1090 +++++++++++++++
 .../iotdb/confignode/i18n/ConfigNodeMessages.java  |  521 +++++++
 .../iotdb/confignode/i18n/ManagerMessages.java     |  523 +++++++
 .../iotdb/confignode/i18n/ProcedureMessages.java   | 1088 +++++++++++++++
 .../CnToDnInternalServiceAsyncRequestManager.java  |    4 +-
 .../rpc/CheckTimeSeriesExistenceRPCHandler.java    |   14 +-
 .../handlers/rpc/ConfigNodeTSStatusRPCHandler.java |    6 +-
 .../rpc/CountPathsUsingTemplateRPCHandler.java     |   14 +-
 .../handlers/rpc/DataNodeTSStatusRPCHandler.java   |    6 +-
 .../rpc/FetchSchemaBlackListRPCHandler.java        |   12 +-
 .../rpc/GetBuiltInExternalServiceRPCHandler.java   |    3 +-
 .../handlers/rpc/PipeHeartbeatRPCHandler.java      |    5 +-
 .../async/handlers/rpc/PipePushMetaRPCHandler.java |    6 +-
 .../async/handlers/rpc/SchemaUpdateRPCHandler.java |   10 +-
 .../handlers/rpc/TransferLeaderRPCHandler.java     |    6 +-
 .../rpc/TreeDeviceViewFieldDetectionHandler.java   |    6 +-
 .../CheckSchemaRegionUsingTemplateRPCHandler.java  |   13 +-
 .../ConsumerGroupPushMetaRPCHandler.java           |    6 +-
 .../rpc/subscription/TopicPushMetaRPCHandler.java  |    6 +-
 .../client/sync/SyncAINodeClientPool.java          |   20 +-
 .../client/sync/SyncConfigNodeClientPool.java      |    7 +-
 .../client/sync/SyncDataNodeClientPool.java        |   26 +-
 .../iotdb/confignode/conf/ConfigNodeConfig.java    |    3 +-
 .../confignode/conf/ConfigNodeDescriptor.java      |   41 +-
 .../confignode/conf/ConfigNodeStartupCheck.java    |   42 +-
 .../confignode/conf/SystemPropertiesUtils.java     |   11 +-
 .../consensus/request/ConfigPhysicalPlan.java      |    7 +-
 .../pipe/task/OperateMultiplePipesPlanV2.java      |    6 +-
 .../statemachine/ConfigRegionStateMachine.java     |   54 +-
 .../iotdb/confignode/manager/ClusterManager.java   |    5 +-
 .../iotdb/confignode/manager/ConfigManager.java    |   38 +-
 .../confignode/manager/PermissionManager.java      |   11 +-
 .../iotdb/confignode/manager/ProcedureManager.java |   66 +-
 .../confignode/manager/RetryFailedTasksThread.java |    5 +-
 .../iotdb/confignode/manager/TTLManager.java       |    7 +-
 .../iotdb/confignode/manager/TriggerManager.java   |   10 +-
 .../iotdb/confignode/manager/UDFManager.java       |   14 +-
 .../manager/consensus/ConsensusManager.java        |   16 +-
 .../iotdb/confignode/manager/cq/CQManager.java     |   10 +-
 .../confignode/manager/cq/CQScheduleTask.java      |   22 +-
 .../externalservice/ExternalServiceInfo.java       |   10 +-
 .../externalservice/ExternalServiceManager.java    |   13 +-
 .../manager/load/balancer/PartitionBalancer.java   |   11 +-
 .../manager/load/balancer/RouteBalancer.java       |   25 +-
 .../partition/DataPartitionPolicyTable.java        |    5 +-
 .../region/GreedyRegionGroupAllocator.java         |    3 +-
 .../PartiteGraphPlacementRegionGroupAllocator.java |    4 +-
 .../router/leader/AbstractLeaderBalancer.java      |   13 +-
 .../confignode/manager/load/cache/LoadCache.java   |   15 +-
 .../load/cache/detector/PhiAccrualDetector.java    |    7 +-
 .../load/cache/node/DataNodeHeartbeatCache.java    |    3 +-
 .../manager/load/service/EventService.java         |   23 +-
 .../manager/load/service/HeartbeatService.java     |    5 +-
 .../manager/load/service/StatisticsService.java    |    5 +-
 .../manager/load/service/TopologyService.java      |    9 +-
 .../iotdb/confignode/manager/node/NodeManager.java |   41 +-
 .../manager/partition/PartitionManager.java        |   27 +-
 .../manager/partition/PartitionMetrics.java        |    7 +-
 .../partition/RegionGroupExtensionPolicy.java      |    4 +-
 .../manager/partition/RegionGroupStatus.java       |    5 +-
 .../agent/runtime/PipeConfigNodeRuntimeAgent.java  |   11 +-
 .../pipe/agent/task/PipeConfigNodeSubtask.java     |   11 +-
 .../pipe/agent/task/PipeConfigNodeTaskAgent.java   |   10 +-
 .../pipe/agent/task/PipeConfigNodeTaskStage.java   |    5 +-
 .../coordinator/plugin/PipePluginCoordinator.java  |    8 +-
 .../pipe/coordinator/runtime/PipeMetaSyncer.java   |   22 +-
 .../runtime/heartbeat/PipeHeartbeatParser.java     |   16 +-
 .../runtime/heartbeat/PipeHeartbeatScheduler.java  |   11 +-
 .../pipe/coordinator/task/PipeTaskCoordinator.java |   16 +-
 .../coordinator/task/PipeTaskCoordinatorLock.java  |   23 +-
 .../pipe/event/PipeConfigRegionSnapshotEvent.java  |    3 +-
 .../event/PipeConfigSerializableEventType.java     |    3 +-
 .../PipeConfigNodeRemainingTimeMetrics.java        |   10 +-
 .../pipe/metric/overview/PipeProcedureMetrics.java |    4 +-
 .../PipeTemporaryMetaInCoordinatorMetrics.java     |    6 +-
 .../metric/sink/PipeConfigRegionSinkMetrics.java   |    9 +-
 .../source/PipeConfigRegionSourceMetrics.java      |    7 +-
 .../receiver/protocol/IoTDBConfigNodeReceiver.java |   16 +-
 .../PipeConfigNodeCopiedFileDirStartupCleaner.java |    3 +-
 .../sink/protocol/IoTDBConfigRegionAirGapSink.java |   17 +-
 .../pipe/sink/protocol/IoTDBConfigRegionSink.java  |   25 +-
 .../pipe/source/ConfigRegionListeningQueue.java    |    9 +-
 .../pipe/source/IoTDBConfigRegionSource.java       |   11 +-
 .../source/PipeConfigTreePatternParseVisitor.java  |   12 +-
 .../PipeConfigTreePrivilegeParseVisitor.java       |   38 +-
 .../manager/schema/ClusterSchemaManager.java       |   34 +-
 .../subscription/SubscriptionCoordinator.java      |   19 +-
 .../subscription/SubscriptionMetaSyncer.java       |   14 +-
 .../iotdb/confignode/persistence/ClusterInfo.java  |    9 +-
 .../confignode/persistence/ProcedureInfo.java      |   32 +-
 .../iotdb/confignode/persistence/TTLInfo.java      |    5 +-
 .../iotdb/confignode/persistence/TriggerInfo.java  |   28 +-
 .../iotdb/confignode/persistence/UDFInfo.java      |   25 +-
 .../confignode/persistence/auth/AuthorInfo.java    |   10 +-
 .../persistence/auth/AuthorPlanExecutor.java       |    6 +-
 .../iotdb/confignode/persistence/cq/CQInfo.java    |   11 +-
 .../persistence/executor/ConfigPlanExecutor.java   |   32 +-
 .../confignode/persistence/node/NodeInfo.java      |   37 +-
 .../partition/DatabasePartitionTable.java          |   11 +-
 .../persistence/partition/PartitionInfo.java       |   14 +-
 .../partition/maintainer/RegionMaintainTask.java   |    9 +-
 .../confignode/persistence/pipe/PipeInfo.java      |   47 +-
 .../persistence/pipe/PipePluginInfo.java           |   42 +-
 .../confignode/persistence/pipe/PipeTaskInfo.java  |   23 +-
 .../persistence/schema/ClusterSchemaInfo.java      |   33 +-
 .../confignode/persistence/schema/ConfigMTree.java |   23 +-
 .../schema/ConfigNodeSnapshotParser.java           |    5 +-
 .../persistence/schema/TemplatePreSetTable.java    |    9 +-
 .../persistence/schema/TemplateTable.java          |   26 +-
 .../persistence/schema/mnode/IConfigMNode.java     |    7 +-
 .../schema/mnode/basic/ConfigBasicMNode.java       |    3 +-
 .../schema/mnode/factory/ConfigMNodeFactory.java   |    3 +-
 .../schema/mnode/impl/ConfigTableNode.java         |    3 +-
 .../persistence/subscription/SubscriptionInfo.java |   16 +-
 .../procedure/PartitionTableAutoCleaner.java       |   11 +-
 .../iotdb/confignode/procedure/Procedure.java      |   29 +-
 .../confignode/procedure/ProcedureExecutor.java    |   75 +-
 .../procedure/TimeoutExecutorThread.java           |    4 +-
 .../procedure/env/RegionMaintainHandler.java       |   58 +-
 .../procedure/env/RemoveDataNodeHandler.java       |   35 +-
 .../procedure/impl/cq/CreateCQProcedure.java       |   36 +-
 .../impl/node/AddConfigNodeProcedure.java          |   23 +-
 .../procedure/impl/node/RemoveAINodeProcedure.java |   25 +-
 .../impl/node/RemoveConfigNodeProcedure.java       |   14 +-
 .../impl/node/RemoveDataNodesProcedure.java        |    7 +-
 .../DataPartitionTableIntegrityCheckProcedure.java |   70 +-
 .../impl/pipe/AbstractOperatePipeProcedureV2.java  |   69 +-
 .../pipe/plugin/CreatePipePluginProcedure.java     |   47 +-
 .../impl/pipe/plugin/DropPipePluginProcedure.java  |   36 +-
 .../runtime/PipeHandleLeaderChangeProcedure.java   |   20 +-
 .../runtime/PipeHandleMetaChangeProcedure.java     |   22 +-
 .../impl/pipe/runtime/PipeMetaSyncProcedure.java   |   25 +-
 .../impl/pipe/task/AlterPipeProcedureV2.java       |   29 +-
 .../impl/pipe/task/CreatePipeProcedureV2.java      |   32 +-
 .../impl/pipe/task/DropPipeProcedureV2.java        |   24 +-
 .../impl/pipe/task/StartPipeProcedureV2.java       |   28 +-
 .../impl/pipe/task/StopPipeProcedureV2.java        |   28 +-
 .../pipe/util/PipeExternalSourceLoadBalancer.java  |    8 +-
 .../impl/region/AddRegionPeerProcedure.java        |   34 +-
 .../impl/region/CreateRegionGroupsProcedure.java   |   16 +-
 .../region/NotifyRegionMigrationProcedure.java     |    9 +-
 .../impl/region/ReconstructRegionProcedure.java    |   18 +-
 .../impl/region/RegionMigrateProcedure.java        |   16 +-
 .../impl/region/RemoveRegionPeerProcedure.java     |   34 +-
 .../schema/AlterEncodingCompressorProcedure.java   |   15 +-
 .../impl/schema/AlterLogicalViewProcedure.java     |   19 +-
 .../schema/AlterTimeSeriesDataTypeProcedure.java   |   37 +-
 .../impl/schema/DeactivateTemplateProcedure.java   |   27 +-
 .../impl/schema/DeleteDatabaseProcedure.java       |   16 +-
 .../impl/schema/DeleteLogicalViewProcedure.java    |   27 +-
 .../impl/schema/DeleteTimeSeriesProcedure.java     |   27 +-
 .../procedure/impl/schema/SchemaUtils.java         |   16 +-
 .../procedure/impl/schema/SetTTLProcedure.java     |   16 +-
 .../impl/schema/SetTemplateProcedure.java          |   73 +-
 .../impl/schema/UnsetTemplateProcedure.java        |   44 +-
 .../table/AbstractAlterOrDropTableProcedure.java   |   15 +-
 .../impl/schema/table/AddTableColumnProcedure.java |   29 +-
 .../table/AlterTableColumnDataTypeProcedure.java   |   20 +-
 .../impl/schema/table/CreateTableProcedure.java    |   46 +-
 .../impl/schema/table/DeleteDevicesProcedure.java  |   31 +-
 .../schema/table/DropTableColumnProcedure.java     |   23 +-
 .../impl/schema/table/DropTableProcedure.java      |   31 +-
 .../schema/table/RenameTableColumnProcedure.java   |   29 +-
 .../impl/schema/table/RenameTableProcedure.java    |   30 +-
 .../schema/table/SetTablePropertiesProcedure.java  |   30 +-
 .../table/view/CreateTableViewProcedure.java       |    6 +-
 .../AbstractOperateSubscriptionProcedure.java      |   65 +-
 .../consumer/AlterConsumerGroupProcedure.java      |   41 +-
 .../runtime/ConsumerGroupMetaSyncProcedure.java    |   21 +-
 ...bstractOperateSubscriptionAndPipeProcedure.java |   35 +-
 .../subscription/CreateSubscriptionProcedure.java  |   42 +-
 .../subscription/DropSubscriptionProcedure.java    |   28 +-
 .../subscription/topic/AlterTopicProcedure.java    |   47 +-
 .../subscription/topic/CreateTopicProcedure.java   |   34 +-
 .../subscription/topic/DropTopicProcedure.java     |   21 +-
 .../topic/runtime/TopicMetaSyncProcedure.java      |   21 +-
 .../impl/sync/AuthOperationProcedure.java          |   19 +-
 .../AddNeverFinishSubProcedureProcedure.java       |    3 +-
 .../testonly/CreateManyDatabasesProcedure.java     |    5 +-
 .../impl/trigger/CreateTriggerProcedure.java       |   29 +-
 .../impl/trigger/DropTriggerProcedure.java         |   18 +-
 .../procedure/store/ConfigProcedureStore.java      |    7 +-
 .../procedure/store/ProcedureFactory.java          |   15 +-
 .../iotdb/confignode/service/ConfigNode.java       |   64 +-
 .../confignode/service/ConfigNodeShutdownHook.java |    8 +-
 .../thrift/ConfigNodeRPCServiceProcessor.java      |   56 +-
 .../writelog/io/SingleFileLogReader.java           |   15 +-
 iotdb-core/consensus/pom.xml                       |    4 +
 .../iotdb/consensus/i18n/ConsensusMessages.java    |  168 +++
 .../iotdb/consensus/i18n/IoTConsensusMessages.java |  301 +++++
 .../consensus/i18n/IoTConsensusV2Messages.java     |  123 ++
 .../apache/iotdb/consensus/i18n/RatisMessages.java |  122 ++
 .../iotdb/consensus/i18n/ConsensusMessages.java    |  166 +++
 .../iotdb/consensus/i18n/IoTConsensusMessages.java |  299 ++++
 .../consensus/i18n/IoTConsensusV2Messages.java     |  122 ++
 .../apache/iotdb/consensus/i18n/RatisMessages.java |  121 ++
 .../apache/iotdb/consensus/ConsensusFactory.java   |    8 +-
 .../org/apache/iotdb/consensus/IStateMachine.java  |    3 +-
 .../org/apache/iotdb/consensus/common/Peer.java    |    3 +-
 .../org/apache/iotdb/consensus/common/Utils.java   |    6 +-
 .../ConsensusGroupAlreadyExistException.java       |    3 +-
 .../exception/ConsensusGroupNotExistException.java |    3 +-
 .../exception/IllegalPeerEndpointException.java    |    6 +-
 .../exception/IllegalPeerNumException.java         |    4 +-
 .../PeerAlreadyInConsensusGroupException.java      |    7 +-
 .../PeerNotInConsensusGroupException.java          |    3 +-
 .../apache/iotdb/consensus/iot/IoTConsensus.java   |   60 +-
 .../consensus/iot/IoTConsensusServerImpl.java      |  152 +--
 .../iot/client/AsyncIoTConsensusServiceClient.java |    5 +-
 .../consensus/iot/client/DispatchLogHandler.java   |   12 +-
 .../iot/logdispatcher/IndexController.java         |   26 +-
 .../logdispatcher/IoTConsensusMemoryManager.java   |   19 +-
 .../consensus/iot/logdispatcher/LogDispatcher.java |   61 +-
 .../service/IoTConsensusRPCServiceProcessor.java   |   66 +-
 .../iotdb/consensus/pipe/IoTConsensusV2.java       |   81 +-
 .../consensus/pipe/IoTConsensusV2PeerManager.java  |    3 +-
 .../consensus/pipe/IoTConsensusV2ServerImpl.java   |   70 +-
 .../pipe/consensuspipe/ConsensusPipeName.java      |    5 +-
 .../service/IoTConsensusV2RPCServiceProcessor.java |   28 +-
 .../ratis/ApplicationStateMachineProxy.java        |   20 +-
 .../apache/iotdb/consensus/ratis/DiskGuardian.java |   10 +-
 .../apache/iotdb/consensus/ratis/RatisClient.java  |    6 +-
 .../iotdb/consensus/ratis/RatisConsensus.java      |   61 +-
 .../iotdb/consensus/ratis/ResponseMessage.java     |    3 +-
 .../iotdb/consensus/ratis/SnapshotStorage.java     |    5 +-
 .../ratis/metrics/MetricRegistryManager.java       |    8 +-
 .../apache/iotdb/consensus/ratis/utils/Utils.java  |    7 +-
 .../iotdb/consensus/simple/SimpleConsensus.java    |   22 +-
 iotdb-core/datanode/pom.xml                        |    1 +
 .../apache/iotdb/db/i18n/DataNodeMiscMessages.java |  970 +++++++++++++
 .../apache/iotdb/db/i18n/DataNodePipeMessages.java | 1378 +++++++++++++++++++
 .../iotdb/db/i18n/DataNodeQueryMessages.java       | 1426 ++++++++++++++++++++
 .../iotdb/db/i18n/DataNodeSchemaMessages.java      |  608 +++++++++
 .../iotdb/db/i18n/StorageEngineMessages.java       |  514 +++++++
 .../apache/iotdb/db/i18n/DataNodeMiscMessages.java |  969 +++++++++++++
 .../apache/iotdb/db/i18n/DataNodePipeMessages.java | 1329 ++++++++++++++++++
 .../iotdb/db/i18n/DataNodeQueryMessages.java       | 1425 +++++++++++++++++++
 .../iotdb/db/i18n/DataNodeSchemaMessages.java      |  599 ++++++++
 .../iotdb/db/i18n/StorageEngineMessages.java       |  514 +++++++
 .../apache/iotdb/db/auth/BasicAuthorityCache.java  |    5 +-
 .../iotdb/db/auth/ClusterAuthorityFetcher.java     |    5 +-
 .../org/apache/iotdb/db/auth/LoginLockManager.java |   21 +-
 .../apache/iotdb/db/conf/DataNodeMemoryConfig.java |    3 +-
 .../apache/iotdb/db/conf/DataNodeStartupCheck.java |    5 +-
 .../java/org/apache/iotdb/db/conf/IoTDBConfig.java |   14 +-
 .../org/apache/iotdb/db/conf/IoTDBDescriptor.java  |   36 +-
 .../org/apache/iotdb/db/conf/IoTDBStartCheck.java  |   15 +-
 .../db/conf/rest/IoTDBRestServiceDescriptor.java   |   13 +-
 .../consensus/statemachine/BaseStateMachine.java   |   11 +-
 .../dataregion/DataExecutionVisitor.java           |   33 +-
 .../dataregion/DataRegionStateMachine.java         |   13 +-
 .../IoTConsensusDataRegionStateMachine.java        |    6 +-
 .../schemaregion/SchemaExecutionVisitor.java       |   13 +-
 .../db/partition/DataPartitionTableGenerator.java  |   17 +-
 .../pipe/agent/plugin/PipeDataNodePluginAgent.java |    7 +-
 .../db/pipe/agent/runtime/PipeAgentLauncher.java   |   10 +-
 .../agent/runtime/PipeDataNodeRuntimeAgent.java    |    5 +-
 .../agent/runtime/SimpleProgressIndexAssigner.java |   15 +-
 .../iotdb/db/pipe/agent/task/PipeDataNodeTask.java |    9 +-
 .../db/pipe/agent/task/PipeDataNodeTaskAgent.java  |   27 +-
 .../task/builder/PipeDataNodeTaskBuilder.java      |   20 +-
 .../agent/task/connection/PipeEventCollector.java  |    9 +-
 .../subtask/processor/PipeProcessorSubtask.java    |    5 +-
 .../processor/PipeProcessorSubtaskWorker.java      |    5 +-
 .../sink/PipeRealtimePriorityBlockingQueue.java    |   14 +-
 .../agent/task/subtask/sink/PipeSinkSubtask.java   |    7 +-
 .../subtask/sink/PipeSinkSubtaskLifeCycle.java     |   17 +-
 .../task/subtask/sink/PipeSinkSubtaskManager.java  |   10 +-
 .../pipe/consensus/deletion/DeletionResource.java  |    5 +-
 .../deletion/DeletionResourceManager.java          |   27 +-
 .../deletion/persist/PageCacheDeletionBuffer.java  |   47 +-
 .../consensus/deletion/recover/DeletionReader.java |   10 +-
 .../db/pipe/event/common/PipeInsertionEvent.java   |    3 +-
 .../event/common/row/PipeDataTypeTransformer.java  |    3 +-
 .../db/pipe/event/common/row/PipeRowCollector.java |    3 +-
 .../schema/PipeSchemaRegionSnapshotEvent.java      |    3 +-
 .../schema/PipeSchemaSerializableEventType.java    |    3 +-
 .../statement/PipeStatementInsertionEvent.java     |    7 +-
 .../tablet/PipeInsertNodeTabletInsertionEvent.java |   18 +-
 .../common/tablet/PipeRawTabletInsertionEvent.java |    4 +-
 .../tablet/parser/TabletInsertionEventParser.java  |    7 +-
 .../TabletInsertionEventTablePatternParser.java    |    7 +-
 .../tsfile/PipeCompactedTsFileInsertionEvent.java  |    8 +-
 .../common/tsfile/PipeTsFileInsertionEvent.java    |   23 +-
 .../aggregator/TsFileInsertionPointCounter.java    |    3 +-
 .../tsfile/parser/TsFileInsertionEventParser.java  |    9 +-
 .../query/TsFileInsertionEventQueryParser.java     |   10 +-
 ...ileInsertionEventQueryParserTabletIterator.java |    5 +-
 .../parser/scan/SinglePageWholeChunkReader.java    |    6 +-
 .../scan/TsFileInsertionEventScanParser.java       |    9 +-
 .../table/TsFileInsertionEventTableParser.java     |    4 +-
 ...ileInsertionEventTableParserTabletIterator.java |    6 +-
 .../tsfile/parser/util/ModsOperationUtil.java      |    4 +-
 .../overview/PipeDataNodeSinglePipeMetrics.java    |   10 +-
 .../overview/PipeTsFileToTabletsMetrics.java       |   16 +-
 .../metric/processor/PipeProcessorMetrics.java     |   15 +-
 .../schema/PipeSchemaRegionListenerMetrics.java    |    7 +-
 .../metric/schema/PipeSchemaRegionSinkMetrics.java |   12 +-
 .../schema/PipeSchemaRegionSourceMetrics.java      |    8 +-
 .../metric/sink/PipeDataRegionSinkMetrics.java     |   15 +-
 .../db/pipe/metric/source/PipeAssignerMetrics.java |    5 +-
 .../metric/source/PipeDataRegionSourceMetrics.java |   23 +-
 .../aggregate/AbstractFormalProcessor.java         |    7 +-
 .../processor/aggregate/AggregateProcessor.java    |    4 +-
 .../numeric/AbstractSameTypeNumericOperator.java   |   15 +-
 .../doubletype/FractionPoweredSumOperator.java     |    9 +-
 .../window/datastructure/TimeSeriesWindow.java     |   17 +-
 .../downsampling/PartialPathLastObjectCache.java   |    7 +-
 .../changing/ChangingValueSamplingProcessor.java   |    3 +-
 .../sdt/SwingingDoorTrendingSamplingProcessor.java |    3 +-
 .../tumbling/TumblingTimeSamplingProcessor.java    |    3 +-
 .../pipe/processor/twostage/combiner/Combiner.java |    5 +-
 .../twostage/combiner/PipeCombineHandler.java      |   12 +-
 .../combiner/PipeCombineHandlerManager.java        |    7 +-
 .../twostage/exchange/payload/CombineRequest.java  |    4 +-
 .../receiver/TwoStageAggregateReceiver.java        |    7 +-
 .../exchange/sender/TwoStageAggregateSender.java   |   30 +-
 .../twostage/plugin/TwoStageCountProcessor.java    |   30 +-
 .../protocol/airgap/IoTDBAirGapReceiver.java       |   38 +-
 .../protocol/airgap/IoTDBAirGapReceiverAgent.java  |    9 +-
 .../iotconsensusv2/IoTConsensusV2Receiver.java     |  130 +-
 .../IoTConsensusV2ReceiverAgent.java               |   17 +-
 .../legacy/IoTDBLegacyPipeReceiverAgent.java       |   38 +-
 .../protocol/legacy/loader/DeletionLoader.java     |    7 +-
 .../protocol/legacy/loader/TsFileLoader.java       |    5 +-
 .../protocol/thrift/IoTDBDataNodeReceiver.java     |   21 +-
 .../transform/converter/ValueConverter.java        |    4 +-
 .../PipeConvertedInsertTabletStatement.java        |    3 +-
 ...leStatementDataTypeConvertExecutionVisitor.java |   17 +-
 ...eeStatementDataTypeConvertExecutionVisitor.java |   12 +-
 ...aNodeHardlinkOrCopiedFileDirStartupCleaner.java |    5 +-
 .../resource/log/PipePeriodicalLogReducer.java     |    4 +-
 .../resource/memory/InsertNodeMemoryEstimator.java |    3 +-
 .../pipe/resource/memory/PipeFixedMemoryBlock.java |   10 +-
 .../db/pipe/resource/memory/PipeMemoryBlock.java   |    9 +-
 .../db/pipe/resource/memory/PipeMemoryManager.java |   24 +-
 .../pipe/resource/memory/PipeMemoryWeightUtil.java |    3 +-
 .../resource/memory/PipeModelFixedMemoryBlock.java |    7 +-
 .../resource/tsfile/PipeTsFilePublicResource.java  |   16 +-
 .../pipe/resource/tsfile/PipeTsFileResource.java   |   10 +-
 .../resource/tsfile/PipeTsFileResourceManager.java |    3 +-
 .../tsfile/PipeTsFileResourceSegmentLock.java      |    3 +-
 .../client/IoTDBDataNodeAsyncClientManager.java    |   28 +-
 .../IoTDBDataNodeCacheLeaderClientManager.java     |    6 +-
 .../client/IoTDBDataNodeSyncClientManager.java     |    3 +-
 .../evolvable/batch/PipeTabletEventBatch.java      |    3 +-
 .../batch/PipeTabletEventTsFileBatch.java          |    3 +-
 .../batch/PipeTransferBatchReqBuilder.java         |    7 +-
 .../request/PipeTransferTabletRawReq.java          |    9 +-
 .../request/PipeTransferTabletRawReqV2.java        |    3 +-
 .../db/pipe/sink/payload/legacy/PipeData.java      |    7 +-
 .../protocol/airgap/IoTDBDataRegionAirGapSink.java |   13 +-
 .../airgap/IoTDBSchemaRegionAirGapSink.java        |   13 +-
 .../iotconsensusv2/IoTConsensusV2AsyncSink.java    |   32 +-
 .../iotconsensusv2/IoTConsensusV2SyncSink.java     |    7 +-
 .../handler/IoTConsensusV2DeleteEventHandler.java  |    7 +-
 .../IoTConsensusV2TabletBatchEventHandler.java     |    5 +-
 .../IoTConsensusV2TabletInsertionEventHandler.java |    7 +-
 .../IoTConsensusV2TsFileInsertionEventHandler.java |   16 +-
 .../IoTConsensusV2TransferBatchReqBuilder.java     |    9 +-
 .../request/IoTConsensusV2DeleteNodeReq.java       |    3 +-
 .../request/IoTConsensusV2TabletBinaryReq.java     |    3 +-
 .../request/IoTConsensusV2TabletInsertNodeReq.java |    5 +-
 .../sink/protocol/legacy/IoTDBLegacyPipeSink.java  |   11 +-
 .../sink/protocol/opcda/OpcDaServerHandle.java     |   44 +-
 .../db/pipe/sink/protocol/opcda/OpcDaSink.java     |    4 +-
 .../db/pipe/sink/protocol/opcua/OpcUaSink.java     |   20 +-
 .../sink/protocol/opcua/client/ClientRunner.java   |   19 +-
 .../opcua/client/IoTDBKeyStoreLoaderClient.java    |    4 +-
 .../protocol/opcua/client/IoTDBOpcUaClient.java    |    9 +-
 .../protocol/opcua/server/OpcUaKeyStoreLoader.java |    5 +-
 .../sink/protocol/opcua/server/OpcUaNameSpace.java |   20 +-
 .../protocol/opcua/server/OpcUaServerBuilder.java  |    7 +-
 .../thrift/async/IoTDBDataRegionAsyncSink.java     |   26 +-
 .../PipeTransferTabletBatchEventHandler.java       |    3 +-
 .../PipeTransferTabletInsertionEventHandler.java   |    3 +-
 .../handler/PipeTransferTrackableHandler.java      |    9 +-
 .../async/handler/PipeTransferTsFileHandler.java   |   32 +-
 .../thrift/sync/IoTDBDataRegionSyncSink.java       |   19 +-
 .../thrift/sync/IoTDBSchemaRegionSink.java         |   16 +-
 .../websocket/WebSocketConnectorServer.java        |   65 +-
 .../sink/protocol/websocket/WebSocketSink.java     |    6 +-
 .../sink/protocol/writeback/WriteBackSink.java     |    6 +-
 .../util/builder/PipeTableModelTsFileBuilder.java  |   18 +-
 .../builder/PipeTableModelTsFileBuilderV2.java     |    8 +-
 .../util/builder/PipeTreeModelTsFileBuilder.java   |   12 +-
 .../util/builder/PipeTreeModelTsFileBuilderV2.java |    8 +-
 .../pipe/sink/util/builder/PipeTsFileBuilder.java  |    9 +-
 .../dataregion/DataRegionWatermarkInjector.java    |    3 +-
 .../source/dataregion/IoTDBDataRegionSource.java   |   41 +-
 ...istoricalDataRegionTsFileAndDeletionSource.java |   51 +-
 .../PipeRealtimeDataRegionHybridSource.java        |    3 +-
 .../realtime/PipeRealtimeDataRegionSource.java     |   10 +-
 .../realtime/assigner/DisruptorQueue.java          |    3 +-
 .../assigner/DisruptorQueueExceptionHandler.java   |    7 +-
 .../realtime/assigner/PipeDataRegionAssigner.java  |   15 +-
 .../realtime/disruptor/BatchEventProcessor.java    |   14 +-
 .../dataregion/realtime/disruptor/Disruptor.java   |   15 +-
 .../realtime/disruptor/MultiProducerSequencer.java |    8 +-
 .../dataregion/realtime/disruptor/RingBuffer.java  |    6 +-
 .../realtime/epoch/TsFileEpochManager.java         |    5 +-
 .../matcher/CachedSchemaPatternMatcher.java        |   11 +-
 .../schemaregion/IoTDBSchemaRegionSource.java      |    8 +-
 .../PipePlanTreePrivilegeParseVisitor.java         |   25 +-
 .../schemaregion/SchemaRegionListeningQueue.java   |    7 +-
 .../iotdb/db/protocol/client/ConfigNodeClient.java |   26 +-
 .../iotdb/db/protocol/client/ConfigNodeInfo.java   |   11 +-
 .../db/protocol/client/DataNodeInternalClient.java |   11 +-
 .../iotdb/db/protocol/client/an/AINodeClient.java  |    8 +-
 .../cn/AsyncConfigNodeTSStatusRPCHandler.java      |    6 +-
 .../client/dn/AsyncTSStatusRPCHandler.java         |    6 +-
 .../client/dn/DataNodeAsyncRequestRPCHandler.java  |    4 +-
 .../iotdb/db/protocol/session/SessionManager.java  |   25 +-
 .../thrift/handler/BaseServerContextHandler.java   |    5 +-
 .../protocol/thrift/impl/ClientRPCServiceImpl.java |   72 +-
 .../impl/DataNodeInternalRPCServiceImpl.java       |  121 +-
 .../thrift/impl/DataNodeRegionManager.java         |   35 +-
 .../common/schematree/ClusterSchemaTree.java       |    4 +-
 .../common/schematree/node/SchemaNode.java         |    7 +-
 .../db/queryengine/execution/StateMachine.java     |    8 +-
 .../execution/aggregation/AccumulatorFactory.java  |    9 +-
 .../SlidingWindowAggregatorFactory.java            |   13 +-
 .../queryengine/execution/driver/DataDriver.java   |    4 +-
 .../execution/exchange/MPPDataExchangeManager.java |   95 +-
 .../execution/exchange/MPPDataExchangeService.java |    3 +-
 .../execution/exchange/SharedTsBlockQueue.java     |    9 +-
 .../execution/exchange/sink/LocalSinkChannel.java  |   19 +-
 .../execution/exchange/sink/ShuffleSinkHandle.java |   18 +-
 .../execution/exchange/sink/SinkChannel.java       |   34 +-
 .../exchange/source/LocalSourceHandle.java         |   19 +-
 .../execution/exchange/source/SourceHandle.java    |   31 +-
 .../execution/executor/RegionReadExecutor.java     |    9 +-
 .../execution/executor/RegionWriteExecutor.java    |    5 +-
 .../fragment/FragmentInstanceContext.java          |    5 +-
 .../fragment/FragmentInstanceExecution.java        |   23 +-
 .../fragment/FragmentInstanceManager.java          |   10 +-
 .../fragment/FragmentInstanceStateMachine.java     |    3 +-
 .../queryengine/execution/memory/MemoryPool.java   |    4 +-
 .../execution/operator/AggregationUtil.java        |    4 +-
 .../execution/operator/ExplainAnalyzeOperator.java |    9 +-
 .../TableInsertTabletStatementGenerator.java       |    4 +-
 .../TreeInsertTabletStatementGenerator.java        |    3 +-
 .../operator/process/copyto/CopyToOptions.java     |    4 +-
 .../process/copyto/TableCopyToOperator.java        |    8 +-
 .../process/copyto/tsfile/CopyToTsFileOptions.java |   11 +-
 .../process/join/InnerTimeJoinOperator.java        |    4 +-
 .../last/AlignedUpdateLastCacheOperator.java       |    4 +-
 .../operator/schema/NodePathsConvertOperator.java  |    3 +-
 .../AbstractRegionScanDataSourceOperator.java      |    3 +-
 .../AbstractSeriesAggregationScanOperator.java     |    3 +-
 .../source/AbstractSeriesScanOperator.java         |    4 +-
 .../execution/operator/source/SeriesScanUtil.java  |   23 +-
 .../relational/AbstractAggTableScanOperator.java   |    9 +-
 .../relational/AbstractTableScanOperator.java      |    3 +-
 .../source/relational/CteScanOperator.java         |    3 +-
 .../InformationSchemaContentSupplierFactory.java   |    5 +-
 .../relational/LastQueryAggTableScanOperator.java  |    7 +-
 .../window/ainode/InferenceWindowParameter.java    |    4 +-
 .../execution/schedule/AbstractDriverThread.java   |   10 +-
 .../execution/schedule/DriverScheduler.java        |    5 +-
 .../execution/warnings/WarningCode.java            |    4 +-
 .../queryengine/metric/QueryPlanCostMetricSet.java |    7 +-
 .../iotdb/db/queryengine/plan/ClusterTopology.java |    5 +-
 .../iotdb/db/queryengine/plan/Coordinator.java     |   15 +-
 .../db/queryengine/plan/analyze/AnalyzeUtils.java  |   24 +-
 .../queryengine/plan/analyze/AnalyzeVisitor.java   |   35 +-
 .../plan/analyze/ClusterPartitionFetcher.java      |    7 +-
 .../plan/analyze/ConcatPathRewriter.java           |    7 +-
 .../plan/analyze/ExpressionAnalyzer.java           |    3 +-
 .../plan/analyze/ExpressionTypeAnalyzer.java       |    5 +-
 .../queryengine/plan/analyze/SelectIntoUtils.java  |    3 +-
 .../analyze/cache/partition/PartitionCache.java    |   13 +-
 .../plan/analyze/load/LoadTsFileAnalyzer.java      |   13 +-
 .../analyze/load/LoadTsFileTableSchemaCache.java   |    8 +-
 .../load/TreeSchemaAutoCreatorAndVerifier.java     |    3 +-
 .../queryengine/plan/execution/QueryExecution.java |   21 +-
 .../execution/config/TableConfigTaskVisitor.java   |   26 +-
 .../execution/config/TreeConfigTaskVisitor.java    |    4 +-
 .../config/executor/ClusterConfigTaskExecutor.java |   54 +-
 .../config/metadata/AlterTimeSeriesTask.java       |    3 +-
 .../metadata/relational/ShowCreateTableTask.java   |    3 +-
 .../metadata/relational/ShowCreateViewTask.java    |    3 +-
 .../config/sys/quota/ShowThrottleQuotaTask.java    |    7 +-
 .../db/queryengine/plan/expression/Expression.java |    3 +-
 .../expression/UnknownExpressionTypeException.java |    4 +-
 .../expression/binary/CompareBinaryExpression.java |    4 +-
 .../multi/builtin/helper/CastFunctionHelper.java   |    4 +-
 .../builtin/helper/ReplaceFunctionHelper.java      |    4 +-
 .../BindTypeForTimeSeriesOperandVisitor.java       |    4 +-
 .../visitor/IntermediateLayerVisitor.java          |    7 +-
 ...ncatDeviceAndBindSchemaForPredicateVisitor.java |    4 +-
 .../predicate/ConvertPredicateToFilterVisitor.java |   15 +-
 .../ConvertPredicateToTimeFilterVisitor.java       |   10 +-
 .../predicate/PredicatePushIntoScanChecker.java    |   15 +-
 .../visitor/predicate/PredicateVisitor.java        |    3 +-
 .../visitor/predicate/ReversePredicateVisitor.java |    3 +-
 .../plan/optimization/AggregationPushDown.java     |    5 +-
 .../plan/optimization/PredicatePushDown.java       |    6 +-
 .../db/queryengine/plan/parser/ASTVisitor.java     |  195 +--
 .../plan/parser/StatementGenerator.java            |    3 +-
 .../planner/DataNodeTableOperatorGenerator.java    |    9 +-
 .../plan/planner/LocalExecutionPlanner.java        |    4 +-
 .../plan/planner/LogicalPlanBuilder.java           |    3 +-
 .../plan/planner/OperatorTreeGenerator.java        |   29 +-
 .../planner/distribution/DistributionPlanner.java  |    3 +-
 .../plan/planner/distribution/SourceRewriter.java  |    4 +-
 .../plan/AbstractFragmentParallelPlanner.java      |    3 +-
 .../plan/planner/plan/FragmentInstance.java        |    4 +-
 .../plan/node/DataNodePlanNodeDeserializer.java    |   14 +-
 .../plan/planner/plan/node/ExplainAnalyzeNode.java |    7 +-
 .../plan/node/load/LoadSingleTsFileNode.java       |    9 +-
 .../planner/plan/node/load/LoadTsFileNode.java     |    7 +-
 .../plan/node/load/LoadTsFilePieceNode.java        |   14 +-
 .../plan/node/metadata/read/DevicesCountNode.java  |    4 +-
 .../node/metadata/read/DevicesSchemaScanNode.java  |    4 +-
 .../metadata/read/LevelTimeSeriesCountNode.java    |    4 +-
 .../metadata/read/LogicalViewSchemaScanNode.java   |    4 +-
 .../node/metadata/read/TimeSeriesCountNode.java    |    4 +-
 .../metadata/read/TimeSeriesSchemaScanNode.java    |    4 +-
 .../node/metadata/write/AlterTimeSeriesNode.java   |    7 +-
 .../write/CreateAlignedTimeSeriesNode.java         |    7 +-
 .../metadata/write/CreateMultiTimeSeriesNode.java  |    4 +-
 .../node/metadata/write/CreateTimeSeriesNode.java  |    7 +-
 .../write/InternalCreateTimeSeriesNode.java        |    4 +-
 .../metadata/write/view/AlterLogicalViewNode.java  |    4 +-
 .../metadata/write/view/CreateLogicalViewNode.java |    4 +-
 .../source/AlignedSeriesAggregationScanNode.java   |    4 +-
 .../plan/node/source/AlignedSeriesScanNode.java    |    4 +-
 .../plan/node/source/DeviceRegionScanNode.java     |    4 +-
 .../plan/node/source/LastQueryScanNode.java        |    4 +-
 .../node/source/SeriesAggregationScanNode.java     |    4 +-
 .../plan/node/source/SeriesScanSourceNode.java     |    4 +-
 .../plan/node/source/ShowDiskUsageNode.java        |    4 +-
 .../planner/plan/node/source/ShowQueriesNode.java  |    4 +-
 .../plan/node/source/TimeseriesRegionScanNode.java |    4 +-
 .../plan/node/write/AbstractDeleteDataNode.java    |    3 +-
 .../planner/plan/node/write/DeleteDataNode.java    |   12 +-
 .../planner/plan/node/write/DeleteNodeType.java    |    4 +-
 .../plan/node/write/InsertMultiTabletsNode.java    |    6 +-
 .../plan/planner/plan/node/write/InsertNode.java   |    9 +-
 .../planner/plan/node/write/InsertRowNode.java     |    8 +-
 .../planner/plan/node/write/InsertRowsNode.java    |    3 +-
 .../plan/node/write/InsertRowsOfOneDeviceNode.java |    9 +-
 .../planner/plan/node/write/InsertTabletNode.java  |   12 +-
 .../plan/planner/plan/node/write/ObjectNode.java   |    6 +-
 .../plan/node/write/RelationalDeleteDataNode.java  |    5 +-
 .../planner/plan/parameter/AggregationStep.java    |    5 +-
 .../planner/plan/parameter/GroupByParameter.java   |    3 +-
 .../relational/analyzer/AggregationAnalyzer.java   |    4 +-
 .../plan/relational/analyzer/Analysis.java         |    5 +-
 .../plan/relational/analyzer/Analyzer.java         |    4 +-
 .../relational/analyzer/ExpressionAnalyzer.java    |   79 +-
 .../plan/relational/analyzer/Scope.java            |    6 +-
 .../relational/analyzer/StatementAnalyzer.java     |  164 ++-
 .../predicate/ConvertPredicateToFilterVisitor.java |   18 +-
 .../ConvertPredicateToTimeFilterVisitor.java       |   32 +-
 .../PredicatePushIntoMetadataChecker.java          |    3 +-
 .../predicate/PredicatePushIntoScanChecker.java    |    6 +-
 .../analyzer/predicate/PredicateVisitor.java       |    3 +-
 .../ConvertSchemaPredicateToFilterVisitor.java     |    4 +-
 .../schema/ExtractPredicateColumnNameVisitor.java  |    7 +-
 .../metadata/OperatorNotFoundException.java        |    6 +-
 .../relational/metadata/TableMetadataImpl.java     |   30 +-
 .../fetcher/TableDeviceSchemaValidator.java        |    6 +-
 .../fetcher/TableHeaderSchemaValidator.java        |   35 +-
 .../plan/relational/planner/CteMaterializer.java   |    3 +-
 .../planner/IrExpressionInterpreter.java           |    9 +-
 .../plan/relational/planner/IrTypeAnalyzer.java    |   10 +-
 .../plan/relational/planner/LiteralEncoder.java    |    3 +-
 .../relational/planner/LiteralInterpreter.java     |    8 +-
 .../plan/relational/planner/QueryPlanner.java      |   14 +-
 .../plan/relational/planner/RelationPlanner.java   |   27 +-
 .../plan/relational/planner/TranslationMap.java    |    8 +-
 .../distribute/TableDistributedPlanGenerator.java  |   12 +-
 .../ir/GapFillStartAndEndTimeExtractVisitor.java   |    4 +-
 .../plan/relational/planner/ir/IrUtils.java        |    4 +-
 .../planner/ir/NormalizeOrExpressionRewriter.java  |    3 +-
 ...ithUncorrelatedScalarSubqueryReconstructor.java |    3 +-
 .../relational/planner/iterative/RuleIndex.java    |    3 +-
 .../rule/ImplementTableFunctionSource.java         |    4 +-
 .../planner/node/AggregationTableScanNode.java     |    7 +-
 .../node/AggregationTreeDeviceViewScanNode.java    |    3 +-
 .../plan/relational/planner/node/CopyToNode.java   |    7 +-
 .../planner/node/ExplainAnalyzeNode.java           |    7 +-
 .../DataNodeLocationSupplierFactory.java           |    3 +-
 .../optimizations/PlanNodeDecorrelator.java        |    4 +-
 .../planner/optimizations/SymbolMapper.java        |    3 +-
 ...mQuantifiedComparisonApplyToCorrelatedJoin.java |    5 +-
 .../rowpattern/RowPatternToIrRewriter.java         |    3 +-
 .../relational/security/AccessControlImpl.java     |    6 +-
 .../relational/security/ITableAuthCheckerImpl.java |    9 +-
 .../relational/security/TableModelPrivilege.java   |    7 +-
 .../security/TreeAccessCheckVisitor.java           |    9 +-
 .../sql/ast/RelationalAuthorStatement.java         |    4 +-
 .../plan/relational/sql/ast/RenameColumn.java      |    4 +-
 .../plan/relational/sql/ast/RenameTable.java       |    4 +-
 .../plan/relational/sql/parser/AstBuilder.java     |   90 +-
 .../plan/relational/sql/parser/ErrorHandler.java   |    4 +-
 .../plan/relational/sql/parser/SqlParser.java      |    4 +-
 .../plan/relational/sql/util/AstUtil.java          |    7 +-
 .../relational/sql/util/DataNodeSqlFormatter.java  |    9 +-
 .../scheduler/FixedRateFragInsStateTracker.java    |   10 +-
 .../scheduler/FragmentInstanceDispatcherImpl.java  |    9 +-
 .../plan/scheduler/SimpleQueryTerminator.java      |    6 +-
 .../scheduler/load/LoadTsFileDispatcherImpl.java   |   13 +-
 .../plan/scheduler/load/LoadTsFileScheduler.java   |   22 +-
 .../db/queryengine/plan/statement/Statement.java   |    3 +-
 .../plan/statement/crud/InsertBaseStatement.java   |    4 +-
 .../plan/statement/crud/InsertRowStatement.java    |    4 +-
 .../plan/statement/crud/InsertTabletStatement.java |    4 +-
 .../plan/statement/crud/QueryStatement.java        |   62 +-
 .../plan/statement/literal/Literal.java            |    4 +-
 .../metadata/CountTimeSlotListStatement.java       |    3 +-
 .../metadata/CreateContinuousQueryStatement.java   |   10 +-
 .../metadata/DeleteDatabaseStatement.java          |    3 +-
 .../statement/metadata/GetRegionIdStatement.java   |    3 +-
 .../metadata/GetTimeSlotListStatement.java         |    3 +-
 .../plan/statement/sys/AuthorStatement.java        |    5 +-
 ...izableRowRecordListBackedMultiColumnWindow.java |    3 +-
 ...SerializableTVListBackedSingleColumnWindow.java |    3 +-
 .../dag/adapter/EmptyRowIterator.java              |    4 +-
 .../dag/input/ConstantInputReader.java             |    6 +-
 .../transformer/binary/LogicBinaryTransformer.java |    4 +-
 .../unary/ArithmeticNegationTransformer.java       |    4 +-
 .../dag/transformer/unary/InTransformer.java       |    7 +-
 .../dag/transformer/unary/LikeTransformer.java     |    4 +-
 .../dag/transformer/unary/LogicNotTransformer.java |    3 +-
 .../dag/transformer/unary/RegularTransformer.java  |    4 +-
 .../unary/scalar/DiffFunctionTransformer.java      |    4 +-
 .../unary/scalar/ReplaceFunctionTransformer.java   |    4 +-
 .../unary/scalar/SubStringFunctionTransformer.java |    4 +-
 .../dag/udf/UDAFInformationInferrer.java           |    3 +-
 .../dag/udf/UDTFInformationInferrer.java           |    5 +-
 .../transformation/dag/util/TransformUtils.java    |    6 +-
 .../transformation/dag/util/TypeUtils.java         |    3 +-
 .../apache/iotdb/db/schemaengine/SchemaEngine.java |   29 +-
 .../rescon/MemSchemaEngineStatistics.java          |   14 +-
 .../rescon/MemSchemaRegionStatistics.java          |    4 +-
 .../schemaregion/SchemaRegionLoader.java           |   18 +-
 .../schemaregion/SchemaRegionPlanType.java         |    5 +-
 .../schemaregion/SchemaRegionUtils.java            |   31 +-
 .../attribute/DeviceAttributeStore.java            |   14 +-
 .../update/DeviceAttributeCacheUpdater.java        |   20 +-
 .../GeneralRegionAttributeSecurityService.java     |    5 +-
 .../schemaregion/impl/SchemaRegionMemoryImpl.java  |   91 +-
 .../schemaregion/impl/SchemaRegionPBTreeImpl.java  |  111 +-
 .../logfile/FakeCRC32Deserializer.java             |    6 +-
 .../logfile/MLogDescriptionWriter.java             |    4 +-
 .../schemaregion/logfile/SchemaLogReader.java      |   10 +-
 .../schemaregion/logfile/SchemaLogWriter.java      |    5 +-
 .../visitor/SchemaRegionPlanDeserializer.java      |   20 +-
 .../visitor/SchemaRegionPlanSerializer.java        |    4 +-
 .../visitor/SchemaRegionPlanTxtSerializer.java     |    4 +-
 .../mtree/impl/mem/MTreeBelowSGMemoryImpl.java     |   28 +-
 .../mtree/impl/mem/mnode/basic/BasicMNode.java     |    9 +-
 .../impl/mem/mnode/factory/MemMNodeFactory.java    |    3 +-
 .../impl/mem/mnode/impl/BasicInternalMNode.java    |    3 +-
 .../mtree/impl/mem/mnode/info/LogicalViewInfo.java |    5 +-
 .../mnode/iterator/AbstractTraverserIterator.java  |    4 +-
 .../impl/mem/snapshot/MemMTreeSnapshotUtil.java    |   13 +-
 .../mtree/impl/pbtree/CachedMTreeStore.java        |    9 +-
 .../mtree/impl/pbtree/MTreeBelowSGCachedImpl.java  |    5 +-
 .../pbtree/ReentrantReadOnlyCachedMTreeStore.java  |   19 +-
 .../impl/pbtree/flush/PBTreeFlushExecutor.java     |    9 +-
 .../mtree/impl/pbtree/flush/Scheduler.java         |    7 +-
 .../mtree/impl/pbtree/memory/MemoryManager.java    |    4 +-
 .../impl/pbtree/memory/ReleaseFlushMonitor.java    |    6 +-
 .../impl/pbtree/mnode/basic/CachedBasicMNode.java  |    9 +-
 .../mnode/container/CachedMNodeContainer.java      |    4 +-
 .../pbtree/mnode/factory/CacheMNodeFactory.java    |    3 +-
 .../mnode/impl/CachedBasicInternalMNode.java       |    3 +-
 .../impl/pbtree/schemafile/AliasIndexPage.java     |    9 +-
 .../mtree/impl/pbtree/schemafile/ISchemaPage.java  |    4 +-
 .../mtree/impl/pbtree/schemafile/InternalPage.java |    9 +-
 .../mtree/impl/pbtree/schemafile/RecordUtils.java  |    3 +-
 .../mtree/impl/pbtree/schemafile/SchemaFile.java   |   18 +-
 .../impl/pbtree/schemafile/SegmentedPage.java      |   10 +-
 .../impl/pbtree/schemafile/WrappedSegment.java     |   15 +-
 .../pbtree/schemafile/log/SchemaFileLogReader.java |   11 +-
 .../schemafile/pagemgr/BTreePageManager.java       |   10 +-
 .../pbtree/schemafile/pagemgr/PageManager.java     |   15 +-
 .../impl/pbtree/schemafile/pagemgr/PagePool.java   |    5 +-
 .../schemafile/pagemgr/SchemaPageContext.java      |    9 +-
 .../mtree/loader/MNodeFactoryLoader.java           |    3 +-
 .../schemaengine/schemaregion/tag/TagLogFile.java  |    8 +-
 .../schemaengine/schemaregion/tag/TagManager.java  |   34 +-
 .../schemaregion/utils/MetaFormatUtils.java        |   27 +-
 .../schemaengine/schemaregion/utils/MetaUtils.java |    6 +-
 .../schemaregion/utils/ResourceByPathUtils.java    |    5 +-
 .../view/visitor/TransformToExpressionVisitor.java |   18 +-
 .../write/req/SchemaRegionWritePlanFactory.java    |    4 +-
 .../db/schemaengine/table/DataNodeTableCache.java  |   42 +-
 .../schemaengine/table/InformationSchemaUtils.java |    5 +-
 .../template/ClusterTemplateManager.java           |   25 +-
 .../template/TemplateAlterOperationType.java       |    5 +-
 .../template/TemplateInternalRPCUpdateType.java    |    5 +-
 .../java/org/apache/iotdb/db/service/DataNode.java |   85 +-
 .../iotdb/db/service/DataNodeShutdownHook.java     |   11 +-
 .../iotdb/db/service/RegionMigrateService.java     |   26 +-
 .../org/apache/iotdb/db/service/SettleService.java |    7 +-
 .../ExternalServiceClassLoader.java                |    3 +-
 .../ExternalServiceManagementService.java          |    3 +-
 .../metrics/IoTDBInternalLocalReporter.java        |   15 +-
 .../iotdb/db/service/metrics/ProcessMetrics.java   |    3 +-
 .../metrics/file/SystemRelatedFileMetrics.java     |    3 +-
 .../db/service/metrics/file/TsFileMetrics.java     |    5 +-
 .../iotdb/db/storageengine/StorageEngine.java      |   48 +-
 .../db/storageengine/buffer/BloomFilterCache.java  |    7 +-
 .../storageengine/buffer/CacheHitRatioMonitor.java |    4 +-
 .../iotdb/db/storageengine/buffer/ChunkCache.java  |    6 +-
 .../buffer/TimeSeriesMetadataCache.java            |   10 +-
 .../db/storageengine/dataregion/DataRegion.java    |  124 +-
 .../performer/impl/FastCompactionPerformer.java    |    3 +-
 .../execute/recover/CompactionRecoverManager.java  |    5 +-
 .../execute/recover/CompactionRecoverTask.java     |    5 +-
 .../execute/task/CrossSpaceCompactionTask.java     |    5 +-
 .../execute/task/InnerSpaceCompactionTask.java     |   10 +-
 .../task/InsertionCrossSpaceCompactionTask.java    |    8 +-
 .../task/RepairUnsortedFileCompactionTask.java     |    4 +-
 .../execute/task/SettleCompactionTask.java         |    3 +-
 .../compaction/execute/utils/CompactionUtils.java  |   12 +-
 ...FollowingBatchCompactionAlignedChunkWriter.java |   15 +-
 .../readchunk/SingleSeriesCompactionExecutor.java  |    4 +-
 .../utils/reader/SeriesDataBlockReader.java        |    5 +-
 .../utils/writer/AbstractCompactionWriter.java     |    3 +-
 .../utils/writer/FastCrossCompactionWriter.java    |    7 +-
 .../utils/writer/FastInnerCompactionWriter.java    |    3 +-
 .../writer/ReadPointInnerCompactionWriter.java     |   13 +-
 .../compaction/repair/RepairDataFileScanUtil.java  |    3 +-
 .../repair/RepairTaskRecoverLogParser.java         |   13 +-
 .../repair/RepairTimePartitionScanTask.java        |    5 +-
 .../repair/UnsortedFileRepairTaskScheduler.java    |   17 +-
 .../schedule/CompactionScheduleTaskManager.java    |   17 +-
 .../compaction/schedule/CompactionScheduler.java   |    3 +-
 .../compaction/schedule/CompactionTaskManager.java |   21 +-
 .../compaction/schedule/CompactionWorker.java      |    7 +-
 .../compaction/schedule/TTLScheduleTask.java       |    3 +-
 .../compaction/selector/ICompactionSelector.java   |    7 +-
 .../selector/constant/CrossCompactionSelector.java |    4 +-
 .../constant/InnerSequenceCompactionSelector.java  |    4 +-
 .../InnerUnsequenceCompactionSelector.java         |    4 +-
 .../RepairUnsortedFileCompactionEstimator.java     |    3 +-
 .../impl/RewriteCrossSpaceCompactionSelector.java  |    8 +-
 .../impl/SizeTieredCompactionSelector.java         |    6 +-
 .../dataregion/compaction/settle/SettleLog.java    |    9 +-
 .../dataregion/compaction/settle/SettleTask.java   |    7 +-
 .../dataregion/compaction/tool/Interval.java       |    4 +-
 .../compaction/tool/OverlapStatisticTool.java      |    3 +-
 .../compaction/tool/SingleSequenceFileTask.java    |    6 +-
 .../compaction/tool/TimePartitionProcessTask.java  |    8 +-
 .../dataregion/flush/CompressionRatio.java         |    7 +-
 .../dataregion/flush/MemTableFlushTask.java        |    7 +-
 .../flush/pool/FlushSubTaskPoolManager.java        |    5 +-
 .../flush/pool/FlushTaskPoolManager.java           |    5 +-
 .../dataregion/memtable/AbstractMemTable.java      |    4 +-
 .../memtable/AlignedWritableMemChunk.java          |    3 +-
 .../dataregion/memtable/DeviceIDFactory.java       |    3 +-
 .../dataregion/memtable/TsFileProcessor.java       |   38 +-
 .../dataregion/memtable/WritableMemChunk.java      |    6 +-
 .../dataregion/modification/IDPredicate.java       |    5 +-
 .../dataregion/modification/ModEntry.java          |    7 +-
 .../dataregion/modification/ModificationFile.java  |   12 +-
 .../modification/v1/ModificationFileV1.java        |   11 +-
 .../v1/io/LocalTextModificationAccessor.java       |   23 +-
 .../dataregion/read/control/FileReaderManager.java |    6 +-
 .../dataregion/read/control/QueryFileManager.java  |   17 +-
 .../filescan/impl/DiskAlignedChunkHandleImpl.java  |    3 +-
 .../read/reader/chunk/MemAlignedChunkReader.java   |    5 +-
 .../read/reader/chunk/MemAlignedPageReader.java    |    4 +-
 .../metadata/DiskAlignedChunkMetadataLoader.java   |    5 +-
 .../chunk/metadata/DiskChunkMetadataLoader.java    |    5 +-
 .../dataregion/snapshot/SnapshotLoader.java        |   27 +-
 .../dataregion/snapshot/SnapshotLogAnalyzer.java   |    4 +-
 .../dataregion/snapshot/SnapshotLogger.java        |    7 +-
 .../dataregion/snapshot/SnapshotTaker.java         |   48 +-
 .../dataregion/tsfile/TsFileResource.java          |   30 +-
 .../dataregion/tsfile/TsFileResourceBlockType.java |    4 +-
 .../tsfile/generator/TsFileNameGenerator.java      |   13 +-
 .../tsfile/timeindex/ArrayDeviceTimeIndex.java     |    6 +-
 .../dataregion/tsfile/timeindex/FileTimeIndex.java |    6 +-
 .../timeindex/FileTimeIndexCacheRecorder.java      |   17 +-
 .../dataregion/tsfile/timeindex/ITimeIndex.java    |    3 +-
 .../tsfile/timeindex/TimeIndexLevel.java           |    7 +-
 .../dataregion/utils/DiskUsageStatisticUtil.java   |    9 +-
 .../dataregion/utils/SharedTimeDataBuffer.java     |    5 +-
 .../utils/TableDiskUsageStatisticUtil.java         |    3 +-
 .../dataregion/utils/TsFileResourceUtils.java      |   14 +-
 .../FileTimeIndexCacheWriter.java                  |    6 +-
 .../tableDiskUsageIndex/TableDiskUsageIndex.java   |   13 +-
 .../tsfile/TsFileTableDiskUsageIndexWriter.java    |    7 +-
 .../tsfile/TsFileTableSizeIndexReader.java         |    7 +-
 .../storageengine/dataregion/wal/WALManager.java   |   25 +-
 .../allocation/AbstractNodeAllocationStrategy.java |    9 +-
 .../dataregion/wal/buffer/AbstractWALBuffer.java   |    6 +-
 .../dataregion/wal/buffer/WALBuffer.java           |   19 +-
 .../dataregion/wal/buffer/WALEntry.java            |    5 +-
 .../dataregion/wal/buffer/WALEntryType.java        |    4 +-
 .../dataregion/wal/buffer/WALInfoEntry.java        |    7 +-
 .../dataregion/wal/buffer/WALSignalEntry.java      |    4 +-
 .../dataregion/wal/checkpoint/Checkpoint.java      |    3 +-
 .../wal/checkpoint/CheckpointManager.java          |   11 +-
 .../storageengine/dataregion/wal/io/LogWriter.java |    3 +-
 .../dataregion/wal/io/WALInputStream.java          |   11 +-
 .../dataregion/wal/io/WALMetaData.java             |    3 +-
 .../storageengine/dataregion/wal/io/WALReader.java |    5 +-
 .../dataregion/wal/node/WALFakeNode.java           |    3 +-
 .../storageengine/dataregion/wal/node/WALNode.java |   17 +-
 .../dataregion/wal/recover/WALNodeRecoverTask.java |   13 +-
 .../dataregion/wal/recover/WALRecoverManager.java  |   19 +-
 .../file/AbstractTsFileRecoverPerformer.java       |    3 +-
 .../file/UnsealedTsFileRecoverPerformer.java       |    5 +-
 .../dataregion/wal/utils/CheckpointFileUtils.java  |    4 +-
 .../dataregion/wal/utils/WALFileUtils.java         |    8 +-
 .../wal/utils/listener/AbstractResultListener.java |    4 +-
 .../db/storageengine/load/LoadTsFileManager.java   |   26 +-
 .../storageengine/load/active/ActiveLoadAgent.java |   14 +-
 .../load/active/ActiveLoadDirScanner.java          |   17 +-
 .../load/active/ActiveLoadMetricsCollector.java    |    3 +-
 .../load/active/ActiveLoadPathHelper.java          |    5 +-
 .../active/ActiveLoadScheduledExecutorService.java |    7 +-
 .../load/active/ActiveLoadTsFileLoader.java        |    7 +-
 .../load/config/LoadTsFileConfigurator.java        |    6 +-
 ...leStatementDataTypeConvertExecutionVisitor.java |    3 +-
 ...eeStatementDataTypeConvertExecutionVisitor.java |    3 +-
 .../db/storageengine/load/disk/MinIOSelector.java  |    5 +-
 .../load/memory/LoadTsFileAbstractMemoryBlock.java |    4 +-
 .../memory/LoadTsFileDataCacheMemoryBlock.java     |    3 +-
 .../load/memory/LoadTsFileMemoryBlock.java         |    5 +-
 .../load/memory/LoadTsFileMemoryManager.java       |    7 +-
 .../load/metrics/ActiveLoadingFilesMetricsSet.java |    3 +-
 .../load/metrics/LoadTsFileCostMetricsSet.java     |    3 +-
 .../load/splitter/AlignedChunkData.java            |    3 +-
 .../db/storageengine/load/splitter/TsFileData.java |    4 +-
 .../load/splitter/TsFileSplitter.java              |    7 +-
 .../iotdb/db/storageengine/load/util/LoadUtil.java |   16 +-
 .../rescon/disk/DirectoryChecker.java              |    3 +-
 .../storageengine/rescon/disk/FolderManager.java   |    9 +-
 .../db/storageengine/rescon/disk/TierManager.java  |   17 +-
 .../rescon/disk/strategy/DirectoryStrategy.java    |    3 +-
 .../MinFolderOccupiedSpaceFirstStrategy.java       |    3 +-
 .../rescon/memory/AbstractPoolManager.java         |    9 +-
 .../rescon/memory/PrimitiveArrayManager.java       |    4 +-
 .../db/storageengine/rescon/memory/SystemInfo.java |    3 +-
 .../rescon/memory/TsFileResourceManager.java       |    7 +-
 .../rescon/quotas/DataNodeSpaceQuotaManager.java   |    5 +-
 .../quotas/DataNodeThrottleQuotaManager.java       |    5 +-
 .../rescon/quotas/DefaultOperationQuota.java       |    3 +-
 .../agent/SubscriptionAgentLauncher.java           |    5 +-
 .../agent/SubscriptionBrokerAgent.java             |    5 +-
 .../agent/SubscriptionConsumerAgent.java           |    3 +-
 .../subscription/agent/SubscriptionTopicAgent.java |    3 +-
 .../broker/SubscriptionPrefetchingQueue.java       |    7 +-
 .../broker/SubscriptionPrefetchingTabletQueue.java |    8 +-
 .../broker/SubscriptionPrefetchingTsFileQueue.java |    6 +-
 .../db/subscription/event/SubscriptionEvent.java   |    3 +-
 .../event/batch/SubscriptionPipeEventBatches.java  |    7 +-
 .../event/cache/SubscriptionPollResponseCache.java |    7 +-
 .../response/SubscriptionEventTsFileResponse.java  |    5 +-
 .../receiver/SubscriptionReceiverV1.java           |   31 +-
 .../subtask/SubscriptionSinkSubtaskLifeCycle.java  |    5 +-
 .../subtask/SubscriptionSinkSubtaskManager.java    |    4 +-
 .../org/apache/iotdb/db/tools/DelayAnalyzer.java   |    4 +-
 .../apache/iotdb/db/tools/IoTDBDataDirViewer.java  |    3 +-
 .../apache/iotdb/db/tools/TsFileSelfCheckTool.java |   11 +-
 .../apache/iotdb/db/tools/TsFileSketchTool.java    |   14 +-
 .../iotdb/db/tools/TsFileSplitByPartitionTool.java |   13 +-
 .../org/apache/iotdb/db/tools/TsFileSplitTool.java |    9 +-
 .../java/org/apache/iotdb/db/tools/WalChecker.java |   17 +-
 .../apache/iotdb/db/tools/schema/MLogParser.java   |    9 +-
 .../db/tools/schema/PBTreeFileSketchTool.java      |    9 +-
 .../db/tools/schema/SRStatementGenerator.java      |    7 +-
 .../tools/schema/SchemaRegionSnapshotParser.java   |    3 +-
 .../db/tools/settle/TsFileAndModSettleTool.java    |   16 +-
 .../tools/settle/TsFileSettleByCompactionTool.java |    7 +-
 .../iotdb/db/tools/utils/TsFileStatisticScan.java  |    4 +-
 .../iotdb/db/tools/utils/TsFileValidationScan.java |    3 +-
 .../TsFileResourcePipeStatisticsSetTool.java       |   43 +-
 .../db/tools/validate/TsFileValidationTool.java    |    3 +-
 .../db/trigger/executor/TriggerFireResult.java     |    5 +-
 .../db/trigger/executor/TriggerFireVisitor.java    |    3 +-
 .../db/trigger/service/TriggerClassLoader.java     |    3 +-
 .../trigger/service/TriggerClassLoaderManager.java |    3 +-
 .../trigger/service/TriggerInformationUpdater.java |    7 +-
 .../trigger/service/TriggerManagementService.java  |    3 +-
 .../org/apache/iotdb/db/utils/CommonUtils.java     |    9 +-
 .../iotdb/db/utils/DataNodeObjectFileService.java  |   10 +-
 .../java/org/apache/iotdb/db/utils/MathUtils.java  |    4 +-
 .../java/org/apache/iotdb/db/utils/MemUtils.java   |    3 +-
 .../apache/iotdb/db/utils/ModificationUtils.java   |    3 +-
 .../org/apache/iotdb/db/utils/ObjectWriter.java    |    6 +-
 .../org/apache/iotdb/db/utils/OpenFileNumUtil.java |    7 +-
 .../org/apache/iotdb/db/utils/ParameterUtils.java  |    5 +-
 .../org/apache/iotdb/db/utils/SchemaUtils.java     |    6 +-
 .../org/apache/iotdb/db/utils/TabletDecoder.java   |    3 +-
 .../org/apache/iotdb/db/utils/ThreadUtils.java     |    5 +-
 .../apache/iotdb/db/utils/TimeValuePairUtils.java  |    5 +-
 .../apache/iotdb/db/utils/TypeInferenceUtils.java  |   15 +-
 .../parameter/ColumnGeneratorParameter.java        |    5 +-
 .../iotdb/db/utils/concurrent/FiniteSemaphore.java |    4 +-
 .../db/utils/datastructure/AlignedTVList.java      |    7 +-
 .../iotdb/db/utils/datastructure/BackwardSort.java |    3 +-
 .../iotdb/db/utils/datastructure/LazyBitMap.java   |   12 +-
 .../iotdb/db/utils/datastructure/TVList.java       |    7 +-
 .../runtime/WindowEvaluationTaskPoolManager.java   |    3 +-
 .../apache/iotdb/db/utils/writelog/LogWriter.java  |    4 +-
 iotdb-core/metrics/core/pom.xml                    |    8 +
 .../metrics/core/i18n/MetricsCoreMessages.java     |   39 +
 .../metrics/core/i18n/MetricsCoreMessages.java     |   39 +
 .../metrics/core/reporter/IoTDBJmxReporter.java    |   17 +-
 .../core/utils/IoTDBMetricObjNameFactory.java      |    4 +-
 iotdb-core/metrics/interface/pom.xml               |    4 +
 .../apache/iotdb/metrics/i18n/MetricsMessages.java |  110 ++
 .../apache/iotdb/metrics/i18n/MetricsMessages.java |  106 ++
 .../iotdb/metrics/AbstractMetricService.java       |    3 +-
 .../apache/iotdb/metrics/CompositeReporter.java    |    9 +-
 .../apache/iotdb/metrics/config/MetricConfig.java  |    3 +-
 .../metricsets/disk/LinuxDiskMetricsManager.java   |   11 +-
 .../metricsets/disk/WindowsDiskMetricsManager.java |   15 +-
 .../metricsets/net/LinuxNetMetricManager.java      |   15 +-
 .../metricsets/net/WindowsNetMetricManager.java    |   13 +-
 .../reporter/iotdb/IoTDBSessionReporter.java       |   15 +-
 .../reporter/prometheus/PrometheusReporter.java    |   13 +-
 .../apache/iotdb/metrics/utils/FileStoreUtils.java |    6 +-
 iotdb-core/node-commons/pom.xml                    |   18 +
 .../apache/iotdb/commons/i18n/AuthMessages.java    |  119 ++
 .../apache/iotdb/commons/i18n/ClientMessages.java  |   95 ++
 .../apache/iotdb/commons/i18n/CommonMessages.java  |  129 ++
 .../apache/iotdb/commons/i18n/ConfigMessages.java  |   77 ++
 .../apache/iotdb/commons/i18n/PathMessages.java    |   52 +
 .../apache/iotdb/commons/i18n/PipeMessages.java    |  866 ++++++++++++
 .../apache/iotdb/commons/i18n/QueryMessages.java   |  265 ++++
 .../apache/iotdb/commons/i18n/SchemaMessages.java  |   79 ++
 .../apache/iotdb/commons/i18n/ServiceMessages.java |  143 ++
 .../apache/iotdb/commons/i18n/UtilMessages.java    |  186 +++
 .../apache/iotdb/commons/i18n/AuthMessages.java    |  106 ++
 .../apache/iotdb/commons/i18n/ClientMessages.java  |   93 ++
 .../apache/iotdb/commons/i18n/CommonMessages.java  |  125 ++
 .../apache/iotdb/commons/i18n/ConfigMessages.java  |   77 ++
 .../apache/iotdb/commons/i18n/PathMessages.java    |   51 +
 .../apache/iotdb/commons/i18n/PipeMessages.java    |  842 ++++++++++++
 .../apache/iotdb/commons/i18n/QueryMessages.java   |  265 ++++
 .../apache/iotdb/commons/i18n/SchemaMessages.java  |   79 ++
 .../apache/iotdb/commons/i18n/ServiceMessages.java |  143 ++
 .../apache/iotdb/commons/i18n/UtilMessages.java    |  184 +++
 .../commons/auth/authorizer/BasicAuthorizer.java   |   74 +-
 .../iotdb/commons/auth/entity/PrivilegeType.java   |    3 +-
 .../iotdb/commons/auth/role/BasicRoleManager.java  |    9 +-
 .../commons/auth/role/LocalFileRoleAccessor.java   |   25 +-
 .../iotdb/commons/auth/user/BasicUserManager.java  |   25 +-
 .../commons/auth/user/LocalFileUserAccessor.java   |    7 +-
 .../commons/binaryallocator/BinaryAllocator.java   |    9 +-
 .../binaryallocator/autoreleaser/Releaser.java     |    6 +-
 .../commons/binaryallocator/evictor/Evictor.java   |    5 +-
 .../apache/iotdb/commons/client/ClientManager.java |    7 +-
 .../apache/iotdb/commons/client/ThriftClient.java  |   11 +-
 .../async/AsyncAINodeInternalServiceClient.java    |    5 +-
 .../AsyncConfigNodeInternalServiceClient.java      |    7 +-
 .../async/AsyncDataNodeExternalServiceClient.java  |    5 +-
 .../async/AsyncDataNodeInternalServiceClient.java  |    7 +-
 .../AsyncDataNodeMPPDataExchangeServiceClient.java |    5 +-
 .../async/AsyncIoTConsensusV2ServiceClient.java    |    5 +-
 .../async/AsyncPipeDataTransferServiceClient.java  |   13 +-
 .../BorrowNullClientManagerException.java          |    4 +-
 .../client/factory/AsyncThriftClientFactory.java   |    3 +-
 .../client/request/AsyncRequestManager.java        |    9 +-
 .../apache/iotdb/commons/cluster/NodeStatus.java   |    7 +-
 .../org/apache/iotdb/commons/cluster/NodeType.java |    4 +-
 .../iotdb/commons/concurrent/ConditionAwaiter.java |    8 +-
 .../IoTDBDefaultThreadExceptionHandler.java        |    4 +-
 .../iotdb/commons/concurrent/ThreadName.java       |    4 +-
 .../threadpool/ScheduledExecutorUtil.java          |    8 +-
 .../threadpool/WrappedThreadPoolExecutor.java      |    5 +-
 .../apache/iotdb/commons/conf/CommonConfig.java    |  168 ++-
 .../iotdb/commons/conf/ConfigurationFileUtils.java |   13 +-
 .../iotdb/commons/consensus/ConsensusGroupId.java  |    4 +-
 .../container/IoTV2GlobalComponentContainer.java   |    5 +-
 .../java/org/apache/iotdb/commons/cq/CQState.java  |    4 +-
 .../org/apache/iotdb/commons/cq/TimeoutPolicy.java |    4 +-
 .../commons/enums/HandleSystemErrorStrategy.java   |    5 +-
 .../commons/exception/BadNodeUrlException.java     |    4 +-
 .../commons/exception/IllegalPathException.java    |    5 +-
 .../iotdb/commons/exception/StartupException.java  |    3 +-
 .../exception/UncheckedStartupException.java       |    3 +-
 .../pipe/PipeRuntimeCriticalException.java         |    7 +-
 .../pipe/PipeRuntimeNonCriticalException.java      |    7 +-
 .../PipeRuntimeOutOfMemoryCriticalException.java   |    7 +-
 .../pipe/PipeRuntimeSinkCriticalException.java     |    7 +-
 .../collections4/bidimap/AbstractDualBidiMap.java  |    9 +-
 .../collection/AbstractCollectionDecorator.java    |    4 +-
 .../AbstractUntypedIteratorDecorator.java          |    4 +-
 .../iterators/ListIteratorWrapper.java             |    3 +-
 .../keyvalue/AbstractMapEntryDecorator.java        |    4 +-
 .../collections4/map/AbstractMapDecorator.java     |    4 +-
 .../iotdb/commons/externalservice/ServiceInfo.java |    5 +-
 .../commons/file/SystemPropertiesHandler.java      |    3 +-
 .../apache/iotdb/commons/memory/MemoryManager.java |    9 +-
 .../org/apache/iotdb/commons/path/AlignedPath.java |    7 +-
 .../org/apache/iotdb/commons/path/IFullPath.java   |    4 +-
 .../apache/iotdb/commons/path/MeasurementPath.java |   11 +-
 .../org/apache/iotdb/commons/path/PartialPath.java |   14 +-
 .../iotdb/commons/path/PathDeserializeUtil.java    |    4 +-
 .../commons/pipe/agent/plugin/PipePluginAgent.java |   12 +-
 .../throwing/ThrowingExceptionProcessor.java       |   13 +-
 .../service/PipePluginExecutableManager.java       |    8 +-
 .../runtime/AbstractPipePeriodicalJobExecutor.java |   11 +-
 .../commons/pipe/agent/task/PipeTaskAgent.java     |  192 +--
 .../task/connection/BlockingPendingQueue.java      |    5 +-
 .../agent/task/execution/PipeSubtaskExecutor.java  |   15 +-
 .../commons/pipe/agent/task/meta/PipeStatus.java   |    4 +-
 .../task/progress/PipeEventCommitManager.java      |   15 +-
 .../task/subtask/PipeAbstractSinkSubtask.java      |   45 +-
 .../agent/task/subtask/PipeReportableSubtask.java  |   26 +-
 .../iotdb/commons/pipe/config/PipeConfig.java      |  267 ++--
 .../config/constant/PipeProcessorConstant.java     |    4 +-
 .../config/constant/PipeRPCMessageConstant.java    |    4 +-
 .../pipe/config/constant/PipeSinkConstant.java     |    3 +-
 .../pipe/config/constant/PipeSourceConstant.java   |    4 +-
 .../pipe/config/constant/SystemConstant.java       |    3 +-
 .../options/PipeInclusionOptions.java              |   12 +-
 .../datastructure/pattern/IoTDBTreePattern.java    |    3 +-
 .../pipe/datastructure/pattern/TablePattern.java   |    3 +-
 .../queue/ConcurrentIterableLinkedQueue.java       |   12 +-
 .../AbstractSerializableListeningQueue.java        |    6 +-
 .../queue/serializer/PlainQueueSerializer.java     |    3 +-
 .../iotdb/commons/pipe/event/EnrichedEvent.java    |    3 +-
 .../pipe/metric/PipeEventCommitMetrics.java        |    7 +-
 .../commons/pipe/receiver/IoTDBFileReceiver.java   |  229 ++--
 .../commons/pipe/receiver/IoTDBReceiverAgent.java  |   19 +-
 .../pipe/receiver/PipeReceiverFilePathUtils.java   |    4 +-
 .../pipe/receiver/PipeReceiverStatusHandler.java   |   28 +-
 .../resource/ref/PipePhantomReferenceManager.java  |    7 +-
 .../snapshot/PipeSnapshotResourceManager.java      |    6 +-
 .../pipe/sink/client/IoTDBSyncClientManager.java   |   34 +-
 .../sink/compressor/PipeCompressorFactory.java     |   14 +-
 .../thrift/common/PipeTransferSliceReqHandler.java |    7 +-
 .../pipe/sink/protocol/IoTDBAirGapSink.java        |   51 +-
 .../commons/pipe/sink/protocol/IoTDBSink.java      |   19 +-
 .../pipe/sink/protocol/IoTDBSslSyncSink.java       |   10 +-
 .../pipe/source/IoTDBNonDataRegionSource.java      |    3 +-
 .../commons/queryengine/common/SqlDialect.java     |    4 +-
 .../aggregation/grouped/hash/FlatGroupByHash.java  |    5 +-
 .../aggregation/grouped/hash/FlatHash.java         |   15 +-
 .../grouped/hash/NoChannelGroupByHash.java         |    8 +-
 .../plan/node/CommonPlanNodeDeserializer.java      |    7 +-
 .../plan/planner/plan/node/PlanNode.java           |   14 +-
 .../plan/planner/plan/node/PlanNodeType.java       |    4 +-
 .../plan/node/process/TwoChildProcessNode.java     |    3 +-
 .../plan/relational/function/FunctionId.java       |    8 +-
 .../function/InterpretedFunctionInvoker.java       |    5 +-
 .../function/TableBuiltinTableFunction.java        |    4 +-
 .../relational/function/TableFunctionFactory.java  |    3 +-
 .../function/TypeVariableConstraint.java           |    4 +-
 .../function/tvf/ClassifyTableFunction.java        |   25 +-
 .../function/tvf/ForecastTableFunction.java        |   47 +-
 .../function/tvf/PatternMatchTableFunction.java    |    9 +-
 .../function/tvf/TableFunctionUtils.java           |   10 +-
 .../function/tvf/match/QetchAlgorithm.java         |    8 +-
 .../plan/relational/metadata/MetadataUtil.java     |    5 +-
 .../plan/relational/metadata/TableSchema.java      |    8 +-
 .../plan/relational/planner/node/JoinNode.java     |    6 +-
 .../relational/planner/node/TableFunctionNode.java |    4 +-
 .../rowpattern/ExpressionAndValuePointers.java     |   11 +-
 .../rowpattern/IrPatternAlternationOptimizer.java  |    4 +-
 .../planner/rowpattern/IrRowPattern.java           |    7 +-
 .../planner/rowpattern/IrRowPatternFlattener.java  |    4 +-
 .../plan/relational/sql/ast/BinaryLiteral.java     |    9 +-
 .../plan/relational/sql/ast/Columns.java           |    6 +-
 .../relational/sql/ast/CommonQueryAstVisitor.java  |    3 +-
 .../relational/sql/ast/ComparisonExpression.java   |    6 +-
 .../plan/relational/sql/ast/Expression.java        |    7 +-
 .../plan/relational/sql/ast/FloatLiteral.java      |    3 +-
 .../plan/relational/sql/ast/GenericLiteral.java    |    4 +-
 .../plan/relational/sql/ast/LogicalExpression.java |    5 +-
 .../plan/relational/sql/ast/LongLiteral.java       |    6 +-
 .../queryengine/plan/relational/sql/ast/Node.java  |    5 +-
 .../sql/util/CommonQuerySqlFormatter.java          |   15 +-
 .../relational/sql/util/ExpressionFormatter.java   |   12 +-
 .../relational/sql/util/RowPatternFormatter.java   |    9 +-
 .../plan/relational/type/TypeSignature.java        |    4 +-
 .../relational/type/TypeSignatureParameter.java    |    7 +-
 .../relational/type/TypeSignatureTranslator.java   |    9 +-
 .../relational/utils/ResultColumnAppender.java     |    4 +-
 .../plan/udf/BuiltinAggregationFunction.java       |    8 +-
 .../queryengine/plan/udf/TableUDFUtils.java        |    6 +-
 .../queryengine/plan/udf/UDFManagementService.java |   28 +-
 .../commons/queryengine/plan/udf/UDTFForecast.java |   28 +-
 .../commons/queryengine/utils/DateTimeUtils.java   |   23 +-
 .../queryengine/utils/TimestampPrecisionUtils.java |   17 +-
 .../iotdb/commons/schema/SchemaConstant.java       |    3 +-
 .../iotdb/commons/schema/filter/SchemaFilter.java  |    3 +-
 .../commons/schema/filter/SchemaFilterType.java    |    4 +-
 .../schema/filter/impl/DeviceFilterUtil.java       |    4 +-
 .../iotdb/commons/schema/node/MNodeType.java       |    4 +-
 .../node/common/AbstractAboveDatabaseMNode.java    |   11 +-
 .../schema/node/common/AbstractDatabaseMNode.java  |    3 +-
 .../node/common/AbstractMeasurementMNode.java      |   12 +-
 .../schema/node/common/DeviceMNodeWrapper.java     |    3 +-
 .../commons/schema/node/role/IInternalMNode.java   |    3 +-
 .../apache/iotdb/commons/schema/table/TsTable.java |    7 +-
 .../schema/table/TsTableInternalRPCType.java       |    4 +-
 .../schema/table/column/TsTableColumnCategory.java |    7 +-
 .../table/column/TsTableColumnSchemaUtil.java      |    4 +-
 .../iotdb/commons/schema/template/Template.java    |    5 +-
 .../commons/schema/view/LogicalViewSchema.java     |   16 +-
 .../apache/iotdb/commons/schema/view/ViewType.java |    4 +-
 .../schema/view/viewExpression/ViewExpression.java |    5 +-
 .../viewExpression/unary/LikeViewExpression.java   |    7 +-
 .../security/encrypt/AsymmetricEncryptFactory.java |    4 +-
 .../security/encrypt/MessageDigestEncrypt.java     |    4 +-
 .../AbstractPeriodicalServiceWithAdvance.java      |    8 +-
 .../service/AbstractThriftServiceThread.java       |   23 +-
 .../apache/iotdb/commons/service/JMXService.java   |    7 +-
 .../iotdb/commons/service/RegisterManager.java     |   13 +-
 .../iotdb/commons/service/StartupChecks.java       |   20 +-
 .../iotdb/commons/service/ThriftService.java       |   21 +-
 .../commons/service/metric/GcTimeAlerter.java      |   22 +-
 .../service/metric/JvmGcMonitorMetrics.java        |    3 +-
 .../commons/service/metric/MetricService.java      |   32 +-
 .../service/metric/cpu/CpuUsageMetrics.java        |    3 +-
 .../subscription/config/SubscriptionConfig.java    |   68 +-
 .../org/apache/iotdb/commons/sync/PipeInfo.java    |    3 +-
 .../org/apache/iotdb/commons/sync/PipeMessage.java |    4 +-
 .../org/apache/iotdb/commons/sync/PipeStatus.java  |    4 +-
 .../java/org/apache/iotdb/commons/udf/UDFType.java |    5 +-
 .../apache/iotdb/commons/udf/builtin/UDTFAbs.java  |    3 +-
 .../relational/tvf/CapacityTableFunction.java      |    3 +-
 .../relational/tvf/VariationTableFunction.java     |    5 +-
 .../commons/udf/service/UDFClassLoaderManager.java |    3 +-
 .../commons/udf/service/UDFExecutableManager.java  |    3 +-
 .../iotdb/commons/udf/utils/MasterRepairUtil.java  |    5 +-
 .../commons/udf/utils/UDFDataTypeTransformer.java  |    7 +-
 .../org/apache/iotdb/commons/utils/AuthUtils.java  |   20 +-
 .../commons/utils/BasicStructureSerDeUtil.java     |    4 +-
 .../org/apache/iotdb/commons/utils/BlobUtils.java  |    8 +-
 .../iotdb/commons/utils/CommonDateTimeUtils.java   |    4 +-
 .../org/apache/iotdb/commons/utils/FileUtils.java  |   73 +-
 .../org/apache/iotdb/commons/utils/IOUtils.java    |    6 +-
 .../apache/iotdb/commons/utils/JVMCommonUtils.java |    8 +-
 .../iotdb/commons/utils/KillPoint/KillPoint.java   |    3 +-
 .../apache/iotdb/commons/utils/NodeUrlUtils.java   |    7 +-
 .../org/apache/iotdb/commons/utils/RetryUtils.java |   14 +-
 .../commons/utils/ThriftCommonsSerDeUtils.java     |   63 +-
 .../commons/utils/ThriftConfigNodeSerDeUtils.java  |   19 +-
 library-udf/pom.xml                                |    8 +
 .../iotdb/library/i18n/LibraryUdfMessages.java     |  121 ++
 .../iotdb/library/i18n/LibraryUdfMessages.java     |  110 ++
 .../org/apache/iotdb/library/anomaly/UDTFLOF.java  |    5 +-
 .../apache/iotdb/library/anomaly/UDTFRange.java    |    3 +-
 .../iotdb/library/anomaly/UDTFTwoSidedFilter.java  |    3 +-
 .../org/apache/iotdb/library/dlearn/UDTFAR.java    |    3 +-
 .../apache/iotdb/library/dlearn/UDTFCluster.java   |    5 +-
 .../iotdb/library/dlearn/util/cluster/KMeans.java  |   12 +-
 .../iotdb/library/dlearn/util/cluster/KShape.java  |   12 +-
 .../library/dlearn/util/cluster/MedoidShape.java   |   20 +-
 .../library/dmatch/util/CrossCorrelation.java      |    4 +-
 .../library/dprofile/util/CrossCorrelation.java    |    4 +-
 .../iotdb/library/dprofile/util/MADSketch.java     |    4 +-
 .../iotdb/library/dprofile/util/Resampler.java     |    5 +-
 .../iotdb/library/dprofile/util/Segment.java       |    3 +-
 .../library/dprofile/util/SlidingCollector.java    |    4 +-
 .../library/dquality/util/TimeSeriesQuality.java   |    3 +-
 .../iotdb/library/drepair/UDTFTimestampRepair.java |    5 +-
 .../iotdb/library/drepair/UDTFValueFill.java       |    3 +-
 .../iotdb/library/drepair/UDTFValueRepair.java     |    3 +-
 .../apache/iotdb/library/drepair/util/ARFill.java  |    5 +-
 .../iotdb/library/drepair/util/ValueFill.java      |    3 +-
 .../iotdb/library/drepair/util/ValueRepair.java    |    3 +-
 .../library/frequency/UDFEnvelopeAnalysis.java     |    3 +-
 .../apache/iotdb/library/frequency/UDTFDeconv.java |    3 +-
 .../iotdb/library/frequency/util/DWTUtil.java      |    6 +-
 .../iotdb/library/frequency/util/FFTUtil.java      |    3 +-
 .../apache/iotdb/library/match/UDAFDTWMatch.java   |    4 +-
 .../iotdb/library/match/UDAFPatternMatch.java      |    4 +-
 .../iotdb/library/match/utils/LinearScale.java     |    7 +-
 .../iotdb/library/util/BooleanCircularQueue.java   |    6 +-
 .../apache/iotdb/library/util/CircularQueue.java   |    6 +-
 .../iotdb/library/util/DoubleCircularQueue.java    |    6 +-
 .../iotdb/library/util/LinearRegression.java       |    9 +-
 .../iotdb/library/util/LongCircularQueue.java      |    6 +-
 .../java/org/apache/iotdb/library/util/Util.java   |    5 +-
 pom.xml                                            |   21 +
 1383 files changed, 31642 insertions(+), 7094 deletions(-)

diff --git a/.github/workflows/compile-check.yml b/.github/workflows/compile-check.yml
index 48e0571fc78..1cf45e07dc0 100644
--- a/.github/workflows/compile-check.yml
+++ b/.github/workflows/compile-check.yml
@@ -53,3 +53,7 @@ jobs:
         shell: bash
         run: |
           mvn clean package -P with-integration-tests -DskipTests -ntp
+      - name: Compiler Test (Chinese i18n)
+        shell: bash
+        run: |
+          mvn clean package -P with-integration-tests,with-zh-locale -DskipTests -ntp
diff --git a/CLAUDE.md b/CLAUDE.md
index dcaa301e089..897731068d5 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -45,6 +45,9 @@ mvn clean test -pl iotdb-core/datanode -Dtest=ClassName
 # Run a single test method
 mvn clean test -pl iotdb-core/datanode -Dtest=ClassName#methodName
 
+# Build with Chinese log & error messages
+mvn clean package -pl distribution -am -DskipTests -P with-zh-locale
+
 # Format code (requires JDK 17+; auto-skipped on JDK <17)
 mvn spotless:apply
 
@@ -170,6 +173,10 @@ Generated source directories that need to be on the source path:
 - **Missing Thrift compiler**: The local machine may not have the `thrift` binary installed. Running `mvn clean package -pl <module> -am -DskipTests` will fail at the `iotdb-thrift` module. **Workaround**: To verify your changes compile, use `mvn compile -pl <module>` (without `-am` or `clean`) to leverage existing target caches.
 - **Pre-existing compilation errors in unrelated modules**: The datanode module may have pre-existing compile errors in other subsystems (e.g., pipe, copyto) that cause `mvn clean test -pl iotdb-core/datanode -Dtest=XxxTest` to fail during compilation. **Workaround**: First run `mvn compile -pl iotdb-core/datanode` to confirm your changed files compile successfully. If the errors are in files you did not modify, they are pre-existing and do not affect your changes.
 
+### i18n (Chinese Messages)
+
+The project uses compile-time i18n via the `build-helper-maven-plugin`. The property `i18n.locale` (default: `en`) controls which source directory is added: `src/main/i18n/${i18n.locale}`. Activating `-P with-zh-locale` sets `i18n.locale=zh`, swapping English message constant classes for Chinese ones. Each module that participates has both `src/main/i18n/en/` and `src/main/i18n/zh/` directories containing Java classes with identical structure but different string literals.
+
 ### Code Style
 
 - **Always run `mvn spotless:apply` after editing Java files**: Spotless runs `spotless:check` automatically during the `compile` phase. Format violations cause an immediate BUILD FAILURE. Make it a habit to run `mvn spotless:apply -pl <module>` right after editing, not at the end. For files under `integration-test/`, add `-P with-integration-tests`.
diff --git a/README.md b/README.md
index cb1534d4e72..ff4ca4a5f46 100644
--- a/README.md
+++ b/README.md
@@ -314,6 +314,16 @@ Under the iotdb/iotdb-client path:
 
 After being built, the IoTDB cli is located at the folder "cli/target".
 
+### Build with Chinese Log & Error Messages
+
+IoTDB supports compile-time internationalization (i18n) for log and error messages. By default, messages are in English. To build with Chinese messages, activate the `with-zh-locale` Maven profile:
+
+```
+> mvn clean package -pl distribution -am -DskipTests -P with-zh-locale
+```
+
+This works by swapping the source directory `src/main/i18n/en` (default) with `src/main/i18n/zh`, where each module keeps locale-specific Java constant classes containing translated message strings.
+
 ### Build Others
 
 Use `-P with-cpp` for compiling the cpp client. (For more details, read client-cpp's Readme file.)
diff --git a/README_ZH.md b/README_ZH.md
index 63f4900d7df..71fca90457b 100644
--- a/README_ZH.md
+++ b/README_ZH.md
@@ -170,6 +170,16 @@ git checkout rel/x.x
 
 编译完成后, IoTDB cli 将生成在 "cli/target".
 
+### 编译中文日志和错误信息版本
+
+IoTDB 支持编译时国际化(i18n),可将日志和错误信息切换为中文。默认编译使用英文,如需中文版本,请激活 `with-zh-locale` Maven profile:
+
+```
+> mvn clean package -pl distribution -am -DskipTests -P with-zh-locale
+```
+
+该机制通过在编译时将源码目录从 `src/main/i18n/en`(默认)替换为 `src/main/i18n/zh` 实现,各模块在对应目录下维护翻译后的 Java 消息常量类。
+
 ### 编译其他模块
 
 通过添加 `-P with-cpp` 可以进行c++客户端API的编译。
diff --git a/external-service-impl/mqtt/pom.xml b/external-service-impl/mqtt/pom.xml
index 5ec51069b21..b28c1b64918 100644
--- a/external-service-impl/mqtt/pom.xml
+++ b/external-service-impl/mqtt/pom.xml
@@ -172,6 +172,10 @@
                     </ignoredDependencies>
                 </configuration>
             </plugin>
+            <plugin>
+                <groupId>org.codehaus.mojo</groupId>
+                <artifactId>build-helper-maven-plugin</artifactId>
+            </plugin>
         </plugins>
     </build>
 </project>
diff --git a/external-service-impl/mqtt/src/main/i18n/en/org/apache/iotdb/mqtt/i18n/MqttMessages.java b/external-service-impl/mqtt/src/main/i18n/en/org/apache/iotdb/mqtt/i18n/MqttMessages.java
new file mode 100644
index 00000000000..81e24b940c6
--- /dev/null
+++ b/external-service-impl/mqtt/src/main/i18n/en/org/apache/iotdb/mqtt/i18n/MqttMessages.java
@@ -0,0 +1,54 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.iotdb.mqtt.i18n;
+
+public final class MqttMessages {
+
+  // --- LinePayloadFormatter ---
+  public static final String INVALID_LINE_PROTOCOL = "Invalid line protocol format ,line is {}";
+  public static final String TAGS_ERROR = "The tags is error , line is {}";
+  public static final String ATTRIBUTES_ERROR = "The attributes is error , line is {}";
+  public static final String FIELDS_ERROR = "The fields is error , line is {}";
+  public static final String TIMESTAMP_ERROR = "The timestamp is error , line is {}";
+
+  // --- MPPPublishHandler ---
+  public static final String ON_PUBLISH_EXCEPTION =
+      "onPublish execution exception, msg is [{}], error is ";
+  public static final String PROCESS_RESULT = "process result: {}";
+
+  // --- MQTTService ---
+  public static final String SERVER_START_EXCEPTION = "Exception while starting server";
+  public static final String STOPPING_MQTT_SERVICE = "Stopping IoTDB MQTT service...";
+  public static final String MQTT_SERVICE_STOPPED = "IoTDB MQTT service stopped.";
+
+  // --- PayloadFormatManager ---
+  public static final String MQTT_DIR = "mqttDir: {}";
+  public static final String PAYLOAD_FORMAT_MANAGER_INIT_ERROR =
+      "MQTT PayloadFormatManager init() error.";
+  public static final String FORMATTER_IS_NULL = "PayloadFormatManager(), formatter is null.";
+  public static final String FIND_MQTT_PLUGIN =
+      "PayloadFormatManager(), find MQTT Payload Plugin {}.";
+  public static final String MQTT_PLUGIN_JAR_URLS = "MQTT Plugin jarURLs: {}";
+
+  // --- JSONPayloadFormatter ---
+  public static final String PAYLOAD_INVALID = "payload is invalidate";
+
+  private MqttMessages() {}
+}
diff --git a/external-service-impl/mqtt/src/main/i18n/zh/org/apache/iotdb/mqtt/i18n/MqttMessages.java b/external-service-impl/mqtt/src/main/i18n/zh/org/apache/iotdb/mqtt/i18n/MqttMessages.java
new file mode 100644
index 00000000000..eb9b4dc62c5
--- /dev/null
+++ b/external-service-impl/mqtt/src/main/i18n/zh/org/apache/iotdb/mqtt/i18n/MqttMessages.java
@@ -0,0 +1,54 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.iotdb.mqtt.i18n;
+
+public final class MqttMessages {
+
+  // --- LinePayloadFormatter ---
+  public static final String INVALID_LINE_PROTOCOL = "行协议格式无效,行内容:{}";
+  public static final String TAGS_ERROR = "标签格式错误,行内容:{}";
+  public static final String ATTRIBUTES_ERROR = "属性格式错误,行内容:{}";
+  public static final String FIELDS_ERROR = "字段格式错误,行内容:{}";
+  public static final String TIMESTAMP_ERROR = "时间戳格式错误,行内容:{}";
+
+  // --- MPPPublishHandler ---
+  public static final String ON_PUBLISH_EXCEPTION =
+      "onPublish 执行异常,消息为 [{}],错误:";
+  public static final String PROCESS_RESULT = "处理结果:{}";
+
+  // --- MQTTService ---
+  public static final String SERVER_START_EXCEPTION = "启动服务器时发生异常";
+  public static final String STOPPING_MQTT_SERVICE = "正在停止 IoTDB MQTT 服务...";
+  public static final String MQTT_SERVICE_STOPPED = "IoTDB MQTT 服务已停止。";
+
+  // --- PayloadFormatManager ---
+  public static final String MQTT_DIR = "mqttDir:{}";
+  public static final String PAYLOAD_FORMAT_MANAGER_INIT_ERROR =
+      "MQTT PayloadFormatManager init() 出错。";
+  public static final String FORMATTER_IS_NULL = "PayloadFormatManager(),formatter 为 null。";
+  public static final String FIND_MQTT_PLUGIN =
+      "PayloadFormatManager(),找到 MQTT Payload 插件 {}。";
+  public static final String MQTT_PLUGIN_JAR_URLS = "MQTT 插件 jarURLs:{}";
+
+  // --- JSONPayloadFormatter ---
+  public static final String PAYLOAD_INVALID = "payload 无效";
+
+  private MqttMessages() {}
+}
diff --git a/external-service-impl/mqtt/src/main/java/org/apache/iotdb/mqtt/JSONPayloadFormatter.java b/external-service-impl/mqtt/src/main/java/org/apache/iotdb/mqtt/JSONPayloadFormatter.java
index 7a348c850b4..72adde783df 100644
--- a/external-service-impl/mqtt/src/main/java/org/apache/iotdb/mqtt/JSONPayloadFormatter.java
+++ b/external-service-impl/mqtt/src/main/java/org/apache/iotdb/mqtt/JSONPayloadFormatter.java
@@ -18,6 +18,8 @@
 
 package org.apache.iotdb.mqtt;
 
+import org.apache.iotdb.mqtt.i18n.MqttMessages;
+
 import com.google.common.collect.Lists;
 import com.google.gson.Gson;
 import com.google.gson.GsonBuilder;
@@ -79,7 +81,7 @@ public class JSONPayloadFormatter implements PayloadFormatter {
       }
       return messages;
     }
-    throw new JsonParseException("payload is invalidate");
+    throw new JsonParseException(MqttMessages.PAYLOAD_INVALID);
   }
 
   @Override
diff --git a/external-service-impl/mqtt/src/main/java/org/apache/iotdb/mqtt/LinePayloadFormatter.java b/external-service-impl/mqtt/src/main/java/org/apache/iotdb/mqtt/LinePayloadFormatter.java
index f80c3eb0b5e..3c8b9ae044d 100644
--- a/external-service-impl/mqtt/src/main/java/org/apache/iotdb/mqtt/LinePayloadFormatter.java
+++ b/external-service-impl/mqtt/src/main/java/org/apache/iotdb/mqtt/LinePayloadFormatter.java
@@ -18,6 +18,8 @@
 
 package org.apache.iotdb.mqtt;
 
+import org.apache.iotdb.mqtt.i18n.MqttMessages;
+
 import io.netty.buffer.ByteBuf;
 import org.apache.tsfile.enums.TSDataType;
 import org.apache.tsfile.external.commons.lang3.NotImplementedException;
@@ -83,7 +85,7 @@ public class LinePayloadFormatter implements PayloadFormatter {
       try {
         Matcher matcher = pattern.matcher(line.trim());
         if (!matcher.matches()) {
-          log.warn("Invalid line protocol format ,line is {}", line);
+          log.warn(MqttMessages.INVALID_LINE_PROTOCOL, line);
           continue;
         }
 
@@ -95,25 +97,25 @@ public class LinePayloadFormatter implements PayloadFormatter {
 
         // Parsing Tags
         if (!setTags(matcher, message)) {
-          log.warn("The tags is error , line is {}", line);
+          log.warn(MqttMessages.TAGS_ERROR, line);
           continue;
         }
 
         // Parsing Attributes
         if (!setAttributes(matcher, message)) {
-          log.warn("The attributes is error , line is {}", line);
+          log.warn(MqttMessages.ATTRIBUTES_ERROR, line);
           continue;
         }
 
         // Parsing Fields
         if (!setFields(matcher, message)) {
-          log.warn("The fields is error , line is {}", line);
+          log.warn(MqttMessages.FIELDS_ERROR, line);
           continue;
         }
 
         // Parsing timestamp
         if (!setTimestamp(matcher, message)) {
-          log.warn("The timestamp is error , line is {}", line);
+          log.warn(MqttMessages.TIMESTAMP_ERROR, line);
           continue;
         }
 
diff --git a/external-service-impl/mqtt/src/main/java/org/apache/iotdb/mqtt/MPPPublishHandler.java b/external-service-impl/mqtt/src/main/java/org/apache/iotdb/mqtt/MPPPublishHandler.java
index 6e8ce1fd7cb..60e22ebd9dc 100644
--- a/external-service-impl/mqtt/src/main/java/org/apache/iotdb/mqtt/MPPPublishHandler.java
+++ b/external-service-impl/mqtt/src/main/java/org/apache/iotdb/mqtt/MPPPublishHandler.java
@@ -43,6 +43,7 @@ import org.apache.iotdb.db.queryengine.plan.relational.sql.parser.SqlParser;
 import org.apache.iotdb.db.queryengine.plan.statement.crud.InsertRowStatement;
 import org.apache.iotdb.db.queryengine.plan.statement.crud.InsertTabletStatement;
 import org.apache.iotdb.db.utils.CommonUtils;
+import org.apache.iotdb.mqtt.i18n.MqttMessages;
 import org.apache.iotdb.rpc.TSStatusCode;
 import org.apache.iotdb.service.rpc.thrift.TSProtocolVersion;
 
@@ -159,7 +160,7 @@ public class MPPPublishHandler extends AbstractInterceptHandler {
         }
       }
     } catch (Throwable t) {
-      LOG.warn("onPublish execution exception, msg is [{}], error is ", msg, t);
+      LOG.warn(MqttMessages.ON_PUBLISH_EXCEPTION, msg, t);
     } finally {
       // release the payload of the message
       super.onPublish(msg);
@@ -191,7 +192,7 @@ public class MPPPublishHandler extends AbstractInterceptHandler {
 
       tsStatus = result.status;
       if (LOG.isDebugEnabled()) {
-        LOG.debug("process result: {}", tsStatus);
+        LOG.debug(MqttMessages.PROCESS_RESULT, tsStatus);
       }
       if (tsStatus.getCode() != TSStatusCode.SUCCESS_STATUS.getStatusCode()
           && tsStatus.getCode() != TSStatusCode.REDIRECTION_RECOMMEND.getStatusCode()) {
@@ -310,7 +311,7 @@ public class MPPPublishHandler extends AbstractInterceptHandler {
                     false);
         tsStatus = result.status;
         if (LOG.isDebugEnabled()) {
-          LOG.debug("process result: {}", tsStatus);
+          LOG.debug(MqttMessages.PROCESS_RESULT, tsStatus);
         }
         if (tsStatus.getCode() != TSStatusCode.SUCCESS_STATUS.getStatusCode()
             && tsStatus.getCode() != TSStatusCode.REDIRECTION_RECOMMEND.getStatusCode()) {
diff --git a/external-service-impl/mqtt/src/main/java/org/apache/iotdb/mqtt/MQTTService.java b/external-service-impl/mqtt/src/main/java/org/apache/iotdb/mqtt/MQTTService.java
index 3b2be5ac3f4..7c9ed2d4755 100644
--- a/external-service-impl/mqtt/src/main/java/org/apache/iotdb/mqtt/MQTTService.java
+++ b/external-service-impl/mqtt/src/main/java/org/apache/iotdb/mqtt/MQTTService.java
@@ -22,6 +22,7 @@ package org.apache.iotdb.mqtt;
 import org.apache.iotdb.db.conf.IoTDBConfig;
 import org.apache.iotdb.db.conf.IoTDBDescriptor;
 import org.apache.iotdb.externalservice.api.IExternalService;
+import org.apache.iotdb.mqtt.i18n.MqttMessages;
 
 import io.moquette.BrokerConstants;
 import io.moquette.broker.Server;
@@ -62,7 +63,7 @@ public class MQTTService implements IExternalService {
     try {
       server.startServer(config, handlers, null, authenticator, null);
     } catch (IOException e) {
-      throw new RuntimeException("Exception while starting server", e);
+      throw new RuntimeException(MqttMessages.SERVER_START_EXCEPTION, e);
     }
 
     LOG.info(
@@ -74,9 +75,9 @@ public class MQTTService implements IExternalService {
         .addShutdownHook(
             new Thread(
                 () -> {
-                  LOG.info("Stopping IoTDB MQTT service...");
+                  LOG.info(MqttMessages.STOPPING_MQTT_SERVICE);
                   shutdown();
-                  LOG.info("IoTDB MQTT service stopped.");
+                  LOG.info(MqttMessages.MQTT_SERVICE_STOPPED);
                 }));
   }
 
diff --git a/external-service-impl/mqtt/src/main/java/org/apache/iotdb/mqtt/PayloadFormatManager.java b/external-service-impl/mqtt/src/main/java/org/apache/iotdb/mqtt/PayloadFormatManager.java
index 228b890b47f..80bf09f4efc 100644
--- a/external-service-impl/mqtt/src/main/java/org/apache/iotdb/mqtt/PayloadFormatManager.java
+++ b/external-service-impl/mqtt/src/main/java/org/apache/iotdb/mqtt/PayloadFormatManager.java
@@ -20,6 +20,7 @@ package org.apache.iotdb.mqtt;
 
 import org.apache.iotdb.commons.file.SystemFileFactory;
 import org.apache.iotdb.db.conf.IoTDBDescriptor;
+import org.apache.iotdb.mqtt.i18n.MqttMessages;
 
 import com.google.common.base.Preconditions;
 import org.apache.tsfile.external.commons.io.FileUtils;
@@ -54,13 +55,13 @@ public class PayloadFormatManager {
 
   private static void init() {
     mqttDir = IoTDBDescriptor.getInstance().getConfig().getMqttDir();
-    logger.info("mqttDir: {}", mqttDir);
+    logger.info(MqttMessages.MQTT_DIR, mqttDir);
 
     try {
       makeMqttPluginDir();
       buildMqttPluginMap();
     } catch (IOException e) {
-      logger.error("MQTT PayloadFormatManager init() error.", e);
+      logger.error(MqttMessages.PAYLOAD_FORMAT_MANAGER_INIT_ERROR, e);
     }
   }
 
@@ -83,17 +84,17 @@ public class PayloadFormatManager {
         ServiceLoader.load(PayloadFormatter.class, PayloadFormatManager.class.getClassLoader());
     for (PayloadFormatter formatter : payloadFormatters) {
       if (formatter == null) {
-        logger.error("PayloadFormatManager(), formatter is null.");
+        logger.error(MqttMessages.FORMATTER_IS_NULL);
         continue;
       }
 
       String pluginName = formatter.getName();
       mqttPayloadPluginMap.put(pluginName, formatter);
-      logger.info("PayloadFormatManager(), find MQTT Payload Plugin {}.", pluginName);
+      logger.info(MqttMessages.FIND_MQTT_PLUGIN, pluginName);
     }
 
     URL[] jarURLs = getPluginJarURLs(mqttDir);
-    logger.debug("MQTT Plugin jarURLs: {}", Arrays.toString(jarURLs));
+    logger.debug(MqttMessages.MQTT_PLUGIN_JAR_URLS, Arrays.toString(jarURLs));
 
     for (URL jarUrl : jarURLs) {
       ClassLoader classLoader = new URLClassLoader(new URL[] {jarUrl});
@@ -104,7 +105,7 @@ public class PayloadFormatManager {
 
       for (PayloadFormatter formatter : payloadFormatters2) {
         if (formatter == null) {
-          logger.error("PayloadFormatManager(), formatter is null.");
+          logger.error(MqttMessages.FORMATTER_IS_NULL);
           continue;
         }
 
@@ -113,7 +114,7 @@ public class PayloadFormatManager {
           continue;
         }
         mqttPayloadPluginMap.put(pluginName, formatter);
-        logger.info("PayloadFormatManager(), find MQTT Payload Plugin {}.", pluginName);
+        logger.info(MqttMessages.FIND_MQTT_PLUGIN, pluginName);
       }
     }
   }
diff --git a/external-service-impl/rest/pom.xml b/external-service-impl/rest/pom.xml
index 9c3473a01c5..7ef130ace31 100644
--- a/external-service-impl/rest/pom.xml
+++ b/external-service-impl/rest/pom.xml
@@ -214,6 +214,10 @@
                     </usedDependencies>
                 </configuration>
             </plugin>
+            <plugin>
+                <groupId>org.codehaus.mojo</groupId>
+                <artifactId>build-helper-maven-plugin</artifactId>
+            </plugin>
         </plugins>
     </build>
 </project>
diff --git a/iotdb-api/udf-api/src/main/java/org/apache/iotdb/udf/api/customizer/config/UDFConfigurations.java b/external-service-impl/rest/src/main/i18n/en/org/apache/iotdb/rest/i18n/RestMessages.java
similarity index 55%
copy from iotdb-api/udf-api/src/main/java/org/apache/iotdb/udf/api/customizer/config/UDFConfigurations.java
copy to external-service-impl/rest/src/main/i18n/en/org/apache/iotdb/rest/i18n/RestMessages.java
index d572db2a1ef..bbe6f60a363 100644
--- a/iotdb-api/udf-api/src/main/java/org/apache/iotdb/udf/api/customizer/config/UDFConfigurations.java
+++ b/external-service-impl/rest/src/main/i18n/en/org/apache/iotdb/rest/i18n/RestMessages.java
@@ -17,21 +17,20 @@
  * under the License.
  */
 
-package org.apache.iotdb.udf.api.customizer.config;
+package org.apache.iotdb.rest.i18n;
 
-import org.apache.iotdb.udf.api.type.Type;
+public final class RestMessages {
 
-public abstract class UDFConfigurations {
+  // --- RestService ---
+  public static final String REST_SERVICE_START_FAILED = "RestService failed to start: {}";
+  public static final String REST_SERVICE_START_SUCCESS = "start RestService successfully";
+  public static final String REST_SERVICE_STOP_FAILED = "RestService failed to stop: {}";
 
-  protected Type outputDataType;
+  // --- StatementConstructionHandler (v1 / v2 / table) ---
+  public static final String INVALID_INPUT = "Invalid input: ";
 
-  public Type getOutputDataType() {
-    return outputDataType;
-  }
+  // --- RequestValidationHandler (v2) ---
+  public static final String PREFIX_PATHS_EMPTY = "prefix_paths should not be empty";
 
-  public void check() {
-    if (outputDataType == null) {
-      throw new RuntimeException("UDF outputDataType is not set.");
-    }
-  }
+  private RestMessages() {}
 }
diff --git a/iotdb-api/udf-api/src/main/java/org/apache/iotdb/udf/api/customizer/config/UDFConfigurations.java b/external-service-impl/rest/src/main/i18n/zh/org/apache/iotdb/rest/i18n/RestMessages.java
similarity index 56%
copy from iotdb-api/udf-api/src/main/java/org/apache/iotdb/udf/api/customizer/config/UDFConfigurations.java
copy to external-service-impl/rest/src/main/i18n/zh/org/apache/iotdb/rest/i18n/RestMessages.java
index d572db2a1ef..db2742dfd17 100644
--- a/iotdb-api/udf-api/src/main/java/org/apache/iotdb/udf/api/customizer/config/UDFConfigurations.java
+++ b/external-service-impl/rest/src/main/i18n/zh/org/apache/iotdb/rest/i18n/RestMessages.java
@@ -17,21 +17,20 @@
  * under the License.
  */
 
-package org.apache.iotdb.udf.api.customizer.config;
+package org.apache.iotdb.rest.i18n;
 
-import org.apache.iotdb.udf.api.type.Type;
+public final class RestMessages {
 
-public abstract class UDFConfigurations {
+  // --- RestService ---
+  public static final String REST_SERVICE_START_FAILED = "RestService 启动失败:{}";
+  public static final String REST_SERVICE_START_SUCCESS = "RestService 启动成功";
+  public static final String REST_SERVICE_STOP_FAILED = "RestService 停止失败:{}";
 
-  protected Type outputDataType;
+  // --- StatementConstructionHandler (v1 / v2 / table) ---
+  public static final String INVALID_INPUT = "无效输入:";
 
-  public Type getOutputDataType() {
-    return outputDataType;
-  }
+  // --- RequestValidationHandler (v2) ---
+  public static final String PREFIX_PATHS_EMPTY = "prefix_paths 不能为空";
 
-  public void check() {
-    if (outputDataType == null) {
-      throw new RuntimeException("UDF outputDataType is not set.");
-    }
-  }
+  private RestMessages() {}
 }
diff --git a/external-service-impl/rest/src/main/java/org/apache/iotdb/rest/RestService.java b/external-service-impl/rest/src/main/java/org/apache/iotdb/rest/RestService.java
index 9a90e6b18f2..2e072d87961 100644
--- a/external-service-impl/rest/src/main/java/org/apache/iotdb/rest/RestService.java
+++ b/external-service-impl/rest/src/main/java/org/apache/iotdb/rest/RestService.java
@@ -19,6 +19,7 @@ package org.apache.iotdb.rest;
 import org.apache.iotdb.db.conf.rest.IoTDBRestServiceConfig;
 import org.apache.iotdb.db.conf.rest.IoTDBRestServiceDescriptor;
 import org.apache.iotdb.externalservice.api.IExternalService;
+import org.apache.iotdb.rest.i18n.RestMessages;
 import org.apache.iotdb.rest.protocol.filter.ApiOriginFilter;
 
 import org.eclipse.jetty.http.HttpVersion;
@@ -108,10 +109,10 @@ public class RestService implements IExternalService {
     try {
       server.start();
     } catch (Exception e) {
-      LOGGER.warn("RestService failed to start: {}", e.getMessage());
+      LOGGER.warn(RestMessages.REST_SERVICE_START_FAILED, e.getMessage());
       server.destroy();
     }
-    LOGGER.info("start RestService successfully");
+    LOGGER.info(RestMessages.REST_SERVICE_START_SUCCESS);
   }
 
   @Override
@@ -136,7 +137,7 @@ public class RestService implements IExternalService {
     try {
       server.stop();
     } catch (Exception e) {
-      LOGGER.warn("RestService failed to stop: {}", e.getMessage());
+      LOGGER.warn(RestMessages.REST_SERVICE_STOP_FAILED, e.getMessage());
     } finally {
       server.destroy();
     }
diff --git a/external-service-impl/rest/src/main/java/org/apache/iotdb/rest/protocol/table/v1/handler/StatementConstructionHandler.java b/external-service-impl/rest/src/main/java/org/apache/iotdb/rest/protocol/table/v1/handler/StatementConstructionHandler.java
index e4f9c23c69a..28cf4d0c1b1 100644
--- a/external-service-impl/rest/src/main/java/org/apache/iotdb/rest/protocol/table/v1/handler/StatementConstructionHandler.java
+++ b/external-service-impl/rest/src/main/java/org/apache/iotdb/rest/protocol/table/v1/handler/StatementConstructionHandler.java
@@ -23,6 +23,7 @@ import org.apache.iotdb.commons.queryengine.utils.TimestampPrecisionUtils;
 import org.apache.iotdb.commons.schema.table.column.TsTableColumnCategory;
 import org.apache.iotdb.db.exception.WriteProcessRejectException;
 import org.apache.iotdb.db.queryengine.plan.statement.crud.InsertTabletStatement;
+import org.apache.iotdb.rest.i18n.RestMessages;
 import org.apache.iotdb.rest.protocol.table.v1.model.InsertTabletRequest;
 
 import org.apache.tsfile.enums.ColumnCategory;
@@ -162,7 +163,8 @@ public class StatementConstructionHandler {
           columns[columnIndex] = binaryValues;
           break;
         default:
-          throw new IllegalArgumentException("Invalid input: " + rawDataType.get(columnIndex));
+          throw new IllegalArgumentException(
+              RestMessages.INVALID_INPUT + rawDataType.get(columnIndex));
       }
     }
     insertStatement.setColumns(columns);
diff --git a/external-service-impl/rest/src/main/java/org/apache/iotdb/rest/protocol/v1/handler/StatementConstructionHandler.java b/external-service-impl/rest/src/main/java/org/apache/iotdb/rest/protocol/v1/handler/StatementConstructionHandler.java
index 74f679ec611..9fbd9ac6696 100644
--- a/external-service-impl/rest/src/main/java/org/apache/iotdb/rest/protocol/v1/handler/StatementConstructionHandler.java
+++ b/external-service-impl/rest/src/main/java/org/apache/iotdb/rest/protocol/v1/handler/StatementConstructionHandler.java
@@ -23,6 +23,7 @@ import org.apache.iotdb.commons.utils.PathUtils;
 import org.apache.iotdb.db.exception.WriteProcessRejectException;
 import org.apache.iotdb.db.queryengine.plan.analyze.cache.schema.DataNodeDevicePathCache;
 import org.apache.iotdb.db.queryengine.plan.statement.crud.InsertTabletStatement;
+import org.apache.iotdb.rest.i18n.RestMessages;
 import org.apache.iotdb.rest.protocol.v1.model.InsertTabletRequest;
 
 import org.apache.tsfile.enums.TSDataType;
@@ -163,7 +164,8 @@ public class StatementConstructionHandler {
           columns[columnIndex] = binaryValues;
           break;
         default:
-          throw new IllegalArgumentException("Invalid input: " + rawDataType.get(columnIndex));
+          throw new IllegalArgumentException(
+              RestMessages.INVALID_INPUT + rawDataType.get(columnIndex));
       }
     }
 
diff --git a/external-service-impl/rest/src/main/java/org/apache/iotdb/rest/protocol/v2/handler/RequestValidationHandler.java b/external-service-impl/rest/src/main/java/org/apache/iotdb/rest/protocol/v2/handler/RequestValidationHandler.java
index 5f999b3ddcc..b5b5858de56 100644
--- a/external-service-impl/rest/src/main/java/org/apache/iotdb/rest/protocol/v2/handler/RequestValidationHandler.java
+++ b/external-service-impl/rest/src/main/java/org/apache/iotdb/rest/protocol/v2/handler/RequestValidationHandler.java
@@ -17,6 +17,7 @@
 
 package org.apache.iotdb.rest.protocol.v2.handler;
 
+import org.apache.iotdb.rest.i18n.RestMessages;
 import org.apache.iotdb.rest.protocol.v2.model.ExpressionRequest;
 import org.apache.iotdb.rest.protocol.v2.model.InsertRecordsRequest;
 import org.apache.iotdb.rest.protocol.v2.model.InsertTabletRequest;
@@ -44,7 +45,7 @@ public class RequestValidationHandler {
   public static void validatePrefixPaths(PrefixPathList prefixPathList) {
     Objects.requireNonNull(prefixPathList.getPrefixPaths(), "prefix_paths should not be null");
     if (prefixPathList.getPrefixPaths().isEmpty()) {
-      throw new IllegalArgumentException("prefix_paths should not be empty");
+      throw new IllegalArgumentException(RestMessages.PREFIX_PATHS_EMPTY);
     }
   }
 
diff --git a/external-service-impl/rest/src/main/java/org/apache/iotdb/rest/protocol/v2/handler/StatementConstructionHandler.java b/external-service-impl/rest/src/main/java/org/apache/iotdb/rest/protocol/v2/handler/StatementConstructionHandler.java
index 729517bf500..679c4556e90 100644
--- a/external-service-impl/rest/src/main/java/org/apache/iotdb/rest/protocol/v2/handler/StatementConstructionHandler.java
+++ b/external-service-impl/rest/src/main/java/org/apache/iotdb/rest/protocol/v2/handler/StatementConstructionHandler.java
@@ -26,6 +26,7 @@ import org.apache.iotdb.db.queryengine.plan.analyze.cache.schema.DataNodeDeviceP
 import org.apache.iotdb.db.queryengine.plan.statement.crud.InsertRowStatement;
 import org.apache.iotdb.db.queryengine.plan.statement.crud.InsertRowsStatement;
 import org.apache.iotdb.db.queryengine.plan.statement.crud.InsertTabletStatement;
+import org.apache.iotdb.rest.i18n.RestMessages;
 import org.apache.iotdb.rest.protocol.utils.InsertRowDataUtils;
 import org.apache.iotdb.rest.protocol.v2.model.InsertRecordsRequest;
 import org.apache.iotdb.rest.protocol.v2.model.InsertTabletRequest;
@@ -173,7 +174,8 @@ public class StatementConstructionHandler {
           columns[columnIndex] = binaryValues;
           break;
         default:
-          throw new IllegalArgumentException("Invalid input: " + rawDataType.get(columnIndex));
+          throw new IllegalArgumentException(
+              RestMessages.INVALID_INPUT + rawDataType.get(columnIndex));
       }
     }
 
diff --git a/iotdb-api/pipe-api/pom.xml b/iotdb-api/pipe-api/pom.xml
index 07f18c904b2..9935e244e9c 100644
--- a/iotdb-api/pipe-api/pom.xml
+++ b/iotdb-api/pipe-api/pom.xml
@@ -41,6 +41,14 @@
             <scope>test</scope>
         </dependency>
     </dependencies>
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.codehaus.mojo</groupId>
+                <artifactId>build-helper-maven-plugin</artifactId>
+            </plugin>
+        </plugins>
+    </build>
     <profiles>
         <profile>
             <id>get-jar-with-dependencies</id>
diff --git a/iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/exception/BadNodeUrlException.java b/iotdb-api/pipe-api/src/main/i18n/en/org/apache/iotdb/pipe/api/i18n/PipeApiMessages.java
similarity index 77%
copy from iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/exception/BadNodeUrlException.java
copy to iotdb-api/pipe-api/src/main/i18n/en/org/apache/iotdb/pipe/api/i18n/PipeApiMessages.java
index dc6c1b8dab6..7e5e9237290 100644
--- a/iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/exception/BadNodeUrlException.java
+++ b/iotdb-api/pipe-api/src/main/i18n/en/org/apache/iotdb/pipe/api/i18n/PipeApiMessages.java
@@ -17,10 +17,12 @@
  * under the License.
  */
 
-package org.apache.iotdb.commons.exception;
+package org.apache.iotdb.pipe.api.i18n;
 
-public class BadNodeUrlException extends Exception {
-  public BadNodeUrlException(String nodeUrl) {
-    super(String.format("Bad node url: %s", nodeUrl));
-  }
+public final class PipeApiMessages {
+
+  // --- PipeParameterValidator ---
+  public static final String PARAMETER_SHOULD_BE_SET = "Parameter %s should be set.";
+
+  private PipeApiMessages() {}
 }
diff --git a/iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/exception/BadNodeUrlException.java b/iotdb-api/pipe-api/src/main/i18n/zh/org/apache/iotdb/pipe/api/i18n/PipeApiMessages.java
similarity index 77%
copy from iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/exception/BadNodeUrlException.java
copy to iotdb-api/pipe-api/src/main/i18n/zh/org/apache/iotdb/pipe/api/i18n/PipeApiMessages.java
index dc6c1b8dab6..66310327d33 100644
--- a/iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/exception/BadNodeUrlException.java
+++ b/iotdb-api/pipe-api/src/main/i18n/zh/org/apache/iotdb/pipe/api/i18n/PipeApiMessages.java
@@ -17,10 +17,12 @@
  * under the License.
  */
 
-package org.apache.iotdb.commons.exception;
+package org.apache.iotdb.pipe.api.i18n;
 
-public class BadNodeUrlException extends Exception {
-  public BadNodeUrlException(String nodeUrl) {
-    super(String.format("Bad node url: %s", nodeUrl));
-  }
+public final class PipeApiMessages {
+
+  // --- PipeParameterValidator ---
+  public static final String PARAMETER_SHOULD_BE_SET = "参数 %s 必须设置。";
+
+  private PipeApiMessages() {}
 }
diff --git a/iotdb-api/pipe-api/src/main/java/org/apache/iotdb/pipe/api/customizer/parameter/PipeParameterValidator.java b/iotdb-api/pipe-api/src/main/java/org/apache/iotdb/pipe/api/customizer/parameter/PipeParameterValidator.java
index 99d547a23c6..d72eeb792e0 100644
--- a/iotdb-api/pipe-api/src/main/java/org/apache/iotdb/pipe/api/customizer/parameter/PipeParameterValidator.java
+++ b/iotdb-api/pipe-api/src/main/java/org/apache/iotdb/pipe/api/customizer/parameter/PipeParameterValidator.java
@@ -21,6 +21,7 @@ package org.apache.iotdb.pipe.api.customizer.parameter;
 
 import org.apache.iotdb.pipe.api.exception.PipeAttributeNotProvidedException;
 import org.apache.iotdb.pipe.api.exception.PipeParameterNotValidException;
+import org.apache.iotdb.pipe.api.i18n.PipeApiMessages;
 
 import java.util.Arrays;
 import java.util.Collections;
@@ -94,7 +95,8 @@ public class PipeParameterValidator {
       throws PipeAttributeNotProvidedException {
     if (!parameters.hasAttribute(key)) {
       if (!canBeOptional) {
-        throw new PipeParameterNotValidException(String.format("Parameter %s should be set.", key));
+        throw new PipeParameterNotValidException(
+            String.format(PipeApiMessages.PARAMETER_SHOULD_BE_SET, key));
       }
       return this;
     }
diff --git a/iotdb-api/trigger-api/pom.xml b/iotdb-api/trigger-api/pom.xml
index 909e23791c7..9a6c4546e36 100644
--- a/iotdb-api/trigger-api/pom.xml
+++ b/iotdb-api/trigger-api/pom.xml
@@ -35,6 +35,14 @@
             <version>${tsfile.version}</version>
         </dependency>
     </dependencies>
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.codehaus.mojo</groupId>
+                <artifactId>build-helper-maven-plugin</artifactId>
+            </plugin>
+        </plugins>
+    </build>
     <profiles>
         <profile>
             <id>get-jar-with-dependencies</id>
diff --git a/iotdb-api/udf-api/src/main/java/org/apache/iotdb/udf/api/customizer/config/UDFConfigurations.java b/iotdb-api/trigger-api/src/main/i18n/en/org/apache/iotdb/trigger/api/i18n/TriggerApiMessages.java
similarity index 63%
copy from iotdb-api/udf-api/src/main/java/org/apache/iotdb/udf/api/customizer/config/UDFConfigurations.java
copy to iotdb-api/trigger-api/src/main/i18n/en/org/apache/iotdb/trigger/api/i18n/TriggerApiMessages.java
index d572db2a1ef..8621aa31fc4 100644
--- a/iotdb-api/udf-api/src/main/java/org/apache/iotdb/udf/api/customizer/config/UDFConfigurations.java
+++ b/iotdb-api/trigger-api/src/main/i18n/en/org/apache/iotdb/trigger/api/i18n/TriggerApiMessages.java
@@ -17,21 +17,19 @@
  * under the License.
  */
 
-package org.apache.iotdb.udf.api.customizer.config;
+package org.apache.iotdb.trigger.api.i18n;
 
-import org.apache.iotdb.udf.api.type.Type;
+public final class TriggerApiMessages {
 
-public abstract class UDFConfigurations {
+  // --- TriggerType ---
+  public static final String NO_SUCH_TRIGGER_TYPE = "No such trigger type (id: %d)";
 
-  protected Type outputDataType;
+  // --- TriggerEvent ---
+  public static final String NO_SUCH_TRIGGER_EVENT = "No such trigger event (id: %d)";
 
-  public Type getOutputDataType() {
-    return outputDataType;
-  }
+  // --- FailureStrategy ---
+  public static final String UNSUPPORTED_FAILURE_STRATEGY_TYPE =
+      "Unsupported FailureStrategy Type.";
 
-  public void check() {
-    if (outputDataType == null) {
-      throw new RuntimeException("UDF outputDataType is not set.");
-    }
-  }
+  private TriggerApiMessages() {}
 }
diff --git a/iotdb-api/udf-api/src/main/java/org/apache/iotdb/udf/api/customizer/config/UDFConfigurations.java b/iotdb-api/trigger-api/src/main/i18n/zh/org/apache/iotdb/trigger/api/i18n/TriggerApiMessages.java
similarity index 62%
copy from iotdb-api/udf-api/src/main/java/org/apache/iotdb/udf/api/customizer/config/UDFConfigurations.java
copy to iotdb-api/trigger-api/src/main/i18n/zh/org/apache/iotdb/trigger/api/i18n/TriggerApiMessages.java
index d572db2a1ef..778d8abef10 100644
--- a/iotdb-api/udf-api/src/main/java/org/apache/iotdb/udf/api/customizer/config/UDFConfigurations.java
+++ b/iotdb-api/trigger-api/src/main/i18n/zh/org/apache/iotdb/trigger/api/i18n/TriggerApiMessages.java
@@ -17,21 +17,19 @@
  * under the License.
  */
 
-package org.apache.iotdb.udf.api.customizer.config;
+package org.apache.iotdb.trigger.api.i18n;
 
-import org.apache.iotdb.udf.api.type.Type;
+public final class TriggerApiMessages {
 
-public abstract class UDFConfigurations {
+  // --- TriggerType ---
+  public static final String NO_SUCH_TRIGGER_TYPE = "不存在该触发器类型(id: %d)";
 
-  protected Type outputDataType;
+  // --- TriggerEvent ---
+  public static final String NO_SUCH_TRIGGER_EVENT = "不存在该触发器事件(id: %d)";
 
-  public Type getOutputDataType() {
-    return outputDataType;
-  }
+  // --- FailureStrategy ---
+  public static final String UNSUPPORTED_FAILURE_STRATEGY_TYPE =
+      "不支持的 FailureStrategy 类型。";
 
-  public void check() {
-    if (outputDataType == null) {
-      throw new RuntimeException("UDF outputDataType is not set.");
-    }
-  }
+  private TriggerApiMessages() {}
 }
diff --git a/iotdb-api/trigger-api/src/main/java/org/apache/iotdb/trigger/api/enums/FailureStrategy.java b/iotdb-api/trigger-api/src/main/java/org/apache/iotdb/trigger/api/enums/FailureStrategy.java
index 18d9478f14b..8e3d2f64992 100644
--- a/iotdb-api/trigger-api/src/main/java/org/apache/iotdb/trigger/api/enums/FailureStrategy.java
+++ b/iotdb-api/trigger-api/src/main/java/org/apache/iotdb/trigger/api/enums/FailureStrategy.java
@@ -20,6 +20,7 @@
 package org.apache.iotdb.trigger.api.enums;
 
 import org.apache.iotdb.trigger.api.Trigger;
+import org.apache.iotdb.trigger.api.i18n.TriggerApiMessages;
 
 import org.apache.tsfile.write.record.Tablet;
 
@@ -62,7 +63,8 @@ public enum FailureStrategy {
       case 1:
         return FailureStrategy.PESSIMISTIC;
       default:
-        throw new UnsupportedOperationException("Unsupported FailureStrategy Type.");
+        throw new UnsupportedOperationException(
+            TriggerApiMessages.UNSUPPORTED_FAILURE_STRATEGY_TYPE);
     }
   }
 }
diff --git a/iotdb-api/trigger-api/src/main/java/org/apache/iotdb/trigger/api/enums/TriggerEvent.java b/iotdb-api/trigger-api/src/main/java/org/apache/iotdb/trigger/api/enums/TriggerEvent.java
index a47c0b3a53f..9be92aaaa84 100644
--- a/iotdb-api/trigger-api/src/main/java/org/apache/iotdb/trigger/api/enums/TriggerEvent.java
+++ b/iotdb-api/trigger-api/src/main/java/org/apache/iotdb/trigger/api/enums/TriggerEvent.java
@@ -19,6 +19,8 @@
 
 package org.apache.iotdb.trigger.api.enums;
 
+import org.apache.iotdb.trigger.api.i18n.TriggerApiMessages;
+
 public enum TriggerEvent {
   BEFORE_INSERT((byte) 0, "BEFORE_INSERT"),
   AFTER_INSERT((byte) 1, "AFTER_INSERT");
@@ -47,7 +49,8 @@ public enum TriggerEvent {
       case 1:
         return AFTER_INSERT;
       default:
-        throw new IllegalArgumentException(String.format("No such trigger event (id: %d)", id));
+        throw new IllegalArgumentException(
+            String.format(TriggerApiMessages.NO_SUCH_TRIGGER_EVENT, id));
     }
   }
 }
diff --git a/iotdb-api/trigger-api/src/main/java/org/apache/iotdb/trigger/api/enums/TriggerType.java b/iotdb-api/trigger-api/src/main/java/org/apache/iotdb/trigger/api/enums/TriggerType.java
index bf801d7f469..94a4441e37f 100644
--- a/iotdb-api/trigger-api/src/main/java/org/apache/iotdb/trigger/api/enums/TriggerType.java
+++ b/iotdb-api/trigger-api/src/main/java/org/apache/iotdb/trigger/api/enums/TriggerType.java
@@ -19,6 +19,8 @@
 
 package org.apache.iotdb.trigger.api.enums;
 
+import org.apache.iotdb.trigger.api.i18n.TriggerApiMessages;
+
 public enum TriggerType {
   STATEFUL((byte) 0, "STATEFUL"),
   STATELESS((byte) 1, "STATELESS");
@@ -47,7 +49,8 @@ public enum TriggerType {
       case 1:
         return STATELESS;
       default:
-        throw new IllegalArgumentException(String.format("No such trigger type (id: %d)", id));
+        throw new IllegalArgumentException(
+            String.format(TriggerApiMessages.NO_SUCH_TRIGGER_TYPE, id));
     }
   }
 }
diff --git a/iotdb-api/udf-api/pom.xml b/iotdb-api/udf-api/pom.xml
index 4235a63430c..9a22a1f6f82 100644
--- a/iotdb-api/udf-api/pom.xml
+++ b/iotdb-api/udf-api/pom.xml
@@ -35,6 +35,14 @@
             <version>${tsfile.version}</version>
         </dependency>
     </dependencies>
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.codehaus.mojo</groupId>
+                <artifactId>build-helper-maven-plugin</artifactId>
+            </plugin>
+        </plugins>
+    </build>
     <profiles>
         <profile>
             <id>get-jar-with-dependencies</id>
diff --git a/iotdb-api/udf-api/src/main/i18n/en/org/apache/iotdb/udf/api/i18n/UdfApiMessages.java b/iotdb-api/udf-api/src/main/i18n/en/org/apache/iotdb/udf/api/i18n/UdfApiMessages.java
new file mode 100644
index 00000000000..f66b0ec1b7b
--- /dev/null
+++ b/iotdb-api/udf-api/src/main/i18n/en/org/apache/iotdb/udf/api/i18n/UdfApiMessages.java
@@ -0,0 +1,77 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.iotdb.udf.api.i18n;
+
+public final class UdfApiMessages {
+
+  // MapTableFunctionHandle
+  public static final String UNSUPPORTED_VALUE_TYPE = "Unsupported value type.";
+  public static final String UNKNOWN_TYPE = "Unknown type: ";
+
+  // Argument
+  public static final String UNKNOWN_ARGUMENT_TYPE = "Unknown argument type: ";
+
+  // TableFunctionProcessorProvider
+  public static final String TABLE_FUNCTION_DOES_NOT_PROCESS_INPUT_DATA =
+      "this table function does not process input data";
+  public static final String TABLE_FUNCTION_DOES_NOT_PROCESS_LEAF_DATA =
+      "this table function does not process leaf data";
+
+  // DescribedSchema
+  public static final String DESCRIBED_SCHEMA_HAS_NO_FIELDS = "DescribedSchema has no fields";
+
+  // ScalarArgument
+  public static final String UNKNOWN_SCALAR_ARG_TYPE = "Unknown type: ";
+
+  // TableArgument
+  public static final String FIELD_NAMES_AND_TYPES_MUST_HAVE_SAME_SIZE =
+      "fieldNames and fieldTypes must have the same size";
+
+  // ParameterSpecification
+  public static final String NON_NULL_DEFAULT_VALUE_FOR_REQUIRED_ARG =
+      "non-null default value for a required argument";
+
+  // ScalarFunctionAnalysis
+  public static final String SCALAR_FUNCTION_ANALYSIS_OUTPUT_DATA_TYPE_NOT_SET =
+      "ScalarFunctionAnalysis outputDataType is not set.";
+
+  // AggregateFunctionAnalysis
+  public static final String AGGREGATE_FUNCTION_ANALYSIS_OUTPUT_DATA_TYPE_NOT_SET =
+      "AggregateFunctionAnalysis outputDataType is not set.";
+
+  // UDTFConfigurations
+  public static final String ACCESS_STRATEGY_NOT_SET = "Access strategy is not set.";
+
+  // UDFConfigurations
+  public static final String UDF_OUTPUT_DATA_TYPE_NOT_SET = "UDF outputDataType is not set.";
+
+  // SlidingTimeWindowAccessStrategy
+  public static final String METHOD_DEPRECATED_SINCE_V014 =
+      "The method is deprecated since v0.14.";
+
+  // Type
+  public static final String UNSUPPORTED_TYPE = "Unsupported type: ";
+
+  // RowImpl
+  public static final String INDEX_OUT_OF_BOUND = "Index out of bound error!";
+  public static final String INVALID_INPUT = "Invalid input: ";
+
+  private UdfApiMessages() {}
+}
diff --git a/iotdb-api/udf-api/src/main/i18n/zh/org/apache/iotdb/udf/api/i18n/UdfApiMessages.java b/iotdb-api/udf-api/src/main/i18n/zh/org/apache/iotdb/udf/api/i18n/UdfApiMessages.java
new file mode 100644
index 00000000000..71dbd416214
--- /dev/null
+++ b/iotdb-api/udf-api/src/main/i18n/zh/org/apache/iotdb/udf/api/i18n/UdfApiMessages.java
@@ -0,0 +1,76 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.iotdb.udf.api.i18n;
+
+public final class UdfApiMessages {
+
+  // MapTableFunctionHandle
+  public static final String UNSUPPORTED_VALUE_TYPE = "不支持的值类型。";
+  public static final String UNKNOWN_TYPE = "未知类型:";
+
+  // Argument
+  public static final String UNKNOWN_ARGUMENT_TYPE = "未知参数类型:";
+
+  // TableFunctionProcessorProvider
+  public static final String TABLE_FUNCTION_DOES_NOT_PROCESS_INPUT_DATA =
+      "此表函数不处理输入数据";
+  public static final String TABLE_FUNCTION_DOES_NOT_PROCESS_LEAF_DATA =
+      "此表函数不处理叶子数据";
+
+  // DescribedSchema
+  public static final String DESCRIBED_SCHEMA_HAS_NO_FIELDS = "DescribedSchema 没有字段";
+
+  // ScalarArgument
+  public static final String UNKNOWN_SCALAR_ARG_TYPE = "未知类型:";
+
+  // TableArgument
+  public static final String FIELD_NAMES_AND_TYPES_MUST_HAVE_SAME_SIZE =
+      "fieldNames 和 fieldTypes 必须具有相同的大小";
+
+  // ParameterSpecification
+  public static final String NON_NULL_DEFAULT_VALUE_FOR_REQUIRED_ARG =
+      "必填参数不能有非 null 默认值";
+
+  // ScalarFunctionAnalysis
+  public static final String SCALAR_FUNCTION_ANALYSIS_OUTPUT_DATA_TYPE_NOT_SET =
+      "ScalarFunctionAnalysis 的 outputDataType 未设置。";
+
+  // AggregateFunctionAnalysis
+  public static final String AGGREGATE_FUNCTION_ANALYSIS_OUTPUT_DATA_TYPE_NOT_SET =
+      "AggregateFunctionAnalysis 的 outputDataType 未设置。";
+
+  // UDTFConfigurations
+  public static final String ACCESS_STRATEGY_NOT_SET = "访问策略未设置。";
+
+  // UDFConfigurations
+  public static final String UDF_OUTPUT_DATA_TYPE_NOT_SET = "UDF 的 outputDataType 未设置。";
+
+  // SlidingTimeWindowAccessStrategy
+  public static final String METHOD_DEPRECATED_SINCE_V014 = "该方法自 v0.14 起已废弃。";
+
+  // Type
+  public static final String UNSUPPORTED_TYPE = "不支持的类型:";
+
+  // RowImpl
+  public static final String INDEX_OUT_OF_BOUND = "索引越界错误!";
+  public static final String INVALID_INPUT = "无效输入:";
+
+  private UdfApiMessages() {}
+}
diff --git a/iotdb-api/udf-api/src/main/java/org/apache/iotdb/udf/api/customizer/analysis/AggregateFunctionAnalysis.java b/iotdb-api/udf-api/src/main/java/org/apache/iotdb/udf/api/customizer/analysis/AggregateFunctionAnalysis.java
index 2eb4ba76aac..168f1854ca8 100644
--- a/iotdb-api/udf-api/src/main/java/org/apache/iotdb/udf/api/customizer/analysis/AggregateFunctionAnalysis.java
+++ b/iotdb-api/udf-api/src/main/java/org/apache/iotdb/udf/api/customizer/analysis/AggregateFunctionAnalysis.java
@@ -19,6 +19,7 @@
 
 package org.apache.iotdb.udf.api.customizer.analysis;
 
+import org.apache.iotdb.udf.api.i18n.UdfApiMessages;
 import org.apache.iotdb.udf.api.type.Type;
 
 public class AggregateFunctionAnalysis implements FunctionAnalysis {
@@ -54,7 +55,8 @@ public class AggregateFunctionAnalysis implements FunctionAnalysis {
 
     public AggregateFunctionAnalysis build() throws IllegalArgumentException {
       if (outputDataType == null) {
-        throw new IllegalArgumentException("AggregateFunctionAnalysis outputDataType is not set.");
+        throw new IllegalArgumentException(
+            UdfApiMessages.AGGREGATE_FUNCTION_ANALYSIS_OUTPUT_DATA_TYPE_NOT_SET);
       }
       return new AggregateFunctionAnalysis(outputDataType, removable);
     }
diff --git a/iotdb-api/udf-api/src/main/java/org/apache/iotdb/udf/api/customizer/analysis/ScalarFunctionAnalysis.java b/iotdb-api/udf-api/src/main/java/org/apache/iotdb/udf/api/customizer/analysis/ScalarFunctionAnalysis.java
index dc633203ed2..6adadd9edbe 100644
--- a/iotdb-api/udf-api/src/main/java/org/apache/iotdb/udf/api/customizer/analysis/ScalarFunctionAnalysis.java
+++ b/iotdb-api/udf-api/src/main/java/org/apache/iotdb/udf/api/customizer/analysis/ScalarFunctionAnalysis.java
@@ -19,6 +19,7 @@
 
 package org.apache.iotdb.udf.api.customizer.analysis;
 
+import org.apache.iotdb.udf.api.i18n.UdfApiMessages;
 import org.apache.iotdb.udf.api.type.Type;
 
 public class ScalarFunctionAnalysis implements FunctionAnalysis {
@@ -43,7 +44,8 @@ public class ScalarFunctionAnalysis implements FunctionAnalysis {
 
     public ScalarFunctionAnalysis build() throws IllegalArgumentException {
       if (outputDataType == null) {
-        throw new IllegalArgumentException("ScalarFunctionAnalysis outputDataType is not set.");
+        throw new IllegalArgumentException(
+            UdfApiMessages.SCALAR_FUNCTION_ANALYSIS_OUTPUT_DATA_TYPE_NOT_SET);
       }
       return new ScalarFunctionAnalysis(outputDataType);
     }
diff --git a/iotdb-api/udf-api/src/main/java/org/apache/iotdb/udf/api/customizer/config/UDFConfigurations.java b/iotdb-api/udf-api/src/main/java/org/apache/iotdb/udf/api/customizer/config/UDFConfigurations.java
index d572db2a1ef..12ba3e72012 100644
--- a/iotdb-api/udf-api/src/main/java/org/apache/iotdb/udf/api/customizer/config/UDFConfigurations.java
+++ b/iotdb-api/udf-api/src/main/java/org/apache/iotdb/udf/api/customizer/config/UDFConfigurations.java
@@ -19,6 +19,7 @@
 
 package org.apache.iotdb.udf.api.customizer.config;
 
+import org.apache.iotdb.udf.api.i18n.UdfApiMessages;
 import org.apache.iotdb.udf.api.type.Type;
 
 public abstract class UDFConfigurations {
@@ -31,7 +32,7 @@ public abstract class UDFConfigurations {
 
   public void check() {
     if (outputDataType == null) {
-      throw new RuntimeException("UDF outputDataType is not set.");
+      throw new RuntimeException(UdfApiMessages.UDF_OUTPUT_DATA_TYPE_NOT_SET);
     }
   }
 }
diff --git a/iotdb-api/udf-api/src/main/java/org/apache/iotdb/udf/api/customizer/config/UDTFConfigurations.java b/iotdb-api/udf-api/src/main/java/org/apache/iotdb/udf/api/customizer/config/UDTFConfigurations.java
index 6ca701b2ca8..4021fddab68 100644
--- a/iotdb-api/udf-api/src/main/java/org/apache/iotdb/udf/api/customizer/config/UDTFConfigurations.java
+++ b/iotdb-api/udf-api/src/main/java/org/apache/iotdb/udf/api/customizer/config/UDTFConfigurations.java
@@ -28,6 +28,7 @@ import org.apache.iotdb.udf.api.customizer.strategy.AccessStrategy;
 import org.apache.iotdb.udf.api.customizer.strategy.RowByRowAccessStrategy;
 import org.apache.iotdb.udf.api.customizer.strategy.SlidingSizeWindowAccessStrategy;
 import org.apache.iotdb.udf.api.customizer.strategy.SlidingTimeWindowAccessStrategy;
+import org.apache.iotdb.udf.api.i18n.UdfApiMessages;
 import org.apache.iotdb.udf.api.type.Type;
 
 import java.time.ZoneId;
@@ -100,7 +101,7 @@ public class UDTFConfigurations extends UDFConfigurations {
   public void check() {
     super.check();
     if (accessStrategy == null) {
-      throw new RuntimeException("Access strategy is not set.");
+      throw new RuntimeException(UdfApiMessages.ACCESS_STRATEGY_NOT_SET);
     }
     accessStrategy.check();
   }
diff --git a/iotdb-api/udf-api/src/main/java/org/apache/iotdb/udf/api/customizer/strategy/SlidingTimeWindowAccessStrategy.java b/iotdb-api/udf-api/src/main/java/org/apache/iotdb/udf/api/customizer/strategy/SlidingTimeWindowAccessStrategy.java
index 19eb5df9854..8ec89957d13 100644
--- a/iotdb-api/udf-api/src/main/java/org/apache/iotdb/udf/api/customizer/strategy/SlidingTimeWindowAccessStrategy.java
+++ b/iotdb-api/udf-api/src/main/java/org/apache/iotdb/udf/api/customizer/strategy/SlidingTimeWindowAccessStrategy.java
@@ -24,6 +24,7 @@ import org.apache.iotdb.udf.api.access.RowWindow;
 import org.apache.iotdb.udf.api.collector.PointCollector;
 import org.apache.iotdb.udf.api.customizer.config.UDTFConfigurations;
 import org.apache.iotdb.udf.api.customizer.parameter.UDFParameters;
+import org.apache.iotdb.udf.api.i18n.UdfApiMessages;
 
 import java.time.ZoneId;
 
@@ -108,7 +109,7 @@ public class SlidingTimeWindowAccessStrategy implements AccessStrategy {
       String slidingStepString,
       String displayWindowBeginString,
       String displayWindowEndString) {
-    throw new UnsupportedOperationException("The method is deprecated since v0.14.");
+    throw new UnsupportedOperationException(UdfApiMessages.METHOD_DEPRECATED_SINCE_V014);
   }
 
   /**
@@ -127,7 +128,7 @@ public class SlidingTimeWindowAccessStrategy implements AccessStrategy {
    */
   @Deprecated
   public SlidingTimeWindowAccessStrategy(String timeIntervalString, String slidingStepString) {
-    throw new UnsupportedOperationException("The method is deprecated since v0.14.");
+    throw new UnsupportedOperationException(UdfApiMessages.METHOD_DEPRECATED_SINCE_V014);
   }
 
   /**
@@ -142,7 +143,7 @@ public class SlidingTimeWindowAccessStrategy implements AccessStrategy {
    * @throws UnsupportedOperationException deprecated since v0.14
    */
   public SlidingTimeWindowAccessStrategy(String timeIntervalString) {
-    throw new UnsupportedOperationException("The method is deprecated since v0.14.");
+    throw new UnsupportedOperationException(UdfApiMessages.METHOD_DEPRECATED_SINCE_V014);
   }
 
   /**
diff --git a/iotdb-api/udf-api/src/main/java/org/apache/iotdb/udf/api/relational/table/MapTableFunctionHandle.java b/iotdb-api/udf-api/src/main/java/org/apache/iotdb/udf/api/relational/table/MapTableFunctionHandle.java
index da27eb22cd2..43a119a4a2f 100644
--- a/iotdb-api/udf-api/src/main/java/org/apache/iotdb/udf/api/relational/table/MapTableFunctionHandle.java
+++ b/iotdb-api/udf-api/src/main/java/org/apache/iotdb/udf/api/relational/table/MapTableFunctionHandle.java
@@ -19,6 +19,7 @@
 
 package org.apache.iotdb.udf.api.relational.table;
 
+import org.apache.iotdb.udf.api.i18n.UdfApiMessages;
 import org.apache.iotdb.udf.api.type.Type;
 
 import java.nio.ByteBuffer;
@@ -39,7 +40,7 @@ public class MapTableFunctionHandle implements TableFunctionHandle {
 
   public void addProperty(String key, Object value) {
     if (!SUPPORT_VALUE_TYPE.contains(value.getClass())) {
-      throw new IllegalArgumentException("Unsupported value type.");
+      throw new IllegalArgumentException(UdfApiMessages.UNSUPPORTED_VALUE_TYPE);
     }
     map.put(key, value);
   }
@@ -134,7 +135,7 @@ public class MapTableFunctionHandle implements TableFunctionHandle {
           map.put(key, new String(b, StandardCharsets.UTF_8));
           break;
         default:
-          throw new IllegalArgumentException("Unknown type: " + type);
+          throw new IllegalArgumentException(UdfApiMessages.UNKNOWN_TYPE + type);
       }
     }
   }
@@ -171,7 +172,7 @@ public class MapTableFunctionHandle implements TableFunctionHandle {
 
     public Builder addProperty(String key, Object value) {
       if (!SUPPORT_VALUE_TYPE.contains(value.getClass())) {
-        throw new IllegalArgumentException("Unsupported value type.");
+        throw new IllegalArgumentException(UdfApiMessages.UNSUPPORTED_VALUE_TYPE);
       }
       map.put(key, value);
       return this;
diff --git a/iotdb-api/udf-api/src/main/java/org/apache/iotdb/udf/api/relational/table/TableFunctionProcessorProvider.java b/iotdb-api/udf-api/src/main/java/org/apache/iotdb/udf/api/relational/table/TableFunctionProcessorProvider.java
index fcbc1a198c1..f86d631f598 100644
--- a/iotdb-api/udf-api/src/main/java/org/apache/iotdb/udf/api/relational/table/TableFunctionProcessorProvider.java
+++ b/iotdb-api/udf-api/src/main/java/org/apache/iotdb/udf/api/relational/table/TableFunctionProcessorProvider.java
@@ -19,6 +19,7 @@
 
 package org.apache.iotdb.udf.api.relational.table;
 
+import org.apache.iotdb.udf.api.i18n.UdfApiMessages;
 import org.apache.iotdb.udf.api.relational.table.processor.TableFunctionDataProcessor;
 import org.apache.iotdb.udf.api.relational.table.processor.TableFunctionLeafProcessor;
 
@@ -29,7 +30,8 @@ public interface TableFunctionProcessorProvider {
    * It is called once per each partition processed by the table function.
    */
   default TableFunctionDataProcessor getDataProcessor() {
-    throw new UnsupportedOperationException("this table function does not process input data");
+    throw new UnsupportedOperationException(
+        UdfApiMessages.TABLE_FUNCTION_DOES_NOT_PROCESS_INPUT_DATA);
   }
 
   /**
@@ -38,6 +40,7 @@ public interface TableFunctionProcessorProvider {
    * It is called once per each split processed by the table function.
    */
   default TableFunctionLeafProcessor getSplitProcessor() {
-    throw new UnsupportedOperationException("this table function does not process leaf data");
+    throw new UnsupportedOperationException(
+        UdfApiMessages.TABLE_FUNCTION_DOES_NOT_PROCESS_LEAF_DATA);
   }
 }
diff --git a/iotdb-api/udf-api/src/main/java/org/apache/iotdb/udf/api/relational/table/argument/Argument.java b/iotdb-api/udf-api/src/main/java/org/apache/iotdb/udf/api/relational/table/argument/Argument.java
index dcf68347082..9237d7b5ce5 100644
--- a/iotdb-api/udf-api/src/main/java/org/apache/iotdb/udf/api/relational/table/argument/Argument.java
+++ b/iotdb-api/udf-api/src/main/java/org/apache/iotdb/udf/api/relational/table/argument/Argument.java
@@ -19,6 +19,8 @@
 
 package org.apache.iotdb.udf.api.relational.table.argument;
 
+import org.apache.iotdb.udf.api.i18n.UdfApiMessages;
+
 import java.io.DataOutputStream;
 import java.io.IOException;
 import java.nio.ByteBuffer;
@@ -37,7 +39,7 @@ public interface Argument {
       case SCALAR_ARGUMENT:
         return ScalarArgument.deserialize(buffer);
       default:
-        throw new IllegalArgumentException("Unknown argument type: " + type);
+        throw new IllegalArgumentException(UdfApiMessages.UNKNOWN_ARGUMENT_TYPE + type);
     }
   }
 
diff --git a/iotdb-api/udf-api/src/main/java/org/apache/iotdb/udf/api/relational/table/argument/DescribedSchema.java b/iotdb-api/udf-api/src/main/java/org/apache/iotdb/udf/api/relational/table/argument/DescribedSchema.java
index aecea22067f..b4a3385ad5b 100644
--- a/iotdb-api/udf-api/src/main/java/org/apache/iotdb/udf/api/relational/table/argument/DescribedSchema.java
+++ b/iotdb-api/udf-api/src/main/java/org/apache/iotdb/udf/api/relational/table/argument/DescribedSchema.java
@@ -19,6 +19,7 @@
 
 package org.apache.iotdb.udf.api.relational.table.argument;
 
+import org.apache.iotdb.udf.api.i18n.UdfApiMessages;
 import org.apache.iotdb.udf.api.type.Type;
 
 import java.util.ArrayList;
@@ -33,7 +34,7 @@ public class DescribedSchema {
   private DescribedSchema(List<Field> fields) {
     requireNonNull(fields, "fields is null");
     if (fields.isEmpty()) {
-      throw new IllegalArgumentException("DescribedSchema has no fields");
+      throw new IllegalArgumentException(UdfApiMessages.DESCRIBED_SCHEMA_HAS_NO_FIELDS);
     }
     this.fields = fields;
   }
diff --git a/iotdb-api/udf-api/src/main/java/org/apache/iotdb/udf/api/relational/table/argument/ScalarArgument.java b/iotdb-api/udf-api/src/main/java/org/apache/iotdb/udf/api/relational/table/argument/ScalarArgument.java
index 1898f856123..1fbc53e11d7 100644
--- a/iotdb-api/udf-api/src/main/java/org/apache/iotdb/udf/api/relational/table/argument/ScalarArgument.java
+++ b/iotdb-api/udf-api/src/main/java/org/apache/iotdb/udf/api/relational/table/argument/ScalarArgument.java
@@ -19,6 +19,7 @@
 
 package org.apache.iotdb.udf.api.relational.table.argument;
 
+import org.apache.iotdb.udf.api.i18n.UdfApiMessages;
 import org.apache.iotdb.udf.api.type.Type;
 
 import org.apache.tsfile.utils.Binary;
@@ -81,7 +82,7 @@ public class ScalarArgument implements Argument {
         buffer.put(blobBytes);
         break;
       default:
-        throw new IllegalArgumentException("Unknown type: " + type);
+        throw new IllegalArgumentException(UdfApiMessages.UNKNOWN_SCALAR_ARG_TYPE + type);
     }
   }
 
@@ -121,7 +122,7 @@ public class ScalarArgument implements Argument {
         buffer.write(blobBytes);
         break;
       default:
-        throw new IllegalArgumentException("Unknown type: " + type);
+        throw new IllegalArgumentException(UdfApiMessages.UNKNOWN_SCALAR_ARG_TYPE + type);
     }
   }
 
@@ -151,7 +152,7 @@ public class ScalarArgument implements Argument {
         buffer.get(bytes);
         return new ScalarArgument(type, new String(bytes));
       default:
-        throw new IllegalArgumentException("Unknown type: " + type);
+        throw new IllegalArgumentException(UdfApiMessages.UNKNOWN_SCALAR_ARG_TYPE + type);
     }
   }
 }
diff --git a/iotdb-api/udf-api/src/main/java/org/apache/iotdb/udf/api/relational/table/argument/TableArgument.java b/iotdb-api/udf-api/src/main/java/org/apache/iotdb/udf/api/relational/table/argument/TableArgument.java
index 5b3b44be400..3e75452a29b 100644
--- a/iotdb-api/udf-api/src/main/java/org/apache/iotdb/udf/api/relational/table/argument/TableArgument.java
+++ b/iotdb-api/udf-api/src/main/java/org/apache/iotdb/udf/api/relational/table/argument/TableArgument.java
@@ -19,6 +19,7 @@
 
 package org.apache.iotdb.udf.api.relational.table.argument;
 
+import org.apache.iotdb.udf.api.i18n.UdfApiMessages;
 import org.apache.iotdb.udf.api.type.Type;
 
 import java.io.DataOutputStream;
@@ -46,7 +47,7 @@ public class TableArgument implements Argument {
     this.fieldNames = requireNonNull(fieldNames, "fieldNames is null");
     this.fieldTypes = requireNonNull(fieldTypes, "fieldTypes is null");
     if (fieldNames.size() != fieldTypes.size()) {
-      throw new IllegalArgumentException("fieldNames and fieldTypes must have the same size");
+      throw new IllegalArgumentException(UdfApiMessages.FIELD_NAMES_AND_TYPES_MUST_HAVE_SAME_SIZE);
     }
     this.partitionBy = requireNonNull(partitionBy, "partitionBy is null");
     this.orderBy = requireNonNull(orderBy, "orderBy is null");
diff --git a/iotdb-api/udf-api/src/main/java/org/apache/iotdb/udf/api/relational/table/specification/ParameterSpecification.java b/iotdb-api/udf-api/src/main/java/org/apache/iotdb/udf/api/relational/table/specification/ParameterSpecification.java
index 20b831d3568..6806e905322 100644
--- a/iotdb-api/udf-api/src/main/java/org/apache/iotdb/udf/api/relational/table/specification/ParameterSpecification.java
+++ b/iotdb-api/udf-api/src/main/java/org/apache/iotdb/udf/api/relational/table/specification/ParameterSpecification.java
@@ -37,6 +37,8 @@
 
 package org.apache.iotdb.udf.api.relational.table.specification;
 
+import org.apache.iotdb.udf.api.i18n.UdfApiMessages;
+
 import java.util.Optional;
 
 /**
@@ -59,7 +61,7 @@ public abstract class ParameterSpecification {
     this.required = required;
     this.defaultValue = defaultValue;
     if (required && defaultValue.isPresent()) {
-      throw new IllegalArgumentException("non-null default value for a required argument");
+      throw new IllegalArgumentException(UdfApiMessages.NON_NULL_DEFAULT_VALUE_FOR_REQUIRED_ARG);
     }
   }
 
diff --git a/iotdb-api/udf-api/src/main/java/org/apache/iotdb/udf/api/type/Type.java b/iotdb-api/udf-api/src/main/java/org/apache/iotdb/udf/api/type/Type.java
index c4c38c285dc..02ea5a663ab 100644
--- a/iotdb-api/udf-api/src/main/java/org/apache/iotdb/udf/api/type/Type.java
+++ b/iotdb-api/udf-api/src/main/java/org/apache/iotdb/udf/api/type/Type.java
@@ -19,6 +19,8 @@
 
 package org.apache.iotdb.udf.api.type;
 
+import org.apache.iotdb.udf.api.i18n.UdfApiMessages;
+
 import org.apache.tsfile.utils.Binary;
 
 import java.time.LocalDate;
@@ -77,7 +79,7 @@ public enum Type {
         return t;
       }
     }
-    throw new IllegalArgumentException("Unsupported type: " + type);
+    throw new IllegalArgumentException(UdfApiMessages.UNSUPPORTED_TYPE + type);
   }
 
   public boolean checkObjectType(Object o) {
diff --git a/iotdb-api/udf-api/src/main/java/org/apache/iotdb/udf/api/utils/RowImpl.java b/iotdb-api/udf-api/src/main/java/org/apache/iotdb/udf/api/utils/RowImpl.java
index 533ab9574df..a082a1968ce 100644
--- a/iotdb-api/udf-api/src/main/java/org/apache/iotdb/udf/api/utils/RowImpl.java
+++ b/iotdb-api/udf-api/src/main/java/org/apache/iotdb/udf/api/utils/RowImpl.java
@@ -20,6 +20,7 @@
 package org.apache.iotdb.udf.api.utils;
 
 import org.apache.iotdb.udf.api.access.Row;
+import org.apache.iotdb.udf.api.i18n.UdfApiMessages;
 import org.apache.iotdb.udf.api.type.Binary;
 import org.apache.iotdb.udf.api.type.Type;
 
@@ -46,7 +47,7 @@ public class RowImpl implements Row {
   @Override
   public int getInt(int columnIndex) {
     if (columnIndex >= size()) {
-      throw new IndexOutOfBoundsException("Index out of bound error!");
+      throw new IndexOutOfBoundsException(UdfApiMessages.INDEX_OUT_OF_BOUND);
     }
     return (int) rowRecord[columnIndex];
   }
@@ -54,7 +55,7 @@ public class RowImpl implements Row {
   @Override
   public long getLong(int columnIndex) {
     if (columnIndex >= size()) {
-      throw new IndexOutOfBoundsException("Index out of bound error!");
+      throw new IndexOutOfBoundsException(UdfApiMessages.INDEX_OUT_OF_BOUND);
     }
     return (long) rowRecord[columnIndex];
   }
@@ -62,7 +63,7 @@ public class RowImpl implements Row {
   @Override
   public float getFloat(int columnIndex) {
     if (columnIndex >= size()) {
-      throw new IndexOutOfBoundsException("Index out of bound error!");
+      throw new IndexOutOfBoundsException(UdfApiMessages.INDEX_OUT_OF_BOUND);
     }
     return (float) rowRecord[columnIndex];
   }
@@ -70,7 +71,7 @@ public class RowImpl implements Row {
   @Override
   public double getDouble(int columnIndex) {
     if (columnIndex >= size()) {
-      throw new IndexOutOfBoundsException("Index out of bound error!");
+      throw new IndexOutOfBoundsException(UdfApiMessages.INDEX_OUT_OF_BOUND);
     }
     return (double) rowRecord[columnIndex];
   }
@@ -78,7 +79,7 @@ public class RowImpl implements Row {
   @Override
   public boolean getBoolean(int columnIndex) {
     if (columnIndex >= size()) {
-      throw new IndexOutOfBoundsException("Index out of bound error!");
+      throw new IndexOutOfBoundsException(UdfApiMessages.INDEX_OUT_OF_BOUND);
     }
     return (boolean) rowRecord[columnIndex];
   }
@@ -86,7 +87,7 @@ public class RowImpl implements Row {
   @Override
   public Binary getBinary(int columnIndex) {
     if (columnIndex >= size()) {
-      throw new IndexOutOfBoundsException("Index out of bound error!");
+      throw new IndexOutOfBoundsException(UdfApiMessages.INDEX_OUT_OF_BOUND);
     }
     return transformToUDFBinary((org.apache.tsfile.utils.Binary) rowRecord[columnIndex]);
   }
@@ -94,7 +95,7 @@ public class RowImpl implements Row {
   @Override
   public String getString(int columnIndex) {
     if (columnIndex >= size()) {
-      throw new IndexOutOfBoundsException("Index out of bound error!");
+      throw new IndexOutOfBoundsException(UdfApiMessages.INDEX_OUT_OF_BOUND);
     }
     return rowRecord[columnIndex].toString();
   }
@@ -151,7 +152,7 @@ public class RowImpl implements Row {
       case 11:
         return Type.STRING;
       default:
-        throw new IllegalArgumentException("Invalid input: " + type);
+        throw new IllegalArgumentException(UdfApiMessages.INVALID_INPUT + type);
     }
   }
 }
diff --git a/iotdb-client/cli/pom.xml b/iotdb-client/cli/pom.xml
index e727adb57bf..3b57dbb191b 100644
--- a/iotdb-client/cli/pom.xml
+++ b/iotdb-client/cli/pom.xml
@@ -247,6 +247,10 @@
                     </usedDependencies>
                 </configuration>
             </plugin>
+            <plugin>
+                <groupId>org.codehaus.mojo</groupId>
+                <artifactId>build-helper-maven-plugin</artifactId>
+            </plugin>
         </plugins>
     </build>
     <profiles>
diff --git a/iotdb-client/cli/src/main/i18n/en/org/apache/iotdb/cli/i18n/CliMessages.java b/iotdb-client/cli/src/main/i18n/en/org/apache/iotdb/cli/i18n/CliMessages.java
new file mode 100644
index 00000000000..cdc272c13fa
--- /dev/null
+++ b/iotdb-client/cli/src/main/i18n/en/org/apache/iotdb/cli/i18n/CliMessages.java
@@ -0,0 +1,70 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.iotdb.cli.i18n;
+
+public final class CliMessages {
+
+  // CliContext
+  public static final String EXITING_WITH_CODE = "Exiting with code %d";
+
+  // IoTDBDataBackTool
+  public static final String TARGET_DIR_EMPTY =
+      " -targetdir cannot be empty, The backup folder must be specified";
+  public static final String TARGET_DIR_USE_ABSOLUTE_PATH =
+      "-targetdir parameter exception, please use absolute path";
+  public static final String TARGET_DATA_DIR_USE_ABSOLUTE_PATH =
+      "-targetdatadir parameter exception, please use absolute path";
+  public static final String TARGET_WAL_DIR_USE_ABSOLUTE_PATH =
+      "-targetwaldir parameter exception, please use absolute path";
+  public static final String BACKUP_FOLDER_EXISTS = "The backup folder already exists:{}";
+  public static final String ALL_OPERATIONS_COMPLETE = "all operations are complete";
+  public static final String COPY_FILE_ERROR = "copy file error";
+  public static final String COPY_FILE_ERROR_WITH_PATH = "copy file error {}";
+  public static final String START_READ_CONFIG = "Start to read config file {}";
+  public static final String READ_CONFIG_ERROR = "Read config file {} error";
+  public static final String DIRECTORY_CREATED = "Directory created successfully:{}";
+  public static final String FAILED_TO_CREATE_DIRECTORY = "Failed to create directory:{}";
+  public static final String LINK_FILE_ERROR = "link file error {}";
+  public static final String PROPERTIES_FILE_UPDATE_ERROR = "properties file update error.";
+  public static final String FAILED_TO_READ_DATA = "Failed to read data from file: {}";
+  public static final String FAILED_TO_WRITE_DATA = "Failed to write data to file: {}";
+  public static final String FAILED_TO_CREATE_FILE = "Failed to create file: {}";
+
+  // AbstractDataTool
+  public static final String USE_HELP_FOR_MORE = "Use -help for more information";
+
+  // ImportTsFileRemotely
+  public static final String SYNC_CLIENT_INIT_ERROR = "Sync client init error because %s";
+
+  // UnsupportedOperationException
+  public static final String NOT_SUPPORTED_YET = "Not supported yet.";
+
+  // ImportData
+  public static final String UNKNOWN_TYPE_INFER_KEY = "Unknown type infer key: %s";
+  public static final String UNKNOWN_TYPE_INFER_VALUE = "Unknown type infer value: %s";
+  public static final String NAN_CANNOT_CONVERT = "NaN can not convert to %s";
+  public static final String BOOLEAN_CANNOT_CONVERT = "Boolean can not convert to %s";
+  public static final String DATE_CANNOT_CONVERT = "Date can not convert to %s";
+  public static final String TIMESTAMP_CANNOT_CONVERT = "Timestamp can not convert to %s";
+  public static final String BLOB_CANNOT_CONVERT = "Blob can not convert to %s";
+  public static final String CANNOT_CONVERT = "%s can not convert to %s";
+
+  private CliMessages() {}
+}
diff --git a/iotdb-client/cli/src/main/i18n/zh/org/apache/iotdb/cli/i18n/CliMessages.java b/iotdb-client/cli/src/main/i18n/zh/org/apache/iotdb/cli/i18n/CliMessages.java
new file mode 100644
index 00000000000..a518f34c380
--- /dev/null
+++ b/iotdb-client/cli/src/main/i18n/zh/org/apache/iotdb/cli/i18n/CliMessages.java
@@ -0,0 +1,70 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.iotdb.cli.i18n;
+
+public final class CliMessages {
+
+  // CliContext
+  public static final String EXITING_WITH_CODE = "正在退出,退出码 %d";
+
+  // IoTDBDataBackTool
+  public static final String TARGET_DIR_EMPTY =
+      " -targetdir 不能为空,必须指定备份目录";
+  public static final String TARGET_DIR_USE_ABSOLUTE_PATH =
+      "-targetdir 参数异常,请使用绝对路径";
+  public static final String TARGET_DATA_DIR_USE_ABSOLUTE_PATH =
+      "-targetdatadir 参数异常,请使用绝对路径";
+  public static final String TARGET_WAL_DIR_USE_ABSOLUTE_PATH =
+      "-targetwaldir 参数异常,请使用绝对路径";
+  public static final String BACKUP_FOLDER_EXISTS = "备份目录已存在:{}";
+  public static final String ALL_OPERATIONS_COMPLETE = "所有操作已完成";
+  public static final String COPY_FILE_ERROR = "复制文件错误";
+  public static final String COPY_FILE_ERROR_WITH_PATH = "复制文件错误 {}";
+  public static final String START_READ_CONFIG = "开始读取配置文件 {}";
+  public static final String READ_CONFIG_ERROR = "读取配置文件 {} 错误";
+  public static final String DIRECTORY_CREATED = "目录创建成功:{}";
+  public static final String FAILED_TO_CREATE_DIRECTORY = "创建目录失败:{}";
+  public static final String LINK_FILE_ERROR = "创建文件链接错误 {}";
+  public static final String PROPERTIES_FILE_UPDATE_ERROR = "属性文件更新错误。";
+  public static final String FAILED_TO_READ_DATA = "从文件读取数据失败:{}";
+  public static final String FAILED_TO_WRITE_DATA = "向文件写入数据失败:{}";
+  public static final String FAILED_TO_CREATE_FILE = "创建文件失败:{}";
+
+  // AbstractDataTool
+  public static final String USE_HELP_FOR_MORE = "使用 -help 获取更多信息";
+
+  // ImportTsFileRemotely
+  public static final String SYNC_CLIENT_INIT_ERROR = "同步客户端初始化失败,原因:%s";
+
+  // UnsupportedOperationException
+  public static final String NOT_SUPPORTED_YET = "尚不支持此操作。";
+
+  // ImportData
+  public static final String UNKNOWN_TYPE_INFER_KEY = "未知的类型推断键:%s";
+  public static final String UNKNOWN_TYPE_INFER_VALUE = "未知的类型推断值:%s";
+  public static final String NAN_CANNOT_CONVERT = "NaN 无法转换为 %s";
+  public static final String BOOLEAN_CANNOT_CONVERT = "Boolean 无法转换为 %s";
+  public static final String DATE_CANNOT_CONVERT = "Date 无法转换为 %s";
+  public static final String TIMESTAMP_CANNOT_CONVERT = "Timestamp 无法转换为 %s";
+  public static final String BLOB_CANNOT_CONVERT = "Blob 无法转换为 %s";
+  public static final String CANNOT_CONVERT = "%s 无法转换为 %s";
+
+  private CliMessages() {}
+}
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 688158e78b2..22ecdc3a40e 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
@@ -19,6 +19,7 @@
 
 package org.apache.iotdb.cli;
 
+import org.apache.iotdb.cli.i18n.CliMessages;
 import org.apache.iotdb.cli.utils.CliContext;
 import org.apache.iotdb.common.rpc.thrift.Model;
 import org.apache.iotdb.exception.ArgsErrorException;
@@ -259,7 +260,7 @@ public abstract class AbstractCli {
       if (isRequired) {
         String msg = String.format("%s: Required values for option '%s' not provided", IOTDB, name);
         ctx.getPrinter().println(msg);
-        ctx.getPrinter().println("Use -help for more information");
+        ctx.getPrinter().println(CliMessages.USE_HELP_FOR_MORE);
         throw new ArgsErrorException(msg);
       } else if (defaultValue == null) {
         String msg = String.format("%s: Required values for option '%s' is null.", IOTDB, name);
diff --git a/iotdb-client/cli/src/main/java/org/apache/iotdb/cli/utils/CliContext.java b/iotdb-client/cli/src/main/java/org/apache/iotdb/cli/utils/CliContext.java
index 1edd2d928e9..f72e5430c36 100644
--- a/iotdb-client/cli/src/main/java/org/apache/iotdb/cli/utils/CliContext.java
+++ b/iotdb-client/cli/src/main/java/org/apache/iotdb/cli/utils/CliContext.java
@@ -19,6 +19,7 @@
 
 package org.apache.iotdb.cli.utils;
 
+import org.apache.iotdb.cli.i18n.CliMessages;
 import org.apache.iotdb.cli.type.ExitType;
 
 import org.jline.reader.LineReader;
@@ -94,7 +95,7 @@ public class CliContext {
     if (exitType == ExitType.SYSTEM_EXIT) {
       System.exit(exitCode);
     } else {
-      throw new RuntimeException("Exiting with code " + exitCode);
+      throw new RuntimeException(String.format(CliMessages.EXITING_WITH_CODE, exitCode));
     }
   }
 }
diff --git a/iotdb-client/cli/src/main/java/org/apache/iotdb/tool/backup/IoTDBDataBackTool.java b/iotdb-client/cli/src/main/java/org/apache/iotdb/tool/backup/IoTDBDataBackTool.java
index 975dfdd7b24..c257502dfdb 100644
--- a/iotdb-client/cli/src/main/java/org/apache/iotdb/tool/backup/IoTDBDataBackTool.java
+++ b/iotdb-client/cli/src/main/java/org/apache/iotdb/tool/backup/IoTDBDataBackTool.java
@@ -19,6 +19,7 @@
 
 package org.apache.iotdb.tool.backup;
 
+import org.apache.iotdb.cli.i18n.CliMessages;
 import org.apache.iotdb.commons.conf.CommonConfig;
 import org.apache.iotdb.commons.conf.IoTDBConstant;
 import org.apache.iotdb.db.conf.IoTDBDescriptor;
@@ -136,11 +137,11 @@ public class IoTDBDataBackTool {
     boolean isVaild = true;
     if (type == null || type.trim().length() == 0 || !type.equals("quick")) {
       if (targetDirParam.isEmpty()) {
-        LOGGER.error(" -targetdir cannot be empty, The backup folder must be specified");
+        LOGGER.error(CliMessages.TARGET_DIR_EMPTY);
         isVaild = false;
       } else {
         if (isRelativePath(targetDirParam)) {
-          LOGGER.error("-targetdir parameter exception, please use absolute path");
+          LOGGER.error(CliMessages.TARGET_DIR_USE_ABSOLUTE_PATH);
           isVaild = false;
         }
       }
@@ -152,7 +153,7 @@ public class IoTDBDataBackTool {
           isVaild = false;
         }
         if (targetPathVild(targetDataDirParam)) {
-          LOGGER.error("-targetdatadir parameter exception, please use absolute path");
+          LOGGER.error(CliMessages.TARGET_DATA_DIR_USE_ABSOLUTE_PATH);
           isVaild = false;
         }
       }
@@ -164,7 +165,7 @@ public class IoTDBDataBackTool {
           isVaild = false;
         }
         if (targetPathVild(targetWalDirParam)) {
-          LOGGER.error("-targetwaldir parameter exception, please use absolute path");
+          LOGGER.error(CliMessages.TARGET_WAL_DIR_USE_ABSOLUTE_PATH);
           isVaild = false;
         }
       }
@@ -194,7 +195,7 @@ public class IoTDBDataBackTool {
           .append("iotdb_backup");
       File targetDir = new File(targetDirString.toString());
       if (targetDir.exists()) {
-        LOGGER.error("The backup folder already exists:{}", targetDirString);
+        LOGGER.error(CliMessages.BACKUP_FOLDER_EXISTS, targetDirString);
         System.exit(0);
       }
 
@@ -345,7 +346,7 @@ public class IoTDBDataBackTool {
             dnMapProperties);
       }
     }
-    LOGGER.info("all operations are complete");
+    LOGGER.info(CliMessages.ALL_OPERATIONS_COMPLETE);
     delFile(filename);
   }
 
@@ -353,7 +354,7 @@ public class IoTDBDataBackTool {
     for (Map.Entry<String, String> entry : dnDataDirsMap.entrySet()) {
       File backupDir = new File(entry.getValue());
       if (backupDir.exists()) {
-        LOGGER.error("The backup folder already exists:{}", entry.getValue());
+        LOGGER.error(CliMessages.BACKUP_FOLDER_EXISTS, entry.getValue());
         System.exit(0);
       }
     }
@@ -417,7 +418,7 @@ public class IoTDBDataBackTool {
             Files.copy(file.toPath(), targetFile.toPath(), StandardCopyOption.REPLACE_EXISTING);
             targetFileCount.incrementAndGet();
           } catch (IOException e) {
-            LOGGER.error("copy file error", e);
+            LOGGER.error(CliMessages.COPY_FILE_ERROR, e);
           }
         }
       }
@@ -434,7 +435,7 @@ public class IoTDBDataBackTool {
             Files.copy(file.toPath(), targetFile.toPath(), StandardCopyOption.REPLACE_EXISTING);
             targetFileCount.incrementAndGet();
           } catch (IOException e) {
-            LOGGER.error("copy file error", e);
+            LOGGER.error(CliMessages.COPY_FILE_ERROR, e);
           }
         }
       }
@@ -894,10 +895,10 @@ public class IoTDBDataBackTool {
     Properties properties = new Properties();
     if (url != null) {
       try (InputStream inputStream = url.openStream()) {
-        LOGGER.info("Start to read config file {}", url);
+        LOGGER.info(CliMessages.START_READ_CONFIG, url);
         properties.load(new InputStreamReader(inputStream, StandardCharsets.UTF_8));
       } catch (Exception e) {
-        LOGGER.error("Read config file {} error", url, e);
+        LOGGER.error(CliMessages.READ_CONFIG_ERROR, url, e);
       }
     }
     return properties;
@@ -953,7 +954,7 @@ public class IoTDBDataBackTool {
             }
           });
     } catch (IOException e) {
-      LOGGER.error("copy file error {}", sourceDirectory, e);
+      LOGGER.error(CliMessages.COPY_FILE_ERROR_WITH_PATH, sourceDirectory, e);
     }
   }
 
@@ -962,9 +963,9 @@ public class IoTDBDataBackTool {
     if (!directory.exists()) {
       boolean created = directory.mkdirs();
       if (created) {
-        LOGGER.info("Directory created successfully:{}", directoryPath);
+        LOGGER.info(CliMessages.DIRECTORY_CREATED, directoryPath);
       } else {
-        LOGGER.error("Failed to create directory:{}", directoryPath);
+        LOGGER.error(CliMessages.FAILED_TO_CREATE_DIRECTORY, directoryPath);
       }
     }
   }
@@ -986,12 +987,12 @@ public class IoTDBDataBackTool {
                   try {
                     Files.createLink(targetFile, file);
                   } catch (UnsupportedOperationException | IOException e) {
-                    LOGGER.debug("link file error {}", e);
+                    LOGGER.debug(CliMessages.LINK_FILE_ERROR, e);
                     try {
                       Files.copy(file, targetFile, StandardCopyOption.REPLACE_EXISTING);
                     } catch (IOException ex) {
                       targetFileCount.decrementAndGet();
-                      LOGGER.error("copy file error {}", ex);
+                      LOGGER.error(CliMessages.COPY_FILE_ERROR_WITH_PATH, ex);
                     }
                   }
                 }
@@ -1079,7 +1080,7 @@ public class IoTDBDataBackTool {
       fileOutputStream.close();
 
     } catch (IOException e) {
-      LOGGER.error("properties file update error.", e);
+      LOGGER.error(CliMessages.PROPERTIES_FILE_UPDATE_ERROR, e);
     }
   }
 
@@ -1115,7 +1116,7 @@ public class IoTDBDataBackTool {
         return Integer.parseInt(lines.get(0));
       }
     } catch (IOException e) {
-      LOGGER.error("Failed to read data from file: {}", filename, e);
+      LOGGER.error(CliMessages.FAILED_TO_READ_DATA, filename, e);
     }
     return 0;
   }
@@ -1134,7 +1135,7 @@ public class IoTDBDataBackTool {
     try {
       Files.write(filePath, Integer.toString(data).getBytes(StandardCharsets.UTF_8));
     } catch (IOException e) {
-      LOGGER.error("Failed to write data to file: {}", filename, e);
+      LOGGER.error(CliMessages.FAILED_TO_WRITE_DATA, filename, e);
     }
   }
 
@@ -1144,7 +1145,7 @@ public class IoTDBDataBackTool {
       try {
         Files.createFile(filePath);
       } catch (IOException e) {
-        LOGGER.error("Failed to create file: {}", filename, e);
+        LOGGER.error(CliMessages.FAILED_TO_CREATE_FILE, filename, e);
       }
     }
   }
diff --git a/iotdb-client/cli/src/main/java/org/apache/iotdb/tool/data/AbstractDataTool.java b/iotdb-client/cli/src/main/java/org/apache/iotdb/tool/data/AbstractDataTool.java
index 11695d786b8..4ef95c78eda 100644
--- a/iotdb-client/cli/src/main/java/org/apache/iotdb/tool/data/AbstractDataTool.java
+++ b/iotdb-client/cli/src/main/java/org/apache/iotdb/tool/data/AbstractDataTool.java
@@ -20,6 +20,7 @@
 package org.apache.iotdb.tool.data;
 
 import org.apache.iotdb.calc.utils.constant.SqlConstant;
+import org.apache.iotdb.cli.i18n.CliMessages;
 import org.apache.iotdb.cli.type.ExitType;
 import org.apache.iotdb.cli.utils.CliContext;
 import org.apache.iotdb.cli.utils.IoTPrinter;
@@ -143,7 +144,7 @@ public abstract class AbstractDataTool {
       }
       String msg = String.format("Required values for option '%s' not provided", name);
       LOGGER.info(msg);
-      LOGGER.info("Use -help for more information");
+      LOGGER.info(CliMessages.USE_HELP_FOR_MORE);
       throw new ArgsErrorException(msg);
     }
     return str;
diff --git a/iotdb-client/cli/src/main/java/org/apache/iotdb/tool/data/ImportData.java b/iotdb-client/cli/src/main/java/org/apache/iotdb/tool/data/ImportData.java
index 4c7dd7e80c8..6e52bedbb2d 100644
--- a/iotdb-client/cli/src/main/java/org/apache/iotdb/tool/data/ImportData.java
+++ b/iotdb-client/cli/src/main/java/org/apache/iotdb/tool/data/ImportData.java
@@ -19,6 +19,7 @@
 
 package org.apache.iotdb.tool.data;
 
+import org.apache.iotdb.cli.i18n.CliMessages;
 import org.apache.iotdb.cli.utils.IoTPrinter;
 import org.apache.iotdb.commons.exception.IllegalPathException;
 import org.apache.iotdb.commons.utils.NodeUrlUtils;
@@ -379,29 +380,29 @@ public class ImportData extends AbstractDataTool {
 
   private static void applyTypeInferArgs(String key, String value) throws ArgsErrorException {
     if (!Constants.TYPE_INFER_KEY_DICT.containsKey(key)) {
-      throw new ArgsErrorException("Unknown type infer key: " + key);
+      throw new ArgsErrorException(String.format(CliMessages.UNKNOWN_TYPE_INFER_KEY, key));
     }
     if (!Constants.TYPE_INFER_VALUE_DICT.containsKey(value)) {
-      throw new ArgsErrorException("Unknown type infer value: " + value);
+      throw new ArgsErrorException(String.format(CliMessages.UNKNOWN_TYPE_INFER_VALUE, value));
     }
     if (key.equals(Constants.DATATYPE_NAN)
         && !(value.equals(Constants.DATATYPE_FLOAT)
             || value.equals(Constants.DATATYPE_DOUBLE)
             || value.equals(Constants.DATATYPE_TEXT)
             || value.equals(Constants.DATATYPE_STRING))) {
-      throw new ArgsErrorException("NaN can not convert to " + value);
+      throw new ArgsErrorException(String.format(CliMessages.NAN_CANNOT_CONVERT, value));
     }
     if (key.equals(Constants.DATATYPE_BOOLEAN)
         && !(value.equals(Constants.DATATYPE_BOOLEAN)
             || value.equals(Constants.DATATYPE_TEXT)
             || value.equals(Constants.DATATYPE_STRING))) {
-      throw new ArgsErrorException("Boolean can not convert to " + value);
+      throw new ArgsErrorException(String.format(CliMessages.BOOLEAN_CANNOT_CONVERT, value));
     }
     if (key.equals(Constants.DATATYPE_DATE)
         && !(value.equals(Constants.DATATYPE_DATE)
             || value.equals(Constants.DATATYPE_TEXT)
             || value.equals(Constants.DATATYPE_STRING))) {
-      throw new ArgsErrorException("Date can not convert to " + value);
+      throw new ArgsErrorException(String.format(CliMessages.DATE_CANNOT_CONVERT, value));
     }
     if (key.equals(Constants.DATATYPE_TIMESTAMP)
         && !(value.equals(Constants.DATATYPE_TIMESTAMP)
@@ -409,15 +410,15 @@ public class ImportData extends AbstractDataTool {
             || value.equals(Constants.DATATYPE_STRING)
             || value.equals(Constants.DATATYPE_DOUBLE)
             || value.equals(Constants.DATATYPE_LONG))) {
-      throw new ArgsErrorException("Timestamp can not convert to " + value);
+      throw new ArgsErrorException(String.format(CliMessages.TIMESTAMP_CANNOT_CONVERT, value));
     }
     if (key.equals(Constants.DATATYPE_BLOB) && !(value.equals(Constants.DATATYPE_BLOB))) {
-      throw new ArgsErrorException("Blob can not convert to " + value);
+      throw new ArgsErrorException(String.format(CliMessages.BLOB_CANNOT_CONVERT, value));
     }
     final TSDataType srcType = Constants.TYPE_INFER_VALUE_DICT.get(key);
     final TSDataType dstType = Constants.TYPE_INFER_VALUE_DICT.get(value);
     if (dstType.getType() < srcType.getType()) {
-      throw new ArgsErrorException(key + " can not convert to " + value);
+      throw new ArgsErrorException(String.format(CliMessages.CANNOT_CONVERT, key, value));
     }
     Constants.TYPE_INFER_KEY_DICT.put(key, Constants.TYPE_INFER_VALUE_DICT.get(value));
   }
diff --git a/iotdb-client/cli/src/main/java/org/apache/iotdb/tool/schema/ExportSchema.java b/iotdb-client/cli/src/main/java/org/apache/iotdb/tool/schema/ExportSchema.java
index 402030ecd7e..58659e22263 100644
--- a/iotdb-client/cli/src/main/java/org/apache/iotdb/tool/schema/ExportSchema.java
+++ b/iotdb-client/cli/src/main/java/org/apache/iotdb/tool/schema/ExportSchema.java
@@ -19,6 +19,7 @@
 
 package org.apache.iotdb.tool.schema;
 
+import org.apache.iotdb.cli.i18n.CliMessages;
 import org.apache.iotdb.cli.type.ExitType;
 import org.apache.iotdb.cli.utils.CliContext;
 import org.apache.iotdb.cli.utils.IoTPrinter;
@@ -77,7 +78,7 @@ public class ExportSchema extends AbstractSchemaTool {
       parseSpecialParams(commandLine);
     } catch (ArgsErrorException e) {
       ioTPrinter.println("Args args: " + e.getMessage());
-      ioTPrinter.println("Use -help for more information");
+      ioTPrinter.println(CliMessages.USE_HELP_FOR_MORE);
       System.exit(Constants.CODE_ERROR);
     } catch (Exception e) {
       ioTPrinter.println("Encounter an error, because " + e.getMessage());
diff --git a/iotdb-client/cli/src/main/java/org/apache/iotdb/tool/schema/ExportSchemaTable.java b/iotdb-client/cli/src/main/java/org/apache/iotdb/tool/schema/ExportSchemaTable.java
index 2ea66f360e1..1ed3e2c6b86 100644
--- a/iotdb-client/cli/src/main/java/org/apache/iotdb/tool/schema/ExportSchemaTable.java
+++ b/iotdb-client/cli/src/main/java/org/apache/iotdb/tool/schema/ExportSchemaTable.java
@@ -19,6 +19,7 @@
 
 package org.apache.iotdb.tool.schema;
 
+import org.apache.iotdb.cli.i18n.CliMessages;
 import org.apache.iotdb.cli.utils.IoTPrinter;
 import org.apache.iotdb.isession.ITableSession;
 import org.apache.iotdb.isession.SessionDataSet;
@@ -316,6 +317,6 @@ public class ExportSchemaTable extends AbstractExportSchema {
 
   @Override
   protected void exportSchemaToCsvFile(String pathPattern, int index) {
-    throw new UnsupportedOperationException("Not supported yet.");
+    throw new UnsupportedOperationException(CliMessages.NOT_SUPPORTED_YET);
   }
 }
diff --git a/iotdb-client/cli/src/main/java/org/apache/iotdb/tool/schema/ExportSchemaTree.java b/iotdb-client/cli/src/main/java/org/apache/iotdb/tool/schema/ExportSchemaTree.java
index c5fbdbc49d1..334d8a8d8dc 100644
--- a/iotdb-client/cli/src/main/java/org/apache/iotdb/tool/schema/ExportSchemaTree.java
+++ b/iotdb-client/cli/src/main/java/org/apache/iotdb/tool/schema/ExportSchemaTree.java
@@ -19,6 +19,7 @@
 
 package org.apache.iotdb.tool.schema;
 
+import org.apache.iotdb.cli.i18n.CliMessages;
 import org.apache.iotdb.cli.utils.IoTPrinter;
 import org.apache.iotdb.isession.SessionDataSet;
 import org.apache.iotdb.rpc.IoTDBConnectionException;
@@ -59,7 +60,7 @@ public class ExportSchemaTree extends AbstractExportSchema {
 
   @Override
   protected void exportSchemaToSqlFile() {
-    throw new UnsupportedOperationException("Not supported yet.");
+    throw new UnsupportedOperationException(CliMessages.NOT_SUPPORTED_YET);
   }
 
   @Override
diff --git a/iotdb-client/cli/src/main/java/org/apache/iotdb/tool/schema/ImportSchemaTable.java b/iotdb-client/cli/src/main/java/org/apache/iotdb/tool/schema/ImportSchemaTable.java
index 89d9c56ad9f..011042c34d2 100644
--- a/iotdb-client/cli/src/main/java/org/apache/iotdb/tool/schema/ImportSchemaTable.java
+++ b/iotdb-client/cli/src/main/java/org/apache/iotdb/tool/schema/ImportSchemaTable.java
@@ -19,6 +19,7 @@
 
 package org.apache.iotdb.tool.schema;
 
+import org.apache.iotdb.cli.i18n.CliMessages;
 import org.apache.iotdb.cli.utils.IoTPrinter;
 import org.apache.iotdb.isession.ITableSession;
 import org.apache.iotdb.isession.SessionDataSet;
@@ -187,6 +188,6 @@ public class ImportSchemaTable extends AbstractImportSchema {
 
   @Override
   protected void importSchemaFromCsvFile(File file) {
-    throw new UnsupportedOperationException("Not supported yet.");
+    throw new UnsupportedOperationException(CliMessages.NOT_SUPPORTED_YET);
   }
 }
diff --git a/iotdb-client/cli/src/main/java/org/apache/iotdb/tool/schema/ImportSchemaTree.java b/iotdb-client/cli/src/main/java/org/apache/iotdb/tool/schema/ImportSchemaTree.java
index c5edb7d52e9..9526447fd96 100644
--- a/iotdb-client/cli/src/main/java/org/apache/iotdb/tool/schema/ImportSchemaTree.java
+++ b/iotdb-client/cli/src/main/java/org/apache/iotdb/tool/schema/ImportSchemaTree.java
@@ -19,6 +19,7 @@
 
 package org.apache.iotdb.tool.schema;
 
+import org.apache.iotdb.cli.i18n.CliMessages;
 import org.apache.iotdb.cli.utils.IoTPrinter;
 import org.apache.iotdb.commons.exception.IllegalPathException;
 import org.apache.iotdb.rpc.IoTDBConnectionException;
@@ -93,7 +94,7 @@ public class ImportSchemaTree extends AbstractImportSchema {
 
   @Override
   protected void importSchemaFromSqlFile(File file) {
-    throw new UnsupportedOperationException("Not supported yet.");
+    throw new UnsupportedOperationException(CliMessages.NOT_SUPPORTED_YET);
   }
 
   @Override
diff --git a/iotdb-client/cli/src/main/java/org/apache/iotdb/tool/tsfile/AbstractTsFileTool.java b/iotdb-client/cli/src/main/java/org/apache/iotdb/tool/tsfile/AbstractTsFileTool.java
index 64b9f806d58..cf676c81ef2 100644
--- a/iotdb-client/cli/src/main/java/org/apache/iotdb/tool/tsfile/AbstractTsFileTool.java
+++ b/iotdb-client/cli/src/main/java/org/apache/iotdb/tool/tsfile/AbstractTsFileTool.java
@@ -19,6 +19,7 @@
 
 package org.apache.iotdb.tool.tsfile;
 
+import org.apache.iotdb.cli.i18n.CliMessages;
 import org.apache.iotdb.cli.utils.IoTPrinter;
 import org.apache.iotdb.exception.ArgsErrorException;
 import org.apache.iotdb.session.Session;
@@ -67,7 +68,7 @@ public abstract class AbstractTsFileTool {
     if (str == null) {
       String msg = String.format("Required values for option '%s' not provided", name);
       ioTPrinter.println(msg);
-      ioTPrinter.println("Use -help for more information");
+      ioTPrinter.println(CliMessages.USE_HELP_FOR_MORE);
       throw new ArgsErrorException(msg);
     }
     return str;
diff --git a/iotdb-client/cli/src/main/java/org/apache/iotdb/tool/tsfile/ImportTsFileRemotely.java b/iotdb-client/cli/src/main/java/org/apache/iotdb/tool/tsfile/ImportTsFileRemotely.java
index aca33ba4dbf..bec4a13c372 100644
--- a/iotdb-client/cli/src/main/java/org/apache/iotdb/tool/tsfile/ImportTsFileRemotely.java
+++ b/iotdb-client/cli/src/main/java/org/apache/iotdb/tool/tsfile/ImportTsFileRemotely.java
@@ -19,6 +19,7 @@
 
 package org.apache.iotdb.tool.tsfile;
 
+import org.apache.iotdb.cli.i18n.CliMessages;
 import org.apache.iotdb.cli.utils.IoTPrinter;
 import org.apache.iotdb.common.rpc.thrift.TEndPoint;
 import org.apache.iotdb.common.rpc.thrift.TSStatus;
@@ -309,7 +310,7 @@ public class ImportTsFileRemotely extends ImportTsFileBase {
               "",
               "");
     } catch (final TTransportException e) {
-      throw new PipeException("Sync client init error because " + e.getMessage());
+      throw new PipeException(String.format(CliMessages.SYNC_CLIENT_INIT_ERROR, e.getMessage()));
     }
   }
 
diff --git a/iotdb-client/isession/pom.xml b/iotdb-client/isession/pom.xml
index ec63adb33fa..7dfd6509605 100644
--- a/iotdb-client/isession/pom.xml
+++ b/iotdb-client/isession/pom.xml
@@ -59,4 +59,12 @@
             <artifactId>libthrift</artifactId>
         </dependency>
     </dependencies>
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.codehaus.mojo</groupId>
+                <artifactId>build-helper-maven-plugin</artifactId>
+            </plugin>
+        </plugins>
+    </build>
 </project>
diff --git a/iotdb-api/udf-api/src/main/java/org/apache/iotdb/udf/api/customizer/config/UDFConfigurations.java b/iotdb-client/isession/src/main/i18n/en/org/apache/iotdb/isession/i18n/ISessionMessages.java
similarity index 62%
copy from iotdb-api/udf-api/src/main/java/org/apache/iotdb/udf/api/customizer/config/UDFConfigurations.java
copy to iotdb-client/isession/src/main/i18n/en/org/apache/iotdb/isession/i18n/ISessionMessages.java
index d572db2a1ef..76ba04d1ba5 100644
--- a/iotdb-api/udf-api/src/main/java/org/apache/iotdb/udf/api/customizer/config/UDFConfigurations.java
+++ b/iotdb-client/isession/src/main/i18n/en/org/apache/iotdb/isession/i18n/ISessionMessages.java
@@ -17,21 +17,19 @@
  * under the License.
  */
 
-package org.apache.iotdb.udf.api.customizer.config;
+package org.apache.iotdb.isession.i18n;
 
-import org.apache.iotdb.udf.api.type.Type;
+public final class ISessionMessages {
 
-public abstract class UDFConfigurations {
+  // --- SessionDataSet ---
+  public static final String OBJECT_TYPE_ONLY_SUPPORT_GET_STRING =
+      "OBJECT Type only support getString";
 
-  protected Type outputDataType;
+  // --- Template ---
+  public static final String DUPLICATED_CHILD_IN_TEMPLATE =
+      "Duplicated child of node in template.";
+  public static final String NOT_DIRECT_CHILD_OF_TEMPLATE =
+      "It is not a direct child of the template: ";
 
-  public Type getOutputDataType() {
-    return outputDataType;
-  }
-
-  public void check() {
-    if (outputDataType == null) {
-      throw new RuntimeException("UDF outputDataType is not set.");
-    }
-  }
+  private ISessionMessages() {}
 }
diff --git a/iotdb-api/udf-api/src/main/java/org/apache/iotdb/udf/api/customizer/config/UDFConfigurations.java b/iotdb-client/isession/src/main/i18n/zh/org/apache/iotdb/isession/i18n/ISessionMessages.java
similarity index 62%
copy from iotdb-api/udf-api/src/main/java/org/apache/iotdb/udf/api/customizer/config/UDFConfigurations.java
copy to iotdb-client/isession/src/main/i18n/zh/org/apache/iotdb/isession/i18n/ISessionMessages.java
index d572db2a1ef..09937e460d0 100644
--- a/iotdb-api/udf-api/src/main/java/org/apache/iotdb/udf/api/customizer/config/UDFConfigurations.java
+++ b/iotdb-client/isession/src/main/i18n/zh/org/apache/iotdb/isession/i18n/ISessionMessages.java
@@ -17,21 +17,19 @@
  * under the License.
  */
 
-package org.apache.iotdb.udf.api.customizer.config;
+package org.apache.iotdb.isession.i18n;
 
-import org.apache.iotdb.udf.api.type.Type;
+public final class ISessionMessages {
 
-public abstract class UDFConfigurations {
+  // --- SessionDataSet ---
+  public static final String OBJECT_TYPE_ONLY_SUPPORT_GET_STRING =
+      "OBJECT 类型仅支持 getString";
 
-  protected Type outputDataType;
+  // --- Template ---
+  public static final String DUPLICATED_CHILD_IN_TEMPLATE =
+      "模板中存在重复的子节点。";
+  public static final String NOT_DIRECT_CHILD_OF_TEMPLATE =
+      "这不是该模板的直接子节点:";
 
-  public Type getOutputDataType() {
-    return outputDataType;
-  }
-
-  public void check() {
-    if (outputDataType == null) {
-      throw new RuntimeException("UDF outputDataType is not set.");
-    }
-  }
+  private ISessionMessages() {}
 }
diff --git a/iotdb-client/isession/src/main/java/org/apache/iotdb/isession/SessionDataSet.java b/iotdb-client/isession/src/main/java/org/apache/iotdb/isession/SessionDataSet.java
index 9a1fcd29148..885f5894411 100644
--- a/iotdb-client/isession/src/main/java/org/apache/iotdb/isession/SessionDataSet.java
+++ b/iotdb-client/isession/src/main/java/org/apache/iotdb/isession/SessionDataSet.java
@@ -19,6 +19,7 @@
 
 package org.apache.iotdb.isession;
 
+import org.apache.iotdb.isession.i18n.ISessionMessages;
 import org.apache.iotdb.rpc.IoTDBConnectionException;
 import org.apache.iotdb.rpc.IoTDBRpcDataSet;
 import org.apache.iotdb.rpc.RpcUtils;
@@ -333,7 +334,7 @@ public class SessionDataSet implements ISessionDataSet {
       }
 
       if (dataType.equals(TSDataType.OBJECT)) {
-        throw new StatementExecutionException("OBJECT Type only support getString");
+        throw new StatementExecutionException(ISessionMessages.OBJECT_TYPE_ONLY_SUPPORT_GET_STRING);
       }
       return ioTDBRpcDataSet.getBinary(columnIndex);
     }
@@ -345,7 +346,7 @@ public class SessionDataSet implements ISessionDataSet {
       }
 
       if (dataType.equals(TSDataType.OBJECT)) {
-        throw new StatementExecutionException("OBJECT Type only support getString");
+        throw new StatementExecutionException(ISessionMessages.OBJECT_TYPE_ONLY_SUPPORT_GET_STRING);
       }
       return ioTDBRpcDataSet.getBinary(columnName);
     }
diff --git a/iotdb-client/isession/src/main/java/org/apache/iotdb/isession/template/Template.java b/iotdb-client/isession/src/main/java/org/apache/iotdb/isession/template/Template.java
index 90171c7dd50..fe58a83cef1 100644
--- a/iotdb-client/isession/src/main/java/org/apache/iotdb/isession/template/Template.java
+++ b/iotdb-client/isession/src/main/java/org/apache/iotdb/isession/template/Template.java
@@ -19,6 +19,7 @@
 
 package org.apache.iotdb.isession.template;
 
+import org.apache.iotdb.isession.i18n.ISessionMessages;
 import org.apache.iotdb.rpc.StatementExecutionException;
 
 import org.apache.tsfile.common.constant.TsFileConstant;
@@ -75,7 +76,7 @@ public class Template {
 
   public void addToTemplate(TemplateNode child) throws StatementExecutionException {
     if (children.containsKey(child.getName())) {
-      throw new StatementExecutionException("Duplicated child of node in template.");
+      throw new StatementExecutionException(ISessionMessages.DUPLICATED_CHILD_IN_TEMPLATE);
     }
     children.put(child.getName(), child);
   }
@@ -84,7 +85,7 @@ public class Template {
     if (children.containsKey(name)) {
       children.remove(name);
     } else {
-      throw new StatementExecutionException("It is not a direct child of the template: " + name);
+      throw new StatementExecutionException(ISessionMessages.NOT_DIRECT_CHILD_OF_TEMPLATE + name);
     }
   }
 
diff --git a/iotdb-client/jdbc/src/main/i18n/en/org/apache/iotdb/jdbc/i18n/JdbcMessages.java b/iotdb-client/jdbc/src/main/i18n/en/org/apache/iotdb/jdbc/i18n/JdbcMessages.java
new file mode 100644
index 00000000000..d5db57b4fce
--- /dev/null
+++ b/iotdb-client/jdbc/src/main/i18n/en/org/apache/iotdb/jdbc/i18n/JdbcMessages.java
@@ -0,0 +1,184 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.iotdb.jdbc.i18n;
+
+public final class JdbcMessages {
+
+  // IoTDBDriver
+  public static final String REGISTER_DRIVER_ERROR =
+      "Error occurs when registering TsFile driver";
+  public static final String METHOD_NOT_SUPPORTED = "Method not supported";
+
+  // StringUtils
+  public static final String TO_PLAIN_STRING_ERROR = "To plain String method Error:";
+  public static final String CONSISTENT_TO_STRING_ERROR = "consistent to String Error:";
+
+  // GroupedLSBWatermarkEncoder
+  public static final String CANNOT_FIND_MD5 = "ERROR: Cannot find MD5 algorithm!";
+  public static final String MIN_BIT_BIGGER_THAN_MAX =
+      "Error: minBitPosition is bigger than maxBitPosition";
+
+  // IoTDBTracingInfo
+  public static final String INVALID_STATISTICS_NAME = "Invalid statistics name!";
+
+  // IoTDBStatement
+  public static final String CANNOT_UNWRAP_TO = "Cannot unwrap to ";
+  public static final String CANCEL_STATEMENT_ERROR = "Error occurs when canceling statement.";
+  public static final String CLOSE_STATEMENT_ERROR = "Error occurs when closing statement.";
+  public static final String NOT_SUPPORT_CLOSE_ON_COMPLETION = "Not support closeOnCompletion";
+  public static final String QUERY_RESULT_SHOULD_NOT_BE_NULL =
+      "execResp.queryResult should never be null.";
+  public static final String DIRECTION_NOT_SUPPORTED = "direction %d is not supported!";
+  public static final String FETCH_SIZE_MUST_BE_NON_NEGATIVE = "fetchSize %d must be >= 0!";
+  public static final String NOT_SUPPORT_GET_GENERATED_KEYS = "Not support getGeneratedKeys";
+  public static final String NOT_SUPPORT_GET_MAX_FIELD_SIZE = "Not support getMaxFieldSize";
+  public static final String MAX_ROWS_MUST_BE_NON_NEGATIVE = "maxRows %d must be >= 0!";
+  public static final String NOT_SUPPORT_GET_MORE_RESULTS = "Not support getMoreResults";
+  public static final String NOT_SUPPORT_GET_RESULT_SET_CONCURRENCY =
+      "Not support getResultSetConcurrency";
+  public static final String NOT_SUPPORT_GET_RESULT_SET_HOLDABILITY =
+      "Not support getResultSetHoldability";
+  public static final String NOT_SUPPORT_IS_CLOSE_ON_COMPLETION =
+      "Not support isCloseOnCompletion";
+  public static final String NOT_SUPPORT_IS_POOLABLE = "Not support isPoolable";
+  public static final String NOT_SUPPORT_SET_POOLABLE = "Not support setPoolable";
+  public static final String NOT_SUPPORT_SET_CURSOR_NAME = "Not support setCursorName";
+  public static final String NOT_SUPPORT_SET_ESCAPE_PROCESSING =
+      "Not support setEscapeProcessing";
+  public static final String CANNOT_AFTER_CONNECTION_CLOSED =
+      "Cannot %s after connection has been closed!";
+
+  // IoTDBTablePreparedStatement
+  public static final String FAILED_TO_PREPARE_STATEMENT = "Failed to prepare statement: ";
+  public static final String PARAMETER_UNSET = "Parameter #%d is unset";
+  public static final String FAILED_TO_EXECUTE_PREPARED_STATEMENT =
+      "Failed to execute prepared statement: ";
+  public static final String FAILED_TO_DEALLOCATE_PREPARED_STATEMENT =
+      "Failed to deallocate prepared statement: {}";
+  public static final String ERROR_DEALLOCATING_PREPARED_STATEMENT =
+      "Error deallocating prepared statement";
+  public static final String FAILED_TO_GET_TIME_PRECISION =
+      "Failed to get time precision: ";
+  public static final String FAILED_TO_READ_BINARY_STREAM =
+      "Failed to read binary stream: ";
+
+  // IoTDBPreparedStatement
+  public static final String NO_TYPE_MATCHED = "No type was matched";
+  public static final String SQL_DEBUG = "SQL {}";
+  public static final String PARAMETERS_DEBUG = "parameters {}";
+
+  // IoTDBResultMetadata
+  public static final String NO_COLUMN_EXISTS = "No column exists";
+  public static final String COLUMN_DOES_NOT_EXIST = "column %d does not exist";
+  public static final String COLUMN_INDEX_START_FROM_1 = "column index should start from 1";
+
+  // IoTDBAbstractDatabaseMetadata
+  public static final String NO_DATA_TYPE_MATCHED = "No data type was matched: {}";
+  public static final String GET_READ_ONLY_ERROR = "Get is readOnly error: {}";
+  public static final String CANNOT_GET_READ_ONLY_MODE = "Can not get the read-only mode";
+  public static final String GET_SYSTEM_FUNCTIONS_ERROR = "Get system functions error: {}";
+  public static final String GET_MAX_CONCURRENT_CLIENT_ERROR =
+      "Get max concurrentClientNUm error: {}";
+  public static final String GET_MAX_STATEMENT_LENGTH_ERROR =
+      "Get max statement length error: {}";
+  public static final String GET_PROCEDURES_ERROR = "Get procedures error: {}";
+  public static final String GET_PROCEDURE_COLUMNS_ERROR = "Get procedure columns error: {}";
+  public static final String GET_BEST_ROW_IDENTIFIER_ERROR =
+      "Get best row identifier error: {}";
+  public static final String GET_VERSION_COLUMNS_ERROR = "Get version columns error: {}";
+  public static final String GET_IMPORT_KEYS_ERROR = "Get import keys error: {}";
+  public static final String GET_EXPORTED_KEYS_ERROR = "Get exported keys error: {}";
+  public static final String GET_CROSS_REFERENCE_ERROR = "Get cross reference error: {}";
+  public static final String GET_INDEX_INFO_ERROR = "Get index info error: {}";
+  public static final String GET_UDTS_ERROR = "Get UDTS error: {}";
+  public static final String GET_SUPER_TYPES_ERROR = "Get super types error: {}";
+  public static final String GET_SUPER_TABLES_ERROR = "Get super tables error: {}";
+  public static final String GET_ATTRIBUTES_ERROR = "Get attributes error: {}";
+  public static final String GET_DB_MAJOR_VERSION_ERROR =
+      "Get database major version error: {}";
+  public static final String GET_DB_MINOR_VERSION_ERROR =
+      "Get database minor version error: {}";
+
+  // IoTDBDatabaseMetadata
+  public static final String INIT_SQL_KEYWORDS_ERROR =
+      "Error when initializing SQL keywords: ";
+  public static final String GET_TABLES_SQL = "Get tables: sql: {}";
+  public static final String GET_PRIMARY_KEYS_ERROR = "Get primary keys error: {}";
+  public static final String FAILED_TO_FETCH_METADATA_JSON =
+      "Failed to fetch metadata in json because: ";
+
+  // IoTDBRelationalDatabaseMetadata
+  public static final String RELATIONAL_INIT_SQL_KEYWORDS_ERROR =
+      "Error when initializing SQL keywords: ";
+  public static final String RELATIONAL_GET_PRIMARY_KEYS_ERROR =
+      "Get primary keys error: {}";
+
+  // IoTDBDataSource
+  public static final String GET_CONNECTION_ERROR = "get connection error:";
+
+  // IoTDBDataSourceFactory
+  public static final String REMAINING_PROPERTIES = "Remaining properties {}";
+
+  // IoTDBJDBCResultSet
+  public static final String CLOSE_SERVER_SIDE_ERROR =
+      "Error occurs for close operation in server side because ";
+  public static final String CLOSE_CONNECTING_ERROR =
+      "Error occurs when connecting to server for close operation ";
+  public static final String GET_METADATA_ERROR = "get meta data error: {}";
+
+  // IoTDBConnection
+  public static final String INPUT_URL_NULL = "Input url cannot be null";
+  public static final String NOT_SUPPORT_IS_WRAPPER_FOR = "Does not support isWrapperFor";
+  public static final String NOT_SUPPORT_UNWRAP = "Does not support unwrap";
+  public static final String NOT_SUPPORT_ABORT = "Does not support abort";
+  public static final String NOT_SUPPORT_CREATE_ARRAY_OF = "Does not support createArrayOf";
+  public static final String NOT_SUPPORT_CREATE_BLOB = "Does not support createBlob";
+  public static final String NOT_SUPPORT_CREATE_CLOB = "Does not support createClob";
+  public static final String NOT_SUPPORT_CREATE_NCLOB = "Does not suppport createNClob";
+  public static final String NOT_SUPPORT_CREATE_SQLXML = "Does not support createSQLXML";
+  public static final String CANNOT_CREATE_STATEMENT_CLOSED =
+      "Cannot create statement because connection is closed";
+  public static final String NOT_SUPPORT_CREATE_STATEMENT = "Does not support createStatement";
+  public static final String NOT_SUPPORT_CREATE_STRUCT = "Does not support createStruct";
+  public static final String NOT_SUPPORT_GET_CLIENT_INFO = "Does not support getClientInfo";
+  public static final String NOT_SUPPORT_SET_CLIENT_INFO = "Does not support setClientInfo";
+  public static final String NOT_SUPPORT_SET_HOLDABILITY = "Does not support setHoldability";
+  public static final String NOT_SUPPORT_GET_SCHEMA = "Does not support getSchema";
+  public static final String NOT_SUPPORT_SET_TRANSACTION_ISOLATION =
+      "Does not support setTransactionIsolation";
+  public static final String NOT_SUPPORT_GET_TYPE_MAP = "Does not support getTypeMap";
+  public static final String NOT_SUPPORT_SET_TYPE_MAP = "Does not support setTypeMap";
+  public static final String NOT_SUPPORT_READ_ONLY = "Does not support readOnly";
+  public static final String NOT_SUPPORT_NATIVE_SQL = "Does not support nativeSQL";
+  public static final String NOT_SUPPORT_RELEASE_SAVEPOINT =
+      "Does not support releaseSavepoint";
+  public static final String SET_TIMEZONE_ERROR = "Set time_zone error: ";
+  public static final String NOT_SUPPORT_CLIENT_INFO_TYPE =
+      "Does not support this type of client info: ";
+  public static final String NOT_SUPPORT_SET_NETWORK_TIMEOUT =
+      "Does not support setNetworkTimeout";
+  public static final String QUERY_TIMEOUT_MUST_BE_NON_NEGATIVE =
+      "queryTimeout %d must be >= 0!";
+  public static final String NOT_SUPPORT_SET_SAVEPOINT = "Does not support setSavepoint";
+  public static final String USE_DATABASE_ERROR = "Use database error: {}";
+  public static final String RECONNECT_INTERRUPTED = "reconnect is interrupted.";
+
+  private JdbcMessages() {}
+}
diff --git a/iotdb-client/jdbc/src/main/i18n/zh/org/apache/iotdb/jdbc/i18n/JdbcMessages.java b/iotdb-client/jdbc/src/main/i18n/zh/org/apache/iotdb/jdbc/i18n/JdbcMessages.java
new file mode 100644
index 00000000000..0cc824fd084
--- /dev/null
+++ b/iotdb-client/jdbc/src/main/i18n/zh/org/apache/iotdb/jdbc/i18n/JdbcMessages.java
@@ -0,0 +1,184 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.iotdb.jdbc.i18n;
+
+public final class JdbcMessages {
+
+  // IoTDBDriver
+  public static final String REGISTER_DRIVER_ERROR =
+      "注册 TsFile 驱动时发生错误";
+  public static final String METHOD_NOT_SUPPORTED = "不支持此方法";
+
+  // StringUtils
+  public static final String TO_PLAIN_STRING_ERROR = "转换为纯文本字符串方法错误:";
+  public static final String CONSISTENT_TO_STRING_ERROR = "一致性 toString 错误:";
+
+  // GroupedLSBWatermarkEncoder
+  public static final String CANNOT_FIND_MD5 = "错误:无法找到 MD5 算法!";
+  public static final String MIN_BIT_BIGGER_THAN_MAX =
+      "错误:minBitPosition 大于 maxBitPosition";
+
+  // IoTDBTracingInfo
+  public static final String INVALID_STATISTICS_NAME = "无效的统计名称!";
+
+  // IoTDBStatement
+  public static final String CANNOT_UNWRAP_TO = "无法转换为 ";
+  public static final String CANCEL_STATEMENT_ERROR = "取消语句时发生错误。";
+  public static final String CLOSE_STATEMENT_ERROR = "关闭语句时发生错误。";
+  public static final String NOT_SUPPORT_CLOSE_ON_COMPLETION = "不支持 closeOnCompletion";
+  public static final String QUERY_RESULT_SHOULD_NOT_BE_NULL =
+      "execResp.queryResult 不应为 null。";
+  public static final String DIRECTION_NOT_SUPPORTED = "不支持方向 %d!";
+  public static final String FETCH_SIZE_MUST_BE_NON_NEGATIVE = "fetchSize %d 必须 >= 0!";
+  public static final String NOT_SUPPORT_GET_GENERATED_KEYS = "不支持 getGeneratedKeys";
+  public static final String NOT_SUPPORT_GET_MAX_FIELD_SIZE = "不支持 getMaxFieldSize";
+  public static final String MAX_ROWS_MUST_BE_NON_NEGATIVE = "maxRows %d 必须 >= 0!";
+  public static final String NOT_SUPPORT_GET_MORE_RESULTS = "不支持 getMoreResults";
+  public static final String NOT_SUPPORT_GET_RESULT_SET_CONCURRENCY =
+      "不支持 getResultSetConcurrency";
+  public static final String NOT_SUPPORT_GET_RESULT_SET_HOLDABILITY =
+      "不支持 getResultSetHoldability";
+  public static final String NOT_SUPPORT_IS_CLOSE_ON_COMPLETION =
+      "不支持 isCloseOnCompletion";
+  public static final String NOT_SUPPORT_IS_POOLABLE = "不支持 isPoolable";
+  public static final String NOT_SUPPORT_SET_POOLABLE = "不支持 setPoolable";
+  public static final String NOT_SUPPORT_SET_CURSOR_NAME = "不支持 setCursorName";
+  public static final String NOT_SUPPORT_SET_ESCAPE_PROCESSING =
+      "不支持 setEscapeProcessing";
+  public static final String CANNOT_AFTER_CONNECTION_CLOSED =
+      "连接已关闭后无法执行 %s!";
+
+  // IoTDBTablePreparedStatement
+  public static final String FAILED_TO_PREPARE_STATEMENT = "预编译语句失败:";
+  public static final String PARAMETER_UNSET = "参数 #%d 未设置";
+  public static final String FAILED_TO_EXECUTE_PREPARED_STATEMENT =
+      "执行预编译语句失败:";
+  public static final String FAILED_TO_DEALLOCATE_PREPARED_STATEMENT =
+      "释放预编译语句失败:{}";
+  public static final String ERROR_DEALLOCATING_PREPARED_STATEMENT =
+      "释放预编译语句时出错";
+  public static final String FAILED_TO_GET_TIME_PRECISION =
+      "获取时间精度失败:";
+  public static final String FAILED_TO_READ_BINARY_STREAM =
+      "读取二进制流失败:";
+
+  // IoTDBPreparedStatement
+  public static final String NO_TYPE_MATCHED = "没有匹配的类型";
+  public static final String SQL_DEBUG = "SQL {}";
+  public static final String PARAMETERS_DEBUG = "参数 {}";
+
+  // IoTDBResultMetadata
+  public static final String NO_COLUMN_EXISTS = "不存在任何列";
+  public static final String COLUMN_DOES_NOT_EXIST = "列 %d 不存在";
+  public static final String COLUMN_INDEX_START_FROM_1 = "列索引应从 1 开始";
+
+  // IoTDBAbstractDatabaseMetadata
+  public static final String NO_DATA_TYPE_MATCHED = "没有匹配的数据类型:{}";
+  public static final String GET_READ_ONLY_ERROR = "获取只读模式错误:{}";
+  public static final String CANNOT_GET_READ_ONLY_MODE = "无法获取只读模式";
+  public static final String GET_SYSTEM_FUNCTIONS_ERROR = "获取系统函数错误:{}";
+  public static final String GET_MAX_CONCURRENT_CLIENT_ERROR =
+      "获取最大并发客户端数错误:{}";
+  public static final String GET_MAX_STATEMENT_LENGTH_ERROR =
+      "获取最大语句长度错误:{}";
+  public static final String GET_PROCEDURES_ERROR = "获取存储过程错误:{}";
+  public static final String GET_PROCEDURE_COLUMNS_ERROR = "获取存储过程列错误:{}";
+  public static final String GET_BEST_ROW_IDENTIFIER_ERROR =
+      "获取最佳行标识符错误:{}";
+  public static final String GET_VERSION_COLUMNS_ERROR = "获取版本列错误:{}";
+  public static final String GET_IMPORT_KEYS_ERROR = "获取导入键错误:{}";
+  public static final String GET_EXPORTED_KEYS_ERROR = "获取导出键错误:{}";
+  public static final String GET_CROSS_REFERENCE_ERROR = "获取交叉引用错误:{}";
+  public static final String GET_INDEX_INFO_ERROR = "获取索引信息错误:{}";
+  public static final String GET_UDTS_ERROR = "获取 UDT 错误:{}";
+  public static final String GET_SUPER_TYPES_ERROR = "获取父类型错误:{}";
+  public static final String GET_SUPER_TABLES_ERROR = "获取父表错误:{}";
+  public static final String GET_ATTRIBUTES_ERROR = "获取属性错误:{}";
+  public static final String GET_DB_MAJOR_VERSION_ERROR =
+      "获取数据库主版本号错误:{}";
+  public static final String GET_DB_MINOR_VERSION_ERROR =
+      "获取数据库次版本号错误:{}";
+
+  // IoTDBDatabaseMetadata
+  public static final String INIT_SQL_KEYWORDS_ERROR =
+      "初始化 SQL 关键字时出错:";
+  public static final String GET_TABLES_SQL = "获取表:SQL:{}";
+  public static final String GET_PRIMARY_KEYS_ERROR = "获取主键错误:{}";
+  public static final String FAILED_TO_FETCH_METADATA_JSON =
+      "获取 JSON 格式的元数据失败:";
+
+  // IoTDBRelationalDatabaseMetadata
+  public static final String RELATIONAL_INIT_SQL_KEYWORDS_ERROR =
+      "初始化 SQL 关键字时出错:";
+  public static final String RELATIONAL_GET_PRIMARY_KEYS_ERROR =
+      "获取主键错误:{}";
+
+  // IoTDBDataSource
+  public static final String GET_CONNECTION_ERROR = "获取连接错误:";
+
+  // IoTDBDataSourceFactory
+  public static final String REMAINING_PROPERTIES = "剩余属性 {}";
+
+  // IoTDBJDBCResultSet
+  public static final String CLOSE_SERVER_SIDE_ERROR =
+      "服务端关闭操作时发生错误 ";
+  public static final String CLOSE_CONNECTING_ERROR =
+      "连接服务器进行关闭操作时发生错误 ";
+  public static final String GET_METADATA_ERROR = "获取元数据错误:{}";
+
+  // IoTDBConnection
+  public static final String INPUT_URL_NULL = "输入的 URL 不能为 null";
+  public static final String NOT_SUPPORT_IS_WRAPPER_FOR = "不支持 isWrapperFor";
+  public static final String NOT_SUPPORT_UNWRAP = "不支持 unwrap";
+  public static final String NOT_SUPPORT_ABORT = "不支持 abort";
+  public static final String NOT_SUPPORT_CREATE_ARRAY_OF = "不支持 createArrayOf";
+  public static final String NOT_SUPPORT_CREATE_BLOB = "不支持 createBlob";
+  public static final String NOT_SUPPORT_CREATE_CLOB = "不支持 createClob";
+  public static final String NOT_SUPPORT_CREATE_NCLOB = "不支持 createNClob";
+  public static final String NOT_SUPPORT_CREATE_SQLXML = "不支持 createSQLXML";
+  public static final String CANNOT_CREATE_STATEMENT_CLOSED =
+      "连接已关闭,无法创建语句";
+  public static final String NOT_SUPPORT_CREATE_STATEMENT = "不支持 createStatement";
+  public static final String NOT_SUPPORT_CREATE_STRUCT = "不支持 createStruct";
+  public static final String NOT_SUPPORT_GET_CLIENT_INFO = "不支持 getClientInfo";
+  public static final String NOT_SUPPORT_SET_CLIENT_INFO = "不支持 setClientInfo";
+  public static final String NOT_SUPPORT_SET_HOLDABILITY = "不支持 setHoldability";
+  public static final String NOT_SUPPORT_GET_SCHEMA = "不支持 getSchema";
+  public static final String NOT_SUPPORT_SET_TRANSACTION_ISOLATION =
+      "不支持 setTransactionIsolation";
+  public static final String NOT_SUPPORT_GET_TYPE_MAP = "不支持 getTypeMap";
+  public static final String NOT_SUPPORT_SET_TYPE_MAP = "不支持 setTypeMap";
+  public static final String NOT_SUPPORT_READ_ONLY = "不支持 readOnly";
+  public static final String NOT_SUPPORT_NATIVE_SQL = "不支持 nativeSQL";
+  public static final String NOT_SUPPORT_RELEASE_SAVEPOINT =
+      "不支持 releaseSavepoint";
+  public static final String SET_TIMEZONE_ERROR = "设置时区错误:";
+  public static final String NOT_SUPPORT_CLIENT_INFO_TYPE =
+      "不支持此类型的客户端信息:";
+  public static final String NOT_SUPPORT_SET_NETWORK_TIMEOUT =
+      "不支持 setNetworkTimeout";
+  public static final String QUERY_TIMEOUT_MUST_BE_NON_NEGATIVE =
+      "queryTimeout %d 必须 >= 0!";
+  public static final String NOT_SUPPORT_SET_SAVEPOINT = "不支持 setSavepoint";
+  public static final String USE_DATABASE_ERROR = "使用数据库错误:{}";
+  public static final String RECONNECT_INTERRUPTED = "重新连接被中断。";
+
+  private JdbcMessages() {}
+}
diff --git a/iotdb-client/jdbc/src/main/java/org/apache/iotdb/jdbc/Constant.java b/iotdb-client/jdbc/src/main/java/org/apache/iotdb/jdbc/Constant.java
index ecb0b552a81..2570431bed7 100644
--- a/iotdb-client/jdbc/src/main/java/org/apache/iotdb/jdbc/Constant.java
+++ b/iotdb-client/jdbc/src/main/java/org/apache/iotdb/jdbc/Constant.java
@@ -19,6 +19,8 @@
 
 package org.apache.iotdb.jdbc;
 
+import org.apache.iotdb.jdbc.i18n.JdbcMessages;
+
 public class Constant {
 
   private Constant() {}
@@ -27,7 +29,7 @@ public class Constant {
   public static final String TABLE_DIALECT = "table";
   public static final String TREE_DIALECT = "tree";
 
-  public static final String METHOD_NOT_SUPPORTED = "Method not supported";
+  public static final String METHOD_NOT_SUPPORTED = JdbcMessages.METHOD_NOT_SUPPORTED;
   static final String PARAMETER_NOT_NULL = "The parameter cannot be null";
   static final String PARAMETER_SUPPORTED =
       "Parameter only supports BOOLEAN,INT32,INT64,FLOAT,DOUBLE,TEXT data type";
diff --git a/iotdb-client/jdbc/src/main/java/org/apache/iotdb/jdbc/GroupedLSBWatermarkEncoder.java b/iotdb-client/jdbc/src/main/java/org/apache/iotdb/jdbc/GroupedLSBWatermarkEncoder.java
index d1d830fb2c2..58579f7d437 100644
--- a/iotdb-client/jdbc/src/main/java/org/apache/iotdb/jdbc/GroupedLSBWatermarkEncoder.java
+++ b/iotdb-client/jdbc/src/main/java/org/apache/iotdb/jdbc/GroupedLSBWatermarkEncoder.java
@@ -19,6 +19,8 @@
 
 package org.apache.iotdb.jdbc;
 
+import org.apache.iotdb.jdbc.i18n.JdbcMessages;
+
 import org.apache.thrift.EncodingUtils;
 import org.apache.tsfile.enums.TSDataType;
 import org.apache.tsfile.read.common.Field;
@@ -52,7 +54,7 @@ public class GroupedLSBWatermarkEncoder implements WatermarkEncoder {
     try {
       md = MessageDigest.getInstance("MD5");
     } catch (NoSuchAlgorithmException e) {
-      throw new RuntimeException("ERROR: Cannot find MD5 algorithm!");
+      throw new RuntimeException(JdbcMessages.CANNOT_FIND_MD5);
     }
     md.update(val.getBytes());
     BigInteger resultInteger = new BigInteger(1, md.digest());
@@ -69,7 +71,7 @@ public class GroupedLSBWatermarkEncoder implements WatermarkEncoder {
 
   private int getBitPosition(long timestamp) {
     if (maxBitPosition <= minBitPosition) {
-      throw new RuntimeException("Error: minBitPosition is bigger than maxBitPosition");
+      throw new RuntimeException(JdbcMessages.MIN_BIT_BIGGER_THAN_MAX);
     }
     int range = maxBitPosition - minBitPosition;
     return minBitPosition
diff --git a/iotdb-client/jdbc/src/main/java/org/apache/iotdb/jdbc/IoTDBAbstractDatabaseMetadata.java b/iotdb-client/jdbc/src/main/java/org/apache/iotdb/jdbc/IoTDBAbstractDatabaseMetadata.java
index f14e2ee6b32..0f81bca6069 100644
--- a/iotdb-client/jdbc/src/main/java/org/apache/iotdb/jdbc/IoTDBAbstractDatabaseMetadata.java
+++ b/iotdb-client/jdbc/src/main/java/org/apache/iotdb/jdbc/IoTDBAbstractDatabaseMetadata.java
@@ -19,6 +19,7 @@
 
 package org.apache.iotdb.jdbc;
 
+import org.apache.iotdb.jdbc.i18n.JdbcMessages;
 import org.apache.iotdb.service.rpc.thrift.IClientRPCService;
 
 import org.apache.thrift.TException;
@@ -51,7 +52,7 @@ import java.util.Map;
 public abstract class IoTDBAbstractDatabaseMetadata implements DatabaseMetaData {
 
   private static final Logger LOGGER = LoggerFactory.getLogger(IoTDBAbstractDatabaseMetadata.class);
-  private static final String METHOD_NOT_SUPPORTED_STRING = "Method not supported";
+  private static final String METHOD_NOT_SUPPORTED_STRING = JdbcMessages.METHOD_NOT_SUPPORTED;
   protected static final String CONVERT_ERROR_MSG = "Convert tsBlock error: {}";
 
   protected IoTDBConnection connection;
@@ -420,7 +421,7 @@ public abstract class IoTDBAbstractDatabaseMetadata implements DatabaseMetaData
             tsBlockBuilder.getColumnBuilder(j).writeBoolean((boolean) valuesInRow.get(j));
             break;
           default:
-            LOGGER.error("No data type was matched: {}", columnType);
+            LOGGER.error(JdbcMessages.NO_DATA_TYPE_MATCHED, columnType);
             break;
         }
       }
@@ -552,9 +553,9 @@ public abstract class IoTDBAbstractDatabaseMetadata implements DatabaseMetaData
     try {
       return client.getProperties().isReadOnly;
     } catch (TException e) {
-      LOGGER.error("Get is readOnly error: {}", e.getMessage());
+      LOGGER.error(JdbcMessages.GET_READ_ONLY_ERROR, e.getMessage());
     }
-    throw new SQLException("Can not get the read-only mode");
+    throw new SQLException(JdbcMessages.CANNOT_GET_READ_ONLY_MODE);
   }
 
   @Override
@@ -695,7 +696,7 @@ public abstract class IoTDBAbstractDatabaseMetadata implements DatabaseMetaData
         result = result.substring(0, result.length() - 1);
       }
     } catch (Exception ex) {
-      LOGGER.error("Get system functions error: {}", ex.getMessage());
+      LOGGER.error(JdbcMessages.GET_SYSTEM_FUNCTIONS_ERROR, ex.getMessage());
     } finally {
       close(resultSet, statement);
     }
@@ -1040,7 +1041,7 @@ public abstract class IoTDBAbstractDatabaseMetadata implements DatabaseMetaData
     try {
       maxcount = client.getProperties().getMaxConcurrentClientNum();
     } catch (TException e) {
-      LOGGER.error("Get max concurrentClientNUm error: {}", e.getMessage());
+      LOGGER.error(JdbcMessages.GET_MAX_CONCURRENT_CLIENT_ERROR, e.getMessage());
     }
     return maxcount;
   }
@@ -1085,7 +1086,7 @@ public abstract class IoTDBAbstractDatabaseMetadata implements DatabaseMetaData
     try {
       return client.getProperties().getThriftMaxFrameSize();
     } catch (TException e) {
-      LOGGER.error("Get max statement length error: {}", e.getMessage());
+      LOGGER.error(JdbcMessages.GET_MAX_STATEMENT_LENGTH_ERROR, e.getMessage());
     }
     return 0;
   }
@@ -1166,7 +1167,7 @@ public abstract class IoTDBAbstractDatabaseMetadata implements DatabaseMetaData
         columnNameIndex.put(fields[i].getName(), i);
       }
     } catch (Exception e) {
-      LOGGER.error("Get procedures error: {}", e.getMessage());
+      LOGGER.error(JdbcMessages.GET_PROCEDURES_ERROR, e.getMessage());
     } finally {
       close(null, stmt);
     }
@@ -1225,7 +1226,7 @@ public abstract class IoTDBAbstractDatabaseMetadata implements DatabaseMetaData
         columnNameIndex.put(fields[i].getName(), i);
       }
     } catch (Exception e) {
-      LOGGER.error("Get procedure columns error: {}", e.getMessage());
+      LOGGER.error(JdbcMessages.GET_PROCEDURE_COLUMNS_ERROR, e.getMessage());
     } finally {
       close(null, stmt);
     }
@@ -1610,7 +1611,7 @@ public abstract class IoTDBAbstractDatabaseMetadata implements DatabaseMetaData
         columnNameIndex.put(fields[i].getName(), i);
       }
     } catch (Exception e) {
-      LOGGER.error("Get best row identifier error: {}", e.getMessage());
+      LOGGER.error(JdbcMessages.GET_BEST_ROW_IDENTIFIER_ERROR, e.getMessage());
     } finally {
       close(null, stmt);
     }
@@ -1655,7 +1656,7 @@ public abstract class IoTDBAbstractDatabaseMetadata implements DatabaseMetaData
         columnNameIndex.put(fields[i].getName(), i);
       }
     } catch (Exception e) {
-      LOGGER.error("Get version columns error: {}", e.getMessage());
+      LOGGER.error(JdbcMessages.GET_VERSION_COLUMNS_ERROR, e.getMessage());
     } finally {
       close(null, stmt);
     }
@@ -1709,7 +1710,7 @@ public abstract class IoTDBAbstractDatabaseMetadata implements DatabaseMetaData
         columnNameIndex.put(fields[i].getName(), i);
       }
     } catch (Exception e) {
-      LOGGER.error("Get import keys error: {}", e.getMessage());
+      LOGGER.error(JdbcMessages.GET_IMPORT_KEYS_ERROR, e.getMessage());
     } finally {
       close(null, stmt);
     }
@@ -1760,7 +1761,7 @@ public abstract class IoTDBAbstractDatabaseMetadata implements DatabaseMetaData
         columnNameIndex.put(fields[i].getName(), i);
       }
     } catch (Exception e) {
-      LOGGER.error("Get exported keys error: {}", e.getMessage());
+      LOGGER.error(JdbcMessages.GET_EXPORTED_KEYS_ERROR, e.getMessage());
     } finally {
       close(null, stmt);
     }
@@ -1817,7 +1818,7 @@ public abstract class IoTDBAbstractDatabaseMetadata implements DatabaseMetaData
         columnNameIndex.put(fields[i].getName(), i);
       }
     } catch (Exception e) {
-      LOGGER.error("Get cross reference error: {}", e.getMessage());
+      LOGGER.error(JdbcMessages.GET_CROSS_REFERENCE_ERROR, e.getMessage());
     } finally {
       close(null, stmt);
     }
@@ -2154,7 +2155,7 @@ public abstract class IoTDBAbstractDatabaseMetadata implements DatabaseMetaData
         columnNameIndex.put(fields[i].getName(), i);
       }
     } catch (Exception e) {
-      LOGGER.error("Get index info error: {}", e.getMessage());
+      LOGGER.error(JdbcMessages.GET_INDEX_INFO_ERROR, e.getMessage());
     } finally {
       close(null, stmt);
     }
@@ -2259,7 +2260,7 @@ public abstract class IoTDBAbstractDatabaseMetadata implements DatabaseMetaData
         columnNameIndex.put(fields[i].getName(), i);
       }
     } catch (Exception e) {
-      LOGGER.error("Get UDTS error: {}", e.getMessage());
+      LOGGER.error(JdbcMessages.GET_UDTS_ERROR, e.getMessage());
     } finally {
       close(null, stmt);
     }
@@ -2327,7 +2328,7 @@ public abstract class IoTDBAbstractDatabaseMetadata implements DatabaseMetaData
         columnNameIndex.put(fields[i].getName(), i);
       }
     } catch (Exception e) {
-      LOGGER.error("Get super types error: {}", e.getMessage());
+      LOGGER.error(JdbcMessages.GET_SUPER_TYPES_ERROR, e.getMessage());
     } finally {
       close(null, stmt);
     }
@@ -2368,7 +2369,7 @@ public abstract class IoTDBAbstractDatabaseMetadata implements DatabaseMetaData
         columnNameIndex.put(fields[i].getName(), i);
       }
     } catch (Exception e) {
-      LOGGER.error("Get super tables error: {}", e.getMessage());
+      LOGGER.error(JdbcMessages.GET_SUPER_TABLES_ERROR, e.getMessage());
     } finally {
       close(null, stmt);
     }
@@ -2427,7 +2428,7 @@ public abstract class IoTDBAbstractDatabaseMetadata implements DatabaseMetaData
         columnNameIndex.put(fields[i].getName(), i);
       }
     } catch (Exception e) {
-      LOGGER.error("Get attributes error: {}", e.getMessage());
+      LOGGER.error(JdbcMessages.GET_ATTRIBUTES_ERROR, e.getMessage());
     } finally {
       close(null, stmt);
     }
@@ -2469,7 +2470,7 @@ public abstract class IoTDBAbstractDatabaseMetadata implements DatabaseMetaData
         majorVersion = Integer.parseInt(versions[0]);
       }
     } catch (TException e) {
-      LOGGER.error("Get database major version error: {}", e.getMessage());
+      LOGGER.error(JdbcMessages.GET_DB_MAJOR_VERSION_ERROR, e.getMessage());
     }
     return majorVersion;
   }
@@ -2484,7 +2485,7 @@ public abstract class IoTDBAbstractDatabaseMetadata implements DatabaseMetaData
         minorVersion = Integer.parseInt(versions[1]);
       }
     } catch (TException e) {
-      LOGGER.error("Get database minor version error: {}", e.getMessage());
+      LOGGER.error(JdbcMessages.GET_DB_MINOR_VERSION_ERROR, e.getMessage());
     }
     return minorVersion;
   }
diff --git a/iotdb-client/jdbc/src/main/java/org/apache/iotdb/jdbc/IoTDBConnection.java b/iotdb-client/jdbc/src/main/java/org/apache/iotdb/jdbc/IoTDBConnection.java
index 54b148f25e4..7f37e2206fb 100644
--- a/iotdb-client/jdbc/src/main/java/org/apache/iotdb/jdbc/IoTDBConnection.java
+++ b/iotdb-client/jdbc/src/main/java/org/apache/iotdb/jdbc/IoTDBConnection.java
@@ -20,6 +20,7 @@
 package org.apache.iotdb.jdbc;
 
 import org.apache.iotdb.common.rpc.thrift.TSStatus;
+import org.apache.iotdb.jdbc.i18n.JdbcMessages;
 import org.apache.iotdb.jdbc.relational.IoTDBRelationalDatabaseMetadata;
 import org.apache.iotdb.rpc.DeepCopyRpcTransportFactory;
 import org.apache.iotdb.rpc.RpcUtils;
@@ -124,7 +125,7 @@ public class IoTDBConnection implements Connection {
 
   public IoTDBConnection(String url, Properties info) throws SQLException, TTransportException {
     if (url == null) {
-      throw new IoTDBURLException("Input url cannot be null");
+      throw new IoTDBURLException(JdbcMessages.INPUT_URL_NULL);
     }
     params = Utils.parseUrl(url, info);
     this.url = url;
@@ -155,17 +156,17 @@ public class IoTDBConnection implements Connection {
 
   @Override
   public boolean isWrapperFor(Class<?> arg0) throws SQLException {
-    throw new SQLException("Does not support isWrapperFor");
+    throw new SQLException(JdbcMessages.NOT_SUPPORT_IS_WRAPPER_FOR);
   }
 
   @Override
   public <T> T unwrap(Class<T> arg0) throws SQLException {
-    throw new SQLException("Does not support unwrap");
+    throw new SQLException(JdbcMessages.NOT_SUPPORT_UNWRAP);
   }
 
   @Override
   public void abort(Executor arg0) throws SQLException {
-    throw new SQLException("Does not support abort");
+    throw new SQLException(JdbcMessages.NOT_SUPPORT_ABORT);
   }
 
   @Override
@@ -197,33 +198,33 @@ public class IoTDBConnection implements Connection {
 
   @Override
   public Array createArrayOf(String arg0, Object[] arg1) throws SQLException {
-    throw new SQLException("Does not support createArrayOf");
+    throw new SQLException(JdbcMessages.NOT_SUPPORT_CREATE_ARRAY_OF);
   }
 
   @Override
   public Blob createBlob() throws SQLException {
-    throw new SQLException("Does not support createBlob");
+    throw new SQLException(JdbcMessages.NOT_SUPPORT_CREATE_BLOB);
   }
 
   @Override
   public Clob createClob() throws SQLException {
-    throw new SQLException("Does not support createClob");
+    throw new SQLException(JdbcMessages.NOT_SUPPORT_CREATE_CLOB);
   }
 
   @Override
   public NClob createNClob() throws SQLException {
-    throw new SQLException("Does not suppport createNClob");
+    throw new SQLException(JdbcMessages.NOT_SUPPORT_CREATE_NCLOB);
   }
 
   @Override
   public SQLXML createSQLXML() throws SQLException {
-    throw new SQLException("Does not support createSQLXML");
+    throw new SQLException(JdbcMessages.NOT_SUPPORT_CREATE_SQLXML);
   }
 
   @Override
   public Statement createStatement() throws SQLException {
     if (isClosed) {
-      throw new SQLException("Cannot create statement because connection is closed");
+      throw new SQLException(JdbcMessages.CANNOT_CREATE_STATEMENT_CLOSED);
     }
     return new IoTDBStatement(this, getClient(), sessionId, zoneId, charset, queryTimeout);
   }
@@ -245,12 +246,12 @@ public class IoTDBConnection implements Connection {
 
   @Override
   public Statement createStatement(int arg0, int arg1, int arg2) throws SQLException {
-    throw new SQLException("Does not support createStatement");
+    throw new SQLException(JdbcMessages.NOT_SUPPORT_CREATE_STATEMENT);
   }
 
   @Override
   public Struct createStruct(String arg0, Object[] arg1) throws SQLException {
-    throw new SQLException("Does not support createStruct");
+    throw new SQLException(JdbcMessages.NOT_SUPPORT_CREATE_STRUCT);
   }
 
   @Override
@@ -286,7 +287,7 @@ public class IoTDBConnection implements Connection {
         stmt.execute();
       } catch (SQLException e) {
         stmt.close();
-        logger.error("Use database error: {}", e.getMessage());
+        logger.error(JdbcMessages.USE_DATABASE_ERROR, e.getMessage());
         throw e;
       }
     }
@@ -294,17 +295,17 @@ public class IoTDBConnection implements Connection {
 
   @Override
   public Properties getClientInfo() throws SQLException {
-    throw new SQLException("Does not support getClientInfo");
+    throw new SQLException(JdbcMessages.NOT_SUPPORT_GET_CLIENT_INFO);
   }
 
   @Override
   public void setClientInfo(Properties arg0) throws SQLClientInfoException {
-    throw new SQLClientInfoException("Does not support setClientInfo", null);
+    throw new SQLClientInfoException(JdbcMessages.NOT_SUPPORT_SET_CLIENT_INFO, null);
   }
 
   @Override
   public String getClientInfo(String arg0) throws SQLException {
-    throw new SQLException("Does not support getClientInfo");
+    throw new SQLException(JdbcMessages.NOT_SUPPORT_GET_CLIENT_INFO);
   }
 
   @Override
@@ -314,13 +315,13 @@ public class IoTDBConnection implements Connection {
 
   @Override
   public void setHoldability(int arg0) throws SQLException {
-    throw new SQLException("Does not support setHoldability");
+    throw new SQLException(JdbcMessages.NOT_SUPPORT_SET_HOLDABILITY);
   }
 
   @Override
   public DatabaseMetaData getMetaData() throws SQLException {
     if (isClosed) {
-      throw new SQLException("Cannot create statement because connection is closed");
+      throw new SQLException(JdbcMessages.CANNOT_CREATE_STATEMENT_CLOSED);
     }
     if (getSqlDialect().equals(Constant.TABLE_DIALECT)) {
       return new IoTDBRelationalDatabaseMetadata(this, getClient(), sessionId, zoneId);
@@ -338,7 +339,7 @@ public class IoTDBConnection implements Connection {
     if (getSqlDialect().equals(Constant.TABLE_DIALECT)) {
       return getDatabase();
     }
-    throw new SQLException("Does not support getSchema");
+    throw new SQLException(JdbcMessages.NOT_SUPPORT_GET_SCHEMA);
   }
 
   @Override
@@ -357,7 +358,7 @@ public class IoTDBConnection implements Connection {
         stmt.execute();
       } catch (SQLException e) {
         stmt.close();
-        logger.error("Use database error: {}", e.getMessage());
+        logger.error(JdbcMessages.USE_DATABASE_ERROR, e.getMessage());
         throw e;
       }
     }
@@ -370,17 +371,17 @@ public class IoTDBConnection implements Connection {
 
   @Override
   public void setTransactionIsolation(int arg0) throws SQLException {
-    throw new SQLException("Does not support setTransactionIsolation");
+    throw new SQLException(JdbcMessages.NOT_SUPPORT_SET_TRANSACTION_ISOLATION);
   }
 
   @Override
   public Map<String, Class<?>> getTypeMap() throws SQLException {
-    throw new SQLException("Does not support getTypeMap");
+    throw new SQLException(JdbcMessages.NOT_SUPPORT_GET_TYPE_MAP);
   }
 
   @Override
   public void setTypeMap(Map<String, Class<?>> arg0) throws SQLException {
-    throw new SQLException("Does not support setTypeMap");
+    throw new SQLException(JdbcMessages.NOT_SUPPORT_SET_TYPE_MAP);
   }
 
   @Override
@@ -401,7 +402,7 @@ public class IoTDBConnection implements Connection {
   @Override
   public void setReadOnly(boolean readonly) throws SQLException {
     if (readonly) {
-      throw new SQLException("Does not support readOnly");
+      throw new SQLException(JdbcMessages.NOT_SUPPORT_READ_ONLY);
     }
   }
 
@@ -412,7 +413,7 @@ public class IoTDBConnection implements Connection {
 
   @Override
   public String nativeSQL(String arg0) throws SQLException {
-    throw new SQLException("Does not support nativeSQL");
+    throw new SQLException(JdbcMessages.NOT_SUPPORT_NATIVE_SQL);
   }
 
   @Override
@@ -470,7 +471,7 @@ public class IoTDBConnection implements Connection {
 
   @Override
   public void releaseSavepoint(Savepoint arg0) throws SQLException {
-    throw new SQLException("Does not support releaseSavepoint");
+    throw new SQLException(JdbcMessages.NOT_SUPPORT_RELEASE_SAVEPOINT);
   }
 
   @Override
@@ -489,18 +490,18 @@ public class IoTDBConnection implements Connection {
       try {
         setTimeZone(value);
       } catch (TException | IoTDBSQLException e) {
-        throw new SQLClientInfoException("Set time_zone error: ", null, e);
+        throw new SQLClientInfoException(JdbcMessages.SET_TIMEZONE_ERROR, null, e);
       }
     } else {
       HashMap<String, ClientInfoStatus> hashMap = new HashMap<>();
       hashMap.put(name, ClientInfoStatus.REASON_UNKNOWN_PROPERTY);
-      throw new SQLClientInfoException("Does not support this type of client info: ", hashMap);
+      throw new SQLClientInfoException(JdbcMessages.NOT_SUPPORT_CLIENT_INFO_TYPE, hashMap);
     }
   }
 
   @Override
   public void setNetworkTimeout(Executor arg0, int arg1) throws SQLException {
-    throw new SQLException("Does not support setNetworkTimeout");
+    throw new SQLException(JdbcMessages.NOT_SUPPORT_SET_NETWORK_TIMEOUT);
   }
 
   public int getQueryTimeout() {
@@ -509,19 +510,20 @@ public class IoTDBConnection implements Connection {
 
   public void setQueryTimeout(int seconds) throws SQLException {
     if (seconds < 0) {
-      throw new SQLException(String.format("queryTimeout %d must be >= 0!", seconds));
+      throw new SQLException(
+          String.format(JdbcMessages.QUERY_TIMEOUT_MUST_BE_NON_NEGATIVE, seconds));
     }
     this.queryTimeout = seconds;
   }
 
   @Override
   public Savepoint setSavepoint() throws SQLException {
-    throw new SQLException("Does not support setSavepoint");
+    throw new SQLException(JdbcMessages.NOT_SUPPORT_SET_SAVEPOINT);
   }
 
   @Override
   public Savepoint setSavepoint(String arg0) throws SQLException {
-    throw new SQLException("Does not support setSavepoint");
+    throw new SQLException(JdbcMessages.NOT_SUPPORT_SET_SAVEPOINT);
   }
 
   public IClientRPCService.Iface getClient() {
@@ -647,7 +649,7 @@ public class IoTDBConnection implements Connection {
         try {
           Thread.sleep(Config.RETRY_INTERVAL_MS);
         } catch (InterruptedException e1) {
-          logger.error("reconnect is interrupted.", e1);
+          logger.error(JdbcMessages.RECONNECT_INTERRUPTED, e1);
           Thread.currentThread().interrupt();
         }
       }
diff --git a/iotdb-client/jdbc/src/main/java/org/apache/iotdb/jdbc/IoTDBDataSource.java b/iotdb-client/jdbc/src/main/java/org/apache/iotdb/jdbc/IoTDBDataSource.java
index 12e490d92cc..fe31896eb25 100644
--- a/iotdb-client/jdbc/src/main/java/org/apache/iotdb/jdbc/IoTDBDataSource.java
+++ b/iotdb-client/jdbc/src/main/java/org/apache/iotdb/jdbc/IoTDBDataSource.java
@@ -17,6 +17,8 @@
 
 package org.apache.iotdb.jdbc;
 
+import org.apache.iotdb.jdbc.i18n.JdbcMessages;
+
 import org.apache.thrift.transport.TTransportException;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
@@ -92,7 +94,7 @@ public class IoTDBDataSource implements DataSource {
     try {
       return new IoTDBConnection(url, properties);
     } catch (TTransportException e) {
-      LOGGER.error("get connection error:", e);
+      LOGGER.error(JdbcMessages.GET_CONNECTION_ERROR, e);
     }
     return null;
   }
@@ -105,7 +107,7 @@ public class IoTDBDataSource implements DataSource {
       newProp.setProperty(PWD_STR, password);
       return new IoTDBConnection(url, newProp);
     } catch (Exception e) {
-      LOGGER.error("get connection error:", e);
+      LOGGER.error(JdbcMessages.GET_CONNECTION_ERROR, e);
     }
     return null;
   }
diff --git a/iotdb-client/jdbc/src/main/java/org/apache/iotdb/jdbc/IoTDBDataSourceFactory.java b/iotdb-client/jdbc/src/main/java/org/apache/iotdb/jdbc/IoTDBDataSourceFactory.java
index 8e601d5df6f..2e5994ca426 100644
--- a/iotdb-client/jdbc/src/main/java/org/apache/iotdb/jdbc/IoTDBDataSourceFactory.java
+++ b/iotdb-client/jdbc/src/main/java/org/apache/iotdb/jdbc/IoTDBDataSourceFactory.java
@@ -17,6 +17,8 @@
 
 package org.apache.iotdb.jdbc;
 
+import org.apache.iotdb.jdbc.i18n.JdbcMessages;
+
 import org.ops4j.pax.jdbc.common.BeanConfig;
 import org.osgi.service.jdbc.DataSourceFactory;
 import org.slf4j.Logger;
@@ -53,7 +55,7 @@ public class IoTDBDataSourceFactory implements DataSourceFactory {
     String password = (String) properties.remove(DataSourceFactory.JDBC_PASSWORD);
     ds.setPassword(password);
 
-    logger.info("Remaining properties {}", properties.size());
+    logger.info(JdbcMessages.REMAINING_PROPERTIES, properties.size());
 
     if (!properties.isEmpty()) {
       BeanConfig.configure(ds, properties);
diff --git a/iotdb-client/jdbc/src/main/java/org/apache/iotdb/jdbc/IoTDBDatabaseMetadata.java b/iotdb-client/jdbc/src/main/java/org/apache/iotdb/jdbc/IoTDBDatabaseMetadata.java
index b039bb907f7..2f4ea5af240 100644
--- a/iotdb-client/jdbc/src/main/java/org/apache/iotdb/jdbc/IoTDBDatabaseMetadata.java
+++ b/iotdb-client/jdbc/src/main/java/org/apache/iotdb/jdbc/IoTDBDatabaseMetadata.java
@@ -19,6 +19,7 @@
 
 package org.apache.iotdb.jdbc;
 
+import org.apache.iotdb.jdbc.i18n.JdbcMessages;
 import org.apache.iotdb.rpc.RpcUtils;
 import org.apache.iotdb.rpc.StatementExecutionException;
 import org.apache.iotdb.service.rpc.thrift.IClientRPCService;
@@ -239,7 +240,7 @@ public class IoTDBDatabaseMetadata extends IoTDBAbstractDatabaseMetadata {
       sqlKeywordsThatArentSQL92 = keywordBuf.toString();
 
     } catch (Exception e) {
-      LOGGER.error("Error when initializing SQL keywords: ", e);
+      LOGGER.error(JdbcMessages.INIT_SQL_KEYWORDS_ERROR, e);
       throw new RuntimeException(e);
     }
   }
@@ -294,7 +295,7 @@ public class IoTDBDatabaseMetadata extends IoTDBAbstractDatabaseMetadata {
         }
         sql = sql + "." + tableNamePattern;
       }
-      LOGGER.info("Get tables: sql: {}", sql);
+      LOGGER.info(JdbcMessages.GET_TABLES_SQL, sql);
       try (ResultSet rs = stmt.executeQuery(sql)) {
         Field[] fields = new Field[10];
         fields[0] = new Field("", TABLE_CAT, "TEXT");
@@ -618,7 +619,7 @@ public class IoTDBDatabaseMetadata extends IoTDBAbstractDatabaseMetadata {
     try {
       tsBlock = convertTsBlock(valuesList, tsDataTypeList);
     } catch (IOException e) {
-      LOGGER.error("Get primary keys error: {}", e.getMessage());
+      LOGGER.error(JdbcMessages.GET_PRIMARY_KEYS_ERROR, e.getMessage());
     } finally {
       close(null, stmt);
     }
@@ -664,7 +665,7 @@ public class IoTDBDatabaseMetadata extends IoTDBAbstractDatabaseMetadata {
     try {
       return getMetadataInJsonFunc();
     } catch (IoTDBSQLException e) {
-      LOGGER.error("Failed to fetch metadata in json because: ", e);
+      LOGGER.error(JdbcMessages.FAILED_TO_FETCH_METADATA_JSON, e);
     } catch (TException e) {
       boolean flag = connection.reconnect();
       this.client = connection.getClient();
diff --git a/iotdb-client/jdbc/src/main/java/org/apache/iotdb/jdbc/IoTDBDriver.java b/iotdb-client/jdbc/src/main/java/org/apache/iotdb/jdbc/IoTDBDriver.java
index db6e9e7bc13..de7065c1c57 100644
--- a/iotdb-client/jdbc/src/main/java/org/apache/iotdb/jdbc/IoTDBDriver.java
+++ b/iotdb-client/jdbc/src/main/java/org/apache/iotdb/jdbc/IoTDBDriver.java
@@ -19,6 +19,8 @@
 
 package org.apache.iotdb.jdbc;
 
+import org.apache.iotdb.jdbc.i18n.JdbcMessages;
+
 import org.apache.thrift.transport.TTransportException;
 import org.osgi.service.component.annotations.Component;
 
@@ -44,7 +46,7 @@ public class IoTDBDriver implements Driver {
     try {
       DriverManager.registerDriver(new IoTDBDriver());
     } catch (SQLException e) {
-      logger.error("Error occurs when registering TsFile driver", e);
+      logger.error(JdbcMessages.REGISTER_DRIVER_ERROR, e);
     }
   }
 
@@ -85,7 +87,7 @@ public class IoTDBDriver implements Driver {
 
   @Override
   public Logger getParentLogger() throws SQLFeatureNotSupportedException {
-    throw new SQLFeatureNotSupportedException("Method not supported");
+    throw new SQLFeatureNotSupportedException(JdbcMessages.METHOD_NOT_SUPPORTED);
   }
 
   @Override
diff --git a/iotdb-client/jdbc/src/main/java/org/apache/iotdb/jdbc/IoTDBJDBCResultSet.java b/iotdb-client/jdbc/src/main/java/org/apache/iotdb/jdbc/IoTDBJDBCResultSet.java
index f9c3fe481ac..3ea3c52320d 100644
--- a/iotdb-client/jdbc/src/main/java/org/apache/iotdb/jdbc/IoTDBJDBCResultSet.java
+++ b/iotdb-client/jdbc/src/main/java/org/apache/iotdb/jdbc/IoTDBJDBCResultSet.java
@@ -19,6 +19,7 @@
 
 package org.apache.iotdb.jdbc;
 
+import org.apache.iotdb.jdbc.i18n.JdbcMessages;
 import org.apache.iotdb.rpc.IoTDBConnectionException;
 import org.apache.iotdb.rpc.IoTDBRpcDataSet;
 import org.apache.iotdb.rpc.RpcUtils;
@@ -219,9 +220,9 @@ public class IoTDBJDBCResultSet implements ResultSet {
     try {
       ioTDBRpcDataSet.close();
     } catch (StatementExecutionException e) {
-      throw new SQLException("Error occurs for close operation in server side because ", e);
+      throw new SQLException(JdbcMessages.CLOSE_SERVER_SIDE_ERROR, e);
     } catch (TException e) {
-      throw new SQLException("Error occurs when connecting to server for close operation ", e);
+      throw new SQLException(JdbcMessages.CLOSE_CONNECTING_ERROR, e);
     }
   }
 
@@ -578,7 +579,7 @@ public class IoTDBJDBCResultSet implements ResultSet {
         this.sgColumns = ((IoTDBJDBCResultSet) statement.getResultSet()).getSgColumns();
       }
     } catch (SQLException throwables) {
-      LOGGER.error("get meta data error: {}", throwables.getMessage());
+      LOGGER.error(JdbcMessages.GET_METADATA_ERROR, throwables.getMessage());
     }
     return new IoTDBResultMetadata(
         nonAlign,
diff --git a/iotdb-client/jdbc/src/main/java/org/apache/iotdb/jdbc/IoTDBPreparedStatement.java b/iotdb-client/jdbc/src/main/java/org/apache/iotdb/jdbc/IoTDBPreparedStatement.java
index c92b6549bf9..80f6530c18a 100644
--- a/iotdb-client/jdbc/src/main/java/org/apache/iotdb/jdbc/IoTDBPreparedStatement.java
+++ b/iotdb-client/jdbc/src/main/java/org/apache/iotdb/jdbc/IoTDBPreparedStatement.java
@@ -19,6 +19,7 @@
 
 package org.apache.iotdb.jdbc;
 
+import org.apache.iotdb.jdbc.i18n.JdbcMessages;
 import org.apache.iotdb.service.rpc.thrift.IClientRPCService.Iface;
 
 import org.apache.thrift.TException;
@@ -68,7 +69,7 @@ import java.util.Map;
 public class IoTDBPreparedStatement extends IoTDBStatement implements PreparedStatement {
 
   private String sql;
-  private static final String METHOD_NOT_SUPPORTED_STRING = "Method not supported";
+  private static final String METHOD_NOT_SUPPORTED_STRING = JdbcMessages.METHOD_NOT_SUPPORTED;
   private static final Logger logger = LoggerFactory.getLogger(IoTDBPreparedStatement.class);
 
   /** save the SQL parameters as (paramLoc,paramValue) pairs. */
@@ -544,7 +545,7 @@ public class IoTDBPreparedStatement extends IoTDBStatement implements PreparedSt
 
                 break;
               default:
-                logger.error("No type was matched");
+                logger.error(JdbcMessages.NO_TYPE_MATCHED);
                 break;
             }
 
@@ -1017,11 +1018,11 @@ public class IoTDBPreparedStatement extends IoTDBStatement implements PreparedSt
     StringBuilder newSql = new StringBuilder(parts.get(0));
     for (int i = 1; i < parts.size(); i++) {
       if (logger.isDebugEnabled()) {
-        logger.debug("SQL {}", sql);
-        logger.debug("parameters {}", parameters.size());
+        logger.debug(JdbcMessages.SQL_DEBUG, sql);
+        logger.debug(JdbcMessages.PARAMETERS_DEBUG, parameters.size());
       }
       if (!parameters.containsKey(i)) {
-        throw new SQLException("Parameter #" + i + " is unset");
+        throw new SQLException(String.format(JdbcMessages.PARAMETER_UNSET, i));
       }
       newSql.append(parameters.get(i));
       newSql.append(parts.get(i));
diff --git a/iotdb-client/jdbc/src/main/java/org/apache/iotdb/jdbc/IoTDBResultMetadata.java b/iotdb-client/jdbc/src/main/java/org/apache/iotdb/jdbc/IoTDBResultMetadata.java
index 83bdc26133c..59279d88465 100644
--- a/iotdb-client/jdbc/src/main/java/org/apache/iotdb/jdbc/IoTDBResultMetadata.java
+++ b/iotdb-client/jdbc/src/main/java/org/apache/iotdb/jdbc/IoTDBResultMetadata.java
@@ -19,6 +19,8 @@
 
 package org.apache.iotdb.jdbc;
 
+import org.apache.iotdb.jdbc.i18n.JdbcMessages;
+
 import java.sql.Date;
 import java.sql.ResultSetMetaData;
 import java.sql.SQLException;
@@ -192,13 +194,13 @@ public class IoTDBResultMetadata implements ResultSetMetaData {
 
   private void checkColumnIndex(int column) throws SQLException {
     if (columnInfoList == null || columnInfoList.isEmpty()) {
-      throw new SQLException("No column exists");
+      throw new SQLException(JdbcMessages.NO_COLUMN_EXISTS);
     }
     if (column > columnInfoList.size()) {
-      throw new SQLException(String.format("column %d does not exist", column));
+      throw new SQLException(String.format(JdbcMessages.COLUMN_DOES_NOT_EXIST, column));
     }
     if (column <= 0) {
-      throw new SQLException("column index should start from 1");
+      throw new SQLException(JdbcMessages.COLUMN_INDEX_START_FROM_1);
     }
   }
 
diff --git a/iotdb-client/jdbc/src/main/java/org/apache/iotdb/jdbc/IoTDBStatement.java b/iotdb-client/jdbc/src/main/java/org/apache/iotdb/jdbc/IoTDBStatement.java
index 8cb0a32417f..1c6ce8c0e9b 100644
--- a/iotdb-client/jdbc/src/main/java/org/apache/iotdb/jdbc/IoTDBStatement.java
+++ b/iotdb-client/jdbc/src/main/java/org/apache/iotdb/jdbc/IoTDBStatement.java
@@ -20,6 +20,7 @@
 package org.apache.iotdb.jdbc;
 
 import org.apache.iotdb.common.rpc.thrift.TSStatus;
+import org.apache.iotdb.jdbc.i18n.JdbcMessages;
 import org.apache.iotdb.rpc.RpcUtils;
 import org.apache.iotdb.rpc.StatementExecutionException;
 import org.apache.iotdb.rpc.TSStatusCode;
@@ -186,7 +187,7 @@ public class IoTDBStatement implements Statement {
 
   @Override
   public <T> T unwrap(Class<T> iface) throws SQLException {
-    throw new SQLException("Cannot unwrap to " + iface);
+    throw new SQLException(JdbcMessages.CANNOT_UNWRAP_TO + iface);
   }
 
   @Override
@@ -210,7 +211,7 @@ public class IoTDBStatement implements Statement {
         RpcUtils.verifySuccess(closeResp);
       }
     } catch (Exception e) {
-      throw new SQLException("Error occurs when canceling statement.", e);
+      throw new SQLException(JdbcMessages.CANCEL_STATEMENT_ERROR, e);
     }
     isCancelled = true;
   }
@@ -238,7 +239,7 @@ public class IoTDBStatement implements Statement {
         stmtId = -1;
       }
     } catch (Exception e) {
-      throw new SQLException("Error occurs when closing statement.", e);
+      throw new SQLException(JdbcMessages.CLOSE_STATEMENT_ERROR, e);
     }
   }
 
@@ -254,7 +255,7 @@ public class IoTDBStatement implements Statement {
 
   @Override
   public void closeOnCompletion() throws SQLException {
-    throw new SQLException("Not support closeOnCompletion");
+    throw new SQLException(JdbcMessages.NOT_SUPPORT_CLOSE_ON_COMPLETION);
   }
 
   /**
@@ -384,7 +385,7 @@ public class IoTDBStatement implements Statement {
     if (execResp.isSetColumns()) {
       queryId = execResp.getQueryId();
       if (execResp.queryResult == null) {
-        throw new SQLException("execResp.queryResult should never be null.");
+        throw new SQLException(JdbcMessages.QUERY_RESULT_SHOULD_NOT_BE_NULL);
       } else {
         this.resultSet =
             new IoTDBJDBCResultSet(
@@ -508,7 +509,7 @@ public class IoTDBStatement implements Statement {
     }
 
     if (!execResp.isSetQueryResult()) {
-      throw new SQLException("execResp.queryResult should never be null.");
+      throw new SQLException(JdbcMessages.QUERY_RESULT_SHOULD_NOT_BE_NULL);
     } else {
       this.resultSet =
           new IoTDBJDBCResultSet(
@@ -601,7 +602,7 @@ public class IoTDBStatement implements Statement {
   public void setFetchDirection(int direction) throws SQLException {
     checkConnection("setFetchDirection");
     if (direction != ResultSet.FETCH_FORWARD) {
-      throw new SQLException(String.format("direction %d is not supported!", direction));
+      throw new SQLException(String.format(JdbcMessages.DIRECTION_NOT_SUPPORTED, direction));
     }
   }
 
@@ -615,24 +616,25 @@ public class IoTDBStatement implements Statement {
   public void setFetchSize(int fetchSize) throws SQLException {
     checkConnection("setFetchSize");
     if (fetchSize < 0) {
-      throw new SQLException(String.format("fetchSize %d must be >= 0!", fetchSize));
+      throw new SQLException(
+          String.format(JdbcMessages.FETCH_SIZE_MUST_BE_NON_NEGATIVE, fetchSize));
     }
     this.fetchSize = fetchSize == 0 ? Config.DEFAULT_FETCH_SIZE : fetchSize;
   }
 
   @Override
   public ResultSet getGeneratedKeys() throws SQLException {
-    throw new SQLException("Not support getGeneratedKeys");
+    throw new SQLException(JdbcMessages.NOT_SUPPORT_GET_GENERATED_KEYS);
   }
 
   @Override
   public int getMaxFieldSize() throws SQLException {
-    throw new SQLException("Not support getMaxFieldSize");
+    throw new SQLException(JdbcMessages.NOT_SUPPORT_GET_MAX_FIELD_SIZE);
   }
 
   @Override
   public void setMaxFieldSize(int arg0) throws SQLException {
-    throw new SQLException("Not support getMaxFieldSize");
+    throw new SQLException(JdbcMessages.NOT_SUPPORT_GET_MAX_FIELD_SIZE);
   }
 
   @Override
@@ -644,7 +646,7 @@ public class IoTDBStatement implements Statement {
   public void setMaxRows(int num) throws SQLException {
     checkConnection("setMaxRows");
     if (num < 0) {
-      throw new SQLException(String.format("maxRows %d must be >= 0!", num));
+      throw new SQLException(String.format(JdbcMessages.MAX_ROWS_MUST_BE_NON_NEGATIVE, num));
     }
     this.maxRows = num;
   }
@@ -656,7 +658,7 @@ public class IoTDBStatement implements Statement {
 
   @Override
   public boolean getMoreResults(int arg0) throws SQLException {
-    throw new SQLException("Not support getMoreResults");
+    throw new SQLException(JdbcMessages.NOT_SUPPORT_GET_MORE_RESULTS);
   }
 
   @Override
@@ -678,12 +680,12 @@ public class IoTDBStatement implements Statement {
 
   @Override
   public int getResultSetConcurrency() throws SQLException {
-    throw new SQLException("Not support getResultSetConcurrency");
+    throw new SQLException(JdbcMessages.NOT_SUPPORT_GET_RESULT_SET_CONCURRENCY);
   }
 
   @Override
   public int getResultSetHoldability() throws SQLException {
-    throw new SQLException("Not support getResultSetHoldability");
+    throw new SQLException(JdbcMessages.NOT_SUPPORT_GET_RESULT_SET_HOLDABILITY);
   }
 
   @Override
@@ -704,7 +706,7 @@ public class IoTDBStatement implements Statement {
 
   @Override
   public boolean isCloseOnCompletion() throws SQLException {
-    throw new SQLException("Not support isCloseOnCompletion");
+    throw new SQLException(JdbcMessages.NOT_SUPPORT_IS_CLOSE_ON_COMPLETION);
   }
 
   @Override
@@ -714,27 +716,27 @@ public class IoTDBStatement implements Statement {
 
   @Override
   public boolean isPoolable() throws SQLException {
-    throw new SQLException("Not support isPoolable");
+    throw new SQLException(JdbcMessages.NOT_SUPPORT_IS_POOLABLE);
   }
 
   @Override
   public void setPoolable(boolean arg0) throws SQLException {
-    throw new SQLException("Not support setPoolable");
+    throw new SQLException(JdbcMessages.NOT_SUPPORT_SET_POOLABLE);
   }
 
   @Override
   public void setCursorName(String arg0) throws SQLException {
-    throw new SQLException("Not support setCursorName");
+    throw new SQLException(JdbcMessages.NOT_SUPPORT_SET_CURSOR_NAME);
   }
 
   @Override
   public void setEscapeProcessing(boolean enable) throws SQLException {
-    throw new SQLException("Not support setEscapeProcessing");
+    throw new SQLException(JdbcMessages.NOT_SUPPORT_SET_ESCAPE_PROCESSING);
   }
 
   private void checkConnection(String action) throws SQLException {
     if (connection == null || connection.isClosed()) {
-      throw new SQLException(String.format("Cannot %s after connection has been closed!", action));
+      throw new SQLException(String.format(JdbcMessages.CANNOT_AFTER_CONNECTION_CLOSED, action));
     }
   }
 
diff --git a/iotdb-client/jdbc/src/main/java/org/apache/iotdb/jdbc/IoTDBTablePreparedStatement.java b/iotdb-client/jdbc/src/main/java/org/apache/iotdb/jdbc/IoTDBTablePreparedStatement.java
index 722f1ed1a57..674ec164691 100644
--- a/iotdb-client/jdbc/src/main/java/org/apache/iotdb/jdbc/IoTDBTablePreparedStatement.java
+++ b/iotdb-client/jdbc/src/main/java/org/apache/iotdb/jdbc/IoTDBTablePreparedStatement.java
@@ -20,6 +20,7 @@
 package org.apache.iotdb.jdbc;
 
 import org.apache.iotdb.common.rpc.thrift.TSStatus;
+import org.apache.iotdb.jdbc.i18n.JdbcMessages;
 import org.apache.iotdb.rpc.RpcUtils;
 import org.apache.iotdb.rpc.StatementExecutionException;
 import org.apache.iotdb.rpc.TSStatusCode;
@@ -69,7 +70,7 @@ import java.util.Map;
 public class IoTDBTablePreparedStatement extends IoTDBStatement implements PreparedStatement {
 
   private static final Logger logger = LoggerFactory.getLogger(IoTDBTablePreparedStatement.class);
-  private static final String METHOD_NOT_SUPPORTED_STRING = "Method not supported";
+  private static final String METHOD_NOT_SUPPORTED_STRING = JdbcMessages.METHOD_NOT_SUPPORTED;
 
   private final String sql;
   private final String preparedStatementName;
@@ -114,7 +115,7 @@ public class IoTDBTablePreparedStatement extends IoTDBStatement implements Prepa
           parameterTypes[i] = Types.NULL;
         }
       } catch (TException | StatementExecutionException e) {
-        throw new SQLException("Failed to prepare statement: " + e.getMessage(), e);
+        throw new SQLException(JdbcMessages.FAILED_TO_PREPARE_STATEMENT + e.getMessage(), e);
       }
     } else {
       // For non-query statements, only keep text parameters for client-side substitution.
@@ -188,7 +189,7 @@ public class IoTDBTablePreparedStatement extends IoTDBStatement implements Prepa
       if (parameterTypes[i] == Types.NULL
           && parameterValues[i] == null
           && !parameters.containsKey(i + 1)) {
-        throw new SQLException("Parameter #" + (i + 1) + " is unset");
+        throw new SQLException(String.format(JdbcMessages.PARAMETER_UNSET, i + 1));
       }
     }
 
@@ -207,7 +208,7 @@ public class IoTDBTablePreparedStatement extends IoTDBStatement implements Prepa
       RpcUtils.verifySuccess(resp.getStatus());
       return resp;
     } catch (TException | StatementExecutionException e) {
-      throw new SQLException("Failed to execute prepared statement: " + e.getMessage(), e);
+      throw new SQLException(JdbcMessages.FAILED_TO_EXECUTE_PREPARED_STATEMENT + e.getMessage(), e);
     }
   }
 
@@ -245,10 +246,10 @@ public class IoTDBTablePreparedStatement extends IoTDBStatement implements Prepa
       try {
         TSStatus status = client.deallocatePreparedStatement(req);
         if (status.getCode() != TSStatusCode.SUCCESS_STATUS.getStatusCode()) {
-          logger.warn("Failed to deallocate prepared statement: {}", status.getMessage());
+          logger.warn(JdbcMessages.FAILED_TO_DEALLOCATE_PREPARED_STATEMENT, status.getMessage());
         }
       } catch (TException e) {
-        logger.warn("Error deallocating prepared statement", e);
+        logger.warn(JdbcMessages.ERROR_DEALLOCATING_PREPARED_STATEMENT, e);
       }
     }
     super.close();
@@ -433,7 +434,7 @@ public class IoTDBTablePreparedStatement extends IoTDBStatement implements Prepa
       setPreparedParameterValue(parameterIndex, time, Types.BIGINT);
       this.parameters.put(parameterIndex, Long.toString(time));
     } catch (TException e) {
-      throw new SQLException("Failed to get time precision: " + e.getMessage(), e);
+      throw new SQLException(JdbcMessages.FAILED_TO_GET_TIME_PRECISION + e.getMessage(), e);
     }
   }
 
@@ -557,7 +558,7 @@ public class IoTDBTablePreparedStatement extends IoTDBStatement implements Prepa
       byte[] bytes = ReadWriteIOUtils.readBytes(x, length);
       setBytes(parameterIndex, bytes);
     } catch (IOException e) {
-      throw new SQLException("Failed to read binary stream: " + e.getMessage(), e);
+      throw new SQLException(JdbcMessages.FAILED_TO_READ_BINARY_STREAM + e.getMessage(), e);
     }
   }
 
@@ -689,7 +690,7 @@ public class IoTDBTablePreparedStatement extends IoTDBStatement implements Prepa
     StringBuilder newSql = new StringBuilder(parts.get(0));
     for (int i = 1; i < parts.size(); i++) {
       if (!parameters.containsKey(i)) {
-        throw new SQLException("Parameter #" + i + " is unset");
+        throw new SQLException(String.format(JdbcMessages.PARAMETER_UNSET, i));
       }
       newSql.append(parameters.get(i));
       newSql.append(parts.get(i));
diff --git a/iotdb-client/jdbc/src/main/java/org/apache/iotdb/jdbc/IoTDBTracingInfo.java b/iotdb-client/jdbc/src/main/java/org/apache/iotdb/jdbc/IoTDBTracingInfo.java
index e6c2a147e70..57a2724fccc 100644
--- a/iotdb-client/jdbc/src/main/java/org/apache/iotdb/jdbc/IoTDBTracingInfo.java
+++ b/iotdb-client/jdbc/src/main/java/org/apache/iotdb/jdbc/IoTDBTracingInfo.java
@@ -19,6 +19,7 @@
 
 package org.apache.iotdb.jdbc;
 
+import org.apache.iotdb.jdbc.i18n.JdbcMessages;
 import org.apache.iotdb.service.rpc.thrift.TSTracingInfo;
 
 import java.util.List;
@@ -69,7 +70,7 @@ public class IoTDBTracingInfo {
       case "overlappedPageNum":
         return tsTracingInfo.getOverlappedPageNum();
       default:
-        throw new Exception("Invalid statistics name!");
+        throw new Exception(JdbcMessages.INVALID_STATISTICS_NAME);
     }
   }
 
@@ -101,7 +102,7 @@ public class IoTDBTracingInfo {
             tsTracingInfo.getOverlappedPageNum(),
             (double) tsTracingInfo.getOverlappedPageNum() / tsTracingInfo.getTotalPageNum() * 100);
       default:
-        throw new Exception("Invalid statistics name!");
+        throw new Exception(JdbcMessages.INVALID_STATISTICS_NAME);
     }
   }
 }
diff --git a/iotdb-client/jdbc/src/main/java/org/apache/iotdb/jdbc/StringUtils.java b/iotdb-client/jdbc/src/main/java/org/apache/iotdb/jdbc/StringUtils.java
index 959aa7304ca..a7bdaab0e67 100644
--- a/iotdb-client/jdbc/src/main/java/org/apache/iotdb/jdbc/StringUtils.java
+++ b/iotdb-client/jdbc/src/main/java/org/apache/iotdb/jdbc/StringUtils.java
@@ -19,6 +19,8 @@
 
 package org.apache.iotdb.jdbc;
 
+import org.apache.iotdb.jdbc.i18n.JdbcMessages;
+
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
@@ -55,7 +57,7 @@ public class StringUtils {
     try {
       toPlainStringMethod = BigDecimal.class.getMethod("toPlainString");
     } catch (NoSuchMethodException nsme) {
-      LOGGER.warn("To plain String method Error:", nsme);
+      LOGGER.warn(JdbcMessages.TO_PLAIN_STRING_ERROR, nsme);
     }
   }
 
@@ -67,7 +69,7 @@ public class StringUtils {
       try {
         return (String) toPlainStringMethod.invoke(decimal, null);
       } catch (InvocationTargetException | IllegalAccessException e) {
-        LOGGER.warn("consistent to String Error:", e);
+        LOGGER.warn(JdbcMessages.CONSISTENT_TO_STRING_ERROR, e);
       }
     }
     return decimal.toString();
diff --git a/iotdb-client/jdbc/src/main/java/org/apache/iotdb/jdbc/relational/IoTDBRelationalDatabaseMetadata.java b/iotdb-client/jdbc/src/main/java/org/apache/iotdb/jdbc/relational/IoTDBRelationalDatabaseMetadata.java
index 54236998a5a..7ddfca1c01a 100644
--- a/iotdb-client/jdbc/src/main/java/org/apache/iotdb/jdbc/relational/IoTDBRelationalDatabaseMetadata.java
+++ b/iotdb-client/jdbc/src/main/java/org/apache/iotdb/jdbc/relational/IoTDBRelationalDatabaseMetadata.java
@@ -23,6 +23,7 @@ import org.apache.iotdb.jdbc.Field;
 import org.apache.iotdb.jdbc.IoTDBAbstractDatabaseMetadata;
 import org.apache.iotdb.jdbc.IoTDBConnection;
 import org.apache.iotdb.jdbc.IoTDBJDBCResultSet;
+import org.apache.iotdb.jdbc.i18n.JdbcMessages;
 import org.apache.iotdb.service.rpc.thrift.IClientRPCService;
 
 import org.apache.tsfile.enums.TSDataType;
@@ -175,7 +176,7 @@ public class IoTDBRelationalDatabaseMetadata extends IoTDBAbstractDatabaseMetada
       sqlKeywordsThatArentSQL92 = keywordBuf.toString();
 
     } catch (Exception e) {
-      LOGGER.error("Error when initializing SQL keywords: ", e);
+      LOGGER.error(JdbcMessages.RELATIONAL_INIT_SQL_KEYWORDS_ERROR, e);
       throw new RuntimeException(e);
     }
   }
@@ -616,7 +617,7 @@ public class IoTDBRelationalDatabaseMetadata extends IoTDBAbstractDatabaseMetada
     try {
       tsBlock = convertTsBlock(valuesList, tsDataTypeList);
     } catch (IOException e) {
-      LOGGER.error("Get primary keys error: {}", e.getMessage());
+      LOGGER.error(JdbcMessages.RELATIONAL_GET_PRIMARY_KEYS_ERROR, e.getMessage());
     } finally {
       close(null, stmt);
     }
diff --git a/iotdb-client/service-rpc/pom.xml b/iotdb-client/service-rpc/pom.xml
index 63144e7cb06..98a5e0d727e 100644
--- a/iotdb-client/service-rpc/pom.xml
+++ b/iotdb-client/service-rpc/pom.xml
@@ -82,6 +82,10 @@
     </dependencies>
     <build>
         <plugins>
+            <plugin>
+                <groupId>org.codehaus.mojo</groupId>
+                <artifactId>build-helper-maven-plugin</artifactId>
+            </plugin>
             <!--
         Generate an OSGI compatible MANIFEST file.
       -->
diff --git a/iotdb-client/service-rpc/src/main/i18n/en/org/apache/iotdb/rpc/i18n/RpcMessages.java b/iotdb-client/service-rpc/src/main/i18n/en/org/apache/iotdb/rpc/i18n/RpcMessages.java
new file mode 100644
index 00000000000..0e545164e8d
--- /dev/null
+++ b/iotdb-client/service-rpc/src/main/i18n/en/org/apache/iotdb/rpc/i18n/RpcMessages.java
@@ -0,0 +1,82 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.iotdb.rpc.i18n;
+
+public final class RpcMessages {
+
+  // TElasticFramedTransport - FrameError
+  public static final String FRAME_ERROR_HTTP_REQUEST =
+      "Singular frame size (%d) detected, you may be sending HTTP GET/POST%s "
+          + "requests to the Thrift-RPC port, please confirm that you are using the right port";
+  public static final String FRAME_ERROR_TLS_REQUEST =
+      "Singular frame size (%d) detected, you may be sending TLS ClientHello "
+          + "requests%s to the Non-SSL Thrift-RPC port, please confirm that you are using "
+          + "the right configuration";
+  public static final String FRAME_ERROR_NEGATIVE_FRAME_SIZE =
+      "Read a negative frame size (%d)%s!";
+  public static final String FRAME_ERROR_FRAME_SIZE_EXCEEDED =
+      "Frame size (%d) larger than protect max size (%d)%s!";
+  public static final String FRAME_ERROR_STRING_LENGTH_EXCEEDED =
+      "String length (%d) larger than protect max size (%d)%s!";
+
+  // TElasticFramedTransport - SSL
+  public static final String NON_SSL_TO_SSL_PORT =
+      "You may be sending non-SSL requests"
+          + "%s to the SSL-enabled Thrift-RPC port, please confirm that you are "
+          + "using the right configuration";
+
+  // ConfigurableTByteBuffer
+  public static final String UNEXPECTED_END_OF_INPUT = "Unexpected end of input buffer";
+  public static final String NOT_ENOUGH_ROOM_IN_OUTPUT = "Not enough room in output buffer";
+
+  // BaseRpcTransportFactory
+  public static final String COULD_NOT_LOAD_KEYSTORE =
+      "Could not load keystore or truststore file";
+
+  // IoTDBRpcDataSet / IoTDBJDBCDataSet
+  public static final String CLOSE_OPERATION_SERVER_ERROR =
+      "Error occurs for close operation in server side because ";
+  public static final String CLOSE_OPERATION_CONNECTION_ERROR =
+      "Error occurs when connecting to server for close operation ";
+  public static final String DATASET_ALREADY_CLOSED = "This DataSet is already closed";
+  public static final String COLUMN_INDEX_SHOULD_START_FROM_1 =
+      "column index should start from 1";
+  public static final String COLUMN_INDEX_OUT_OF_RANGE =
+      "column index %d out of range %d";
+  public static final String UNKNOWN_COLUMN_NAME = "Unknown column name: ";
+  public static final String NO_RECORD_REMAINS = "No record remains";
+  public static final String CANNOT_CLOSE_DATASET =
+      "Cannot close dataset, because of network connection: {} ";
+
+  // RpcUtils
+  public static final String UNKNOWN_TIME_PRECISION = "Unknown time precision: ";
+  public static final String UNKNOWN_TIME_FACTOR = "Unknown time factor: ";
+
+  // PreparedParameterSerde
+  public static final String FAILED_TO_SERIALIZE_PARAMETERS =
+      "Failed to serialize parameters";
+  public static final String INVALID_PARAMETER_COUNT = "Invalid parameter count: ";
+  public static final String UNSUPPORTED_TYPE = "Unsupported type: ";
+
+  // SynchronizedHandler
+  public static final String ERROR_IN_CALLING_METHOD = "Error in calling method ";
+
+  private RpcMessages() {}
+}
diff --git a/iotdb-client/service-rpc/src/main/i18n/zh/org/apache/iotdb/rpc/i18n/RpcMessages.java b/iotdb-client/service-rpc/src/main/i18n/zh/org/apache/iotdb/rpc/i18n/RpcMessages.java
new file mode 100644
index 00000000000..03faa1dbb83
--- /dev/null
+++ b/iotdb-client/service-rpc/src/main/i18n/zh/org/apache/iotdb/rpc/i18n/RpcMessages.java
@@ -0,0 +1,70 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.iotdb.rpc.i18n;
+
+public final class RpcMessages {
+
+  // TElasticFramedTransport - FrameError
+  public static final String FRAME_ERROR_HTTP_REQUEST =
+      "检测到异常帧大小 (%d),可能正在发送 HTTP GET/POST%s 请求到 Thrift-RPC 端口,请确认使用了正确的端口";
+  public static final String FRAME_ERROR_TLS_REQUEST =
+      "检测到异常帧大小 (%d),可能正在发送 TLS ClientHello 请求%s"
+          + "到未启用 SSL 的 Thrift-RPC 端口,请确认使用了正确的配置";
+  public static final String FRAME_ERROR_NEGATIVE_FRAME_SIZE = "读取到负数帧大小 (%d)%s!";
+  public static final String FRAME_ERROR_FRAME_SIZE_EXCEEDED =
+      "帧大小 (%d) 超过保护最大值 (%d)%s!";
+  public static final String FRAME_ERROR_STRING_LENGTH_EXCEEDED =
+      "字符串长度 (%d) 超过保护最大值 (%d)%s!";
+
+  // TElasticFramedTransport - SSL
+  public static final String NON_SSL_TO_SSL_PORT =
+      "可能正在发送非 SSL 请求%s到启用了 SSL 的 Thrift-RPC 端口,请确认使用了正确的配置";
+
+  // ConfigurableTByteBuffer
+  public static final String UNEXPECTED_END_OF_INPUT = "输入缓冲区意外结束";
+  public static final String NOT_ENOUGH_ROOM_IN_OUTPUT = "输出缓冲区空间不足";
+
+  // BaseRpcTransportFactory
+  public static final String COULD_NOT_LOAD_KEYSTORE = "无法加载密钥库或信任库文件";
+
+  // IoTDBRpcDataSet / IoTDBJDBCDataSet
+  public static final String CLOSE_OPERATION_SERVER_ERROR = "服务端关闭操作失败,原因:";
+  public static final String CLOSE_OPERATION_CONNECTION_ERROR = "连接服务端执行关闭操作时出错 ";
+  public static final String DATASET_ALREADY_CLOSED = "该数据集已关闭";
+  public static final String COLUMN_INDEX_SHOULD_START_FROM_1 = "列索引应从 1 开始";
+  public static final String COLUMN_INDEX_OUT_OF_RANGE = "列索引 %d 超出范围 %d";
+  public static final String UNKNOWN_COLUMN_NAME = "未知列名:";
+  public static final String NO_RECORD_REMAINS = "没有剩余记录";
+  public static final String CANNOT_CLOSE_DATASET = "无法关闭数据集,网络连接异常:{} ";
+
+  // RpcUtils
+  public static final String UNKNOWN_TIME_PRECISION = "未知时间精度:";
+  public static final String UNKNOWN_TIME_FACTOR = "未知时间因子:";
+
+  // PreparedParameterSerde
+  public static final String FAILED_TO_SERIALIZE_PARAMETERS = "序列化参数失败";
+  public static final String INVALID_PARAMETER_COUNT = "无效的参数数量:";
+  public static final String UNSUPPORTED_TYPE = "不支持的类型:";
+
+  // SynchronizedHandler
+  public static final String ERROR_IN_CALLING_METHOD = "调用方法时出错:";
+
+  private RpcMessages() {}
+}
diff --git a/iotdb-client/service-rpc/src/main/java/org/apache/iotdb/rpc/BaseRpcTransportFactory.java b/iotdb-client/service-rpc/src/main/java/org/apache/iotdb/rpc/BaseRpcTransportFactory.java
index eccebe2eafe..22e104b6a58 100644
--- a/iotdb-client/service-rpc/src/main/java/org/apache/iotdb/rpc/BaseRpcTransportFactory.java
+++ b/iotdb-client/service-rpc/src/main/java/org/apache/iotdb/rpc/BaseRpcTransportFactory.java
@@ -19,6 +19,8 @@
 
 package org.apache.iotdb.rpc;
 
+import org.apache.iotdb.rpc.i18n.RpcMessages;
+
 import org.apache.thrift.transport.TMemoryInputTransport;
 import org.apache.thrift.transport.TSSLTransportFactory;
 import org.apache.thrift.transport.TSocket;
@@ -103,7 +105,7 @@ public class BaseRpcTransportFactory extends TTransportFactory {
       params.setTrustStore(trustStore, trustStorePwd);
       params.setKeyStore(keyStore, keyStorePwd);
     } else {
-      throw new TTransportException(new IOException("Could not load keystore or truststore file"));
+      throw new TTransportException(new IOException(RpcMessages.COULD_NOT_LOAD_KEYSTORE));
     }
     TTransport transport = TSSLTransportFactory.getClientSocket(ip, port, timeout, params);
     return inner.getTransport(transport);
diff --git a/iotdb-client/service-rpc/src/main/java/org/apache/iotdb/rpc/ConfigurableTByteBuffer.java b/iotdb-client/service-rpc/src/main/java/org/apache/iotdb/rpc/ConfigurableTByteBuffer.java
index 5cbd33f3f1e..ad801a9e9be 100644
--- a/iotdb-client/service-rpc/src/main/java/org/apache/iotdb/rpc/ConfigurableTByteBuffer.java
+++ b/iotdb-client/service-rpc/src/main/java/org/apache/iotdb/rpc/ConfigurableTByteBuffer.java
@@ -19,6 +19,8 @@
 
 package org.apache.iotdb.rpc;
 
+import org.apache.iotdb.rpc.i18n.RpcMessages;
+
 import org.apache.thrift.TConfiguration;
 import org.apache.thrift.transport.TEndpointTransport;
 import org.apache.thrift.transport.TTransportException;
@@ -67,7 +69,7 @@ public class ConfigurableTByteBuffer extends TEndpointTransport {
       try {
         this.byteBuffer.get(buf, off, n);
       } catch (BufferUnderflowException e) {
-        throw new TTransportException("Unexpected end of input buffer", e);
+        throw new TTransportException(RpcMessages.UNEXPECTED_END_OF_INPUT, e);
       }
     }
 
@@ -78,7 +80,7 @@ public class ConfigurableTByteBuffer extends TEndpointTransport {
     try {
       this.byteBuffer.put(buf, off, len);
     } catch (BufferOverflowException e) {
-      throw new TTransportException("Not enough room in output buffer", e);
+      throw new TTransportException(RpcMessages.NOT_ENOUGH_ROOM_IN_OUTPUT, e);
     }
   }
 
diff --git a/iotdb-client/service-rpc/src/main/java/org/apache/iotdb/rpc/IoTDBJDBCDataSet.java b/iotdb-client/service-rpc/src/main/java/org/apache/iotdb/rpc/IoTDBJDBCDataSet.java
index 43064ecdaa9..02b5cc12fb5 100644
--- a/iotdb-client/service-rpc/src/main/java/org/apache/iotdb/rpc/IoTDBJDBCDataSet.java
+++ b/iotdb-client/service-rpc/src/main/java/org/apache/iotdb/rpc/IoTDBJDBCDataSet.java
@@ -20,6 +20,7 @@
 package org.apache.iotdb.rpc;
 
 import org.apache.iotdb.common.rpc.thrift.TSStatus;
+import org.apache.iotdb.rpc.i18n.RpcMessages;
 import org.apache.iotdb.service.rpc.thrift.IClientRPCService;
 import org.apache.iotdb.service.rpc.thrift.TSCloseOperationReq;
 import org.apache.iotdb.service.rpc.thrift.TSFetchResultsReq;
@@ -332,10 +333,9 @@ public class IoTDBJDBCDataSet {
         TSStatus closeResp = client.closeOperation(closeReq);
         RpcUtils.verifySuccess(closeResp);
       } catch (StatementExecutionException e) {
-        throw new StatementExecutionException(
-            "Error occurs for close operation in server side because ", e);
+        throw new StatementExecutionException(RpcMessages.CLOSE_OPERATION_SERVER_ERROR, e);
       } catch (TException e) {
-        throw new TException("Error occurs when connecting to server for close operation ", e);
+        throw new TException(RpcMessages.CLOSE_OPERATION_CONNECTION_ERROR, e);
       }
     }
     client = null;
@@ -352,8 +352,7 @@ public class IoTDBJDBCDataSet {
         close();
         return false;
       } catch (TException e) {
-        throw new IoTDBConnectionException(
-            "Cannot close dataset, because of network connection: {} ", e);
+        throw new IoTDBConnectionException(RpcMessages.CANNOT_CLOSE_DATASET, e);
       }
     }
     if (fetchResults() && hasCachedResults()) {
@@ -364,8 +363,7 @@ public class IoTDBJDBCDataSet {
         close();
         return false;
       } catch (TException e) {
-        throw new IoTDBConnectionException(
-            "Cannot close dataset, because of network connection: {} ", e);
+        throw new IoTDBConnectionException(RpcMessages.CANNOT_CLOSE_DATASET, e);
       }
     }
   }
@@ -653,18 +651,18 @@ public class IoTDBJDBCDataSet {
 
   public String findColumnNameByIndex(int columnIndex) throws StatementExecutionException {
     if (columnIndex <= 0) {
-      throw new StatementExecutionException("column index should start from 1");
+      throw new StatementExecutionException(RpcMessages.COLUMN_INDEX_SHOULD_START_FROM_1);
     }
     if (columnIndex > columnNameList.size()) {
       throw new StatementExecutionException(
-          String.format("column index %d out of range %d", columnIndex, columnNameList.size()));
+          String.format(RpcMessages.COLUMN_INDEX_OUT_OF_RANGE, columnIndex, columnNameList.size()));
     }
     return columnNameList.get(columnIndex - 1);
   }
 
   public void checkRecord() throws StatementExecutionException {
     if (Objects.isNull(tsQueryDataSet)) {
-      throw new StatementExecutionException("No record remains");
+      throw new StatementExecutionException(RpcMessages.NO_RECORD_REMAINS);
     }
   }
 
diff --git a/iotdb-client/service-rpc/src/main/java/org/apache/iotdb/rpc/IoTDBRpcDataSet.java b/iotdb-client/service-rpc/src/main/java/org/apache/iotdb/rpc/IoTDBRpcDataSet.java
index 940b3460d92..42bf974a3eb 100644
--- a/iotdb-client/service-rpc/src/main/java/org/apache/iotdb/rpc/IoTDBRpcDataSet.java
+++ b/iotdb-client/service-rpc/src/main/java/org/apache/iotdb/rpc/IoTDBRpcDataSet.java
@@ -20,6 +20,7 @@
 package org.apache.iotdb.rpc;
 
 import org.apache.iotdb.common.rpc.thrift.TSStatus;
+import org.apache.iotdb.rpc.i18n.RpcMessages;
 import org.apache.iotdb.service.rpc.thrift.IClientRPCService;
 import org.apache.iotdb.service.rpc.thrift.TSCloseOperationReq;
 import org.apache.iotdb.service.rpc.thrift.TSFetchResultsReq;
@@ -217,10 +218,9 @@ public class IoTDBRpcDataSet {
         TSStatus closeResp = client.closeOperation(closeReq);
         RpcUtils.verifySuccess(closeResp);
       } catch (StatementExecutionException e) {
-        throw new StatementExecutionException(
-            "Error occurs for close operation in server side because ", e);
+        throw new StatementExecutionException(RpcMessages.CLOSE_OPERATION_SERVER_ERROR, e);
       } catch (TException e) {
-        throw new TException("Error occurs when connecting to server for close operation ", e);
+        throw new TException(RpcMessages.CLOSE_OPERATION_CONNECTION_ERROR, e);
       }
     }
     client = null;
@@ -248,15 +248,14 @@ public class IoTDBRpcDataSet {
         close();
         return false;
       } catch (TException e) {
-        throw new IoTDBConnectionException(
-            "Cannot close dataset, because of network connection: {} ", e);
+        throw new IoTDBConnectionException(RpcMessages.CANNOT_CLOSE_DATASET, e);
       }
     }
   }
 
   public boolean fetchResults() throws StatementExecutionException, IoTDBConnectionException {
     if (isClosed) {
-      throw new IoTDBConnectionException("This DataSet is already closed");
+      throw new IoTDBConnectionException(RpcMessages.DATASET_ALREADY_CLOSED);
     }
     TSFetchResultsReq req = new TSFetchResultsReq(sessionId, sql, fetchSize, queryId, true);
     req.setStatementId(statementId);
@@ -618,11 +617,11 @@ public class IoTDBRpcDataSet {
 
   public String findColumnNameByIndex(int columnIndex) throws StatementExecutionException {
     if (columnIndex <= 0) {
-      throw new StatementExecutionException("column index should start from 1");
+      throw new StatementExecutionException(RpcMessages.COLUMN_INDEX_SHOULD_START_FROM_1);
     }
     if (columnIndex > columnNameList.size()) {
       throw new StatementExecutionException(
-          String.format("column index %d out of range %d", columnIndex, columnNameList.size()));
+          String.format(RpcMessages.COLUMN_INDEX_OUT_OF_RANGE, columnIndex, columnNameList.size()));
     }
     return columnNameList.get(columnIndex - 1);
   }
@@ -631,7 +630,7 @@ public class IoTDBRpcDataSet {
   private int getTsBlockColumnIndexForColumnName(String columnName) {
     Integer index = columnName2TsBlockColumnIndexMap.get(columnName);
     if (index == null) {
-      throw new IllegalArgumentException("Unknown column name: " + columnName);
+      throw new IllegalArgumentException(RpcMessages.UNKNOWN_COLUMN_NAME + columnName);
     }
     return index;
   }
@@ -645,7 +644,7 @@ public class IoTDBRpcDataSet {
         || tsBlockIndex >= tsBlockSize
         || queryResult == null
         || curTsBlock == null) {
-      throw new StatementExecutionException("No record remains");
+      throw new StatementExecutionException(RpcMessages.NO_RECORD_REMAINS);
     }
   }
 
diff --git a/iotdb-client/service-rpc/src/main/java/org/apache/iotdb/rpc/RpcUtils.java b/iotdb-client/service-rpc/src/main/java/org/apache/iotdb/rpc/RpcUtils.java
index a4cc34a81b9..1eb30967405 100644
--- a/iotdb-client/service-rpc/src/main/java/org/apache/iotdb/rpc/RpcUtils.java
+++ b/iotdb-client/service-rpc/src/main/java/org/apache/iotdb/rpc/RpcUtils.java
@@ -21,6 +21,7 @@ package org.apache.iotdb.rpc;
 
 import org.apache.iotdb.common.rpc.thrift.TEndPoint;
 import org.apache.iotdb.common.rpc.thrift.TSStatus;
+import org.apache.iotdb.rpc.i18n.RpcMessages;
 import org.apache.iotdb.service.rpc.thrift.IClientRPCService;
 import org.apache.iotdb.service.rpc.thrift.TSExecuteStatementResp;
 import org.apache.iotdb.service.rpc.thrift.TSFetchResultsResp;
@@ -459,7 +460,7 @@ public class RpcUtils {
           case NANOSECOND:
             return 1_000_000_000;
           default:
-            throw new IllegalArgumentException("Unknown time precision: " + precision);
+            throw new IllegalArgumentException(RpcMessages.UNKNOWN_TIME_PRECISION + precision);
         }
       }
     }
@@ -475,7 +476,7 @@ public class RpcUtils {
       case 1_000_000_000:
         return NANOSECOND;
       default:
-        throw new IllegalArgumentException("Unknown time factor: " + timeFactor);
+        throw new IllegalArgumentException(RpcMessages.UNKNOWN_TIME_FACTOR + timeFactor);
     }
   }
 }
diff --git a/iotdb-client/service-rpc/src/main/java/org/apache/iotdb/rpc/SynchronizedHandler.java b/iotdb-client/service-rpc/src/main/java/org/apache/iotdb/rpc/SynchronizedHandler.java
index d952dc9eec9..4e764664ead 100644
--- a/iotdb-client/service-rpc/src/main/java/org/apache/iotdb/rpc/SynchronizedHandler.java
+++ b/iotdb-client/service-rpc/src/main/java/org/apache/iotdb/rpc/SynchronizedHandler.java
@@ -19,6 +19,7 @@
 
 package org.apache.iotdb.rpc;
 
+import org.apache.iotdb.rpc.i18n.RpcMessages;
 import org.apache.iotdb.service.rpc.thrift.IClientRPCService;
 
 import org.apache.thrift.TException;
@@ -47,10 +48,11 @@ public class SynchronizedHandler implements InvocationHandler {
         throw e.getTargetException();
       } else {
         // should not happen
-        throw new TException("Error in calling method " + method.getName(), e.getTargetException());
+        throw new TException(
+            RpcMessages.ERROR_IN_CALLING_METHOD + method.getName(), e.getTargetException());
       }
     } catch (Exception e) {
-      throw new TException("Error in calling method " + method.getName(), e);
+      throw new TException(RpcMessages.ERROR_IN_CALLING_METHOD + method.getName(), e);
     }
   }
 }
diff --git a/iotdb-client/service-rpc/src/main/java/org/apache/iotdb/rpc/TElasticFramedTransport.java b/iotdb-client/service-rpc/src/main/java/org/apache/iotdb/rpc/TElasticFramedTransport.java
index 6c5f73df6e7..6a174f86b6a 100644
--- a/iotdb-client/service-rpc/src/main/java/org/apache/iotdb/rpc/TElasticFramedTransport.java
+++ b/iotdb-client/service-rpc/src/main/java/org/apache/iotdb/rpc/TElasticFramedTransport.java
@@ -19,6 +19,8 @@
 
 package org.apache.iotdb.rpc;
 
+import org.apache.iotdb.rpc.i18n.RpcMessages;
+
 import org.apache.thrift.TConfiguration;
 import org.apache.thrift.transport.TSocket;
 import org.apache.thrift.transport.TTransport;
@@ -162,9 +164,7 @@ public class TElasticFramedTransport extends TTransport {
         throw new TTransportException(
             TTransportException.CORRUPTED_DATA,
             String.format(
-                "You may be sending non-SSL requests"
-                    + "%s to the SSL-enabled Thrift-RPC port, please confirm that you are "
-                    + "using the right configuration",
+                RpcMessages.NON_SSL_TO_SSL_PORT,
                 remoteAddress == null ? "" : FROM + remoteAddress));
       }
       throw e;
@@ -217,16 +217,11 @@ public class TElasticFramedTransport extends TTransport {
   }
 
   private enum FrameError {
-    HTTP_REQUEST(
-        "Singular frame size (%d) detected, you may be sending HTTP GET/POST%s "
-            + "requests to the Thrift-RPC port, please confirm that you are using the right port"),
-    TLS_REQUEST(
-        "Singular frame size (%d) detected, you may be sending TLS ClientHello "
-            + "requests%s to the Non-SSL Thrift-RPC port, please confirm that you are using "
-            + "the right configuration"),
-    NEGATIVE_FRAME_SIZE("Read a negative frame size (%d)%s!"),
-    FRAME_SIZE_EXCEEDED("Frame size (%d) larger than protect max size (%d)%s!"),
-    STRING_LENGTH_EXCEEDED("String length (%d) larger than protect max size (%d)%s!");
+    HTTP_REQUEST(RpcMessages.FRAME_ERROR_HTTP_REQUEST),
+    TLS_REQUEST(RpcMessages.FRAME_ERROR_TLS_REQUEST),
+    NEGATIVE_FRAME_SIZE(RpcMessages.FRAME_ERROR_NEGATIVE_FRAME_SIZE),
+    FRAME_SIZE_EXCEEDED(RpcMessages.FRAME_ERROR_FRAME_SIZE_EXCEEDED),
+    STRING_LENGTH_EXCEEDED(RpcMessages.FRAME_ERROR_STRING_LENGTH_EXCEEDED);
 
     private final String messageFormat;
 
diff --git a/iotdb-client/service-rpc/src/main/java/org/apache/iotdb/rpc/stmt/PreparedParameterSerde.java b/iotdb-client/service-rpc/src/main/java/org/apache/iotdb/rpc/stmt/PreparedParameterSerde.java
index 51a23a6af4c..86698e45573 100644
--- a/iotdb-client/service-rpc/src/main/java/org/apache/iotdb/rpc/stmt/PreparedParameterSerde.java
+++ b/iotdb-client/service-rpc/src/main/java/org/apache/iotdb/rpc/stmt/PreparedParameterSerde.java
@@ -19,6 +19,8 @@
 
 package org.apache.iotdb.rpc.stmt;
 
+import org.apache.iotdb.rpc.i18n.RpcMessages;
+
 import org.apache.tsfile.enums.TSDataType;
 import org.apache.tsfile.utils.Binary;
 import org.apache.tsfile.utils.PublicBAOS;
@@ -61,7 +63,7 @@ public class PreparedParameterSerde {
       return ByteBuffer.wrap(outputStream.getBuf(), 0, outputStream.size());
     } catch (IOException e) {
       // Should not happen with PublicBAOS
-      throw new IllegalStateException("Failed to serialize parameters", e);
+      throw new IllegalStateException(RpcMessages.FAILED_TO_SERIALIZE_PARAMETERS, e);
     }
   }
 
@@ -126,7 +128,7 @@ public class PreparedParameterSerde {
     buffer.rewind();
     int count = ReadWriteIOUtils.readInt(buffer);
     if (count < 0 || count > buffer.remaining()) {
-      throw new IllegalArgumentException("Invalid parameter count: " + count);
+      throw new IllegalArgumentException(RpcMessages.INVALID_PARAMETER_COUNT + count);
     }
 
     List<DeserializedParam> result = new ArrayList<>(count);
@@ -160,7 +162,7 @@ public class PreparedParameterSerde {
       case BLOB:
         return ReadWriteIOUtils.readBinary(buffer).getValues();
       default:
-        throw new IllegalArgumentException("Unsupported type: " + type);
+        throw new IllegalArgumentException(RpcMessages.UNSUPPORTED_TYPE + type);
     }
   }
 
diff --git a/iotdb-client/session/pom.xml b/iotdb-client/session/pom.xml
index d9306c1f61f..f375374d4ee 100644
--- a/iotdb-client/session/pom.xml
+++ b/iotdb-client/session/pom.xml
@@ -135,6 +135,10 @@
                     </usedDependencies>
                 </configuration>
             </plugin>
+            <plugin>
+                <groupId>org.codehaus.mojo</groupId>
+                <artifactId>build-helper-maven-plugin</artifactId>
+            </plugin>
         </plugins>
     </build>
     <profiles>
diff --git a/iotdb-client/session/src/main/i18n/en/org/apache/iotdb/session/i18n/SessionMessages.java b/iotdb-client/session/src/main/i18n/en/org/apache/iotdb/session/i18n/SessionMessages.java
new file mode 100644
index 00000000000..94e14129a56
--- /dev/null
+++ b/iotdb-client/session/src/main/i18n/en/org/apache/iotdb/session/i18n/SessionMessages.java
@@ -0,0 +1,262 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.iotdb.session.i18n;
+
+public final class SessionMessages {
+
+  // Session
+  public static final String NODE_URLS_EMPTY = "nodeUrls shouldn't be empty.";
+  public static final String REDIRECT_TWICE_LOG = "redirect twice";
+  public static final String REDIRECT_TWICE_LOG_WITH_SQL = "{} redirect twice";
+  public static final String REDIRECT_TWICE_MSG = "redirect twice, please try again.";
+  public static final String REDIRECT_TWICE_MSG_WITH_SQL =
+      "%s redirect twice, please try again.";
+  public static final String FAILED_TO_EXECUTE_FOR_ENDPOINT = "failed to execute '{}' for {}";
+  public static final String ALL_VALUES_NULL =
+      "All values of the {} are null,null values are {}";
+  public static final String SOME_VALUES_NULL =
+      "Some values of {} are null,null values are {}";
+  public static final String MEET_ERROR_WHEN_ASYNC_INSERT = "Meet error when async insert!";
+  public static final String MEASUREMENT_NON_NULL = "measurement should be non null value";
+  public static final String NO_TABLET_INSERTING = "No tablet is inserting!";
+  public static final String SESSION_NOT_OPEN =
+      "Session is not open, please invoke Session.open() first";
+  public static final String ALL_INSERT_DATA_IS_NULL = "All inserted data is null.";
+
+  // SessionConnection
+  public static final String CLUSTER_NO_NODES = "Cluster has no nodes to connect";
+  public static final String CLOSE_SESSION_ERROR =
+      "Error occurs when closing session at server. Maybe server is down.";
+  public static final String REDIRECT_QUERY_ERROR =
+      "need to redirect query, should not see this.";
+  public static final String RETRY_RECONNECTING =
+      "Retry attempt #{}, Reconnecting to other datanode";
+  public static final String NODE_DOWN_TRY_NEXT =
+      "The current node may have been down {}, try next node";
+  public static final String LOGIN_FAILED = "login in failed, because {}";
+  public static final String CLOSE_CONNECTION_FAILED = "close connection failed, {}";
+  public static final String THREAD_INTERRUPTED_DURING_RETRY =
+      "Thread {} was interrupted during retry {} with wait time {} ms. Exiting retry loop.";
+
+  // ThriftConnection
+  public static final String CLOSING_SESSION_FAILED =
+      "Closing Session-{} with {} failed.";
+
+  // NodesSupplier
+  public static final String FAILED_TO_CREATE_CONNECTION =
+      "Failed to create connection with {}.";
+  public static final String FAILED_TO_FETCH_DATA_NODE_LIST =
+      "Failed to fetch data node list from {}.";
+
+  // SessionUtils
+  public static final String NODE_URLS_IS_NULL = "nodeUrls is null";
+
+  // InternalNode (template)
+  public static final String DUPLICATED_CHILD_IN_TEMPLATE =
+      "Duplicated child of node in template.";
+
+  // SessionPool
+  public static final String SESSION_POOL_IS_CLOSED = "Session pool is closed";
+  public static final String CLOSE_THE_SESSION_FAILED = "close the session failed.";
+  public static final String TIMEOUT_TO_GET_CONNECTION =
+      "timeout to get a connection from %s";
+  public static final String INTERRUPTED = "Interrupted!";
+  public static final String CLOSING_SESSION_POOL = "closing the session pool, cleaning queues...";
+
+  // SessionPool - operation failed (warn)
+  public static final String INSERT_TABLET_FAILED = "insertTablet failed";
+  public static final String INSERT_ALIGNED_TABLET_FAILED = "insertAlignedTablet failed";
+  public static final String INSERT_TABLETS_FAILED = "insertTablets failed";
+  public static final String INSERT_ALIGNED_TABLETS_FAILED = "insertAlignedTablets failed";
+  public static final String INSERT_RECORDS_FAILED = "insertRecords failed";
+  public static final String INSERT_ALIGNED_RECORDS_FAILED = "insertAlignedRecords failed";
+  public static final String INSERT_RECORD_FAILED = "insertRecord failed";
+  public static final String INSERT_ALIGNED_RECORD_FAILED = "insertAlignedRecord failed";
+  public static final String INSERT_RECORDS_OF_ONE_DEVICE_FAILED =
+      "insertRecordsOfOneDevice failed";
+  public static final String INSERT_STRING_RECORDS_OF_ONE_DEVICE_FAILED =
+      "insertStringRecordsOfOneDevice failed";
+  public static final String INSERT_ALIGNED_RECORDS_OF_ONE_DEVICE_FAILED =
+      "insertAlignedRecordsOfOneDevice failed";
+  public static final String INSERT_ALIGNED_STRING_RECORDS_OF_ONE_DEVICE_FAILED =
+      "insertAlignedStringRecordsOfOneDevice failed";
+  public static final String DELETE_DATA_FAILED = "deleteData failed";
+  public static final String DELETE_TIMESERIES_FAILED = "deleteTimeseries failed";
+  public static final String SET_STORAGE_GROUP_FAILED = "setStorageGroup failed";
+  public static final String DELETE_STORAGE_GROUP_FAILED = "deleteStorageGroup failed";
+  public static final String DELETE_STORAGE_GROUPS_FAILED = "deleteStorageGroups failed";
+  public static final String CREATE_DATABASE_FAILED = "createDatabase failed";
+  public static final String DELETE_DATABASE_FAILED = "deleteDatabase failed";
+  public static final String DELETE_DATABASES_FAILED = "deleteDatabases failed";
+  public static final String CREATE_TIMESERIES_FAILED = "createTimeseries failed";
+  public static final String CREATE_ALIGNED_TIMESERIES_FAILED = "createAlignedTimeseries failed";
+  public static final String CREATE_MULTI_TIMESERIES_FAILED = "createMultiTimeseries failed";
+  public static final String CHECK_TIMESERIES_EXISTS_FAILED = "checkTimeseriesExists failed";
+  public static final String EXECUTE_QUERY_STATEMENT_FAILED = "executeQueryStatement failed";
+  public static final String EXECUTE_NON_QUERY_STATEMENT_FAILED =
+      "executeNonQueryStatement failed";
+  public static final String EXECUTE_RAW_DATA_QUERY_FAILED = "executeRawDataQuery failed";
+  public static final String EXECUTE_LAST_DATA_QUERY_FAILED = "executeLastDataQuery failed";
+  public static final String EXECUTE_AGGREGATION_QUERY_FAILED = "executeAggregationQuery failed";
+  public static final String GET_TIMESTAMP_PRECISION_FAILED = "getTimestampPrecision failed";
+  public static final String TEST_INSERT_TABLET_FAILED = "testInsertTablet failed";
+  public static final String TEST_INSERT_TABLETS_FAILED = "testInsertTablets failed";
+  public static final String TEST_INSERT_RECORD_FAILED = "testInsertRecord failed";
+  public static final String TEST_INSERT_RECORDS_FAILED = "testInsertRecords failed";
+  public static final String CREATE_SCHEMA_TEMPLATE_FAILED = "createSchemaTemplate failed";
+  public static final String ADD_ALIGNED_MEASUREMENTS_IN_TEMPLATE_FAILED =
+      "addAlignedMeasurementsInTemplate failed";
+  public static final String ADD_ALIGNED_MEASUREMENT_IN_TEMPLATE_FAILED =
+      "addAlignedMeasurementInTemplate failed";
+  public static final String ADD_UNALIGNED_MEASUREMENTS_IN_TEMPLATE_FAILED =
+      "addUnalignedMeasurementsInTemplate failed";
+  public static final String ADD_UNALIGNED_MEASUREMENT_IN_TEMPLATE_FAILED =
+      "addUnalignedMeasurementInTemplate failed";
+  public static final String DELETE_NODE_IN_TEMPLATE_FAILED = "deleteNodeInTemplate failed";
+  public static final String COUNT_MEASUREMENTS_IN_TEMPLATE_FAILED =
+      "countMeasurementsInTemplate failed";
+  public static final String IS_MEASUREMENT_IN_TEMPLATE_FAILED =
+      "isMeasurementInTemplate failed";
+  public static final String IS_PATH_EXIST_IN_TEMPLATE_FAILED =
+      "isPathExistInTemplata failed";
+  public static final String SHOW_MEASUREMENTS_IN_TEMPLATE_FAILED =
+      "showMeasurementsInTemplate failed";
+  public static final String SHOW_ALL_TEMPLATES_FAILED = "showAllTemplates failed";
+  public static final String SHOW_PATHS_TEMPLATE_SET_ON_FAILED =
+      "showPathsTemplateSetOn failed";
+  public static final String SHOW_PATHS_TEMPLATE_USING_ON_FAILED =
+      "showPathsTemplateUsingOn failed";
+  public static final String SET_SCHEMA_TEMPLATE_ON_FAILED =
+      "setSchemaTemplate [{}] on [{}] failed";
+  public static final String UNSET_SCHEMA_TEMPLATE_ON_FAILED =
+      "unsetSchemaTemplate [{}] on [{}] failed";
+  public static final String DROP_SCHEMA_TEMPLATE_FAILED =
+      "dropSchemaTemplate [{}] failed";
+  public static final String CREATE_TIMESERIES_OF_SCHEMA_TEMPLATE_FAILED =
+      "createTimeseriesOfSchemaTemplate {} failed";
+  public static final String SET_TIMEZONE_FAILED = "setTimeZone to [{}] failed";
+  public static final String FETCH_ALL_CONNECTIONS_FAILED = "fetchAllConnections failed";
+
+  // SessionPool - unexpected error (error)
+  public static final String UNEXPECTED_ERROR_IN_INSERT_TABLET =
+      "unexpected error in insertTablet";
+  public static final String UNEXPECTED_ERROR_IN_INSERT_ALIGNED_TABLET =
+      "unexpected error in insertAlignedTablet";
+  public static final String UNEXPECTED_ERROR_IN_INSERT_TABLETS =
+      "unexpected error in insertTablets";
+  public static final String UNEXPECTED_ERROR_IN_INSERT_ALIGNED_TABLETS =
+      "unexpected error in insertAlignedTablets";
+  public static final String UNEXPECTED_ERROR_IN_INSERT_RECORDS =
+      "unexpected error in insertRecords";
+  public static final String UNEXPECTED_ERROR_IN_INSERT_ALIGNED_RECORDS =
+      "unexpected error in insertAlignedRecords";
+  public static final String UNEXPECTED_ERROR_IN_INSERT_RECORD =
+      "unexpected error in insertRecord";
+  public static final String UNEXPECTED_ERROR_IN_INSERT_ALIGNED_RECORD =
+      "unexpected error in insertAlignedRecord";
+  public static final String UNEXPECTED_ERROR_IN_INSERT_RECORDS_OF_ONE_DEVICE =
+      "unexpected error in insertRecordsOfOneDevice";
+  public static final String UNEXPECTED_ERROR_IN_INSERT_STRING_RECORDS_OF_ONE_DEVICE =
+      "unexpected error in insertStringRecordsOfOneDevice";
+  public static final String UNEXPECTED_ERROR_IN_INSERT_ALIGNED_RECORDS_OF_ONE_DEVICE =
+      "unexpected error in insertAlignedRecordsOfOneDevice";
+  public static final String UNEXPECTED_ERROR_IN_INSERT_ALIGNED_STRING_RECORDS_OF_ONE_DEVICE =
+      "unexpected error in insertAlignedStringRecordsOfOneDevice";
+  public static final String UNEXPECTED_ERROR_IN_DELETE_DATA =
+      "unexpected error in deleteData";
+  public static final String UNEXPECTED_ERROR_IN_DELETE_TIMESERIES =
+      "unexpected error in deleteTimeseries";
+  public static final String UNEXPECTED_ERROR_IN_SET_STORAGE_GROUP =
+      "unexpected error in setStorageGroup";
+  public static final String UNEXPECTED_ERROR_IN_DELETE_STORAGE_GROUP =
+      "unexpected error in deleteStorageGroup";
+  public static final String UNEXPECTED_ERROR_IN_DELETE_STORAGE_GROUPS =
+      "unexpected error in deleteStorageGroups";
+  public static final String UNEXPECTED_ERROR_IN_CREATE_DATABASE =
+      "unexpected error in createDatabase";
+  public static final String UNEXPECTED_ERROR_IN_DELETE_DATABASE =
+      "unexpected error in deleteDatabase";
+  public static final String UNEXPECTED_ERROR_IN_DELETE_DATABASES =
+      "unexpected error in deleteDatabases";
+  public static final String UNEXPECTED_ERROR_IN_CREATE_TIMESERIES =
+      "unexpected error in createTimeseries";
+  public static final String UNEXPECTED_ERROR_IN_CREATE_ALIGNED_TIMESERIES =
+      "unexpected error in createAlignedTimeseries";
+  public static final String UNEXPECTED_ERROR_IN_CREATE_MULTI_TIMESERIES =
+      "unexpected error in createMultiTimeseries";
+  public static final String UNEXPECTED_ERROR_IN_CHECK_TIMESERIES_EXISTS =
+      "unexpected error in checkTimeseriesExists";
+  public static final String UNEXPECTED_ERROR_IN_EXECUTE_QUERY_STATEMENT =
+      "unexpected error in executeQueryStatement";
+  public static final String UNEXPECTED_ERROR_IN_EXECUTE_NON_QUERY_STATEMENT =
+      "unexpected error in executeNonQueryStatement";
+  public static final String UNEXPECTED_ERROR_IN_EXECUTE_RAW_DATA_QUERY =
+      "unexpected error in executeRawDataQuery";
+  public static final String UNEXPECTED_ERROR_IN_EXECUTE_LAST_DATA_QUERY =
+      "unexpected error in executeLastDataQuery";
+  public static final String UNEXPECTED_ERROR_IN_EXECUTE_AGGREGATION_QUERY =
+      "unexpected error in executeAggregationQuery";
+  public static final String UNEXPECTED_ERROR_IN_GET_TIMESTAMP_PRECISION =
+      "unexpected error in getTimestampPrecision";
+  public static final String UNEXPECTED_ERROR_IN_TEST_INSERT_TABLET =
+      "unexpected error in testInsertTablet";
+  public static final String UNEXPECTED_ERROR_IN_TEST_INSERT_TABLETS =
+      "unexpected error in testInsertTablets";
+  public static final String UNEXPECTED_ERROR_IN_TEST_INSERT_RECORD =
+      "unexpected error in testInsertRecord";
+  public static final String UNEXPECTED_ERROR_IN_TEST_INSERT_RECORDS =
+      "unexpected error in testInsertRecords";
+  public static final String UNEXPECTED_ERROR_IN_CREATE_SCHEMA_TEMPLATE =
+      "unexpected error in createSchemaTemplate";
+  public static final String UNEXPECTED_ERROR_IN_ADD_ALIGNED_MEASUREMENTS_IN_TEMPLATE =
+      "unexpected error in addAlignedMeasurementsInTemplate";
+  public static final String UNEXPECTED_ERROR_IN_ADD_ALIGNED_MEASUREMENT_IN_TEMPLATE =
+      "unexpected error in addAlignedMeasurementInTemplate";
+  public static final String UNEXPECTED_ERROR_IN_ADD_UNALIGNED_MEASUREMENTS_IN_TEMPLATE =
+      "unexpected error in addUnalignedMeasurementsInTemplate";
+  public static final String UNEXPECTED_ERROR_IN_ADD_UNALIGNED_MEASUREMENT_IN_TEMPLATE =
+      "unexpected error in addUnalignedMeasurementInTemplate";
+  public static final String UNEXPECTED_ERROR_IN_DELETE_NODE_IN_TEMPLATE =
+      "unexpected error in deleteNodeInTemplate";
+  public static final String UNEXPECTED_ERROR_IN_COUNT_MEASUREMENTS_IN_TEMPLATE =
+      "unexpected error in countMeasurementsInTemplate";
+  public static final String UNEXPECTED_ERROR_IN_IS_MEASUREMENT_IN_TEMPLATE =
+      "unexpected error in isMeasurementInTemplate";
+  public static final String UNEXPECTED_ERROR_IN_IS_PATH_EXIST_IN_TEMPLATE =
+      "unexpected error in isPathExistInTemplate";
+  public static final String UNEXPECTED_ERROR_IN_SHOW_MEASUREMENTS_IN_TEMPLATE =
+      "unexpected error in showMeasurementsInTemplate";
+  public static final String UNEXPECTED_ERROR_IN_SHOW_ALL_TEMPLATES =
+      "unexpected error in showAllTemplates";
+  public static final String UNEXPECTED_ERROR_IN_SHOW_PATHS_TEMPLATE_SET_ON =
+      "unexpected error in showPathsTemplateSetOn";
+  public static final String UNEXPECTED_ERROR_IN_SHOW_PATHS_TEMPLATE_USING_ON =
+      "unexpected error in showPathsTemplateUsingOn";
+  public static final String UNEXPECTED_ERROR_IN_SET_SCHEMA_TEMPLATE =
+      "unexpected error in setSchemaTemplate";
+  public static final String UNEXPECTED_ERROR_IN_UNSET_SCHEMA_TEMPLATE =
+      "unexpected error in unsetSchemaTemplate";
+  public static final String UNEXPECTED_ERROR_IN_DROP_SCHEMA_TEMPLATE =
+      "unexpected error in dropSchemaTemplate";
+  public static final String UNEXPECTED_ERROR_IN_CREATE_TIMESERIES_USING_SCHEMA_TEMPLATE =
+      "unexpected error in createTimeseriesUsingSchemaTemplate";
+
+  private SessionMessages() {}
+}
diff --git a/iotdb-client/session/src/main/i18n/zh/org/apache/iotdb/session/i18n/SessionMessages.java b/iotdb-client/session/src/main/i18n/zh/org/apache/iotdb/session/i18n/SessionMessages.java
new file mode 100644
index 00000000000..63d025f85d9
--- /dev/null
+++ b/iotdb-client/session/src/main/i18n/zh/org/apache/iotdb/session/i18n/SessionMessages.java
@@ -0,0 +1,261 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.iotdb.session.i18n;
+
+public final class SessionMessages {
+
+  // Session
+  public static final String NODE_URLS_EMPTY = "nodeUrls 不能为空。";
+  public static final String REDIRECT_TWICE_LOG = "重定向了两次";
+  public static final String REDIRECT_TWICE_LOG_WITH_SQL = "{} 重定向了两次";
+  public static final String REDIRECT_TWICE_MSG = "重定向了两次,请重试。";
+  public static final String REDIRECT_TWICE_MSG_WITH_SQL = "%s 重定向了两次,请重试。";
+  public static final String FAILED_TO_EXECUTE_FOR_ENDPOINT = "在 {} 上执行 '{}' 失败";
+  public static final String ALL_VALUES_NULL =
+      "{} 的所有值均为 null,null 值为 {}";
+  public static final String SOME_VALUES_NULL =
+      "{} 的部分值为 null,null 值为 {}";
+  public static final String MEET_ERROR_WHEN_ASYNC_INSERT = "异步写入时遇到错误!";
+  public static final String MEASUREMENT_NON_NULL = "测量值名称不能为 null";
+  public static final String NO_TABLET_INSERTING = "没有可写入的 Tablet!";
+  public static final String SESSION_NOT_OPEN =
+      "Session 尚未打开,请先调用 Session.open()";
+  public static final String ALL_INSERT_DATA_IS_NULL = "所有写入数据均为 null。";
+
+  // SessionConnection
+  public static final String CLUSTER_NO_NODES = "集群中没有可连接的节点";
+  public static final String CLOSE_SESSION_ERROR =
+      "关闭服务端 Session 时发生错误,服务器可能已宕机。";
+  public static final String REDIRECT_QUERY_ERROR =
+      "需要重定向查询,不应看到此错误。";
+  public static final String RETRY_RECONNECTING =
+      "第 {} 次重试,正在重连其他 DataNode";
+  public static final String NODE_DOWN_TRY_NEXT =
+      "当前节点 {} 可能已宕机,尝试下一个节点";
+  public static final String LOGIN_FAILED = "登录失败,原因:{}";
+  public static final String CLOSE_CONNECTION_FAILED = "关闭连接失败,{}";
+  public static final String THREAD_INTERRUPTED_DURING_RETRY =
+      "线程 {} 在第 {} 次重试等待 {} 毫秒时被中断,退出重试循环。";
+
+  // ThriftConnection
+  public static final String CLOSING_SESSION_FAILED =
+      "关闭 Session-{} 与 {} 的连接失败。";
+
+  // NodesSupplier
+  public static final String FAILED_TO_CREATE_CONNECTION =
+      "创建与 {} 的连接失败。";
+  public static final String FAILED_TO_FETCH_DATA_NODE_LIST =
+      "从 {} 获取 DataNode 列表失败。";
+
+  // SessionUtils
+  public static final String NODE_URLS_IS_NULL = "nodeUrls 为 null";
+
+  // InternalNode (template)
+  public static final String DUPLICATED_CHILD_IN_TEMPLATE =
+      "模板中存在重复的子节点。";
+
+  // SessionPool
+  public static final String SESSION_POOL_IS_CLOSED = "Session 连接池已关闭";
+  public static final String CLOSE_THE_SESSION_FAILED = "关闭 Session 失败。";
+  public static final String TIMEOUT_TO_GET_CONNECTION =
+      "从 %s 获取连接超时";
+  public static final String INTERRUPTED = "被中断!";
+  public static final String CLOSING_SESSION_POOL = "正在关闭 Session 连接池,清理队列...";
+
+  // SessionPool - operation failed (warn)
+  public static final String INSERT_TABLET_FAILED = "insertTablet 失败";
+  public static final String INSERT_ALIGNED_TABLET_FAILED = "insertAlignedTablet 失败";
+  public static final String INSERT_TABLETS_FAILED = "insertTablets 失败";
+  public static final String INSERT_ALIGNED_TABLETS_FAILED = "insertAlignedTablets 失败";
+  public static final String INSERT_RECORDS_FAILED = "insertRecords 失败";
+  public static final String INSERT_ALIGNED_RECORDS_FAILED = "insertAlignedRecords 失败";
+  public static final String INSERT_RECORD_FAILED = "insertRecord 失败";
+  public static final String INSERT_ALIGNED_RECORD_FAILED = "insertAlignedRecord 失败";
+  public static final String INSERT_RECORDS_OF_ONE_DEVICE_FAILED =
+      "insertRecordsOfOneDevice 失败";
+  public static final String INSERT_STRING_RECORDS_OF_ONE_DEVICE_FAILED =
+      "insertStringRecordsOfOneDevice 失败";
+  public static final String INSERT_ALIGNED_RECORDS_OF_ONE_DEVICE_FAILED =
+      "insertAlignedRecordsOfOneDevice 失败";
+  public static final String INSERT_ALIGNED_STRING_RECORDS_OF_ONE_DEVICE_FAILED =
+      "insertAlignedStringRecordsOfOneDevice 失败";
+  public static final String DELETE_DATA_FAILED = "deleteData 失败";
+  public static final String DELETE_TIMESERIES_FAILED = "deleteTimeseries 失败";
+  public static final String SET_STORAGE_GROUP_FAILED = "setStorageGroup 失败";
+  public static final String DELETE_STORAGE_GROUP_FAILED = "deleteStorageGroup 失败";
+  public static final String DELETE_STORAGE_GROUPS_FAILED = "deleteStorageGroups 失败";
+  public static final String CREATE_DATABASE_FAILED = "createDatabase 失败";
+  public static final String DELETE_DATABASE_FAILED = "deleteDatabase 失败";
+  public static final String DELETE_DATABASES_FAILED = "deleteDatabases 失败";
+  public static final String CREATE_TIMESERIES_FAILED = "createTimeseries 失败";
+  public static final String CREATE_ALIGNED_TIMESERIES_FAILED = "createAlignedTimeseries 失败";
+  public static final String CREATE_MULTI_TIMESERIES_FAILED = "createMultiTimeseries 失败";
+  public static final String CHECK_TIMESERIES_EXISTS_FAILED = "checkTimeseriesExists 失败";
+  public static final String EXECUTE_QUERY_STATEMENT_FAILED = "executeQueryStatement 失败";
+  public static final String EXECUTE_NON_QUERY_STATEMENT_FAILED =
+      "executeNonQueryStatement 失败";
+  public static final String EXECUTE_RAW_DATA_QUERY_FAILED = "executeRawDataQuery 失败";
+  public static final String EXECUTE_LAST_DATA_QUERY_FAILED = "executeLastDataQuery 失败";
+  public static final String EXECUTE_AGGREGATION_QUERY_FAILED = "executeAggregationQuery 失败";
+  public static final String GET_TIMESTAMP_PRECISION_FAILED = "getTimestampPrecision 失败";
+  public static final String TEST_INSERT_TABLET_FAILED = "testInsertTablet 失败";
+  public static final String TEST_INSERT_TABLETS_FAILED = "testInsertTablets 失败";
+  public static final String TEST_INSERT_RECORD_FAILED = "testInsertRecord 失败";
+  public static final String TEST_INSERT_RECORDS_FAILED = "testInsertRecords 失败";
+  public static final String CREATE_SCHEMA_TEMPLATE_FAILED = "createSchemaTemplate 失败";
+  public static final String ADD_ALIGNED_MEASUREMENTS_IN_TEMPLATE_FAILED =
+      "addAlignedMeasurementsInTemplate 失败";
+  public static final String ADD_ALIGNED_MEASUREMENT_IN_TEMPLATE_FAILED =
+      "addAlignedMeasurementInTemplate 失败";
+  public static final String ADD_UNALIGNED_MEASUREMENTS_IN_TEMPLATE_FAILED =
+      "addUnalignedMeasurementsInTemplate 失败";
+  public static final String ADD_UNALIGNED_MEASUREMENT_IN_TEMPLATE_FAILED =
+      "addUnalignedMeasurementInTemplate 失败";
+  public static final String DELETE_NODE_IN_TEMPLATE_FAILED = "deleteNodeInTemplate 失败";
+  public static final String COUNT_MEASUREMENTS_IN_TEMPLATE_FAILED =
+      "countMeasurementsInTemplate 失败";
+  public static final String IS_MEASUREMENT_IN_TEMPLATE_FAILED =
+      "isMeasurementInTemplate 失败";
+  public static final String IS_PATH_EXIST_IN_TEMPLATE_FAILED =
+      "isPathExistInTemplata 失败";
+  public static final String SHOW_MEASUREMENTS_IN_TEMPLATE_FAILED =
+      "showMeasurementsInTemplate 失败";
+  public static final String SHOW_ALL_TEMPLATES_FAILED = "showAllTemplates 失败";
+  public static final String SHOW_PATHS_TEMPLATE_SET_ON_FAILED =
+      "showPathsTemplateSetOn 失败";
+  public static final String SHOW_PATHS_TEMPLATE_USING_ON_FAILED =
+      "showPathsTemplateUsingOn 失败";
+  public static final String SET_SCHEMA_TEMPLATE_ON_FAILED =
+      "setSchemaTemplate [{}] 在 [{}] 上失败";
+  public static final String UNSET_SCHEMA_TEMPLATE_ON_FAILED =
+      "unsetSchemaTemplate [{}] 在 [{}] 上失败";
+  public static final String DROP_SCHEMA_TEMPLATE_FAILED =
+      "dropSchemaTemplate [{}] 失败";
+  public static final String CREATE_TIMESERIES_OF_SCHEMA_TEMPLATE_FAILED =
+      "createTimeseriesOfSchemaTemplate {} 失败";
+  public static final String SET_TIMEZONE_FAILED = "设置时区为 [{}] 失败";
+  public static final String FETCH_ALL_CONNECTIONS_FAILED = "fetchAllConnections 失败";
+
+  // SessionPool - unexpected error (error)
+  public static final String UNEXPECTED_ERROR_IN_INSERT_TABLET =
+      "insertTablet 发生意外错误";
+  public static final String UNEXPECTED_ERROR_IN_INSERT_ALIGNED_TABLET =
+      "insertAlignedTablet 发生意外错误";
+  public static final String UNEXPECTED_ERROR_IN_INSERT_TABLETS =
+      "insertTablets 发生意外错误";
+  public static final String UNEXPECTED_ERROR_IN_INSERT_ALIGNED_TABLETS =
+      "insertAlignedTablets 发生意外错误";
+  public static final String UNEXPECTED_ERROR_IN_INSERT_RECORDS =
+      "insertRecords 发生意外错误";
+  public static final String UNEXPECTED_ERROR_IN_INSERT_ALIGNED_RECORDS =
+      "insertAlignedRecords 发生意外错误";
+  public static final String UNEXPECTED_ERROR_IN_INSERT_RECORD =
+      "insertRecord 发生意外错误";
+  public static final String UNEXPECTED_ERROR_IN_INSERT_ALIGNED_RECORD =
+      "insertAlignedRecord 发生意外错误";
+  public static final String UNEXPECTED_ERROR_IN_INSERT_RECORDS_OF_ONE_DEVICE =
+      "insertRecordsOfOneDevice 发生意外错误";
+  public static final String UNEXPECTED_ERROR_IN_INSERT_STRING_RECORDS_OF_ONE_DEVICE =
+      "insertStringRecordsOfOneDevice 发生意外错误";
+  public static final String UNEXPECTED_ERROR_IN_INSERT_ALIGNED_RECORDS_OF_ONE_DEVICE =
+      "insertAlignedRecordsOfOneDevice 发生意外错误";
+  public static final String UNEXPECTED_ERROR_IN_INSERT_ALIGNED_STRING_RECORDS_OF_ONE_DEVICE =
+      "insertAlignedStringRecordsOfOneDevice 发生意外错误";
+  public static final String UNEXPECTED_ERROR_IN_DELETE_DATA =
+      "deleteData 发生意外错误";
+  public static final String UNEXPECTED_ERROR_IN_DELETE_TIMESERIES =
+      "deleteTimeseries 发生意外错误";
+  public static final String UNEXPECTED_ERROR_IN_SET_STORAGE_GROUP =
+      "setStorageGroup 发生意外错误";
+  public static final String UNEXPECTED_ERROR_IN_DELETE_STORAGE_GROUP =
+      "deleteStorageGroup 发生意外错误";
+  public static final String UNEXPECTED_ERROR_IN_DELETE_STORAGE_GROUPS =
+      "deleteStorageGroups 发生意外错误";
+  public static final String UNEXPECTED_ERROR_IN_CREATE_DATABASE =
+      "createDatabase 发生意外错误";
+  public static final String UNEXPECTED_ERROR_IN_DELETE_DATABASE =
+      "deleteDatabase 发生意外错误";
+  public static final String UNEXPECTED_ERROR_IN_DELETE_DATABASES =
+      "deleteDatabases 发生意外错误";
+  public static final String UNEXPECTED_ERROR_IN_CREATE_TIMESERIES =
+      "createTimeseries 发生意外错误";
+  public static final String UNEXPECTED_ERROR_IN_CREATE_ALIGNED_TIMESERIES =
+      "createAlignedTimeseries 发生意外错误";
+  public static final String UNEXPECTED_ERROR_IN_CREATE_MULTI_TIMESERIES =
+      "createMultiTimeseries 发生意外错误";
+  public static final String UNEXPECTED_ERROR_IN_CHECK_TIMESERIES_EXISTS =
+      "checkTimeseriesExists 发生意外错误";
+  public static final String UNEXPECTED_ERROR_IN_EXECUTE_QUERY_STATEMENT =
+      "executeQueryStatement 发生意外错误";
+  public static final String UNEXPECTED_ERROR_IN_EXECUTE_NON_QUERY_STATEMENT =
+      "executeNonQueryStatement 发生意外错误";
+  public static final String UNEXPECTED_ERROR_IN_EXECUTE_RAW_DATA_QUERY =
+      "executeRawDataQuery 发生意外错误";
+  public static final String UNEXPECTED_ERROR_IN_EXECUTE_LAST_DATA_QUERY =
+      "executeLastDataQuery 发生意外错误";
+  public static final String UNEXPECTED_ERROR_IN_EXECUTE_AGGREGATION_QUERY =
+      "executeAggregationQuery 发生意外错误";
+  public static final String UNEXPECTED_ERROR_IN_GET_TIMESTAMP_PRECISION =
+      "getTimestampPrecision 发生意外错误";
+  public static final String UNEXPECTED_ERROR_IN_TEST_INSERT_TABLET =
+      "testInsertTablet 发生意外错误";
+  public static final String UNEXPECTED_ERROR_IN_TEST_INSERT_TABLETS =
+      "testInsertTablets 发生意外错误";
+  public static final String UNEXPECTED_ERROR_IN_TEST_INSERT_RECORD =
+      "testInsertRecord 发生意外错误";
+  public static final String UNEXPECTED_ERROR_IN_TEST_INSERT_RECORDS =
+      "testInsertRecords 发生意外错误";
+  public static final String UNEXPECTED_ERROR_IN_CREATE_SCHEMA_TEMPLATE =
+      "createSchemaTemplate 发生意外错误";
+  public static final String UNEXPECTED_ERROR_IN_ADD_ALIGNED_MEASUREMENTS_IN_TEMPLATE =
+      "addAlignedMeasurementsInTemplate 发生意外错误";
+  public static final String UNEXPECTED_ERROR_IN_ADD_ALIGNED_MEASUREMENT_IN_TEMPLATE =
+      "addAlignedMeasurementInTemplate 发生意外错误";
+  public static final String UNEXPECTED_ERROR_IN_ADD_UNALIGNED_MEASUREMENTS_IN_TEMPLATE =
+      "addUnalignedMeasurementsInTemplate 发生意外错误";
+  public static final String UNEXPECTED_ERROR_IN_ADD_UNALIGNED_MEASUREMENT_IN_TEMPLATE =
+      "addUnalignedMeasurementInTemplate 发生意外错误";
+  public static final String UNEXPECTED_ERROR_IN_DELETE_NODE_IN_TEMPLATE =
+      "deleteNodeInTemplate 发生意外错误";
+  public static final String UNEXPECTED_ERROR_IN_COUNT_MEASUREMENTS_IN_TEMPLATE =
+      "countMeasurementsInTemplate 发生意外错误";
+  public static final String UNEXPECTED_ERROR_IN_IS_MEASUREMENT_IN_TEMPLATE =
+      "isMeasurementInTemplate 发生意外错误";
+  public static final String UNEXPECTED_ERROR_IN_IS_PATH_EXIST_IN_TEMPLATE =
+      "isPathExistInTemplate 发生意外错误";
+  public static final String UNEXPECTED_ERROR_IN_SHOW_MEASUREMENTS_IN_TEMPLATE =
+      "showMeasurementsInTemplate 发生意外错误";
+  public static final String UNEXPECTED_ERROR_IN_SHOW_ALL_TEMPLATES =
+      "showAllTemplates 发生意外错误";
+  public static final String UNEXPECTED_ERROR_IN_SHOW_PATHS_TEMPLATE_SET_ON =
+      "showPathsTemplateSetOn 发生意外错误";
+  public static final String UNEXPECTED_ERROR_IN_SHOW_PATHS_TEMPLATE_USING_ON =
+      "showPathsTemplateUsingOn 发生意外错误";
+  public static final String UNEXPECTED_ERROR_IN_SET_SCHEMA_TEMPLATE =
+      "setSchemaTemplate 发生意外错误";
+  public static final String UNEXPECTED_ERROR_IN_UNSET_SCHEMA_TEMPLATE =
+      "unsetSchemaTemplate 发生意外错误";
+  public static final String UNEXPECTED_ERROR_IN_DROP_SCHEMA_TEMPLATE =
+      "dropSchemaTemplate 发生意外错误";
+  public static final String UNEXPECTED_ERROR_IN_CREATE_TIMESERIES_USING_SCHEMA_TEMPLATE =
+      "createTimeseriesUsingSchemaTemplate 发生意外错误";
+
+  private SessionMessages() {}
+}
diff --git a/iotdb-client/session/src/main/java/org/apache/iotdb/session/NodesSupplier.java b/iotdb-client/session/src/main/java/org/apache/iotdb/session/NodesSupplier.java
index aa28b9bc0c7..d57844b4997 100644
--- a/iotdb-client/session/src/main/java/org/apache/iotdb/session/NodesSupplier.java
+++ b/iotdb-client/session/src/main/java/org/apache/iotdb/session/NodesSupplier.java
@@ -22,6 +22,7 @@ package org.apache.iotdb.session;
 import org.apache.iotdb.common.rpc.thrift.TEndPoint;
 import org.apache.iotdb.isession.INodeSupplier;
 import org.apache.iotdb.isession.SessionDataSet;
+import org.apache.iotdb.session.i18n.SessionMessages;
 
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
@@ -194,7 +195,7 @@ public class NodesSupplier implements INodeSupplier, Runnable {
           version);
       return true;
     } catch (Exception e) {
-      LOGGER.warn("Failed to create connection with {}.", endPoint);
+      LOGGER.warn(SessionMessages.FAILED_TO_CREATE_CONNECTION, endPoint);
       destroyCurrentClient();
       return false;
     }
@@ -227,7 +228,7 @@ public class NodesSupplier implements INodeSupplier, Runnable {
         client.executeQueryStatement(SHOW_AVAILABLE_URLS_COMMAND, TIMEOUT_IN_MS, FETCH_SIZE)) {
       updateAvailableNodes(sessionDataSet);
     } catch (Exception e1) {
-      LOGGER.warn("Failed to fetch data node list from {}.", client.endPoint);
+      LOGGER.warn(SessionMessages.FAILED_TO_FETCH_DATA_NODE_LIST, client.endPoint);
       return false;
     }
     return true;
diff --git a/iotdb-client/session/src/main/java/org/apache/iotdb/session/Session.java b/iotdb-client/session/src/main/java/org/apache/iotdb/session/Session.java
index c38bff5e9d4..ffc897760be 100644
--- a/iotdb-client/session/src/main/java/org/apache/iotdb/session/Session.java
+++ b/iotdb-client/session/src/main/java/org/apache/iotdb/session/Session.java
@@ -56,6 +56,7 @@ import org.apache.iotdb.service.rpc.thrift.TSQueryTemplateReq;
 import org.apache.iotdb.service.rpc.thrift.TSQueryTemplateResp;
 import org.apache.iotdb.service.rpc.thrift.TSSetSchemaTemplateReq;
 import org.apache.iotdb.service.rpc.thrift.TSUnsetSchemaTemplateReq;
+import org.apache.iotdb.session.i18n.SessionMessages;
 import org.apache.iotdb.session.rpccompress.TabletEncoder;
 import org.apache.iotdb.session.template.MeasurementNode;
 import org.apache.iotdb.session.template.TemplateQueryType;
@@ -201,10 +202,6 @@ public class Session implements ISession {
   // may be null
   protected volatile String database;
 
-  private static final String REDIRECT_TWICE = "redirect twice";
-
-  private static final String REDIRECT_TWICE_RETRY = "redirect twice, please try again.";
-
   private static final String VALUES_SIZE_SHOULD_BE_EQUAL =
       "times, measurementsList and valuesList's size should be equal";
 
@@ -217,7 +214,7 @@ public class Session implements ISession {
       "All values are null and this submission is ignored,deviceId is [{}],times are [{}],measurements are [{}]";
   private static final String ALL_VALUES_ARE_NULL_MULTI_DEVICES =
       "All values are null and this submission is ignored,deviceIds are [{}],times are [{}],measurements are [{}]";
-  private static final String ALL_INSERT_DATA_IS_NULL = "All inserted data is null.";
+  private static final String ALL_INSERT_DATA_IS_NULL = SessionMessages.ALL_INSERT_DATA_IS_NULL;
 
   protected static final String TABLE = "table";
   protected static final String TREE = "tree";
@@ -431,7 +428,7 @@ public class Session implements ISession {
       boolean enableRedirection,
       Version version) {
     if (nodeUrls.isEmpty()) {
-      throw new IllegalArgumentException("nodeUrls shouldn't be empty.");
+      throw new IllegalArgumentException(SessionMessages.NODE_URLS_EMPTY);
     }
     nodeUrls = shuffleNodeUrls(nodeUrls);
     this.nodeUrls = nodeUrls;
@@ -448,7 +445,7 @@ public class Session implements ISession {
   public Session(AbstractSessionBuilder builder) {
     if (builder.nodeUrls != null) {
       if (builder.nodeUrls.isEmpty()) {
-        throw new IllegalArgumentException("nodeUrls shouldn't be empty.");
+        throw new IllegalArgumentException(SessionMessages.NODE_URLS_EMPTY);
       }
       builder.nodeUrls = shuffleNodeUrls(builder.nodeUrls);
       this.nodeUrls = builder.nodeUrls;
@@ -1022,8 +1019,9 @@ public class Session implements ISession {
         try {
           return getDefaultSessionConnection().executeQueryStatement(sql, queryTimeoutInMs);
         } catch (RedirectException redirectException) {
-          logger.error("{} redirect twice", sql, redirectException);
-          throw new StatementExecutionException(sql + " redirect twice, please try again.");
+          logger.error(SessionMessages.REDIRECT_TWICE_LOG_WITH_SQL, sql, redirectException);
+          throw new StatementExecutionException(
+              String.format(SessionMessages.REDIRECT_TWICE_MSG_WITH_SQL, sql));
         }
       } else {
         throw new StatementExecutionException(MSG_DONOT_ENABLE_REDIRECT);
@@ -1072,7 +1070,7 @@ public class Session implements ISession {
           try {
             sessionConnection.executeNonQueryStatement(sql);
           } catch (Throwable t) {
-            logger.warn("failed to execute '{}' for {}", sql, entry.getKey());
+            logger.warn(SessionMessages.FAILED_TO_EXECUTE_FOR_ENDPOINT, sql, entry.getKey());
             iterator.remove();
           }
         }
@@ -1105,8 +1103,8 @@ public class Session implements ISession {
           return getDefaultSessionConnection()
               .executeRawDataQuery(paths, startTime, endTime, timeOut);
         } catch (RedirectException redirectException) {
-          logger.error(REDIRECT_TWICE, redirectException);
-          throw new StatementExecutionException(REDIRECT_TWICE_RETRY);
+          logger.error(SessionMessages.REDIRECT_TWICE_LOG, redirectException);
+          throw new StatementExecutionException(SessionMessages.REDIRECT_TWICE_MSG);
         }
       } else {
         throw new StatementExecutionException(MSG_DONOT_ENABLE_REDIRECT);
@@ -1145,8 +1143,8 @@ public class Session implements ISession {
         try {
           return getDefaultSessionConnection().executeLastDataQuery(paths, lastTime, timeOut);
         } catch (RedirectException redirectException) {
-          logger.error(REDIRECT_TWICE, redirectException);
-          throw new StatementExecutionException(REDIRECT_TWICE_RETRY);
+          logger.error(SessionMessages.REDIRECT_TWICE_LOG, redirectException);
+          throw new StatementExecutionException(SessionMessages.REDIRECT_TWICE_MSG);
         }
       } else {
         throw new StatementExecutionException(MSG_DONOT_ENABLE_REDIRECT);
@@ -1217,8 +1215,8 @@ public class Session implements ISession {
         try {
           return getDefaultSessionConnection().executeAggregationQuery(paths, aggregations);
         } catch (RedirectException redirectException) {
-          logger.error(REDIRECT_TWICE, redirectException);
-          throw new StatementExecutionException(REDIRECT_TWICE_RETRY);
+          logger.error(SessionMessages.REDIRECT_TWICE_LOG, redirectException);
+          throw new StatementExecutionException(SessionMessages.REDIRECT_TWICE_MSG);
         }
       } else {
         throw new StatementExecutionException(MSG_DONOT_ENABLE_REDIRECT);
@@ -1241,8 +1239,8 @@ public class Session implements ISession {
           return getDefaultSessionConnection()
               .executeAggregationQuery(paths, aggregations, startTime, endTime);
         } catch (RedirectException redirectException) {
-          logger.error(REDIRECT_TWICE, redirectException);
-          throw new StatementExecutionException(REDIRECT_TWICE_RETRY);
+          logger.error(SessionMessages.REDIRECT_TWICE_LOG, redirectException);
+          throw new StatementExecutionException(SessionMessages.REDIRECT_TWICE_MSG);
         }
       } else {
         throw new StatementExecutionException(MSG_DONOT_ENABLE_REDIRECT);
@@ -1269,8 +1267,8 @@ public class Session implements ISession {
           return getDefaultSessionConnection()
               .executeAggregationQuery(paths, aggregations, startTime, endTime, interval);
         } catch (RedirectException redirectException) {
-          logger.error(REDIRECT_TWICE, redirectException);
-          throw new StatementExecutionException(REDIRECT_TWICE_RETRY);
+          logger.error(SessionMessages.REDIRECT_TWICE_LOG, redirectException);
+          throw new StatementExecutionException(SessionMessages.REDIRECT_TWICE_MSG);
         }
       } else {
         throw new StatementExecutionException(MSG_DONOT_ENABLE_REDIRECT);
@@ -1299,8 +1297,8 @@ public class Session implements ISession {
               .executeAggregationQuery(
                   paths, aggregations, startTime, endTime, interval, slidingStep);
         } catch (RedirectException redirectException) {
-          logger.error(REDIRECT_TWICE, redirectException);
-          throw new StatementExecutionException(REDIRECT_TWICE_RETRY);
+          logger.error(SessionMessages.REDIRECT_TWICE_LOG, redirectException);
+          throw new StatementExecutionException(SessionMessages.REDIRECT_TWICE_MSG);
         }
       } else {
         throw new StatementExecutionException(MSG_DONOT_ENABLE_REDIRECT);
@@ -1829,10 +1827,10 @@ public class Session implements ISession {
       }
     }
     if (valuesList.isEmpty()) {
-      logger.info("All values of the {} are null,null values are {}", deviceId, nullMap);
+      logger.info(SessionMessages.ALL_VALUES_NULL, deviceId, nullMap);
       return true;
     } else {
-      logger.info("Some values of {} are null,null values are {}", deviceId, nullMap);
+      logger.info(SessionMessages.SOME_VALUES_NULL, deviceId, nullMap);
     }
     return false;
   }
@@ -1876,10 +1874,10 @@ public class Session implements ISession {
       }
     }
     if (valuesList.isEmpty()) {
-      logger.info("All values of the {} are null,null values are {}", deviceId, nullMap);
+      logger.info(SessionMessages.ALL_VALUES_NULL, deviceId, nullMap);
       return true;
     } else {
-      logger.info("Some values of {} are null,null values are {}", deviceId, nullMap);
+      logger.info(SessionMessages.SOME_VALUES_NULL, deviceId, nullMap);
     }
     return false;
   }
@@ -2971,7 +2969,7 @@ public class Session implements ISession {
         completableFuture.join();
       } catch (CompletionException completionException) {
         Throwable cause = completionException.getCause();
-        logger.error("Meet error when async insert!", cause);
+        logger.error(SessionMessages.MEET_ERROR_WHEN_ASYNC_INSERT, cause);
         if (cause instanceof IoTDBConnectionException) {
           throw (IoTDBConnectionException) cause;
         } else {
@@ -3045,7 +3043,7 @@ public class Session implements ISession {
 
     for (IMeasurementSchema measurementSchema : tablet.getSchemas()) {
       if (measurementSchema.getMeasurementName() == null) {
-        throw new IllegalArgumentException("measurement should be non null value");
+        throw new IllegalArgumentException(SessionMessages.MEASUREMENT_NON_NULL);
       }
       request.addToMeasurements(measurementSchema.getMeasurementName());
       request.addToTypes(measurementSchema.getType().ordinal());
@@ -3068,7 +3066,7 @@ public class Session implements ISession {
               .serialize());
       for (IMeasurementSchema measurementSchema : tablet.getSchemas()) {
         if (measurementSchema.getMeasurementName() == null) {
-          throw new IllegalArgumentException("measurement should be non null value");
+          throw new IllegalArgumentException(SessionMessages.MEASUREMENT_NON_NULL);
         }
         encodingTypes.add(
             this.columnEncodersMap
@@ -3195,7 +3193,7 @@ public class Session implements ISession {
       List<Tablet> tablets, boolean sorted, boolean isAligned) throws BatchExecutionException {
     TSInsertTabletsReq request = new TSInsertTabletsReq();
     if (tablets.isEmpty()) {
-      throw new BatchExecutionException("No tablet is inserting!");
+      throw new BatchExecutionException(SessionMessages.NO_TABLET_INSERTING);
     }
     for (Tablet tablet : tablets) {
       updateTSInsertTabletsReq(request, tablet, sorted, isAligned);
@@ -3214,7 +3212,7 @@ public class Session implements ISession {
     request.setIsAligned(isAligned);
     for (IMeasurementSchema measurementSchema : tablet.getSchemas()) {
       if (measurementSchema.getMeasurementName() == null) {
-        throw new IllegalArgumentException("measurement should be non null value");
+        throw new IllegalArgumentException(SessionMessages.MEASUREMENT_NON_NULL);
       }
       measurements.add(measurementSchema.getMeasurementName());
       dataTypes.add(measurementSchema.getType().ordinal());
@@ -4228,7 +4226,7 @@ public class Session implements ISession {
         completableFuture.join();
       } catch (CompletionException completionException) {
         Throwable cause = completionException.getCause();
-        logger.error("Meet error when async insert!", cause);
+        logger.error(SessionMessages.MEET_ERROR_WHEN_ASYNC_INSERT, cause);
         if (cause instanceof IoTDBConnectionException) {
           throw (IoTDBConnectionException) cause;
         } else {
@@ -4295,7 +4293,7 @@ public class Session implements ISession {
 
   protected SessionConnection getDefaultSessionConnection() throws IoTDBConnectionException {
     if (defaultSessionConnection == null) {
-      throw new IoTDBConnectionException("Session is not open, please invoke Session.open() first");
+      throw new IoTDBConnectionException(SessionMessages.SESSION_NOT_OPEN);
     }
     return defaultSessionConnection;
   }
diff --git a/iotdb-client/session/src/main/java/org/apache/iotdb/session/SessionConnection.java b/iotdb-client/session/src/main/java/org/apache/iotdb/session/SessionConnection.java
index bf919d50532..f6608d8fe4b 100644
--- a/iotdb-client/session/src/main/java/org/apache/iotdb/session/SessionConnection.java
+++ b/iotdb-client/session/src/main/java/org/apache/iotdb/session/SessionConnection.java
@@ -65,6 +65,7 @@ import org.apache.iotdb.service.rpc.thrift.TSRawDataQueryReq;
 import org.apache.iotdb.service.rpc.thrift.TSSetSchemaTemplateReq;
 import org.apache.iotdb.service.rpc.thrift.TSSetTimeZoneReq;
 import org.apache.iotdb.service.rpc.thrift.TSUnsetSchemaTemplateReq;
+import org.apache.iotdb.session.i18n.SessionMessages;
 import org.apache.iotdb.session.util.SessionUtils;
 
 import org.apache.thrift.TException;
@@ -264,7 +265,7 @@ public class SessionConnection {
         init(tEndPoint, session.useSSL, session.trustStore, session.trustStorePwd);
       } catch (IoTDBConnectionException e) {
         if (!reconnect()) {
-          logger.error("Cluster has no nodes to connect");
+          logger.error(SessionMessages.CLUSTER_NO_NODES);
           throw new IoTDBConnectionException(logForReconnectionFailure());
         }
       } catch (StatementExecutionException e) {
@@ -283,8 +284,7 @@ public class SessionConnection {
     try {
       client.closeSession(req);
     } catch (TException e) {
-      throw new IoTDBConnectionException(
-          "Error occurs when closing session at server. Maybe server is down.", e);
+      throw new IoTDBConnectionException(SessionMessages.CLOSE_SESSION_ERROR, e);
     } finally {
       if (transport != null) {
         transport.close();
@@ -379,7 +379,7 @@ public class SessionConnection {
       try {
         dataSet = executeQueryStatement(String.format("SHOW TIMESERIES %s", path), timeout);
       } catch (RedirectException e) {
-        throw new StatementExecutionException("need to redirect query, should not see this.", e);
+        throw new StatementExecutionException(SessionMessages.REDIRECT_QUERY_ERROR, e);
       }
       return dataSet.hasNext();
     } finally {
@@ -883,7 +883,7 @@ public class SessionConnection {
         } catch (InterruptedException e) {
           Thread.currentThread().interrupt();
           logger.warn(
-              "Thread {} was interrupted during retry {} with wait time {} ms. Exiting retry loop.",
+              SessionMessages.THREAD_INTERRUPTED_DURING_RETRY,
               Thread.currentThread().getName(),
               i,
               retryIntervalInMs);
@@ -961,7 +961,7 @@ public class SessionConnection {
         // 1. the current datanode is unreachable (TException)
         // 2. the current datanode is partitioned with other nodes (not in availableNodes)
         // 3. asymmetric network partition
-        logger.debug("Retry attempt #{}, Reconnecting to other datanode", retryAttempt);
+        logger.debug(SessionMessages.RETRY_RECONNECTING, retryAttempt);
         reconnect();
       }
       try {
@@ -969,7 +969,7 @@ public class SessionConnection {
       } catch (InterruptedException e) {
         Thread.currentThread().interrupt();
         logger.warn(
-            "Thread {} was interrupted during retry {} with wait time {} ms. Exiting retry loop.",
+            SessionMessages.THREAD_INTERRUPTED_DURING_RETRY,
             Thread.currentThread().getName(),
             retryAttempt,
             retryIntervalInMs);
@@ -1082,10 +1082,10 @@ public class SessionConnection {
             init(endPoint, session.useSSL, session.trustStore, session.trustStorePwd);
             connectedSuccess = true;
           } catch (IoTDBConnectionException e) {
-            logger.warn("The current node may have been down {}, try next node", endPoint);
+            logger.warn(SessionMessages.NODE_DOWN_TRY_NEXT, endPoint);
             continue;
           } catch (StatementExecutionException e) {
-            logger.warn("login in failed, because {}", e.getMessage());
+            logger.warn(SessionMessages.LOGIN_FAILED, e.getMessage());
           }
           break;
         }
@@ -1105,7 +1105,7 @@ public class SessionConnection {
                 try {
                   v.close();
                 } catch (IoTDBConnectionException e) {
-                  logger.warn("close connection failed, {}", e.getMessage());
+                  logger.warn(SessionMessages.CLOSE_CONNECTION_FAILED, e.getMessage());
                 }
               }
               return this;
diff --git a/iotdb-client/session/src/main/java/org/apache/iotdb/session/ThriftConnection.java b/iotdb-client/session/src/main/java/org/apache/iotdb/session/ThriftConnection.java
index 5e734b8dfa1..e3b9e8fc989 100644
--- a/iotdb-client/session/src/main/java/org/apache/iotdb/session/ThriftConnection.java
+++ b/iotdb-client/session/src/main/java/org/apache/iotdb/session/ThriftConnection.java
@@ -31,6 +31,7 @@ import org.apache.iotdb.service.rpc.thrift.TSExecuteStatementReq;
 import org.apache.iotdb.service.rpc.thrift.TSExecuteStatementResp;
 import org.apache.iotdb.service.rpc.thrift.TSOpenSessionReq;
 import org.apache.iotdb.service.rpc.thrift.TSOpenSessionResp;
+import org.apache.iotdb.session.i18n.SessionMessages;
 
 import org.apache.thrift.TException;
 import org.apache.thrift.protocol.TBinaryProtocol;
@@ -192,7 +193,7 @@ public class ThriftConnection {
           client.closeSession(new TSCloseSessionReq(sessionId));
         }
       } catch (TException e) {
-        LOGGER.warn("Closing Session-{} with {} failed.", sessionId, endPoint);
+        LOGGER.warn(SessionMessages.CLOSING_SESSION_FAILED, sessionId, endPoint);
       } finally {
         if (transport.isOpen()) {
           transport.close();
diff --git a/iotdb-client/session/src/main/java/org/apache/iotdb/session/pool/SessionPool.java b/iotdb-client/session/src/main/java/org/apache/iotdb/session/pool/SessionPool.java
index 949fba1251c..3eaabe7f1fa 100644
--- a/iotdb-client/session/src/main/java/org/apache/iotdb/session/pool/SessionPool.java
+++ b/iotdb-client/session/src/main/java/org/apache/iotdb/session/pool/SessionPool.java
@@ -37,6 +37,7 @@ import org.apache.iotdb.service.rpc.thrift.TSConnectionInfoResp;
 import org.apache.iotdb.session.DummyNodesSupplier;
 import org.apache.iotdb.session.NodesSupplier;
 import org.apache.iotdb.session.Session;
+import org.apache.iotdb.session.i18n.SessionMessages;
 import org.apache.iotdb.session.util.SessionUtils;
 
 import org.apache.thrift.TException;
@@ -90,8 +91,8 @@ import static org.apache.iotdb.rpc.RpcUtils.isUseDatabase;
 public class SessionPool implements ISessionPool {
 
   private static final Logger LOGGER = LoggerFactory.getLogger(SessionPool.class);
-  public static final String SESSION_POOL_IS_CLOSED = "Session pool is closed";
-  public static final String CLOSE_THE_SESSION_FAILED = "close the session failed.";
+  public static final String SESSION_POOL_IS_CLOSED = SessionMessages.SESSION_POOL_IS_CLOSED;
+  public static final String CLOSE_THE_SESSION_FAILED = SessionMessages.CLOSE_THE_SESSION_FAILED;
 
   private static final int RETRY = 3;
   private static final int FINAL_RETRY = RETRY - 1;
@@ -179,35 +180,42 @@ public class SessionPool implements ISessionPool {
   // may be null
   protected String database;
 
-  private static final String INSERT_RECORD_FAIL = "insertRecord failed";
+  private static final String INSERT_RECORD_FAIL = SessionMessages.INSERT_RECORD_FAILED;
 
-  private static final String INSERT_RECORD_ERROR_MSG = "unexpected error in insertRecord";
+  private static final String INSERT_RECORD_ERROR_MSG =
+      SessionMessages.UNEXPECTED_ERROR_IN_INSERT_RECORD;
 
-  private static final String INSERT_RECORDS_ERROR_MSG = "unexpected error in insertRecords";
+  private static final String INSERT_RECORDS_ERROR_MSG =
+      SessionMessages.UNEXPECTED_ERROR_IN_INSERT_RECORDS;
 
-  private static final String EXECUTE_LASTDATAQUERY_FAIL = "executeLastDataQuery failed";
+  private static final String EXECUTE_LASTDATAQUERY_FAIL =
+      SessionMessages.EXECUTE_LAST_DATA_QUERY_FAILED;
 
   private static final String EXECUTE_LASTDATAQUERY_ERROR =
-      "unexpected error in executeLastDataQuery";
+      SessionMessages.UNEXPECTED_ERROR_IN_EXECUTE_LAST_DATA_QUERY;
 
-  private static final String EXECUTE_AGGREGATION_QUERY_FAIL = "executeAggregationQuery failed";
+  private static final String EXECUTE_AGGREGATION_QUERY_FAIL =
+      SessionMessages.EXECUTE_AGGREGATION_QUERY_FAILED;
 
   private static final String INSERT_RECORDS_OF_ONE_DEVICE_ERROR_MSG =
-      "unexpected error in insertRecordsOfOneDevice";
+      SessionMessages.UNEXPECTED_ERROR_IN_INSERT_RECORDS_OF_ONE_DEVICE;
 
-  private static final String DELETE_DATA_ERROR_MSG = "unexpected error in deleteData";
+  private static final String DELETE_DATA_ERROR_MSG =
+      SessionMessages.UNEXPECTED_ERROR_IN_DELETE_DATA;
 
   private static final String CREATE_SCHEMA_TEMPLATE_ERROR_MSG =
-      "unexpected error in createSchemaTemplate";
+      SessionMessages.UNEXPECTED_ERROR_IN_CREATE_SCHEMA_TEMPLATE;
 
   private static final String EXECUTE_AGGREGATION_QUERY_ERROR_MSG =
-      "unexpected error in executeAggregationQuery";
+      SessionMessages.UNEXPECTED_ERROR_IN_EXECUTE_AGGREGATION_QUERY;
 
-  private static final String DELETE_DATA_FAIL = "deleteData failed";
+  private static final String DELETE_DATA_FAIL = SessionMessages.DELETE_DATA_FAILED;
 
-  private static final String INSERT_RECORDS_OF_ONE_DEVICE_FAIL = "insertRecordsOfOneDevice failed";
+  private static final String INSERT_RECORDS_OF_ONE_DEVICE_FAIL =
+      SessionMessages.INSERT_RECORDS_OF_ONE_DEVICE_FAILED;
 
-  private static final String CREATE_SCHEMA_TEMPLATE_FAIL = "createSchemaTemplate failed";
+  private static final String CREATE_SCHEMA_TEMPLATE_FAIL =
+      SessionMessages.CREATE_SCHEMA_TEMPLATE_FAILED;
 
   public SessionPool(String host, int port, String user, String password, int maxSize) {
     this(
@@ -481,7 +489,7 @@ public class SessionPool implements ISessionPool {
     this.host = null;
     this.port = -1;
     if (nodeUrls.isEmpty()) {
-      throw new IllegalArgumentException("nodeUrls shouldn't be empty.");
+      throw new IllegalArgumentException(SessionMessages.NODE_URLS_EMPTY);
     }
     this.nodeUrls = nodeUrls;
     this.user = user;
@@ -539,7 +547,7 @@ public class SessionPool implements ISessionPool {
     }
     if (builder.nodeUrls != null) {
       if (builder.nodeUrls.isEmpty()) {
-        throw new IllegalArgumentException("nodeUrls shouldn't be empty.");
+        throw new IllegalArgumentException(SessionMessages.NODE_URLS_EMPTY);
       }
       this.nodeUrls = builder.nodeUrls;
       this.host = null;
@@ -701,11 +709,11 @@ public class SessionPool implements ISessionPool {
                 size);
             if (System.currentTimeMillis() - start > waitToGetSessionTimeoutInMs) {
               throw new IoTDBConnectionException(
-                  String.format("timeout to get a connection from %s", formattedNodeUrls));
+                  String.format(SessionMessages.TIMEOUT_TO_GET_CONNECTION, formattedNodeUrls));
             }
           }
         } catch (InterruptedException e) {
-          LOGGER.warn("Interrupted!", e);
+          LOGGER.warn(SessionMessages.INTERRUPTED, e);
           Thread.currentThread().interrupt();
           // wake up from this.wait(1000) by this.notify()
         }
@@ -815,7 +823,7 @@ public class SessionPool implements ISessionPool {
       this.availableNodes.close();
       this.availableNodes = null;
     }
-    LOGGER.info("closing the session pool, cleaning queues...");
+    LOGGER.info(SessionMessages.CLOSING_SESSION_POOL);
     this.closed = true;
     queue.clear();
     occupied.clear();
@@ -943,13 +951,13 @@ public class SessionPool implements ISessionPool {
       putBack(session);
     } catch (IoTDBConnectionException e) {
       // TException means the connection is broken, remove it and get a new one.
-      LOGGER.warn("insertTablet failed", e);
+      LOGGER.warn(SessionMessages.INSERT_TABLET_FAILED, e);
       cleanSessionAndMayThrowConnectionException(session, FINAL_RETRY, e);
     } catch (StatementExecutionException | RuntimeException e) {
       putBack(session);
       throw e;
     } catch (Throwable e) {
-      LOGGER.error("unexpected error in insertTablet", e);
+      LOGGER.error(SessionMessages.UNEXPECTED_ERROR_IN_INSERT_TABLET, e);
       putBack(session);
       throw new RuntimeException(e);
     }
@@ -986,13 +994,13 @@ public class SessionPool implements ISessionPool {
       putBack(session);
     } catch (IoTDBConnectionException e) {
       // TException means the connection is broken, remove it and get a new one.
-      LOGGER.warn("insertAlignedTablet failed", e);
+      LOGGER.warn(SessionMessages.INSERT_ALIGNED_TABLET_FAILED, e);
       cleanSessionAndMayThrowConnectionException(session, FINAL_RETRY, e);
     } catch (StatementExecutionException | RuntimeException e) {
       putBack(session);
       throw e;
     } catch (Throwable e) {
-      LOGGER.error("unexpected error in insertAlignedTablet", e);
+      LOGGER.error(SessionMessages.UNEXPECTED_ERROR_IN_INSERT_ALIGNED_TABLET, e);
       putBack(session);
       throw new RuntimeException(e);
     }
@@ -1035,13 +1043,13 @@ public class SessionPool implements ISessionPool {
       putBack(session);
     } catch (IoTDBConnectionException e) {
       // TException means the connection is broken, remove it and get a new one.
-      LOGGER.warn("insertTablets failed", e);
+      LOGGER.warn(SessionMessages.INSERT_TABLETS_FAILED, e);
       cleanSessionAndMayThrowConnectionException(session, FINAL_RETRY, e);
     } catch (StatementExecutionException | RuntimeException e) {
       putBack(session);
       throw e;
     } catch (Throwable e) {
-      LOGGER.error("unexpected error in insertTablets", e);
+      LOGGER.error(SessionMessages.UNEXPECTED_ERROR_IN_INSERT_TABLETS, e);
       putBack(session);
       throw new RuntimeException(e);
     }
@@ -1062,13 +1070,13 @@ public class SessionPool implements ISessionPool {
       putBack(session);
     } catch (IoTDBConnectionException e) {
       // TException means the connection is broken, remove it and get a new one.
-      LOGGER.warn("insertAlignedTablets failed", e);
+      LOGGER.warn(SessionMessages.INSERT_ALIGNED_TABLETS_FAILED, e);
       cleanSessionAndMayThrowConnectionException(session, FINAL_RETRY, e);
     } catch (StatementExecutionException | RuntimeException e) {
       putBack(session);
       throw e;
     } catch (Throwable e) {
-      LOGGER.error("unexpected error in insertAlignedTablets", e);
+      LOGGER.error(SessionMessages.UNEXPECTED_ERROR_IN_INSERT_ALIGNED_TABLETS, e);
       putBack(session);
       throw new RuntimeException(e);
     }
@@ -1096,7 +1104,7 @@ public class SessionPool implements ISessionPool {
       putBack(session);
     } catch (IoTDBConnectionException e) {
       // TException means the connection is broken, remove it and get a new one.
-      LOGGER.warn("insertRecords failed", e);
+      LOGGER.warn(SessionMessages.INSERT_RECORDS_FAILED, e);
       cleanSessionAndMayThrowConnectionException(session, FINAL_RETRY, e);
     } catch (StatementExecutionException | RuntimeException e) {
       putBack(session);
@@ -1131,13 +1139,13 @@ public class SessionPool implements ISessionPool {
       putBack(session);
     } catch (IoTDBConnectionException e) {
       // TException means the connection is broken, remove it and get a new one.
-      LOGGER.warn("insertAlignedRecords failed", e);
+      LOGGER.warn(SessionMessages.INSERT_ALIGNED_RECORDS_FAILED, e);
       cleanSessionAndMayThrowConnectionException(session, FINAL_RETRY, e);
     } catch (StatementExecutionException | RuntimeException e) {
       putBack(session);
       throw e;
     } catch (Throwable e) {
-      LOGGER.error("unexpected error in insertAlignedRecords", e);
+      LOGGER.error(SessionMessages.UNEXPECTED_ERROR_IN_INSERT_ALIGNED_RECORDS, e);
       putBack(session);
       throw new RuntimeException(e);
     }
@@ -1234,13 +1242,13 @@ public class SessionPool implements ISessionPool {
       putBack(session);
     } catch (IoTDBConnectionException e) {
       // TException means the connection is broken, remove it and get a new one.
-      LOGGER.warn("insertStringRecordsOfOneDevice failed", e);
+      LOGGER.warn(SessionMessages.INSERT_STRING_RECORDS_OF_ONE_DEVICE_FAILED, e);
       cleanSessionAndMayThrowConnectionException(session, FINAL_RETRY, e);
     } catch (StatementExecutionException | RuntimeException e) {
       putBack(session);
       throw e;
     } catch (Throwable e) {
-      LOGGER.error("unexpected error in insertStringRecordsOfOneDevice", e);
+      LOGGER.error(SessionMessages.UNEXPECTED_ERROR_IN_INSERT_STRING_RECORDS_OF_ONE_DEVICE, e);
       putBack(session);
       throw new RuntimeException(e);
     }
@@ -1344,13 +1352,13 @@ public class SessionPool implements ISessionPool {
       putBack(session);
     } catch (IoTDBConnectionException e) {
       // TException means the connection is broken, remove it and get a new one.
-      LOGGER.warn("insertStringRecordsOfOneDevice failed", e);
+      LOGGER.warn(SessionMessages.INSERT_STRING_RECORDS_OF_ONE_DEVICE_FAILED, e);
       cleanSessionAndMayThrowConnectionException(session, FINAL_RETRY, e);
     } catch (StatementExecutionException | RuntimeException e) {
       putBack(session);
       throw e;
     } catch (Throwable e) {
-      LOGGER.error("unexpected error in insertStringRecordsOfOneDevice", e);
+      LOGGER.error(SessionMessages.UNEXPECTED_ERROR_IN_INSERT_STRING_RECORDS_OF_ONE_DEVICE, e);
       putBack(session);
       throw new RuntimeException(e);
     }
@@ -1379,13 +1387,13 @@ public class SessionPool implements ISessionPool {
       putBack(session);
     } catch (IoTDBConnectionException e) {
       // TException means the connection is broken, remove it and get a new one.
-      LOGGER.warn("insertAlignedRecordsOfOneDevice failed", e);
+      LOGGER.warn(SessionMessages.INSERT_ALIGNED_RECORDS_OF_ONE_DEVICE_FAILED, e);
       cleanSessionAndMayThrowConnectionException(session, FINAL_RETRY, e);
     } catch (StatementExecutionException | RuntimeException e) {
       putBack(session);
       throw e;
     } catch (Throwable e) {
-      LOGGER.error("unexpected error in insertAlignedRecordsOfOneDevice", e);
+      LOGGER.error(SessionMessages.UNEXPECTED_ERROR_IN_INSERT_ALIGNED_RECORDS_OF_ONE_DEVICE, e);
       putBack(session);
       throw new RuntimeException(e);
     }
@@ -1412,13 +1420,14 @@ public class SessionPool implements ISessionPool {
       putBack(session);
     } catch (IoTDBConnectionException e) {
       // TException means the connection is broken, remove it and get a new one.
-      LOGGER.warn("insertAlignedStringRecordsOfOneDevice failed", e);
+      LOGGER.warn(SessionMessages.INSERT_ALIGNED_STRING_RECORDS_OF_ONE_DEVICE_FAILED, e);
       cleanSessionAndMayThrowConnectionException(session, FINAL_RETRY, e);
     } catch (StatementExecutionException | RuntimeException e) {
       putBack(session);
       throw e;
     } catch (Throwable e) {
-      LOGGER.error("unexpected error in insertAlignedStringRecordsOfOneDevice", e);
+      LOGGER.error(
+          SessionMessages.UNEXPECTED_ERROR_IN_INSERT_ALIGNED_STRING_RECORDS_OF_ONE_DEVICE, e);
       putBack(session);
       throw new RuntimeException(e);
     }
@@ -1450,13 +1459,13 @@ public class SessionPool implements ISessionPool {
       return;
     } catch (IoTDBConnectionException e) {
       // TException means the connection is broken, remove it and get a new one.
-      LOGGER.warn("insertAlignedRecordsOfOneDevice failed", e);
+      LOGGER.warn(SessionMessages.INSERT_ALIGNED_RECORDS_OF_ONE_DEVICE_FAILED, e);
       cleanSessionAndMayThrowConnectionException(session, FINAL_RETRY, e);
     } catch (StatementExecutionException | RuntimeException e) {
       putBack(session);
       throw e;
     } catch (Throwable e) {
-      LOGGER.error("unexpected error in insertAlignedRecordsOfOneDevice", e);
+      LOGGER.error(SessionMessages.UNEXPECTED_ERROR_IN_INSERT_ALIGNED_RECORDS_OF_ONE_DEVICE, e);
       putBack(session);
       throw new RuntimeException(e);
     }
@@ -1486,13 +1495,14 @@ public class SessionPool implements ISessionPool {
       putBack(session);
     } catch (IoTDBConnectionException e) {
       // TException means the connection is broken, remove it and get a new one.
-      LOGGER.warn("insertAlignedStringRecordsOfOneDevice failed", e);
+      LOGGER.warn(SessionMessages.INSERT_ALIGNED_STRING_RECORDS_OF_ONE_DEVICE_FAILED, e);
       cleanSessionAndMayThrowConnectionException(session, FINAL_RETRY, e);
     } catch (StatementExecutionException | RuntimeException e) {
       putBack(session);
       throw e;
     } catch (Throwable e) {
-      LOGGER.error("unexpected error in insertAlignedStringRecordsOfOneDevice", e);
+      LOGGER.error(
+          SessionMessages.UNEXPECTED_ERROR_IN_INSERT_ALIGNED_STRING_RECORDS_OF_ONE_DEVICE, e);
       putBack(session);
       throw new RuntimeException(e);
     }
@@ -1518,7 +1528,7 @@ public class SessionPool implements ISessionPool {
       putBack(session);
     } catch (IoTDBConnectionException e) {
       // TException means the connection is broken, remove it and get a new one.
-      LOGGER.warn("insertRecords failed", e);
+      LOGGER.warn(SessionMessages.INSERT_RECORDS_FAILED, e);
       cleanSessionAndMayThrowConnectionException(session, FINAL_RETRY, e);
     } catch (StatementExecutionException | RuntimeException e) {
       putBack(session);
@@ -1551,13 +1561,13 @@ public class SessionPool implements ISessionPool {
       putBack(session);
     } catch (IoTDBConnectionException e) {
       // TException means the connection is broken, remove it and get a new one.
-      LOGGER.warn("insertAlignedRecords failed", e);
+      LOGGER.warn(SessionMessages.INSERT_ALIGNED_RECORDS_FAILED, e);
       cleanSessionAndMayThrowConnectionException(session, FINAL_RETRY, e);
     } catch (StatementExecutionException | RuntimeException e) {
       putBack(session);
       throw e;
     } catch (Throwable e) {
-      LOGGER.error("unexpected error in insertAlignedRecords", e);
+      LOGGER.error(SessionMessages.UNEXPECTED_ERROR_IN_INSERT_ALIGNED_RECORDS, e);
       putBack(session);
       throw new RuntimeException(e);
     }
@@ -1641,13 +1651,13 @@ public class SessionPool implements ISessionPool {
         return timestampPrecision;
       } catch (TException e) {
         // TException means the connection is broken, remove it and get a new one.
-        LOGGER.warn("getTimestampPrecision failed", e);
+        LOGGER.warn(SessionMessages.GET_TIMESTAMP_PRECISION_FAILED, e);
         cleanSessionAndMayThrowConnectionException(session, i, new IoTDBConnectionException(e));
       } catch (RuntimeException e) {
         putBack(session);
         throw e;
       } catch (Throwable e) {
-        LOGGER.error("unexpected error in getTimestampPrecision", e);
+        LOGGER.error(SessionMessages.UNEXPECTED_ERROR_IN_GET_TIMESTAMP_PRECISION, e);
         putBack(session);
         throw new RuntimeException(e);
       }
@@ -1676,13 +1686,13 @@ public class SessionPool implements ISessionPool {
       putBack(session);
     } catch (IoTDBConnectionException e) {
       // TException means the connection is broken, remove it and get a new one.
-      LOGGER.warn("insertAlignedRecord failed", e);
+      LOGGER.warn(SessionMessages.INSERT_ALIGNED_RECORD_FAILED, e);
       cleanSessionAndMayThrowConnectionException(session, FINAL_RETRY, e);
     } catch (StatementExecutionException | RuntimeException e) {
       putBack(session);
       throw e;
     } catch (Throwable e) {
-      LOGGER.error("unexpected error in insertAlignedRecord", e);
+      LOGGER.error(SessionMessages.UNEXPECTED_ERROR_IN_INSERT_ALIGNED_RECORD, e);
       putBack(session);
       throw new RuntimeException(e);
     }
@@ -1734,13 +1744,13 @@ public class SessionPool implements ISessionPool {
       putBack(session);
     } catch (IoTDBConnectionException e) {
       // TException means the connection is broken, remove it and get a new one.
-      LOGGER.warn("insertAlignedRecord failed", e);
+      LOGGER.warn(SessionMessages.INSERT_ALIGNED_RECORD_FAILED, e);
       cleanSessionAndMayThrowConnectionException(session, FINAL_RETRY, e);
     } catch (StatementExecutionException | RuntimeException e) {
       putBack(session);
       throw e;
     } catch (Throwable e) {
-      LOGGER.error("unexpected error in insertAlignedRecord", e);
+      LOGGER.error(SessionMessages.UNEXPECTED_ERROR_IN_INSERT_ALIGNED_RECORD, e);
       putBack(session);
       throw new RuntimeException(e);
     }
@@ -1759,13 +1769,13 @@ public class SessionPool implements ISessionPool {
       putBack(session);
     } catch (IoTDBConnectionException e) {
       // TException means the connection is broken, remove it and get a new one.
-      LOGGER.warn("testInsertTablet failed", e);
+      LOGGER.warn(SessionMessages.TEST_INSERT_TABLET_FAILED, e);
       cleanSessionAndMayThrowConnectionException(session, FINAL_RETRY, e);
     } catch (StatementExecutionException | RuntimeException e) {
       putBack(session);
       throw e;
     } catch (Throwable e) {
-      LOGGER.error("unexpected error in testInsertTablet", e);
+      LOGGER.error(SessionMessages.UNEXPECTED_ERROR_IN_TEST_INSERT_TABLET, e);
       putBack(session);
       throw new RuntimeException(e);
     }
@@ -1784,13 +1794,13 @@ public class SessionPool implements ISessionPool {
       putBack(session);
     } catch (IoTDBConnectionException e) {
       // TException means the connection is broken, remove it and get a new one.
-      LOGGER.warn("testInsertTablet failed", e);
+      LOGGER.warn(SessionMessages.TEST_INSERT_TABLET_FAILED, e);
       cleanSessionAndMayThrowConnectionException(session, FINAL_RETRY, e);
     } catch (StatementExecutionException | RuntimeException e) {
       putBack(session);
       throw e;
     } catch (Throwable e) {
-      LOGGER.error("unexpected error in testInsertTablet", e);
+      LOGGER.error(SessionMessages.UNEXPECTED_ERROR_IN_TEST_INSERT_TABLET, e);
       putBack(session);
       throw new RuntimeException(e);
     }
@@ -1809,13 +1819,13 @@ public class SessionPool implements ISessionPool {
       putBack(session);
     } catch (IoTDBConnectionException e) {
       // TException means the connection is broken, remove it and get a new one.
-      LOGGER.warn("testInsertTablets failed", e);
+      LOGGER.warn(SessionMessages.TEST_INSERT_TABLETS_FAILED, e);
       cleanSessionAndMayThrowConnectionException(session, FINAL_RETRY, e);
     } catch (StatementExecutionException | RuntimeException e) {
       putBack(session);
       throw e;
     } catch (Throwable e) {
-      LOGGER.error("unexpected error in testInsertTablets", e);
+      LOGGER.error(SessionMessages.UNEXPECTED_ERROR_IN_TEST_INSERT_TABLETS, e);
       putBack(session);
       throw new RuntimeException(e);
     }
@@ -1834,13 +1844,13 @@ public class SessionPool implements ISessionPool {
       putBack(session);
     } catch (IoTDBConnectionException e) {
       // TException means the connection is broken, remove it and get a new one.
-      LOGGER.warn("testInsertTablets failed", e);
+      LOGGER.warn(SessionMessages.TEST_INSERT_TABLETS_FAILED, e);
       cleanSessionAndMayThrowConnectionException(session, FINAL_RETRY, e);
     } catch (StatementExecutionException | RuntimeException e) {
       putBack(session);
       throw e;
     } catch (Throwable e) {
-      LOGGER.error("unexpected error in testInsertTablets", e);
+      LOGGER.error(SessionMessages.UNEXPECTED_ERROR_IN_TEST_INSERT_TABLETS, e);
       putBack(session);
       throw new RuntimeException(e);
     }
@@ -1863,13 +1873,13 @@ public class SessionPool implements ISessionPool {
       putBack(session);
     } catch (IoTDBConnectionException e) {
       // TException means the connection is broken, remove it and get a new one.
-      LOGGER.warn("testInsertRecords failed", e);
+      LOGGER.warn(SessionMessages.TEST_INSERT_RECORDS_FAILED, e);
       cleanSessionAndMayThrowConnectionException(session, FINAL_RETRY, e);
     } catch (StatementExecutionException | RuntimeException e) {
       putBack(session);
       throw e;
     } catch (Throwable e) {
-      LOGGER.error("unexpected error in testInsertRecords", e);
+      LOGGER.error(SessionMessages.UNEXPECTED_ERROR_IN_TEST_INSERT_RECORDS, e);
       putBack(session);
       throw new RuntimeException(e);
     }
@@ -1893,13 +1903,13 @@ public class SessionPool implements ISessionPool {
       putBack(session);
     } catch (IoTDBConnectionException e) {
       // TException means the connection is broken, remove it and get a new one.
-      LOGGER.warn("testInsertRecords failed", e);
+      LOGGER.warn(SessionMessages.TEST_INSERT_RECORDS_FAILED, e);
       cleanSessionAndMayThrowConnectionException(session, FINAL_RETRY, e);
     } catch (StatementExecutionException | RuntimeException e) {
       putBack(session);
       throw e;
     } catch (Throwable e) {
-      LOGGER.error("unexpected error in testInsertRecords", e);
+      LOGGER.error(SessionMessages.UNEXPECTED_ERROR_IN_TEST_INSERT_RECORDS, e);
       putBack(session);
       throw new RuntimeException(e);
     }
@@ -1919,13 +1929,13 @@ public class SessionPool implements ISessionPool {
       putBack(session);
     } catch (IoTDBConnectionException e) {
       // TException means the connection is broken, remove it and get a new one.
-      LOGGER.warn("testInsertRecord failed", e);
+      LOGGER.warn(SessionMessages.TEST_INSERT_RECORD_FAILED, e);
       cleanSessionAndMayThrowConnectionException(session, FINAL_RETRY, e);
     } catch (StatementExecutionException | RuntimeException e) {
       putBack(session);
       throw e;
     } catch (Throwable e) {
-      LOGGER.error("unexpected error in testInsertRecord", e);
+      LOGGER.error(SessionMessages.UNEXPECTED_ERROR_IN_TEST_INSERT_RECORD, e);
       putBack(session);
       throw new RuntimeException(e);
     }
@@ -1949,13 +1959,13 @@ public class SessionPool implements ISessionPool {
       putBack(session);
     } catch (IoTDBConnectionException e) {
       // TException means the connection is broken, remove it and get a new one.
-      LOGGER.warn("testInsertRecord failed", e);
+      LOGGER.warn(SessionMessages.TEST_INSERT_RECORD_FAILED, e);
       cleanSessionAndMayThrowConnectionException(session, FINAL_RETRY, e);
     } catch (StatementExecutionException | RuntimeException e) {
       putBack(session);
       throw e;
     } catch (Throwable e) {
-      LOGGER.error("unexpected error in testInsertRecord", e);
+      LOGGER.error(SessionMessages.UNEXPECTED_ERROR_IN_TEST_INSERT_RECORD, e);
       putBack(session);
       throw new RuntimeException(e);
     }
@@ -1975,13 +1985,13 @@ public class SessionPool implements ISessionPool {
       putBack(session);
     } catch (IoTDBConnectionException e) {
       // TException means the connection is broken, remove it and get a new one.
-      LOGGER.warn("deleteTimeseries failed", e);
+      LOGGER.warn(SessionMessages.DELETE_TIMESERIES_FAILED, e);
       cleanSessionAndMayThrowConnectionException(session, FINAL_RETRY, e);
     } catch (StatementExecutionException | RuntimeException e) {
       putBack(session);
       throw e;
     } catch (Throwable e) {
-      LOGGER.error("unexpected error in deleteTimeseries", e);
+      LOGGER.error(SessionMessages.UNEXPECTED_ERROR_IN_DELETE_TIMESERIES, e);
       putBack(session);
       throw new RuntimeException(e);
     }
@@ -2001,13 +2011,13 @@ public class SessionPool implements ISessionPool {
       putBack(session);
     } catch (IoTDBConnectionException e) {
       // TException means the connection is broken, remove it and get a new one.
-      LOGGER.warn("deleteTimeseries failed", e);
+      LOGGER.warn(SessionMessages.DELETE_TIMESERIES_FAILED, e);
       cleanSessionAndMayThrowConnectionException(session, FINAL_RETRY, e);
     } catch (StatementExecutionException | RuntimeException e) {
       putBack(session);
       throw e;
     } catch (Throwable e) {
-      LOGGER.error("unexpected error in deleteTimeseries", e);
+      LOGGER.error(SessionMessages.UNEXPECTED_ERROR_IN_DELETE_TIMESERIES, e);
       putBack(session);
       throw new RuntimeException(e);
     }
@@ -2110,13 +2120,13 @@ public class SessionPool implements ISessionPool {
         return;
       } catch (IoTDBConnectionException e) {
         // TException means the connection is broken, remove it and get a new one.
-        LOGGER.warn("setStorageGroup failed", e);
+        LOGGER.warn(SessionMessages.SET_STORAGE_GROUP_FAILED, e);
         cleanSessionAndMayThrowConnectionException(session, i, e);
       } catch (StatementExecutionException | RuntimeException e) {
         putBack(session);
         throw e;
       } catch (Throwable e) {
-        LOGGER.error("unexpected error in setStorageGroup", e);
+        LOGGER.error(SessionMessages.UNEXPECTED_ERROR_IN_SET_STORAGE_GROUP, e);
         putBack(session);
         throw new RuntimeException(e);
       }
@@ -2138,13 +2148,13 @@ public class SessionPool implements ISessionPool {
         return;
       } catch (IoTDBConnectionException e) {
         // TException means the connection is broken, remove it and get a new one.
-        LOGGER.warn("deleteStorageGroup failed", e);
+        LOGGER.warn(SessionMessages.DELETE_STORAGE_GROUP_FAILED, e);
         cleanSessionAndMayThrowConnectionException(session, i, e);
       } catch (StatementExecutionException | RuntimeException e) {
         putBack(session);
         throw e;
       } catch (Throwable e) {
-        LOGGER.error("unexpected error in deleteStorageGroup", e);
+        LOGGER.error(SessionMessages.UNEXPECTED_ERROR_IN_DELETE_STORAGE_GROUP, e);
         putBack(session);
         throw new RuntimeException(e);
       }
@@ -2166,13 +2176,13 @@ public class SessionPool implements ISessionPool {
         return;
       } catch (IoTDBConnectionException e) {
         // TException means the connection is broken, remove it and get a new one.
-        LOGGER.warn("deleteStorageGroups failed", e);
+        LOGGER.warn(SessionMessages.DELETE_STORAGE_GROUPS_FAILED, e);
         cleanSessionAndMayThrowConnectionException(session, i, e);
       } catch (StatementExecutionException | RuntimeException e) {
         putBack(session);
         throw e;
       } catch (Throwable e) {
-        LOGGER.error("unexpected error in deleteStorageGroups", e);
+        LOGGER.error(SessionMessages.UNEXPECTED_ERROR_IN_DELETE_STORAGE_GROUPS, e);
         putBack(session);
         throw new RuntimeException(e);
       }
@@ -2190,13 +2200,13 @@ public class SessionPool implements ISessionPool {
         return;
       } catch (IoTDBConnectionException e) {
         // TException means the connection is broken, remove it and get a new one.
-        LOGGER.warn("createDatabase failed", e);
+        LOGGER.warn(SessionMessages.CREATE_DATABASE_FAILED, e);
         cleanSessionAndMayThrowConnectionException(session, i, e);
       } catch (StatementExecutionException | RuntimeException e) {
         putBack(session);
         throw e;
       } catch (Throwable e) {
-        LOGGER.error("unexpected error in createDatabase", e);
+        LOGGER.error(SessionMessages.UNEXPECTED_ERROR_IN_CREATE_DATABASE, e);
         putBack(session);
         throw new RuntimeException(e);
       }
@@ -2214,13 +2224,13 @@ public class SessionPool implements ISessionPool {
         return;
       } catch (IoTDBConnectionException e) {
         // TException means the connection is broken, remove it and get a new one.
-        LOGGER.warn("deleteDatabase failed", e);
+        LOGGER.warn(SessionMessages.DELETE_DATABASE_FAILED, e);
         cleanSessionAndMayThrowConnectionException(session, i, e);
       } catch (StatementExecutionException | RuntimeException e) {
         putBack(session);
         throw e;
       } catch (Throwable e) {
-        LOGGER.error("unexpected error in deleteDatabase", e);
+        LOGGER.error(SessionMessages.UNEXPECTED_ERROR_IN_DELETE_DATABASE, e);
         putBack(session);
         throw new RuntimeException(e);
       }
@@ -2238,13 +2248,13 @@ public class SessionPool implements ISessionPool {
         return;
       } catch (IoTDBConnectionException e) {
         // TException means the connection is broken, remove it and get a new one.
-        LOGGER.warn("deleteDatabases failed", e);
+        LOGGER.warn(SessionMessages.DELETE_DATABASES_FAILED, e);
         cleanSessionAndMayThrowConnectionException(session, i, e);
       } catch (StatementExecutionException | RuntimeException e) {
         putBack(session);
         throw e;
       } catch (Throwable e) {
-        LOGGER.error("unexpected error in deleteDatabases", e);
+        LOGGER.error(SessionMessages.UNEXPECTED_ERROR_IN_DELETE_DATABASES, e);
         putBack(session);
         throw new RuntimeException(e);
       }
@@ -2263,13 +2273,13 @@ public class SessionPool implements ISessionPool {
         return;
       } catch (IoTDBConnectionException e) {
         // TException means the connection is broken, remove it and get a new one.
-        LOGGER.warn("createTimeseries failed", e);
+        LOGGER.warn(SessionMessages.CREATE_TIMESERIES_FAILED, e);
         cleanSessionAndMayThrowConnectionException(session, i, e);
       } catch (StatementExecutionException | RuntimeException e) {
         putBack(session);
         throw e;
       } catch (Throwable e) {
-        LOGGER.error("unexpected error in createTimeseries", e);
+        LOGGER.error(SessionMessages.UNEXPECTED_ERROR_IN_CREATE_TIMESERIES, e);
         putBack(session);
         throw new RuntimeException(e);
       }
@@ -2296,13 +2306,13 @@ public class SessionPool implements ISessionPool {
         return;
       } catch (IoTDBConnectionException e) {
         // TException means the connection is broken, remove it and get a new one.
-        LOGGER.warn("createTimeseries failed", e);
+        LOGGER.warn(SessionMessages.CREATE_TIMESERIES_FAILED, e);
         cleanSessionAndMayThrowConnectionException(session, i, e);
       } catch (StatementExecutionException | RuntimeException e) {
         putBack(session);
         throw e;
       } catch (Throwable e) {
-        LOGGER.error("unexpected error in createTimeseries", e);
+        LOGGER.error(SessionMessages.UNEXPECTED_ERROR_IN_CREATE_TIMESERIES, e);
         putBack(session);
         throw new RuntimeException(e);
       }
@@ -2327,13 +2337,13 @@ public class SessionPool implements ISessionPool {
         return;
       } catch (IoTDBConnectionException e) {
         // TException means the connection is broken, remove it and get a new one.
-        LOGGER.warn("createAlignedTimeseries failed", e);
+        LOGGER.warn(SessionMessages.CREATE_ALIGNED_TIMESERIES_FAILED, e);
         cleanSessionAndMayThrowConnectionException(session, i, e);
       } catch (StatementExecutionException | RuntimeException e) {
         putBack(session);
         throw e;
       } catch (Throwable e) {
-        LOGGER.error("unexpected error in createAlignedTimeseries", e);
+        LOGGER.error(SessionMessages.UNEXPECTED_ERROR_IN_CREATE_ALIGNED_TIMESERIES, e);
         putBack(session);
         throw new RuntimeException(e);
       }
@@ -2367,13 +2377,13 @@ public class SessionPool implements ISessionPool {
         return;
       } catch (IoTDBConnectionException e) {
         // TException means the connection is broken, remove it and get a new one.
-        LOGGER.warn("createAlignedTimeseries failed", e);
+        LOGGER.warn(SessionMessages.CREATE_ALIGNED_TIMESERIES_FAILED, e);
         cleanSessionAndMayThrowConnectionException(session, i, e);
       } catch (StatementExecutionException | RuntimeException e) {
         putBack(session);
         throw e;
       } catch (Throwable e) {
-        LOGGER.error("unexpected error in createAlignedTimeseries", e);
+        LOGGER.error(SessionMessages.UNEXPECTED_ERROR_IN_CREATE_ALIGNED_TIMESERIES, e);
         putBack(session);
         throw new RuntimeException(e);
       }
@@ -2407,13 +2417,13 @@ public class SessionPool implements ISessionPool {
         return;
       } catch (IoTDBConnectionException e) {
         // TException means the connection is broken, remove it and get a new one.
-        LOGGER.warn("createMultiTimeseries failed", e);
+        LOGGER.warn(SessionMessages.CREATE_MULTI_TIMESERIES_FAILED, e);
         cleanSessionAndMayThrowConnectionException(session, i, e);
       } catch (StatementExecutionException | RuntimeException e) {
         putBack(session);
         throw e;
       } catch (Throwable e) {
-        LOGGER.error("unexpected error in createMultiTimeseries", e);
+        LOGGER.error(SessionMessages.UNEXPECTED_ERROR_IN_CREATE_MULTI_TIMESERIES, e);
         putBack(session);
         throw new RuntimeException(e);
       }
@@ -2431,13 +2441,13 @@ public class SessionPool implements ISessionPool {
         return resp;
       } catch (IoTDBConnectionException e) {
         // TException means the connection is broken, remove it and get a new one.
-        LOGGER.warn("checkTimeseriesExists failed", e);
+        LOGGER.warn(SessionMessages.CHECK_TIMESERIES_EXISTS_FAILED, e);
         cleanSessionAndMayThrowConnectionException(session, i, e);
       } catch (StatementExecutionException | RuntimeException e) {
         putBack(session);
         throw e;
       } catch (Throwable e) {
-        LOGGER.error("unexpected error in checkTimeseriesExists", e);
+        LOGGER.error(SessionMessages.UNEXPECTED_ERROR_IN_CHECK_TIMESERIES_EXISTS, e);
         putBack(session);
         throw new RuntimeException(e);
       }
@@ -2585,13 +2595,13 @@ public class SessionPool implements ISessionPool {
         return;
       } catch (IoTDBConnectionException e) {
         // TException means the connection is broken, remove it and get a new one.
-        LOGGER.warn("addAlignedMeasurementsInTemplate failed", e);
+        LOGGER.warn(SessionMessages.ADD_ALIGNED_MEASUREMENTS_IN_TEMPLATE_FAILED, e);
         cleanSessionAndMayThrowConnectionException(session, i, e);
       } catch (StatementExecutionException | RuntimeException e) {
         putBack(session);
         throw e;
       } catch (Throwable e) {
-        LOGGER.error("unexpected error in addAlignedMeasurementsInTemplate", e);
+        LOGGER.error(SessionMessages.UNEXPECTED_ERROR_IN_ADD_ALIGNED_MEASUREMENTS_IN_TEMPLATE, e);
         putBack(session);
         throw new RuntimeException(e);
       }
@@ -2615,13 +2625,13 @@ public class SessionPool implements ISessionPool {
         return;
       } catch (IoTDBConnectionException e) {
         // TException means the connection is broken, remove it and get a new one.
-        LOGGER.warn("addAlignedMeasurementInTemplate failed", e);
+        LOGGER.warn(SessionMessages.ADD_ALIGNED_MEASUREMENT_IN_TEMPLATE_FAILED, e);
         cleanSessionAndMayThrowConnectionException(session, i, e);
       } catch (StatementExecutionException | RuntimeException e) {
         putBack(session);
         throw e;
       } catch (Throwable e) {
-        LOGGER.error("unexpected error in addAlignedMeasurementInTemplate", e);
+        LOGGER.error(SessionMessages.UNEXPECTED_ERROR_IN_ADD_ALIGNED_MEASUREMENT_IN_TEMPLATE, e);
         putBack(session);
         throw new RuntimeException(e);
       }
@@ -2645,13 +2655,13 @@ public class SessionPool implements ISessionPool {
         return;
       } catch (IoTDBConnectionException e) {
         // TException means the connection is broken, remove it and get a new one.
-        LOGGER.warn("addUnalignedMeasurementsInTemplate failed", e);
+        LOGGER.warn(SessionMessages.ADD_UNALIGNED_MEASUREMENTS_IN_TEMPLATE_FAILED, e);
         cleanSessionAndMayThrowConnectionException(session, i, e);
       } catch (StatementExecutionException | RuntimeException e) {
         putBack(session);
         throw e;
       } catch (Throwable e) {
-        LOGGER.error("unexpected error in addUnalignedMeasurementsInTemplate", e);
+        LOGGER.error(SessionMessages.UNEXPECTED_ERROR_IN_ADD_UNALIGNED_MEASUREMENTS_IN_TEMPLATE, e);
         putBack(session);
         throw new RuntimeException(e);
       }
@@ -2675,13 +2685,13 @@ public class SessionPool implements ISessionPool {
         return;
       } catch (IoTDBConnectionException e) {
         // TException means the connection is broken, remove it and get a new one.
-        LOGGER.warn("addUnalignedMeasurementInTemplate failed", e);
+        LOGGER.warn(SessionMessages.ADD_UNALIGNED_MEASUREMENT_IN_TEMPLATE_FAILED, e);
         cleanSessionAndMayThrowConnectionException(session, i, e);
       } catch (StatementExecutionException | RuntimeException e) {
         putBack(session);
         throw e;
       } catch (Throwable e) {
-        LOGGER.error("unexpected error in addUnalignedMeasurementInTemplate", e);
+        LOGGER.error(SessionMessages.UNEXPECTED_ERROR_IN_ADD_UNALIGNED_MEASUREMENT_IN_TEMPLATE, e);
         putBack(session);
         throw new RuntimeException(e);
       }
@@ -2699,13 +2709,13 @@ public class SessionPool implements ISessionPool {
         return;
       } catch (IoTDBConnectionException e) {
         // TException means the connection is broken, remove it and get a new one.
-        LOGGER.warn("deleteNodeInTemplate failed", e);
+        LOGGER.warn(SessionMessages.DELETE_NODE_IN_TEMPLATE_FAILED, e);
         cleanSessionAndMayThrowConnectionException(session, i, e);
       } catch (StatementExecutionException | RuntimeException e) {
         putBack(session);
         throw e;
       } catch (Throwable e) {
-        LOGGER.error("unexpected error in deleteNodeInTemplate", e);
+        LOGGER.error(SessionMessages.UNEXPECTED_ERROR_IN_DELETE_NODE_IN_TEMPLATE, e);
         putBack(session);
         throw new RuntimeException(e);
       }
@@ -2723,13 +2733,13 @@ public class SessionPool implements ISessionPool {
         return resp;
       } catch (IoTDBConnectionException e) {
         // TException means the connection is broken, remove it and get a new one.
-        LOGGER.warn("countMeasurementsInTemplate failed", e);
+        LOGGER.warn(SessionMessages.COUNT_MEASUREMENTS_IN_TEMPLATE_FAILED, e);
         cleanSessionAndMayThrowConnectionException(session, i, e);
       } catch (StatementExecutionException | RuntimeException e) {
         putBack(session);
         throw e;
       } catch (Throwable e) {
-        LOGGER.error("unexpected error in countMeasurementsInTemplate", e);
+        LOGGER.error(SessionMessages.UNEXPECTED_ERROR_IN_COUNT_MEASUREMENTS_IN_TEMPLATE, e);
         putBack(session);
         throw new RuntimeException(e);
       }
@@ -2748,13 +2758,13 @@ public class SessionPool implements ISessionPool {
         return resp;
       } catch (IoTDBConnectionException e) {
         // TException means the connection is broken, remove it and get a new one.
-        LOGGER.warn("isMeasurementInTemplate failed", e);
+        LOGGER.warn(SessionMessages.IS_MEASUREMENT_IN_TEMPLATE_FAILED, e);
         cleanSessionAndMayThrowConnectionException(session, i, e);
       } catch (StatementExecutionException | RuntimeException e) {
         putBack(session);
         throw e;
       } catch (Throwable e) {
-        LOGGER.error("unexpected error in isMeasurementInTemplate", e);
+        LOGGER.error(SessionMessages.UNEXPECTED_ERROR_IN_IS_MEASUREMENT_IN_TEMPLATE, e);
         putBack(session);
         throw new RuntimeException(e);
       }
@@ -2773,13 +2783,13 @@ public class SessionPool implements ISessionPool {
         return resp;
       } catch (IoTDBConnectionException e) {
         // TException means the connection is broken, remove it and get a new one.
-        LOGGER.warn("isPathExistInTemplata failed", e);
+        LOGGER.warn(SessionMessages.IS_PATH_EXIST_IN_TEMPLATE_FAILED, e);
         cleanSessionAndMayThrowConnectionException(session, i, e);
       } catch (StatementExecutionException | RuntimeException e) {
         putBack(session);
         throw e;
       } catch (Throwable e) {
-        LOGGER.error("unexpected error in isPathExistInTemplate", e);
+        LOGGER.error(SessionMessages.UNEXPECTED_ERROR_IN_IS_PATH_EXIST_IN_TEMPLATE, e);
         putBack(session);
         throw new RuntimeException(e);
       }
@@ -2798,13 +2808,13 @@ public class SessionPool implements ISessionPool {
         return resp;
       } catch (IoTDBConnectionException e) {
         // TException means the connection is broken, remove it and get a new one.
-        LOGGER.warn("showMeasurementsInTemplate failed", e);
+        LOGGER.warn(SessionMessages.SHOW_MEASUREMENTS_IN_TEMPLATE_FAILED, e);
         cleanSessionAndMayThrowConnectionException(session, i, e);
       } catch (StatementExecutionException | RuntimeException e) {
         putBack(session);
         throw e;
       } catch (Throwable e) {
-        LOGGER.error("unexpected error in showMeasurementsInTemplate", e);
+        LOGGER.error(SessionMessages.UNEXPECTED_ERROR_IN_SHOW_MEASUREMENTS_IN_TEMPLATE, e);
         putBack(session);
         throw new RuntimeException(e);
       }
@@ -2823,13 +2833,13 @@ public class SessionPool implements ISessionPool {
         return resp;
       } catch (IoTDBConnectionException e) {
         // TException means the connection is broken, remove it and get a new one.
-        LOGGER.warn("showMeasurementsInTemplate failed", e);
+        LOGGER.warn(SessionMessages.SHOW_MEASUREMENTS_IN_TEMPLATE_FAILED, e);
         cleanSessionAndMayThrowConnectionException(session, i, e);
       } catch (StatementExecutionException | RuntimeException e) {
         putBack(session);
         throw e;
       } catch (Throwable e) {
-        LOGGER.error("unexpected error in showMeasurementsInTemplate", e);
+        LOGGER.error(SessionMessages.UNEXPECTED_ERROR_IN_SHOW_MEASUREMENTS_IN_TEMPLATE, e);
         putBack(session);
         throw new RuntimeException(e);
       }
@@ -2848,13 +2858,13 @@ public class SessionPool implements ISessionPool {
         return resp;
       } catch (IoTDBConnectionException e) {
         // TException means the connection is broken, remove it and get a new one.
-        LOGGER.warn("showAllTemplates failed", e);
+        LOGGER.warn(SessionMessages.SHOW_ALL_TEMPLATES_FAILED, e);
         cleanSessionAndMayThrowConnectionException(session, i, e);
       } catch (StatementExecutionException | RuntimeException e) {
         putBack(session);
         throw e;
       } catch (Throwable e) {
-        LOGGER.error("unexpected error in showAllTemplates", e);
+        LOGGER.error(SessionMessages.UNEXPECTED_ERROR_IN_SHOW_ALL_TEMPLATES, e);
         putBack(session);
         throw new RuntimeException(e);
       }
@@ -2873,13 +2883,13 @@ public class SessionPool implements ISessionPool {
         return resp;
       } catch (IoTDBConnectionException e) {
         // TException means the connection is broken, remove it and get a new one.
-        LOGGER.warn("showPathsTemplateSetOn failed", e);
+        LOGGER.warn(SessionMessages.SHOW_PATHS_TEMPLATE_SET_ON_FAILED, e);
         cleanSessionAndMayThrowConnectionException(session, i, e);
       } catch (StatementExecutionException | RuntimeException e) {
         putBack(session);
         throw e;
       } catch (Throwable e) {
-        LOGGER.error("unexpected error in showPathsTemplateSetOn", e);
+        LOGGER.error(SessionMessages.UNEXPECTED_ERROR_IN_SHOW_PATHS_TEMPLATE_SET_ON, e);
         putBack(session);
         throw new RuntimeException(e);
       }
@@ -2898,13 +2908,13 @@ public class SessionPool implements ISessionPool {
         return resp;
       } catch (IoTDBConnectionException e) {
         // TException means the connection is broken, remove it and get a new one.
-        LOGGER.warn("showPathsTemplateUsingOn failed", e);
+        LOGGER.warn(SessionMessages.SHOW_PATHS_TEMPLATE_USING_ON_FAILED, e);
         cleanSessionAndMayThrowConnectionException(session, i, e);
       } catch (StatementExecutionException | RuntimeException e) {
         putBack(session);
         throw e;
       } catch (Throwable e) {
-        LOGGER.error("unexpected error in showPathsTemplateUsingOn", e);
+        LOGGER.error(SessionMessages.UNEXPECTED_ERROR_IN_SHOW_PATHS_TEMPLATE_USING_ON, e);
         putBack(session);
         throw new RuntimeException(e);
       }
@@ -2930,13 +2940,13 @@ public class SessionPool implements ISessionPool {
         return;
       } catch (IoTDBConnectionException e) {
         // TException means the connection is broken, remove it and get a new one.
-        LOGGER.warn("setSchemaTemplate [{}] on [{}] failed", templateName, prefixPath, e);
+        LOGGER.warn(SessionMessages.SET_SCHEMA_TEMPLATE_ON_FAILED, templateName, prefixPath, e);
         cleanSessionAndMayThrowConnectionException(session, i, e);
       } catch (StatementExecutionException | RuntimeException e) {
         putBack(session);
         throw e;
       } catch (Throwable e) {
-        LOGGER.error("unexpected error in setSchemaTemplate", e);
+        LOGGER.error(SessionMessages.UNEXPECTED_ERROR_IN_SET_SCHEMA_TEMPLATE, e);
         putBack(session);
         throw new RuntimeException(e);
       }
@@ -2954,13 +2964,13 @@ public class SessionPool implements ISessionPool {
         return;
       } catch (IoTDBConnectionException e) {
         // TException means the connection is broken, remove it and get a new one.
-        LOGGER.warn("unsetSchemaTemplate [{}] on [{}] failed", templateName, prefixPath, e);
+        LOGGER.warn(SessionMessages.UNSET_SCHEMA_TEMPLATE_ON_FAILED, templateName, prefixPath, e);
         cleanSessionAndMayThrowConnectionException(session, i, e);
       } catch (StatementExecutionException | RuntimeException e) {
         putBack(session);
         throw e;
       } catch (Throwable e) {
-        LOGGER.error("unexpected error in unsetSchemaTemplate", e);
+        LOGGER.error(SessionMessages.UNEXPECTED_ERROR_IN_UNSET_SCHEMA_TEMPLATE, e);
         putBack(session);
         throw new RuntimeException(e);
       }
@@ -2978,13 +2988,13 @@ public class SessionPool implements ISessionPool {
         return;
       } catch (IoTDBConnectionException e) {
         // TException means the connection is broken, remove it and get a new one.
-        LOGGER.warn("dropSchemaTemplate [{}] failed", templateName, e);
+        LOGGER.warn(SessionMessages.DROP_SCHEMA_TEMPLATE_FAILED, templateName, e);
         cleanSessionAndMayThrowConnectionException(session, i, e);
       } catch (StatementExecutionException | RuntimeException e) {
         putBack(session);
         throw e;
       } catch (Throwable e) {
-        LOGGER.error("unexpected error in dropSchemaTemplate", e);
+        LOGGER.error(SessionMessages.UNEXPECTED_ERROR_IN_DROP_SCHEMA_TEMPLATE, e);
         putBack(session);
         throw new RuntimeException(e);
       }
@@ -3001,13 +3011,14 @@ public class SessionPool implements ISessionPool {
         return;
       } catch (IoTDBConnectionException e) {
         // TException means the connection is broken, remove it and get a new one.
-        LOGGER.warn("createTimeseriesOfSchemaTemplate {} failed", devicePathList, e);
+        LOGGER.warn(SessionMessages.CREATE_TIMESERIES_OF_SCHEMA_TEMPLATE_FAILED, devicePathList, e);
         cleanSessionAndMayThrowConnectionException(session, i, e);
       } catch (StatementExecutionException | RuntimeException e) {
         putBack(session);
         throw e;
       } catch (Throwable e) {
-        LOGGER.error("unexpected error in createTimeseriesUsingSchemaTemplate", e);
+        LOGGER.error(
+            SessionMessages.UNEXPECTED_ERROR_IN_CREATE_TIMESERIES_USING_SCHEMA_TEMPLATE, e);
         putBack(session);
         throw new RuntimeException(e);
       }
@@ -3036,13 +3047,13 @@ public class SessionPool implements ISessionPool {
         return wrapper;
       } catch (IoTDBConnectionException e) {
         // TException means the connection is broken, remove it and get a new one.
-        LOGGER.warn("executeQueryStatement failed", e);
+        LOGGER.warn(SessionMessages.EXECUTE_QUERY_STATEMENT_FAILED, e);
         cleanSessionAndMayThrowConnectionException(session, i, e);
       } catch (StatementExecutionException | RuntimeException e) {
         putBack(session);
         throw e;
       } catch (Throwable e) {
-        LOGGER.error("unexpected error in executeQueryStatement", e);
+        LOGGER.error(SessionMessages.UNEXPECTED_ERROR_IN_EXECUTE_QUERY_STATEMENT, e);
         putBack(session);
         throw new RuntimeException(e);
       }
@@ -3074,13 +3085,13 @@ public class SessionPool implements ISessionPool {
         return wrapper;
       } catch (IoTDBConnectionException e) {
         // TException means the connection is broken, remove it and get a new one.
-        LOGGER.warn("executeQueryStatement failed", e);
+        LOGGER.warn(SessionMessages.EXECUTE_QUERY_STATEMENT_FAILED, e);
         cleanSessionAndMayThrowConnectionException(session, i, e);
       } catch (StatementExecutionException | RuntimeException e) {
         putBack(session);
         throw e;
       } catch (Throwable e) {
-        LOGGER.error("unexpected error in executeQueryStatement", e);
+        LOGGER.error(SessionMessages.UNEXPECTED_ERROR_IN_EXECUTE_QUERY_STATEMENT, e);
         putBack(session);
         throw new RuntimeException(e);
       }
@@ -3110,13 +3121,13 @@ public class SessionPool implements ISessionPool {
       putBack(session);
     } catch (IoTDBConnectionException e) {
       // TException means the connection is broken, remove it and get a new one.
-      LOGGER.warn("executeNonQueryStatement failed", e);
+      LOGGER.warn(SessionMessages.EXECUTE_NON_QUERY_STATEMENT_FAILED, e);
       cleanSessionAndMayThrowConnectionException(session, FINAL_RETRY, e);
     } catch (StatementExecutionException | RuntimeException e) {
       putBack(session);
       throw e;
     } catch (Throwable e) {
-      LOGGER.error("unexpected error in executeNonQueryStatement", e);
+      LOGGER.error(SessionMessages.UNEXPECTED_ERROR_IN_EXECUTE_NON_QUERY_STATEMENT, e);
       putBack(session);
       throw new RuntimeException(e);
     }
@@ -3136,13 +3147,13 @@ public class SessionPool implements ISessionPool {
         return wrapper;
       } catch (IoTDBConnectionException e) {
         // TException means the connection is broken, remove it and get a new one.
-        LOGGER.warn("executeRawDataQuery failed", e);
+        LOGGER.warn(SessionMessages.EXECUTE_RAW_DATA_QUERY_FAILED, e);
         cleanSessionAndMayThrowConnectionException(session, i, e);
       } catch (StatementExecutionException | RuntimeException e) {
         putBack(session);
         throw e;
       } catch (Throwable e) {
-        LOGGER.error("unexpected error in executeRawDataQuery", e);
+        LOGGER.error(SessionMessages.UNEXPECTED_ERROR_IN_EXECUTE_RAW_DATA_QUERY, e);
         putBack(session);
         throw new RuntimeException(e);
       }
@@ -3244,7 +3255,7 @@ public class SessionPool implements ISessionPool {
         return wrapper;
       } catch (IoTDBConnectionException e) {
         // TException means the connection is broken, remove it and get a new one.
-        LOGGER.warn("executeLastDataQuery failed", e);
+        LOGGER.warn(SessionMessages.EXECUTE_LAST_DATA_QUERY_FAILED, e);
         cleanSessionAndMayThrowConnectionException(session, i, e);
       } catch (StatementExecutionException | RuntimeException e) {
         putBack(session);
@@ -3273,7 +3284,7 @@ public class SessionPool implements ISessionPool {
         return wrapper;
       } catch (IoTDBConnectionException e) {
         // TException means the connection is broken, remove it and get a new one.
-        LOGGER.warn("executeLastDataQuery failed", e);
+        LOGGER.warn(SessionMessages.EXECUTE_LAST_DATA_QUERY_FAILED, e);
         cleanSessionAndMayThrowConnectionException(session, i, e);
       } catch (StatementExecutionException | RuntimeException e) {
         putBack(session);
@@ -3464,7 +3475,7 @@ public class SessionPool implements ISessionPool {
         putBack(session);
       } catch (IoTDBConnectionException e) {
         // TException means the connection is broken, remove it and get a new one.
-        LOGGER.warn("setTimeZone to [{}] failed", zoneId, e);
+        LOGGER.warn(SessionMessages.SET_TIMEZONE_FAILED, zoneId, e);
         cleanSessionAndMayThrowConnectionException(session, i, e);
       } catch (StatementExecutionException | RuntimeException e) {
         putBack(session);
@@ -3567,7 +3578,7 @@ public class SessionPool implements ISessionPool {
         return resp;
       } catch (IoTDBConnectionException e) {
         // TException means the connection is broken, remove it and get a new one.
-        LOGGER.warn("fetchAllConnections failed", e);
+        LOGGER.warn(SessionMessages.FETCH_ALL_CONNECTIONS_FAILED, e);
         cleanSessionAndMayThrowConnectionException(session, i, e);
       } catch (Throwable t) {
         putBack(session);
diff --git a/iotdb-client/session/src/main/java/org/apache/iotdb/session/template/InternalNode.java b/iotdb-client/session/src/main/java/org/apache/iotdb/session/template/InternalNode.java
index 6e7bd698c54..303fb5377d1 100644
--- a/iotdb-client/session/src/main/java/org/apache/iotdb/session/template/InternalNode.java
+++ b/iotdb-client/session/src/main/java/org/apache/iotdb/session/template/InternalNode.java
@@ -21,6 +21,7 @@ package org.apache.iotdb.session.template;
 
 import org.apache.iotdb.isession.template.TemplateNode;
 import org.apache.iotdb.rpc.StatementExecutionException;
+import org.apache.iotdb.session.i18n.SessionMessages;
 
 import java.util.HashMap;
 import java.util.Map;
@@ -38,7 +39,7 @@ public class InternalNode extends TemplateNode {
   @Override
   public void addChild(TemplateNode node) throws StatementExecutionException {
     if (children.containsKey(node.getName())) {
-      throw new StatementExecutionException("Duplicated child of node in template.");
+      throw new StatementExecutionException(SessionMessages.DUPLICATED_CHILD_IN_TEMPLATE);
     }
     this.children.put(node.getName(), node);
   }
diff --git a/iotdb-client/session/src/main/java/org/apache/iotdb/session/util/SessionUtils.java b/iotdb-client/session/src/main/java/org/apache/iotdb/session/util/SessionUtils.java
index 1b5ad290678..da15b5a0731 100644
--- a/iotdb-client/session/src/main/java/org/apache/iotdb/session/util/SessionUtils.java
+++ b/iotdb-client/session/src/main/java/org/apache/iotdb/session/util/SessionUtils.java
@@ -22,6 +22,7 @@ package org.apache.iotdb.session.util;
 import org.apache.iotdb.common.rpc.thrift.TEndPoint;
 import org.apache.iotdb.rpc.IoTDBConnectionException;
 import org.apache.iotdb.rpc.UrlUtils;
+import org.apache.iotdb.session.i18n.SessionMessages;
 
 import org.apache.tsfile.common.conf.TSFileConfig;
 import org.apache.tsfile.encoding.encoder.Encoder;
@@ -476,7 +477,7 @@ public class SessionUtils {
 
   public static List<TEndPoint> parseSeedNodeUrls(List<String> nodeUrls) {
     if (nodeUrls == null) {
-      throw new NumberFormatException("nodeUrls is null");
+      throw new NumberFormatException(SessionMessages.NODE_URLS_IS_NULL);
     }
     List<TEndPoint> endPointsList = new ArrayList<>();
     for (String nodeUrl : nodeUrls) {
diff --git a/iotdb-client/subscription/pom.xml b/iotdb-client/subscription/pom.xml
index c41ef1e3bde..0ec7a30473d 100644
--- a/iotdb-client/subscription/pom.xml
+++ b/iotdb-client/subscription/pom.xml
@@ -78,4 +78,12 @@
             <artifactId>libthrift</artifactId>
         </dependency>
     </dependencies>
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.codehaus.mojo</groupId>
+                <artifactId>build-helper-maven-plugin</artifactId>
+            </plugin>
+        </plugins>
+    </build>
 </project>
diff --git a/iotdb-client/subscription/src/main/i18n/en/org/apache/iotdb/rpc/subscription/i18n/SubscriptionMessages.java b/iotdb-client/subscription/src/main/i18n/en/org/apache/iotdb/rpc/subscription/i18n/SubscriptionMessages.java
new file mode 100644
index 00000000000..3b03471138d
--- /dev/null
+++ b/iotdb-client/subscription/src/main/i18n/en/org/apache/iotdb/rpc/subscription/i18n/SubscriptionMessages.java
@@ -0,0 +1,95 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.iotdb.rpc.subscription.i18n;
+
+public final class SubscriptionMessages {
+
+  // --- TopicConstant / ConsumerConstant ---
+  public static final String UTILITY_CLASS = "Utility class";
+
+  // --- SubscriptionPollRequest ---
+  public static final String UNEXPECTED_REQUEST_TYPE =
+      "unexpected request type: {}, payload will be null";
+
+  // --- SubscriptionPollResponse ---
+  public static final String UNEXPECTED_RESPONSE_TYPE =
+      "unexpected response type: {}, payload will be null";
+
+  // --- IdentifierUtils ---
+  public static final String NULL_IDENTIFIER_NOT_SUPPORTED = "null identifier is not supported";
+  public static final String EMPTY_IDENTIFIER_NOT_SUPPORTED = "empty identifier is not supported";
+
+  // --- PollTimer ---
+  public static final String INVALID_NEGATIVE_TIMEOUT = "Invalid negative timeout ";
+
+  // --- AbstractSubscriptionPushConsumer ---
+  public static final String PUSH_CONSUMER_CANCEL_AUTO_POLL =
+      "SubscriptionPushConsumer {} cancel auto poll worker";
+  public static final String PUSH_CONSUMER_SUBMIT_AUTO_POLL =
+      "SubscriptionPushConsumer {} submit auto poll worker";
+  public static final String CONSUMER_LISTENER_FAILURE =
+      "Consumer listener result failure when consuming message: {}";
+  public static final String AUTO_POLL_UNEXPECTED = "something unexpected happened when auto poll messages...";
+
+  // --- SubscriptionExecutorServiceManager ---
+  public static final String EXECUTOR_LAUNCHING = "Launching {} with core pool size {}...";
+  public static final String EXECUTOR_SHUTTING_DOWN = "Shutting down {}...";
+  public static final String EXECUTOR_NOT_LAUNCHED_SUBMIT =
+      "{} has not been launched, ignore submit task";
+  public static final String EXECUTOR_NOT_LAUNCHED_INVOKE =
+      "{} has not been launched, ignore invoke all tasks";
+  public static final String EXECUTOR_NOT_LAUNCHED_ZERO =
+      "{} has not been launched, return zero";
+  public static final String EXECUTOR_NOT_LAUNCHED_SCHEDULE =
+      "{} has not been launched, ignore scheduleWithFixedDelay for task";
+
+  // --- AbstractSubscriptionProviders ---
+  public static final String PROVIDER_CLOSE_FAILED =
+      "Failed to close subscription provider {} because of {}";
+  public static final String ADD_NEW_PROVIDER = "add new subscription provider {}";
+  public static final String CLOSE_STALE_PROVIDER = "close and remove stale subscription provider {}";
+  public static final String OPEN_PROVIDERS_FAILED =
+      "Failed to open providers for consumer {} because of {}";
+  public static final String FETCH_ENDPOINTS_FAILED =
+      "Failed to fetch all endpoints for consumer {} because of {}";
+
+  // --- AbstractSubscriptionPullConsumer ---
+  public static final String PULL_CONSUMER_CANCEL_AUTO_COMMIT =
+      "SubscriptionPullConsumer {} cancel auto commit worker";
+  public static final String PULL_CONSUMER_SUBMIT_AUTO_COMMIT =
+      "SubscriptionPullConsumer {} submit auto commit worker";
+  public static final String AUTO_COMMIT_UNEXPECTED =
+      "something unexpected happened when auto commit messages...";
+  public static final String COMMIT_DURING_CLOSE_UNEXPECTED =
+      "something unexpected happened when commit messages during close";
+
+  // --- AbstractSubscriptionConsumer ---
+  public static final String UNEXPECTED_RESPONSE_TYPE_WARN = "unexpected response type: {}";
+  public static final String CONSUMER_CANCEL_HEARTBEAT_WORKER =
+      "SubscriptionConsumer {} cancel heartbeat worker";
+  public static final String CONSUMER_SUBMIT_HEARTBEAT_WORKER =
+      "SubscriptionConsumer {} submit heartbeat worker";
+  public static final String CONSUMER_CANCEL_ENDPOINTS_SYNCER =
+      "SubscriptionConsumer {} cancel endpoints syncer";
+  public static final String CONSUMER_SUBMIT_ENDPOINTS_SYNCER =
+      "SubscriptionConsumer {} submit endpoints syncer";
+
+  private SubscriptionMessages() {}
+}
diff --git a/iotdb-client/subscription/src/main/i18n/zh/org/apache/iotdb/rpc/subscription/i18n/SubscriptionMessages.java b/iotdb-client/subscription/src/main/i18n/zh/org/apache/iotdb/rpc/subscription/i18n/SubscriptionMessages.java
new file mode 100644
index 00000000000..ccd186c9ed3
--- /dev/null
+++ b/iotdb-client/subscription/src/main/i18n/zh/org/apache/iotdb/rpc/subscription/i18n/SubscriptionMessages.java
@@ -0,0 +1,95 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.iotdb.rpc.subscription.i18n;
+
+public final class SubscriptionMessages {
+
+  // --- TopicConstant / ConsumerConstant ---
+  public static final String UTILITY_CLASS = "工具类";
+
+  // --- SubscriptionPollRequest ---
+  public static final String UNEXPECTED_REQUEST_TYPE =
+      "意外的请求类型:{},payload 将为 null";
+
+  // --- SubscriptionPollResponse ---
+  public static final String UNEXPECTED_RESPONSE_TYPE =
+      "意外的响应类型:{},payload 将为 null";
+
+  // --- IdentifierUtils ---
+  public static final String NULL_IDENTIFIER_NOT_SUPPORTED = "不支持 null 标识符";
+  public static final String EMPTY_IDENTIFIER_NOT_SUPPORTED = "不支持空标识符";
+
+  // --- PollTimer ---
+  public static final String INVALID_NEGATIVE_TIMEOUT = "无效的负超时时间 ";
+
+  // --- AbstractSubscriptionPushConsumer ---
+  public static final String PUSH_CONSUMER_CANCEL_AUTO_POLL =
+      "SubscriptionPushConsumer {} 取消自动拉取工作线程";
+  public static final String PUSH_CONSUMER_SUBMIT_AUTO_POLL =
+      "SubscriptionPushConsumer {} 提交自动拉取工作线程";
+  public static final String CONSUMER_LISTENER_FAILURE =
+      "消费消息时消费者监听器结果失败:{}";
+  public static final String AUTO_POLL_UNEXPECTED = "自动拉取消息时发生意外情况...";
+
+  // --- SubscriptionExecutorServiceManager ---
+  public static final String EXECUTOR_LAUNCHING = "正在启动 {},核心线程池大小:{}...";
+  public static final String EXECUTOR_SHUTTING_DOWN = "正在关闭 {}...";
+  public static final String EXECUTOR_NOT_LAUNCHED_SUBMIT =
+      "{} 尚未启动,忽略提交任务";
+  public static final String EXECUTOR_NOT_LAUNCHED_INVOKE =
+      "{} 尚未启动,忽略批量调用任务";
+  public static final String EXECUTOR_NOT_LAUNCHED_ZERO =
+      "{} 尚未启动,返回零";
+  public static final String EXECUTOR_NOT_LAUNCHED_SCHEDULE =
+      "{} 尚未启动,忽略 scheduleWithFixedDelay 任务";
+
+  // --- AbstractSubscriptionProviders ---
+  public static final String PROVIDER_CLOSE_FAILED =
+      "关闭订阅提供者 {} 失败,原因:{}";
+  public static final String ADD_NEW_PROVIDER = "添加新的订阅提供者 {}";
+  public static final String CLOSE_STALE_PROVIDER = "关闭并移除过期的订阅提供者 {}";
+  public static final String OPEN_PROVIDERS_FAILED =
+      "为消费者 {} 打开提供者失败,原因:{}";
+  public static final String FETCH_ENDPOINTS_FAILED =
+      "为消费者 {} 获取所有端点失败,原因:{}";
+
+  // --- AbstractSubscriptionPullConsumer ---
+  public static final String PULL_CONSUMER_CANCEL_AUTO_COMMIT =
+      "SubscriptionPullConsumer {} 取消自动提交工作线程";
+  public static final String PULL_CONSUMER_SUBMIT_AUTO_COMMIT =
+      "SubscriptionPullConsumer {} 提交自动提交工作线程";
+  public static final String AUTO_COMMIT_UNEXPECTED =
+      "自动提交消息时发生意外情况...";
+  public static final String COMMIT_DURING_CLOSE_UNEXPECTED =
+      "关闭期间提交消息时发生意外情况";
+
+  // --- AbstractSubscriptionConsumer ---
+  public static final String UNEXPECTED_RESPONSE_TYPE_WARN = "意外的响应类型:{}";
+  public static final String CONSUMER_CANCEL_HEARTBEAT_WORKER =
+      "SubscriptionConsumer {} 取消心跳工作线程";
+  public static final String CONSUMER_SUBMIT_HEARTBEAT_WORKER =
+      "SubscriptionConsumer {} 提交心跳工作线程";
+  public static final String CONSUMER_CANCEL_ENDPOINTS_SYNCER =
+      "SubscriptionConsumer {} 取消端点同步器";
+  public static final String CONSUMER_SUBMIT_ENDPOINTS_SYNCER =
+      "SubscriptionConsumer {} 提交端点同步器";
+
+  private SubscriptionMessages() {}
+}
diff --git a/iotdb-client/subscription/src/main/java/org/apache/iotdb/rpc/subscription/config/ConsumerConstant.java b/iotdb-client/subscription/src/main/java/org/apache/iotdb/rpc/subscription/config/ConsumerConstant.java
index 9c52c8dd7da..90d2ea7a01f 100644
--- a/iotdb-client/subscription/src/main/java/org/apache/iotdb/rpc/subscription/config/ConsumerConstant.java
+++ b/iotdb-client/subscription/src/main/java/org/apache/iotdb/rpc/subscription/config/ConsumerConstant.java
@@ -19,6 +19,8 @@
 
 package org.apache.iotdb.rpc.subscription.config;
 
+import org.apache.iotdb.rpc.subscription.i18n.SubscriptionMessages;
+
 import java.nio.file.Paths;
 
 public class ConsumerConstant {
@@ -84,6 +86,6 @@ public class ConsumerConstant {
   public static final long AUTO_POLL_TIMEOUT_MS_MIN_VALUE = 1_000L;
 
   private ConsumerConstant() {
-    throw new IllegalStateException("Utility class");
+    throw new IllegalStateException(SubscriptionMessages.UTILITY_CLASS);
   }
 }
diff --git a/iotdb-client/subscription/src/main/java/org/apache/iotdb/rpc/subscription/config/TopicConstant.java b/iotdb-client/subscription/src/main/java/org/apache/iotdb/rpc/subscription/config/TopicConstant.java
index bb84358648e..52c8e4de752 100644
--- a/iotdb-client/subscription/src/main/java/org/apache/iotdb/rpc/subscription/config/TopicConstant.java
+++ b/iotdb-client/subscription/src/main/java/org/apache/iotdb/rpc/subscription/config/TopicConstant.java
@@ -19,6 +19,8 @@
 
 package org.apache.iotdb.rpc.subscription.config;
 
+import org.apache.iotdb.rpc.subscription.i18n.SubscriptionMessages;
+
 public class TopicConstant {
 
   public static final String PATH_KEY = "path";
@@ -60,6 +62,6 @@ public class TopicConstant {
   public static final String STRICT_DEFAULT_VALUE = "true";
 
   private TopicConstant() {
-    throw new IllegalStateException("Utility class");
+    throw new IllegalStateException(SubscriptionMessages.UTILITY_CLASS);
   }
 }
diff --git a/iotdb-client/subscription/src/main/java/org/apache/iotdb/rpc/subscription/payload/poll/SubscriptionPollRequest.java b/iotdb-client/subscription/src/main/java/org/apache/iotdb/rpc/subscription/payload/poll/SubscriptionPollRequest.java
index 3337887b185..e7863ad3a55 100644
--- a/iotdb-client/subscription/src/main/java/org/apache/iotdb/rpc/subscription/payload/poll/SubscriptionPollRequest.java
+++ b/iotdb-client/subscription/src/main/java/org/apache/iotdb/rpc/subscription/payload/poll/SubscriptionPollRequest.java
@@ -19,6 +19,8 @@
 
 package org.apache.iotdb.rpc.subscription.payload.poll;
 
+import org.apache.iotdb.rpc.subscription.i18n.SubscriptionMessages;
+
 import org.apache.tsfile.utils.PublicBAOS;
 import org.apache.tsfile.utils.ReadWriteIOUtils;
 import org.slf4j.Logger;
@@ -100,11 +102,11 @@ public class SubscriptionPollRequest {
           payload = new PollTabletsPayload().deserialize(buffer);
           break;
         default:
-          LOGGER.warn("unexpected request type: {}, payload will be null", requestType);
+          LOGGER.warn(SubscriptionMessages.UNEXPECTED_REQUEST_TYPE, requestType);
           break;
       }
     } else {
-      LOGGER.warn("unexpected request type: {}, payload will be null", requestType);
+      LOGGER.warn(SubscriptionMessages.UNEXPECTED_REQUEST_TYPE, requestType);
     }
 
     final long timeoutMs = ReadWriteIOUtils.readLong(buffer);
diff --git a/iotdb-client/subscription/src/main/java/org/apache/iotdb/rpc/subscription/payload/poll/SubscriptionPollResponse.java b/iotdb-client/subscription/src/main/java/org/apache/iotdb/rpc/subscription/payload/poll/SubscriptionPollResponse.java
index 06baa30acee..fdea7770121 100644
--- a/iotdb-client/subscription/src/main/java/org/apache/iotdb/rpc/subscription/payload/poll/SubscriptionPollResponse.java
+++ b/iotdb-client/subscription/src/main/java/org/apache/iotdb/rpc/subscription/payload/poll/SubscriptionPollResponse.java
@@ -19,6 +19,8 @@
 
 package org.apache.iotdb.rpc.subscription.payload.poll;
 
+import org.apache.iotdb.rpc.subscription.i18n.SubscriptionMessages;
+
 import org.apache.tsfile.utils.PublicBAOS;
 import org.apache.tsfile.utils.ReadWriteIOUtils;
 import org.slf4j.Logger;
@@ -101,11 +103,11 @@ public class SubscriptionPollResponse {
           payload = new TerminationPayload().deserialize(buffer);
           break;
         default:
-          LOGGER.warn("unexpected response type: {}, payload will be null", responseType);
+          LOGGER.warn(SubscriptionMessages.UNEXPECTED_RESPONSE_TYPE, responseType);
           break;
       }
     } else {
-      LOGGER.warn("unexpected response type: {}, payload will be null", responseType);
+      LOGGER.warn(SubscriptionMessages.UNEXPECTED_RESPONSE_TYPE, responseType);
     }
 
     final SubscriptionCommitContext commitContext = SubscriptionCommitContext.deserialize(buffer);
diff --git a/iotdb-client/subscription/src/main/java/org/apache/iotdb/session/subscription/consumer/base/AbstractSubscriptionConsumer.java b/iotdb-client/subscription/src/main/java/org/apache/iotdb/session/subscription/consumer/base/AbstractSubscriptionConsumer.java
index 62c8d20e389..63e5a263f22 100644
--- a/iotdb-client/subscription/src/main/java/org/apache/iotdb/session/subscription/consumer/base/AbstractSubscriptionConsumer.java
+++ b/iotdb-client/subscription/src/main/java/org/apache/iotdb/session/subscription/consumer/base/AbstractSubscriptionConsumer.java
@@ -30,6 +30,7 @@ import org.apache.iotdb.rpc.subscription.exception.SubscriptionPollTimeoutExcept
 import org.apache.iotdb.rpc.subscription.exception.SubscriptionRuntimeCriticalException;
 import org.apache.iotdb.rpc.subscription.exception.SubscriptionRuntimeNonCriticalException;
 import org.apache.iotdb.rpc.subscription.exception.SubscriptionTimeoutException;
+import org.apache.iotdb.rpc.subscription.i18n.SubscriptionMessages;
 import org.apache.iotdb.rpc.subscription.payload.poll.ErrorPayload;
 import org.apache.iotdb.rpc.subscription.payload.poll.FileInitPayload;
 import org.apache.iotdb.rpc.subscription.payload.poll.FilePiecePayload;
@@ -642,7 +643,7 @@ abstract class AbstractSubscriptionConsumer implements AutoCloseable {
           for (final SubscriptionPollResponse response : currentResponses) {
             final short responseType = response.getResponseType();
             if (!SubscriptionPollResponseType.isValidatedResponseType(responseType)) {
-              LOGGER.warn("unexpected response type: {}", responseType);
+              LOGGER.warn(SubscriptionMessages.UNEXPECTED_RESPONSE_TYPE_WARN, responseType);
               continue;
             }
             try {
@@ -650,7 +651,8 @@ abstract class AbstractSubscriptionConsumer implements AutoCloseable {
                   .getOrDefault(
                       SubscriptionPollResponseType.valueOf(responseType),
                       (resp, ignored) -> {
-                        LOGGER.warn("unexpected response type: {}", responseType);
+                        LOGGER.warn(
+                            SubscriptionMessages.UNEXPECTED_RESPONSE_TYPE_WARN, responseType);
                         return Optional.empty();
                       })
                   // TODO: reuse previous timer?
@@ -1242,14 +1244,14 @@ abstract class AbstractSubscriptionConsumer implements AutoCloseable {
               if (isClosed()) {
                 if (Objects.nonNull(future[0])) {
                   future[0].cancel(false);
-                  LOGGER.info("SubscriptionConsumer {} cancel heartbeat worker", this);
+                  LOGGER.info(SubscriptionMessages.CONSUMER_CANCEL_HEARTBEAT_WORKER, this);
                 }
                 return;
               }
               providers.heartbeat(this);
             },
             heartbeatIntervalMs);
-    LOGGER.info("SubscriptionConsumer {} submit heartbeat worker", this);
+    LOGGER.info(SubscriptionMessages.CONSUMER_SUBMIT_HEARTBEAT_WORKER, this);
   }
 
   /////////////////////////////// sync endpoints ///////////////////////////////
@@ -1262,14 +1264,14 @@ abstract class AbstractSubscriptionConsumer implements AutoCloseable {
               if (isClosed()) {
                 if (Objects.nonNull(future[0])) {
                   future[0].cancel(false);
-                  LOGGER.info("SubscriptionConsumer {} cancel endpoints syncer", this);
+                  LOGGER.info(SubscriptionMessages.CONSUMER_CANCEL_ENDPOINTS_SYNCER, this);
                 }
                 return;
               }
               providers.sync(this);
             },
             endpointsSyncIntervalMs);
-    LOGGER.info("SubscriptionConsumer {} submit endpoints syncer", this);
+    LOGGER.info(SubscriptionMessages.CONSUMER_SUBMIT_ENDPOINTS_SYNCER, this);
   }
 
   /////////////////////////////// commit async ///////////////////////////////
diff --git a/iotdb-client/subscription/src/main/java/org/apache/iotdb/session/subscription/consumer/base/AbstractSubscriptionProviders.java b/iotdb-client/subscription/src/main/java/org/apache/iotdb/session/subscription/consumer/base/AbstractSubscriptionProviders.java
index b12ca3f927f..5d48de1a93c 100644
--- a/iotdb-client/subscription/src/main/java/org/apache/iotdb/session/subscription/consumer/base/AbstractSubscriptionProviders.java
+++ b/iotdb-client/subscription/src/main/java/org/apache/iotdb/session/subscription/consumer/base/AbstractSubscriptionProviders.java
@@ -23,6 +23,7 @@ import org.apache.iotdb.common.rpc.thrift.TEndPoint;
 import org.apache.iotdb.rpc.IoTDBConnectionException;
 import org.apache.iotdb.rpc.subscription.exception.SubscriptionConnectionException;
 import org.apache.iotdb.rpc.subscription.exception.SubscriptionException;
+import org.apache.iotdb.rpc.subscription.i18n.SubscriptionMessages;
 import org.apache.iotdb.rpc.subscription.payload.response.PipeSubscribeHeartbeatResp;
 
 import org.slf4j.Logger;
@@ -141,7 +142,7 @@ final class AbstractSubscriptionProviders {
       try {
         provider.close();
       } catch (final Exception e) {
-        LOGGER.warn("Failed to close subscription provider {} because of {}", provider, e, e);
+        LOGGER.warn(SubscriptionMessages.PROVIDER_CLOSE_FAILED, provider, e, e);
       }
     }
     subscriptionProviders.clear();
@@ -150,7 +151,7 @@ final class AbstractSubscriptionProviders {
   /** Caller should ensure that the method is called in the lock {@link #acquireWriteLock()}. */
   void addProvider(final int dataNodeId, final AbstractSubscriptionProvider provider) {
     // the subscription provider is opened
-    LOGGER.info("add new subscription provider {}", provider);
+    LOGGER.info(SubscriptionMessages.ADD_NEW_PROVIDER, provider);
     subscriptionProviders.put(dataNodeId, provider);
   }
 
@@ -164,7 +165,7 @@ final class AbstractSubscriptionProviders {
     try {
       provider.close();
     } finally {
-      LOGGER.info("close and remove stale subscription provider {}", provider);
+      LOGGER.info(SubscriptionMessages.CLOSE_STALE_PROVIDER, provider);
       subscriptionProviders.remove(dataNodeId);
     }
   }
@@ -289,7 +290,7 @@ final class AbstractSubscriptionProviders {
       try {
         openProviders(consumer);
       } catch (final Exception e) {
-        LOGGER.warn("Failed to open providers for consumer {} because of {}", consumer, e, e);
+        LOGGER.warn(SubscriptionMessages.OPEN_PROVIDERS_FAILED, consumer, e, e);
         return;
       }
     }
@@ -298,7 +299,7 @@ final class AbstractSubscriptionProviders {
     try {
       allEndPoints = consumer.fetchAllEndPointsWithRedirection();
     } catch (final Exception e) {
-      LOGGER.warn("Failed to fetch all endpoints for consumer {} because of {}", consumer, e, e);
+      LOGGER.warn(SubscriptionMessages.FETCH_ENDPOINTS_FAILED, consumer, e, e);
       return;
     }
 
diff --git a/iotdb-client/subscription/src/main/java/org/apache/iotdb/session/subscription/consumer/base/AbstractSubscriptionPullConsumer.java b/iotdb-client/subscription/src/main/java/org/apache/iotdb/session/subscription/consumer/base/AbstractSubscriptionPullConsumer.java
index 991857bc685..6449da15732 100644
--- a/iotdb-client/subscription/src/main/java/org/apache/iotdb/session/subscription/consumer/base/AbstractSubscriptionPullConsumer.java
+++ b/iotdb-client/subscription/src/main/java/org/apache/iotdb/session/subscription/consumer/base/AbstractSubscriptionPullConsumer.java
@@ -21,6 +21,7 @@ package org.apache.iotdb.session.subscription.consumer.base;
 
 import org.apache.iotdb.rpc.subscription.config.ConsumerConstant;
 import org.apache.iotdb.rpc.subscription.exception.SubscriptionException;
+import org.apache.iotdb.rpc.subscription.i18n.SubscriptionMessages;
 import org.apache.iotdb.rpc.subscription.payload.poll.SubscriptionCommitContext;
 import org.apache.iotdb.session.subscription.consumer.AsyncCommitCallback;
 import org.apache.iotdb.session.subscription.payload.SubscriptionMessage;
@@ -252,14 +253,14 @@ public abstract class AbstractSubscriptionPullConsumer extends AbstractSubscript
               if (isClosed()) {
                 if (Objects.nonNull(future[0])) {
                   future[0].cancel(false);
-                  LOGGER.info("SubscriptionPullConsumer {} cancel auto commit worker", this);
+                  LOGGER.info(SubscriptionMessages.PULL_CONSUMER_CANCEL_AUTO_COMMIT, this);
                 }
                 return;
               }
               new AutoCommitWorker().run();
             },
             autoCommitIntervalMs);
-    LOGGER.info("SubscriptionPullConsumer {} submit auto commit worker", this);
+    LOGGER.info(SubscriptionMessages.PULL_CONSUMER_SUBMIT_AUTO_COMMIT, this);
   }
 
   private class AutoCommitWorker implements Runnable {
@@ -281,7 +282,7 @@ public abstract class AbstractSubscriptionPullConsumer extends AbstractSubscript
           ackCommitContexts(entry.getValue());
           uncommittedCommitContexts.remove(entry.getKey());
         } catch (final Exception e) {
-          LOGGER.warn("something unexpected happened when auto commit messages...", e);
+          LOGGER.warn(SubscriptionMessages.AUTO_COMMIT_UNEXPECTED, e);
         }
       }
     }
@@ -294,7 +295,7 @@ public abstract class AbstractSubscriptionPullConsumer extends AbstractSubscript
         ackCommitContexts(entry.getValue());
         uncommittedCommitContexts.remove(entry.getKey());
       } catch (final Exception e) {
-        LOGGER.warn("something unexpected happened when commit messages during close", e);
+        LOGGER.warn(SubscriptionMessages.COMMIT_DURING_CLOSE_UNEXPECTED, e);
       }
     }
   }
diff --git a/iotdb-client/subscription/src/main/java/org/apache/iotdb/session/subscription/consumer/base/AbstractSubscriptionPushConsumer.java b/iotdb-client/subscription/src/main/java/org/apache/iotdb/session/subscription/consumer/base/AbstractSubscriptionPushConsumer.java
index 3ff93db218b..d227a317c9b 100644
--- a/iotdb-client/subscription/src/main/java/org/apache/iotdb/session/subscription/consumer/base/AbstractSubscriptionPushConsumer.java
+++ b/iotdb-client/subscription/src/main/java/org/apache/iotdb/session/subscription/consumer/base/AbstractSubscriptionPushConsumer.java
@@ -21,6 +21,7 @@ package org.apache.iotdb.session.subscription.consumer.base;
 
 import org.apache.iotdb.rpc.subscription.config.ConsumerConstant;
 import org.apache.iotdb.rpc.subscription.exception.SubscriptionException;
+import org.apache.iotdb.rpc.subscription.i18n.SubscriptionMessages;
 import org.apache.iotdb.session.subscription.consumer.AckStrategy;
 import org.apache.iotdb.session.subscription.consumer.ConsumeListener;
 import org.apache.iotdb.session.subscription.consumer.ConsumeResult;
@@ -156,14 +157,14 @@ public abstract class AbstractSubscriptionPushConsumer extends AbstractSubscript
               if (isClosed()) {
                 if (Objects.nonNull(future[0])) {
                   future[0].cancel(false);
-                  LOGGER.info("SubscriptionPushConsumer {} cancel auto poll worker", this);
+                  LOGGER.info(SubscriptionMessages.PUSH_CONSUMER_CANCEL_AUTO_POLL, this);
                 }
                 return;
               }
               new AutoPollWorker().run();
             },
             autoPollIntervalMs);
-    LOGGER.info("SubscriptionPushConsumer {} submit auto poll worker", this);
+    LOGGER.info(SubscriptionMessages.PUSH_CONSUMER_SUBMIT_AUTO_POLL, this);
   }
 
   class AutoPollWorker implements Runnable {
@@ -202,7 +203,7 @@ public abstract class AbstractSubscriptionPushConsumer extends AbstractSubscript
             if (Objects.equals(ConsumeResult.SUCCESS, consumeResult)) {
               messagesToAck.add(message);
             } else {
-              LOGGER.warn("Consumer listener result failure when consuming message: {}", message);
+              LOGGER.warn(SubscriptionMessages.CONSUMER_LISTENER_FAILURE, message);
               messagesToNack.add(message);
             }
           } catch (final Exception e) {
@@ -217,7 +218,7 @@ public abstract class AbstractSubscriptionPushConsumer extends AbstractSubscript
           nack(messagesToNack);
         }
       } catch (final Exception e) {
-        LOGGER.warn("something unexpected happened when auto poll messages...", e);
+        LOGGER.warn(SubscriptionMessages.AUTO_POLL_UNEXPECTED, e);
       }
     }
   }
diff --git a/iotdb-client/subscription/src/main/java/org/apache/iotdb/session/subscription/consumer/base/SubscriptionExecutorServiceManager.java b/iotdb-client/subscription/src/main/java/org/apache/iotdb/session/subscription/consumer/base/SubscriptionExecutorServiceManager.java
index e31ae3ba5da..6429643effe 100644
--- a/iotdb-client/subscription/src/main/java/org/apache/iotdb/session/subscription/consumer/base/SubscriptionExecutorServiceManager.java
+++ b/iotdb-client/subscription/src/main/java/org/apache/iotdb/session/subscription/consumer/base/SubscriptionExecutorServiceManager.java
@@ -19,6 +19,8 @@
 
 package org.apache.iotdb.session.subscription.consumer.base;
 
+import org.apache.iotdb.rpc.subscription.i18n.SubscriptionMessages;
+
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
@@ -199,7 +201,7 @@ public final class SubscriptionExecutorServiceManager {
       if (isShutdown()) {
         synchronized (this) {
           if (isShutdown()) {
-            LOGGER.info("Launching {} with core pool size {}...", this.name, this.corePoolSize);
+            LOGGER.info(SubscriptionMessages.EXECUTOR_LAUNCHING, this.name, this.corePoolSize);
 
             this.executor =
                 Executors.newFixedThreadPool(
@@ -224,7 +226,7 @@ public final class SubscriptionExecutorServiceManager {
       if (!isShutdown()) {
         synchronized (this) {
           if (!isShutdown()) {
-            LOGGER.info("Shutting down {}...", this.name);
+            LOGGER.info(SubscriptionMessages.EXECUTOR_SHUTTING_DOWN, this.name);
 
             this.executor.shutdown();
             try {
@@ -261,7 +263,7 @@ public final class SubscriptionExecutorServiceManager {
         }
       }
 
-      LOGGER.warn("{} has not been launched, ignore submit task", this.name);
+      LOGGER.warn(SubscriptionMessages.EXECUTOR_NOT_LAUNCHED_SUBMIT, this.name);
       return null;
     }
 
@@ -276,7 +278,7 @@ public final class SubscriptionExecutorServiceManager {
         }
       }
 
-      LOGGER.warn("{} has not been launched, ignore invoke all tasks", this.name);
+      LOGGER.warn(SubscriptionMessages.EXECUTOR_NOT_LAUNCHED_INVOKE, this.name);
       return null;
     }
 
@@ -294,7 +296,7 @@ public final class SubscriptionExecutorServiceManager {
         }
       }
 
-      LOGGER.warn("{} has not been launched, return zero", this.name);
+      LOGGER.warn(SubscriptionMessages.EXECUTOR_NOT_LAUNCHED_ZERO, this.name);
       return 0;
     }
   }
@@ -310,7 +312,7 @@ public final class SubscriptionExecutorServiceManager {
       if (isShutdown()) {
         synchronized (this) {
           if (isShutdown()) {
-            LOGGER.info("Launching {} with core pool size {}...", this.name, this.corePoolSize);
+            LOGGER.info(SubscriptionMessages.EXECUTOR_LAUNCHING, this.name, this.corePoolSize);
 
             this.executor =
                 Executors.newScheduledThreadPool(
@@ -343,7 +345,7 @@ public final class SubscriptionExecutorServiceManager {
         }
       }
 
-      LOGGER.warn("{} has not been launched, ignore scheduleWithFixedDelay for task", this.name);
+      LOGGER.warn(SubscriptionMessages.EXECUTOR_NOT_LAUNCHED_SCHEDULE, this.name);
       return null;
     }
   }
diff --git a/iotdb-client/subscription/src/main/java/org/apache/iotdb/session/subscription/util/IdentifierUtils.java b/iotdb-client/subscription/src/main/java/org/apache/iotdb/session/subscription/util/IdentifierUtils.java
index 6947ac9ef7b..b7df6173268 100644
--- a/iotdb-client/subscription/src/main/java/org/apache/iotdb/session/subscription/util/IdentifierUtils.java
+++ b/iotdb-client/subscription/src/main/java/org/apache/iotdb/session/subscription/util/IdentifierUtils.java
@@ -20,6 +20,7 @@
 package org.apache.iotdb.session.subscription.util;
 
 import org.apache.iotdb.rpc.subscription.exception.SubscriptionIdentifierSemanticException;
+import org.apache.iotdb.rpc.subscription.i18n.SubscriptionMessages;
 
 import org.apache.tsfile.common.constant.TsFileConstant;
 import org.apache.tsfile.read.common.parser.PathVisitor;
@@ -33,10 +34,12 @@ public class IdentifierUtils {
    */
   public static String checkAndParseIdentifier(final String src) {
     if (Objects.isNull(src)) {
-      throw new SubscriptionIdentifierSemanticException("null identifier is not supported");
+      throw new SubscriptionIdentifierSemanticException(
+          SubscriptionMessages.NULL_IDENTIFIER_NOT_SUPPORTED);
     }
     if (src.isEmpty()) {
-      throw new SubscriptionIdentifierSemanticException("empty identifier is not supported");
+      throw new SubscriptionIdentifierSemanticException(
+          SubscriptionMessages.EMPTY_IDENTIFIER_NOT_SUPPORTED);
     }
     if (src.startsWith(TsFileConstant.BACK_QUOTE_STRING)
         && src.endsWith(TsFileConstant.BACK_QUOTE_STRING)) {
diff --git a/iotdb-client/subscription/src/main/java/org/apache/iotdb/session/subscription/util/PollTimer.java b/iotdb-client/subscription/src/main/java/org/apache/iotdb/session/subscription/util/PollTimer.java
index 1dd077854e8..913c27c1ed6 100644
--- a/iotdb-client/subscription/src/main/java/org/apache/iotdb/session/subscription/util/PollTimer.java
+++ b/iotdb-client/subscription/src/main/java/org/apache/iotdb/session/subscription/util/PollTimer.java
@@ -19,6 +19,8 @@
 
 package org.apache.iotdb.session.subscription.util;
 
+import org.apache.iotdb.rpc.subscription.i18n.SubscriptionMessages;
+
 public class PollTimer {
 
   private long startMs;
@@ -49,7 +51,7 @@ public class PollTimer {
 
   public void reset(final long timeoutMs) {
     if (timeoutMs < 0L) {
-      throw new IllegalArgumentException("Invalid negative timeout " + timeoutMs);
+      throw new IllegalArgumentException(SubscriptionMessages.INVALID_NEGATIVE_TIMEOUT + timeoutMs);
     } else {
       this.timeoutMs = timeoutMs;
       this.startMs = this.currentTimeMs;
diff --git a/iotdb-core/calc-commons/pom.xml b/iotdb-core/calc-commons/pom.xml
index 170604d15fc..d854f29cce7 100644
--- a/iotdb-core/calc-commons/pom.xml
+++ b/iotdb-core/calc-commons/pom.xml
@@ -195,6 +195,10 @@
                     </execution>
                 </executions>
             </plugin>
+            <plugin>
+                <groupId>org.codehaus.mojo</groupId>
+                <artifactId>build-helper-maven-plugin</artifactId>
+            </plugin>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-failsafe-plugin</artifactId>
diff --git a/iotdb-core/calc-commons/src/main/i18n/en/org/apache/iotdb/calc/i18n/CalcMessages.java b/iotdb-core/calc-commons/src/main/i18n/en/org/apache/iotdb/calc/i18n/CalcMessages.java
new file mode 100644
index 00000000000..9267e141fb5
--- /dev/null
+++ b/iotdb-core/calc-commons/src/main/i18n/en/org/apache/iotdb/calc/i18n/CalcMessages.java
@@ -0,0 +1,154 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.iotdb.calc.i18n;
+
+public final class CalcMessages {
+
+  private CalcMessages() {}
+
+  public static final String AND_OPERATOR_ONLY_ACCEPTS_BOOLEAN_OPERANDS =
+      "AND operator only accepts Boolean operands";
+  public static final String ARRAYS_NOT_SAME_LENGTH = "Arrays not same length";
+  public static final String CANNOT_ADD_NAN_TO_T_DIGEST = "Cannot add NaN to t-digest";
+  public static final String CANNOT_CAST_TO_BOOLEAN = "\"%s\" cannot be cast to [BOOLEAN]";
+  public static final String CANNOT_PARSE_STRING_TO_DOUBLE = "Cannot parse String to double: ";
+  public static final String CANT_HAPPEN_LOOP_FELL_THROUGH =
+      "Can't happen ... loop fell through";
+  public static final String COUNT_ALL_ACCUMULATOR_DOES_NOT_SUPPORT_STATISTICS =
+      "CountAllAccumulator does not support statistics.";
+  public static final String COUNT_IF_ACCUMULATOR_DOES_NOT_SUPPORT_STATISTICS =
+      "CountIfAccumulator does not support statistics";
+  public static final String CURRENT_COLUMN_IS_NOT_OBJECT_COLUMN =
+      "current column is not object column";
+  public static final String CURRENT_TS_BLOCK_SIZE_IS = "Current tsBlock size is : {}";
+  public static final String DATA_TYPE_CANNOT_BE_ORDERED = "Data type: %s cannot be ordered";
+  public static final String DECODE_BASE32_ERROR = "decode base32 error";
+  public static final String DECODE_BASE64_ERROR = "decode base64 error";
+  public static final String DECODE_BASE64URL_ERROR = "decode base64url error";
+  public static final String DECODE_HEX_ERROR = "decode hex error";
+  public static final String DENSE_RANK_NOT_YET_IMPLEMENTED = "DENSE_RANK not yet implemented";
+  public static final String DISTINCT_AGGREGATION_FUNCTION_CANNOT_BE_PUSH_DOWN =
+      "Distinct aggregation function can not be push down";
+  public static final String DIVISION_BY_ZERO = "Division by zero";
+  public static final String ESCAPE_STRING_MUST_BE_A_SINGLE_CHARACTER =
+      "Escape string must be a single character";
+  public static final String EXCEPTION_HAPPENED_WHEN_EXECUTING_UDTF =
+      "Exception happened when executing UDTF: ";
+  public static final String FAIL_TO_CLOSE_FILE_CHANNEL = "Fail to close fileChannel";
+  public static final String ILLEGAL_STATE_IN_VISIT_LOGICAL_EXPRESSION =
+      "Illegal state in visitLogicalExpression";
+  public static final String INDEX_OUT_OF_PARTITION_BOUNDS = "Index out of Partition's bounds!";
+  public static final String INITIAL_CAPACITY_IS_NEGATIVE = "Initial capacity (%d) is negative";
+  public static final String INITIAL_CAPACITY_EXCEEDS_LIMIT = "Initial capacity (%d) exceeds %d";
+  public static final String INPUT_ROW_UTILS_SHOULD_NOT_BE_INSTANTIATED =
+      "InputRowUtils should not be instantiated.";
+  public static final String INVALID_AGGREGATION_FUNCTION = "Invalid Aggregation function: ";
+  public static final String INVALID_TEXT_INPUT_FOR_BOOLEAN =
+      "Invalid text input for boolean type: %s";
+  public static final String INVALID_VALUE = "Invalid value: %f";
+  public static final String LEFT_CHILD_OF_JOIN_NODE_DOESNT_CONTAIN_LEFT_JOIN_KEY =
+      "Left child of JoinNode doesn't contain left join key.";
+  public static final String MAX_TUPLE_SIZE_OF_TS_BLOCK_IS = "maxTupleSizeOfTsBlock is:{}";
+  public static final String MEMORY_IS_NOT_ENOUGH_FOR_CURRENT_QUERY =
+      "Memory is not enough for current query.";
+  public static final String MERGE_SORT_HEAP_SHOULD_BE_EMPTY = "mergeSortHeap should be empty!";
+  public static final String MODULUS_BY_ZERO = "Modulus by zero";
+  public static final String MULTIPLE_I_OBJECT_FILE_SERVICE_PROVIDER_FOUND =
+      "Multiple IObjectFileServiceProvider found";
+  public static final String MULTIPLE_I_TEMPORARY_QUERY_DATA_FILE_SERVICE_PROVIDER_FOUND =
+      "Multiple ITemporaryQueryDataFileServiceProvider found";
+  public static final String NOT_ENOUGH_MEMORY_FOR_SORTING = "Not enough memory for sorting";
+  public static final String NOT_YET_IMPLEMENTED = "not yet implemented";
+  public static final String NO_I_OBJECT_FILE_SERVICE_PROVIDER_FOUND =
+      "No IObjectFileServiceProvider found";
+  public static final String NO_I_TEMPORARY_QUERY_DATA_FILE_SERVICE_PROVIDER_FOUND =
+      "No ITemporaryQueryDataFileServiceProvider found";
+  public static final String OFFSET_LESS_THAN_ZERO = "offset %d is less than 0.";
+  public static final String ONLY_ONE_TUPLE_CAN_BE_SENT_EACH_TIME =
+      "Only one tuple can be sent each time caused by limited memory, oneTupleSize: {}B, maxReturnSize: {}B";
+  public static final String OR_OPERATOR_ONLY_ACCEPTS_BOOLEAN_OPERANDS =
+      "OR operator only accepts Boolean operands";
+  public static final String PERCENTAGE_SHOULD_BE_IN_0_1 = "percentage should be in [0,1], got ";
+  public static final String READ_OBJECT_IS_NOT_SUPPORTED = "readObject is not supported";
+  public static final String RESULT_TS_BLOCK_CANNOT_BE_NULL = "Result tsBlock cannot be null";
+  public static final String RIGHT_CHILD_OF_JOIN_NODE_DOESNT_CONTAIN_RIGHT_JOIN_KEY =
+      "Right child of JoinNode doesn't contain right join key.";
+  public static final String SHOULD_CALL_THE_CONCRETE_VISIT_XX_METHOD =
+      "should call the concrete visitXX() method";
+  public static final String STATE_FOR_GROUP_NOT_FOUND = "State for group %d is not found";
+  public static final String SUM_SHOULD_NEVER_BE_ZERO = "sum should never be zero.";
+  public static final String THIS_ACCUMULATOR_DOES_NOT_SUPPORT_REMOVING_INPUTS =
+      "This Accumulator does not support removing inputs!";
+  public static final String THIS_IS_A_UTILITY_CLASS_AND_CANNOT_BE_INSTANTIATED =
+      "This is a utility class and cannot be instantiated";
+  public static final String TYPE_OF_LEFT_ASOF_JOIN_KEY_IS_NOT_TIMESTAMP =
+      "Type of left ASOF Join key is not TIMESTAMP";
+  public static final String TYPE_OF_RIGHT_ASOF_JOIN_KEY_IS_NOT_TIMESTAMP =
+      "Type of right ASOF Join key is not TIMESTAMP";
+  public static final String UDAF_NOT_SUPPORT_CALCULATE_FROM_STATISTICS =
+      "UDAF not support calculate from statistics now";
+  public static final String UNBOUND_FOLLOWING_NOT_ALLOWED_IN_FRAME_START =
+      "UNBOUND FOLLOWING is not allowed in frame start!";
+  public static final String UNBOUND_PRECEDING_NOT_ALLOWED_IN_FRAME_END =
+      "UNBOUND PRECEDING is not allowed in frame end!";
+  public static final String UNBOUND_PRECEDING_NOT_ALLOWED_IN_FRAME_START =
+      "UNBOUND PRECEDING is not allowed in frame start!";
+  public static final String UNEXPECTED_ANCHOR_TYPE = "unexpected anchor type: ";
+  public static final String UNEXPECTED_EXTRACT_FIELD = "Unexpected extract field: ";
+  public static final String UNEXPECTED_SIZE_FOR_LAST_SEQUENCE =
+      "Unexpected size for last sequence: ";
+  public static final String UNEXPECTED_SKIP_TO_POSITION = "unexpected SKIP TO position: ";
+  public static final String UNEXPECTED_VALUE_FOR_REMAINDER = "Unexpected value for remainder: ";
+  public static final String UNEXPECTED_VALUE_FOR_SEQUENCES =
+      "Unexpected value for sequences: ";
+  public static final String UNHANDLED_LITERAL_TYPE = "Unhandled literal type: ";
+  public static final String UNKNOWN_DATA_TYPE = "Unknown data type: ";
+  public static final String UNKNOWN_DATATYPE = "Unknown datatype: ";
+  public static final String UNKNOWN_RANKING_TYPE = "Unknown ranking type: ";
+  public static final String UNKNOWN_SIGN = "Unknown sign: ";
+  public static final String UNKNOWN_TYPE = "Unknown type: ";
+  public static final String UNREACHABLE = "Unreachable!";
+  public static final String UNSUPPORTED_ARITHMETIC_OPERATOR =
+      "Unsupported arithmetic operator: ";
+  public static final String UNSUPPORTED_ASOF_JOIN_TYPE = "Unsupported ASOF join type: ";
+  public static final String UNSUPPORTED_CAST_TO_TYPE = "Unsupported cast to type: ";
+  public static final String UNSUPPORTED_COLUMN_TRANSFORMER = "Unsupported ColumnTransformer";
+  public static final String UNSUPPORTED_COMPARISON_OPERATOR =
+      "Unsupported comparison operator: ";
+  public static final String UNSUPPORTED_DATA_TYPE = "Unsupported data type: ";
+  public static final String UNSUPPORTED_DATA_TYPE_LOWER = "unsupported data type: ";
+  public static final String UNSUPPORTED_FRAME_BOUND_TYPE = "Unsupported frame bound type: ";
+  public static final String UNSUPPORTED_FUNCTION_KIND = "Unsupported function kind: ";
+  public static final String UNSUPPORTED_JOIN_TYPE = "Unsupported join type: ";
+  public static final String UNSUPPORTED_LOGICAL_OPERATOR = "Unsupported logical operator: ";
+  public static final String UNSUPPORTED_TYPE = "Unsupported type: ";
+  public static final String UNSUPPORTED_TYPE_BINARY = "Unsupported Type";
+  public static final String UNSUPPORTED_TYPE_CLASS = "Unsupported type: ";
+  public static final String UNSUPPORTED_TYPE_FOR_ARITHMETIC_OPERATION =
+      "Unsupported type for arithmetic operation: ";
+  public static final String UNSUPPORTED_TYPE_IN_GENERIC_LITERAL =
+      "Unsupported type in GenericLiteral: ";
+  public static final String WEIGHT_MUST_BE_GE_1 = "weight must be >= 1, was ";
+
+  public static final String PUSHED_ELEMENT_IS_NULL =
+      "pushed element is null";
+
+  public static final String FAILED_TO_DELETE_TEMP_DIR = "Failed to delete temp dir {}.";
+}
diff --git a/iotdb-core/calc-commons/src/main/i18n/zh/org/apache/iotdb/calc/i18n/CalcMessages.java b/iotdb-core/calc-commons/src/main/i18n/zh/org/apache/iotdb/calc/i18n/CalcMessages.java
new file mode 100644
index 00000000000..00a0b60be59
--- /dev/null
+++ b/iotdb-core/calc-commons/src/main/i18n/zh/org/apache/iotdb/calc/i18n/CalcMessages.java
@@ -0,0 +1,146 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.iotdb.calc.i18n;
+
+public final class CalcMessages {
+
+  private CalcMessages() {}
+
+  public static final String AND_OPERATOR_ONLY_ACCEPTS_BOOLEAN_OPERANDS =
+      "AND 运算符只接受布尔操作数";
+  public static final String ARRAYS_NOT_SAME_LENGTH = "数组长度不一致";
+  public static final String CANNOT_ADD_NAN_TO_T_DIGEST = "不能将 NaN 添加到 t-digest";
+  public static final String CANNOT_CAST_TO_BOOLEAN = "\"%s\" 无法转换为 [BOOLEAN]";
+  public static final String CANNOT_PARSE_STRING_TO_DOUBLE = "无法将字符串解析为 double:";
+  public static final String CANT_HAPPEN_LOOP_FELL_THROUGH = "不应发生……循环穿透";
+  public static final String COUNT_ALL_ACCUMULATOR_DOES_NOT_SUPPORT_STATISTICS =
+      "CountAllAccumulator 不支持统计信息。";
+  public static final String COUNT_IF_ACCUMULATOR_DOES_NOT_SUPPORT_STATISTICS =
+      "CountIfAccumulator 不支持统计信息";
+  public static final String CURRENT_COLUMN_IS_NOT_OBJECT_COLUMN = "当前列不是对象列";
+  public static final String CURRENT_TS_BLOCK_SIZE_IS = "当前 tsBlock 大小为:{}";
+  public static final String DATA_TYPE_CANNOT_BE_ORDERED = "数据类型:%s 不能排序";
+  public static final String DECODE_BASE32_ERROR = "base32 解码错误";
+  public static final String DECODE_BASE64_ERROR = "base64 解码错误";
+  public static final String DECODE_BASE64URL_ERROR = "base64url 解码错误";
+  public static final String DECODE_HEX_ERROR = "hex 解码错误";
+  public static final String DENSE_RANK_NOT_YET_IMPLEMENTED = "DENSE_RANK 尚未实现";
+  public static final String DISTINCT_AGGREGATION_FUNCTION_CANNOT_BE_PUSH_DOWN =
+      "DISTINCT 聚合函数不能下推";
+  public static final String DIVISION_BY_ZERO = "除以零";
+  public static final String ESCAPE_STRING_MUST_BE_A_SINGLE_CHARACTER =
+      "转义字符串必须是单个字符";
+  public static final String EXCEPTION_HAPPENED_WHEN_EXECUTING_UDTF =
+      "执行 UDTF 时发生异常:";
+  public static final String FAIL_TO_CLOSE_FILE_CHANNEL = "关闭文件通道失败";
+  public static final String ILLEGAL_STATE_IN_VISIT_LOGICAL_EXPRESSION =
+      "visitLogicalExpression 中状态非法";
+  public static final String INDEX_OUT_OF_PARTITION_BOUNDS = "索引超出分区边界!";
+  public static final String INITIAL_CAPACITY_IS_NEGATIVE = "初始容量 (%d) 为负数";
+  public static final String INITIAL_CAPACITY_EXCEEDS_LIMIT = "初始容量 (%d) 超过 %d";
+  public static final String INPUT_ROW_UTILS_SHOULD_NOT_BE_INSTANTIATED =
+      "InputRowUtils 不应被实例化。";
+  public static final String INVALID_AGGREGATION_FUNCTION = "无效的聚合函数:";
+  public static final String INVALID_TEXT_INPUT_FOR_BOOLEAN =
+      "布尔类型的文本输入无效:%s";
+  public static final String INVALID_VALUE = "无效的值:%f";
+  public static final String LEFT_CHILD_OF_JOIN_NODE_DOESNT_CONTAIN_LEFT_JOIN_KEY =
+      "JoinNode 的左子节点不包含左连接键。";
+  public static final String MAX_TUPLE_SIZE_OF_TS_BLOCK_IS = "maxTupleSizeOfTsBlock 为:{}";
+  public static final String MEMORY_IS_NOT_ENOUGH_FOR_CURRENT_QUERY = "当前查询内存不足。";
+  public static final String MERGE_SORT_HEAP_SHOULD_BE_EMPTY = "归并排序堆应为空!";
+  public static final String MODULUS_BY_ZERO = "对零取模";
+  public static final String MULTIPLE_I_OBJECT_FILE_SERVICE_PROVIDER_FOUND =
+      "找到多个 IObjectFileServiceProvider";
+  public static final String MULTIPLE_I_TEMPORARY_QUERY_DATA_FILE_SERVICE_PROVIDER_FOUND =
+      "找到多个 ITemporaryQueryDataFileServiceProvider";
+  public static final String NOT_ENOUGH_MEMORY_FOR_SORTING = "排序内存不足";
+  public static final String NOT_YET_IMPLEMENTED = "尚未实现";
+  public static final String NO_I_OBJECT_FILE_SERVICE_PROVIDER_FOUND =
+      "未找到 IObjectFileServiceProvider";
+  public static final String NO_I_TEMPORARY_QUERY_DATA_FILE_SERVICE_PROVIDER_FOUND =
+      "未找到 ITemporaryQueryDataFileServiceProvider";
+  public static final String OFFSET_LESS_THAN_ZERO = "偏移量 %d 小于 0。";
+  public static final String ONLY_ONE_TUPLE_CAN_BE_SENT_EACH_TIME =
+      "由于内存限制,每次只能发送一个元组,oneTupleSize: {}B, maxReturnSize: {}B";
+  public static final String OR_OPERATOR_ONLY_ACCEPTS_BOOLEAN_OPERANDS =
+      "OR 运算符只接受布尔操作数";
+  public static final String PERCENTAGE_SHOULD_BE_IN_0_1 = "百分比应在 [0,1] 范围内,实际为 ";
+  public static final String READ_OBJECT_IS_NOT_SUPPORTED = "不支持 readObject";
+  public static final String RESULT_TS_BLOCK_CANNOT_BE_NULL = "结果 tsBlock 不能为空";
+  public static final String RIGHT_CHILD_OF_JOIN_NODE_DOESNT_CONTAIN_RIGHT_JOIN_KEY =
+      "JoinNode 的右子节点不包含右连接键。";
+  public static final String SHOULD_CALL_THE_CONCRETE_VISIT_XX_METHOD =
+      "应该调用具体的 visitXX() 方法";
+  public static final String STATE_FOR_GROUP_NOT_FOUND = "未找到分组 %d 的状态";
+  public static final String SUM_SHOULD_NEVER_BE_ZERO = "sum 不应为零。";
+  public static final String THIS_ACCUMULATOR_DOES_NOT_SUPPORT_REMOVING_INPUTS =
+      "该累加器不支持移除输入!";
+  public static final String THIS_IS_A_UTILITY_CLASS_AND_CANNOT_BE_INSTANTIATED =
+      "这是一个工具类,不能被实例化";
+  public static final String TYPE_OF_LEFT_ASOF_JOIN_KEY_IS_NOT_TIMESTAMP =
+      "左侧 ASOF 连接键的类型不是 TIMESTAMP";
+  public static final String TYPE_OF_RIGHT_ASOF_JOIN_KEY_IS_NOT_TIMESTAMP =
+      "右侧 ASOF 连接键的类型不是 TIMESTAMP";
+  public static final String UDAF_NOT_SUPPORT_CALCULATE_FROM_STATISTICS =
+      "UDAF 目前不支持从统计信息计算";
+  public static final String UNBOUND_FOLLOWING_NOT_ALLOWED_IN_FRAME_START =
+      "帧起始位置不允许使用 UNBOUND FOLLOWING!";
+  public static final String UNBOUND_PRECEDING_NOT_ALLOWED_IN_FRAME_END =
+      "帧结束位置不允许使用 UNBOUND PRECEDING!";
+  public static final String UNBOUND_PRECEDING_NOT_ALLOWED_IN_FRAME_START =
+      "帧起始位置不允许使用 UNBOUND PRECEDING!";
+  public static final String UNEXPECTED_ANCHOR_TYPE = "意外的锚点类型:";
+  public static final String UNEXPECTED_EXTRACT_FIELD = "意外的提取字段:";
+  public static final String UNEXPECTED_SIZE_FOR_LAST_SEQUENCE = "最后一个序列的大小异常:";
+  public static final String UNEXPECTED_SKIP_TO_POSITION = "意外的 SKIP TO 位置:";
+  public static final String UNEXPECTED_VALUE_FOR_REMAINDER = "余数的值异常:";
+  public static final String UNEXPECTED_VALUE_FOR_SEQUENCES = "序列的值异常:";
+  public static final String UNHANDLED_LITERAL_TYPE = "未处理的字面量类型:";
+  public static final String UNKNOWN_DATA_TYPE = "未知数据类型:";
+  public static final String UNKNOWN_DATATYPE = "未知数据类型:";
+  public static final String UNKNOWN_RANKING_TYPE = "未知排名类型:";
+  public static final String UNKNOWN_SIGN = "未知符号:";
+  public static final String UNKNOWN_TYPE = "未知类型:";
+  public static final String UNREACHABLE = "不可达!";
+  public static final String UNSUPPORTED_ARITHMETIC_OPERATOR = "不支持的算术运算符:";
+  public static final String UNSUPPORTED_ASOF_JOIN_TYPE = "不支持的 ASOF 连接类型:";
+  public static final String UNSUPPORTED_CAST_TO_TYPE = "不支持的转换目标类型:";
+  public static final String UNSUPPORTED_COLUMN_TRANSFORMER = "不支持的 ColumnTransformer";
+  public static final String UNSUPPORTED_COMPARISON_OPERATOR = "不支持的比较运算符:";
+  public static final String UNSUPPORTED_DATA_TYPE = "不支持的数据类型:";
+  public static final String UNSUPPORTED_DATA_TYPE_LOWER = "不支持的数据类型:";
+  public static final String UNSUPPORTED_FRAME_BOUND_TYPE = "不支持的帧边界类型:";
+  public static final String UNSUPPORTED_FUNCTION_KIND = "不支持的函数类型:";
+  public static final String UNSUPPORTED_JOIN_TYPE = "不支持的连接类型:";
+  public static final String UNSUPPORTED_LOGICAL_OPERATOR = "不支持的逻辑运算符:";
+  public static final String UNSUPPORTED_TYPE = "不支持的类型:";
+  public static final String UNSUPPORTED_TYPE_BINARY = "不支持的类型";
+  public static final String UNSUPPORTED_TYPE_CLASS = "不支持的类型:";
+  public static final String UNSUPPORTED_TYPE_FOR_ARITHMETIC_OPERATION =
+      "不支持的算术运算类型:";
+  public static final String UNSUPPORTED_TYPE_IN_GENERIC_LITERAL =
+      "GenericLiteral 中不支持的类型:";
+  public static final String WEIGHT_MUST_BE_GE_1 = "权重必须 >= 1,实际为 ";
+  public static final String PUSHED_ELEMENT_IS_NULL =
+      "推入的元素为 null";
+
+  public static final String FAILED_TO_DELETE_TEMP_DIR = "删除临时目录 {} 失败。";
+}
diff --git a/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/AbstractOperator.java b/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/AbstractOperator.java
index cc09d7fe971..1c0e189cd51 100644
--- a/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/AbstractOperator.java
+++ b/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/AbstractOperator.java
@@ -19,6 +19,8 @@
 
 package org.apache.iotdb.calc.execution.operator;
 
+import org.apache.iotdb.calc.i18n.CalcMessages;
+
 import org.apache.tsfile.common.conf.TSFileDescriptor;
 import org.apache.tsfile.read.common.block.TsBlock;
 import org.slf4j.Logger;
@@ -49,21 +51,18 @@ public abstract class AbstractOperator implements Operator {
     if (oneTupleSize > maxReturnSize) {
       // make sure at least one-tuple-at-a-time
       this.maxTupleSizeOfTsBlock = 1;
-      LOGGER.warn(
-          "Only one tuple can be sent each time caused by limited memory, oneTupleSize: {}B, maxReturnSize: {}B",
-          oneTupleSize,
-          maxReturnSize);
+      LOGGER.warn(CalcMessages.ONLY_ONE_TUPLE_CAN_BE_SENT_EACH_TIME, oneTupleSize, maxReturnSize);
     } else {
       this.maxTupleSizeOfTsBlock = (int) (maxReturnSize / oneTupleSize);
     }
     if (LOGGER.isDebugEnabled()) {
-      LOGGER.debug("maxTupleSizeOfTsBlock is:{}", maxTupleSizeOfTsBlock);
+      LOGGER.debug(CalcMessages.MAX_TUPLE_SIZE_OF_TS_BLOCK_IS, maxTupleSizeOfTsBlock);
     }
   }
 
   public TsBlock checkTsBlockSizeAndGetResult() {
     if (resultTsBlock == null) {
-      throw new IllegalArgumentException("Result tsBlock cannot be null");
+      throw new IllegalArgumentException(CalcMessages.RESULT_TS_BLOCK_CANNOT_BE_NULL);
     } else if (resultTsBlock.isEmpty()) {
       TsBlock res = resultTsBlock;
       resultTsBlock = null;
@@ -98,7 +97,7 @@ public abstract class AbstractOperator implements Operator {
       startOffset += maxTupleSizeOfTsBlock;
     }
     if (LOGGER.isDebugEnabled()) {
-      LOGGER.debug("Current tsBlock size is : {}", res.getRetainedSizeInBytes());
+      LOGGER.debug(CalcMessages.CURRENT_TS_BLOCK_SIZE_IS, res.getRetainedSizeInBytes());
     }
     return res;
   }
diff --git a/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/process/AbstractSortOperator.java b/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/process/AbstractSortOperator.java
index 82d0b94b334..c9f73f84937 100644
--- a/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/process/AbstractSortOperator.java
+++ b/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/process/AbstractSortOperator.java
@@ -21,6 +21,7 @@ package org.apache.iotdb.calc.execution.operator.process;
 
 import org.apache.iotdb.calc.execution.operator.CommonOperatorContext;
 import org.apache.iotdb.calc.execution.operator.Operator;
+import org.apache.iotdb.calc.i18n.CalcMessages;
 import org.apache.iotdb.calc.utils.datastructure.MergeSortHeap;
 import org.apache.iotdb.calc.utils.datastructure.MergeSortKey;
 import org.apache.iotdb.calc.utils.datastructure.SortKey;
@@ -305,7 +306,7 @@ public abstract class AbstractSortOperator implements ProcessOperator {
       sortReaders = null;
       diskSpiller.reset();
     } catch (Exception e) {
-      LOGGER.warn("Fail to close fileChannel", e);
+      LOGGER.warn(CalcMessages.FAIL_TO_CLOSE_FILE_CHANNEL, e);
     }
   }
 
@@ -361,7 +362,7 @@ public abstract class AbstractSortOperator implements ProcessOperator {
         new SortBufferManager(
             sortBufferManager.getMaxTsBlockSizeInBytes(), sortBufferManager.getSortBufferSize());
     if (mergeSortHeap != null && !mergeSortHeap.isEmpty()) {
-      throw new IllegalStateException("mergeSortHeap should be empty!");
+      throw new IllegalStateException(CalcMessages.MERGE_SORT_HEAP_SHOULD_BE_EMPTY);
     }
     mergeSortHeap = null;
     noMoreData = null;
diff --git a/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/process/FilterAndProjectOperator.java b/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/process/FilterAndProjectOperator.java
index 16e0cd7b330..5ab7e58a696 100644
--- a/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/process/FilterAndProjectOperator.java
+++ b/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/process/FilterAndProjectOperator.java
@@ -21,6 +21,7 @@ package org.apache.iotdb.calc.execution.operator.process;
 
 import org.apache.iotdb.calc.execution.operator.CommonOperatorContext;
 import org.apache.iotdb.calc.execution.operator.Operator;
+import org.apache.iotdb.calc.i18n.CalcMessages;
 import org.apache.iotdb.calc.transformation.dag.column.AbstractCaseWhenThenColumnTransformer;
 import org.apache.iotdb.calc.transformation.dag.column.ColumnTransformer;
 import org.apache.iotdb.calc.transformation.dag.column.FailFunctionColumnTransformer;
@@ -429,7 +430,7 @@ public class FilterAndProjectOperator implements ProcessOperator {
     } else if (columnTransformer instanceof FailFunctionColumnTransformer) {
       return 0;
     } else {
-      throw new UnsupportedOperationException("Unsupported ColumnTransformer");
+      throw new UnsupportedOperationException(CalcMessages.UNSUPPORTED_COLUMN_TRANSFORMER);
     }
   }
 
diff --git a/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/process/TopKOperator.java b/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/process/TopKOperator.java
index bdb424e15b8..53ceeee58a0 100644
--- a/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/process/TopKOperator.java
+++ b/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/process/TopKOperator.java
@@ -21,6 +21,7 @@ package org.apache.iotdb.calc.execution.operator.process;
 
 import org.apache.iotdb.calc.execution.operator.CommonOperatorContext;
 import org.apache.iotdb.calc.execution.operator.Operator;
+import org.apache.iotdb.calc.i18n.CalcMessages;
 import org.apache.iotdb.calc.utils.datastructure.MergeSortHeap;
 import org.apache.iotdb.calc.utils.datastructure.MergeSortKey;
 import org.apache.iotdb.calc.utils.datastructure.SortKey;
@@ -324,7 +325,7 @@ public abstract class TopKOperator implements ProcessOperator {
                   new Binary[positionCount]);
           break;
         default:
-          throw new UnSupportedDataTypeException("Unknown datatype: " + dataTypes.get(i));
+          throw new UnSupportedDataTypeException(CalcMessages.UNKNOWN_DATATYPE + dataTypes.get(i));
       }
     }
     this.tmpResultTsBlock = constrcutResultTsBlock(positionCount, columns);
@@ -397,7 +398,7 @@ public abstract class TopKOperator implements ProcessOperator {
           memory += 16;
           break;
         default:
-          throw new UnSupportedDataTypeException("Unknown datatype: " + dataType);
+          throw new UnSupportedDataTypeException(CalcMessages.UNKNOWN_DATATYPE + dataType);
       }
     }
     return memory;
diff --git a/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/process/function/TableFunctionLeafOperator.java b/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/process/function/TableFunctionLeafOperator.java
index 0a7f92b249f..ced20f7bbf0 100644
--- a/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/process/function/TableFunctionLeafOperator.java
+++ b/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/process/function/TableFunctionLeafOperator.java
@@ -21,6 +21,7 @@ package org.apache.iotdb.calc.execution.operator.process.function;
 
 import org.apache.iotdb.calc.execution.operator.CommonOperatorContext;
 import org.apache.iotdb.calc.execution.operator.process.ProcessOperator;
+import org.apache.iotdb.calc.i18n.CalcMessages;
 import org.apache.iotdb.calc.plan.planner.CommonOperatorUtils;
 import org.apache.iotdb.commons.exception.IoTDBRuntimeException;
 import org.apache.iotdb.rpc.TSStatusCode;
@@ -78,7 +79,7 @@ public class TableFunctionLeafOperator implements ProcessOperator {
     try {
       processor.process(columnBuilders);
     } catch (Exception e) {
-      LOGGER.warn("Exception happened when executing UDTF: ", e);
+      LOGGER.warn(CalcMessages.EXCEPTION_HAPPENED_WHEN_EXECUTING_UDTF, e);
       throw new IoTDBRuntimeException(
           e.getMessage(), TSStatusCode.EXECUTE_UDF_ERROR.getStatusCode(), true);
     }
@@ -107,7 +108,7 @@ public class TableFunctionLeafOperator implements ProcessOperator {
     try {
       processor.beforeDestroy();
     } catch (Exception e) {
-      LOGGER.warn("Exception happened when executing UDTF: ", e);
+      LOGGER.warn(CalcMessages.EXCEPTION_HAPPENED_WHEN_EXECUTING_UDTF, e);
       throw new IoTDBRuntimeException(
           e.getMessage(), TSStatusCode.EXECUTE_UDF_ERROR.getStatusCode(), true);
     }
diff --git a/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/process/function/partition/Slice.java b/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/process/function/partition/Slice.java
index aec1722a1ba..fd21d5c2a72 100644
--- a/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/process/function/partition/Slice.java
+++ b/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/process/function/partition/Slice.java
@@ -19,6 +19,7 @@
 
 package org.apache.iotdb.calc.execution.operator.process.function.partition;
 
+import org.apache.iotdb.calc.i18n.CalcMessages;
 import org.apache.iotdb.calc.utils.ObjectTypeUtils;
 import org.apache.iotdb.udf.api.relational.access.Record;
 import org.apache.iotdb.udf.api.type.Type;
@@ -214,7 +215,7 @@ public class Slice {
     @Override
     public Optional<File> getObjectFile(int columnIndex) {
       if (getDataType(columnIndex) != Type.OBJECT) {
-        throw new UnsupportedOperationException("current column is not object column");
+        throw new UnsupportedOperationException(CalcMessages.CURRENT_COLUMN_IS_NOT_OBJECT_COLUMN);
       }
       return ObjectTypeUtils.getObjectPathFromBinary(getBinarySafely(columnIndex));
     }
@@ -222,7 +223,7 @@ public class Slice {
     @Override
     public long objectLength(int columnIndex) {
       if (getDataType(columnIndex) != Type.OBJECT) {
-        throw new UnsupportedOperationException("current column is not object column");
+        throw new UnsupportedOperationException(CalcMessages.CURRENT_COLUMN_IS_NOT_OBJECT_COLUMN);
       }
       Binary binary = getBinarySafely(columnIndex);
       return ObjectTypeUtils.getObjectLength(binary);
@@ -230,7 +231,7 @@ public class Slice {
 
     @Override
     public Binary readObject(int columnIndex, long offset, int length) {
-      throw new UnsupportedOperationException("readObject is not supported");
+      throw new UnsupportedOperationException(CalcMessages.READ_OBJECT_IS_NOT_SUPPORTED);
     }
 
     @Override
diff --git a/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/process/join/merge/MergeSortComparator.java b/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/process/join/merge/MergeSortComparator.java
index a18784e6eec..032fc5f3988 100644
--- a/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/process/join/merge/MergeSortComparator.java
+++ b/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/process/join/merge/MergeSortComparator.java
@@ -19,6 +19,7 @@
 
 package org.apache.iotdb.calc.execution.operator.process.join.merge;
 
+import org.apache.iotdb.calc.i18n.CalcMessages;
 import org.apache.iotdb.calc.utils.datastructure.SortKey;
 import org.apache.iotdb.commons.queryengine.plan.relational.planner.SortOrder;
 
@@ -102,7 +103,8 @@ public class MergeSortComparator {
                 (SortKey sortKey) -> sortKey.tsBlock.getColumn(index).getBoolean(sortKey.rowIndex));
         break;
       default:
-        throw new IllegalArgumentException("Data type: " + dataType + " cannot be ordered");
+        throw new IllegalArgumentException(
+            String.format(CalcMessages.DATA_TYPE_CANNOT_BE_ORDERED, dataType));
     }
     if (!asc) {
       comparator = comparator.reversed();
diff --git a/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/process/join/merge/comparator/JoinKeyComparatorFactory.java b/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/process/join/merge/comparator/JoinKeyComparatorFactory.java
index af59f42e92b..841fe965c19 100644
--- a/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/process/join/merge/comparator/JoinKeyComparatorFactory.java
+++ b/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/process/join/merge/comparator/JoinKeyComparatorFactory.java
@@ -19,6 +19,8 @@
 
 package org.apache.iotdb.calc.execution.operator.process.join.merge.comparator;
 
+import org.apache.iotdb.calc.i18n.CalcMessages;
+
 import org.apache.tsfile.read.common.type.Type;
 
 import java.util.ArrayList;
@@ -88,7 +90,7 @@ public class JoinKeyComparatorFactory {
             : DescBinaryTypeJoinKeyComparator.getInstance();
       default:
         // other types are not supported.
-        throw new UnsupportedOperationException("Unsupported data type: " + type);
+        throw new UnsupportedOperationException(CalcMessages.UNSUPPORTED_DATA_TYPE + type);
     }
   }
 }
diff --git a/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/process/rowpattern/PatternPartitionExecutor.java b/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/process/rowpattern/PatternPartitionExecutor.java
index 8f59701b2fd..d50451c2f53 100644
--- a/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/process/rowpattern/PatternPartitionExecutor.java
+++ b/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/process/rowpattern/PatternPartitionExecutor.java
@@ -27,6 +27,7 @@ import org.apache.iotdb.calc.execution.operator.process.rowpattern.matcher.Match
 import org.apache.iotdb.calc.execution.operator.process.window.partition.Partition;
 import org.apache.iotdb.calc.execution.operator.process.window.utils.ColumnList;
 import org.apache.iotdb.calc.execution.operator.process.window.utils.RowComparator;
+import org.apache.iotdb.calc.i18n.CalcMessages;
 import org.apache.iotdb.commons.exception.SemanticException;
 import org.apache.iotdb.commons.queryengine.plan.relational.planner.node.RowsPerMatch;
 import org.apache.iotdb.commons.queryengine.plan.relational.planner.node.SkipToPosition;
@@ -409,7 +410,7 @@ public final class PatternPartitionExecutor {
         lastSkippedPosition = position - 1;
         break;
       default:
-        throw new IllegalStateException("unexpected SKIP TO position: " + skipToPosition);
+        throw new IllegalStateException(CalcMessages.UNEXPECTED_SKIP_TO_POSITION + skipToPosition);
     }
   }
 
diff --git a/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/process/rowpattern/expression/ArithmeticOperator.java b/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/process/rowpattern/expression/ArithmeticOperator.java
index de219635628..7b8bbd5f4d8 100644
--- a/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/process/rowpattern/expression/ArithmeticOperator.java
+++ b/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/process/rowpattern/expression/ArithmeticOperator.java
@@ -19,6 +19,7 @@
 
 package org.apache.iotdb.calc.execution.operator.process.rowpattern.expression;
 
+import org.apache.iotdb.calc.i18n.CalcMessages;
 import org.apache.iotdb.commons.exception.SemanticException;
 
 public enum ArithmeticOperator implements BinaryOperator {
@@ -49,7 +50,7 @@ public enum ArithmeticOperator implements BinaryOperator {
       if (left == null || right == null) return null;
       double r = normalizeToDouble(right);
       if (r == 0.0) {
-        throw new ArithmeticException("Division by zero");
+        throw new ArithmeticException(CalcMessages.DIVISION_BY_ZERO);
       }
       return normalizeToDouble(left) / r;
     }
@@ -60,7 +61,7 @@ public enum ArithmeticOperator implements BinaryOperator {
       if (left == null || right == null) return null;
       double r = normalizeToDouble(right);
       if (r == 0.0) {
-        throw new ArithmeticException("Modulus by zero");
+        throw new ArithmeticException(CalcMessages.MODULUS_BY_ZERO);
       }
       return normalizeToDouble(left) % r;
     }
@@ -73,10 +74,11 @@ public enum ArithmeticOperator implements BinaryOperator {
       try {
         return Double.parseDouble((String) obj);
       } catch (NumberFormatException e) {
-        throw new SemanticException("Cannot parse String to double: " + obj);
+        throw new SemanticException(CalcMessages.CANNOT_PARSE_STRING_TO_DOUBLE + obj);
       }
     } else {
-      throw new SemanticException("Unsupported type for arithmetic operation: " + obj.getClass());
+      throw new SemanticException(
+          CalcMessages.UNSUPPORTED_TYPE_FOR_ARITHMETIC_OPERATION + obj.getClass());
     }
   }
 }
diff --git a/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/process/rowpattern/expression/CastComputation.java b/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/process/rowpattern/expression/CastComputation.java
index 1b50f37bc76..a5cff7572d7 100644
--- a/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/process/rowpattern/expression/CastComputation.java
+++ b/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/process/rowpattern/expression/CastComputation.java
@@ -19,6 +19,7 @@
 
 package org.apache.iotdb.calc.execution.operator.process.rowpattern.expression;
 
+import org.apache.iotdb.calc.i18n.CalcMessages;
 import org.apache.iotdb.commons.queryengine.plan.relational.sql.ast.DataType;
 import org.apache.iotdb.commons.queryengine.plan.relational.sql.ast.GenericDataType;
 
@@ -72,7 +73,7 @@ public class CastComputation extends Computation {
           }
           return Boolean.parseBoolean(value.toString());
         default:
-          throw new UnsupportedOperationException("Unsupported cast to type: " + typeName);
+          throw new UnsupportedOperationException(CalcMessages.UNSUPPORTED_CAST_TO_TYPE + typeName);
       }
     } else {
       throw new UnsupportedOperationException(
diff --git a/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/process/rowpattern/expression/ComparisonOperator.java b/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/process/rowpattern/expression/ComparisonOperator.java
index 0a3c0c1105b..4a92a1bebce 100644
--- a/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/process/rowpattern/expression/ComparisonOperator.java
+++ b/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/process/rowpattern/expression/ComparisonOperator.java
@@ -19,6 +19,7 @@
 
 package org.apache.iotdb.calc.execution.operator.process.rowpattern.expression;
 
+import org.apache.iotdb.calc.i18n.CalcMessages;
 import org.apache.iotdb.commons.exception.SemanticException;
 
 import org.apache.tsfile.utils.Binary;
@@ -141,7 +142,7 @@ public enum ComparisonOperator implements BinaryOperator {
         case BINARY:
           return ((Binary) value).compareTo((Binary) other.value);
         default:
-          throw new SemanticException("Unknown type: " + type);
+          throw new SemanticException(CalcMessages.UNKNOWN_TYPE + type);
       }
     }
   }
@@ -161,7 +162,7 @@ public enum ComparisonOperator implements BinaryOperator {
     } else if (obj instanceof byte[]) {
       return new NormalizedValue(NormalizedValue.Type.BINARY, new Binary((byte[]) obj));
     } else {
-      throw new SemanticException("Unsupported type: " + obj.getClass());
+      throw new SemanticException(CalcMessages.UNSUPPORTED_TYPE + obj.getClass());
     }
   }
 }
diff --git a/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/process/rowpattern/expression/Computation.java b/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/process/rowpattern/expression/Computation.java
index 187002f7e20..d04af8045b1 100644
--- a/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/process/rowpattern/expression/Computation.java
+++ b/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/process/rowpattern/expression/Computation.java
@@ -19,6 +19,7 @@
 
 package org.apache.iotdb.calc.execution.operator.process.rowpattern.expression;
 
+import org.apache.iotdb.calc.i18n.CalcMessages;
 import org.apache.iotdb.commons.exception.SemanticException;
 import org.apache.iotdb.commons.queryengine.plan.relational.planner.rowpattern.ExpressionAndValuePointers;
 import org.apache.iotdb.commons.queryengine.plan.relational.planner.rowpattern.ExpressionAndValuePointers.Assignment;
@@ -182,7 +183,7 @@ public abstract class Computation {
         case MODULUS:
           return ArithmeticOperator.MODULUS;
         default:
-          throw new SemanticException("Unsupported arithmetic operator: " + operator);
+          throw new SemanticException(CalcMessages.UNSUPPORTED_ARITHMETIC_OPERATOR + operator);
       }
     }
 
@@ -204,7 +205,7 @@ public abstract class Computation {
         case IS_DISTINCT_FROM:
           return ComparisonOperator.IS_DISTINCT_FROM;
         default:
-          throw new SemanticException("Unsupported comparison operator: " + operator);
+          throw new SemanticException(CalcMessages.UNSUPPORTED_COMPARISON_OPERATOR + operator);
       }
     }
 
@@ -215,7 +216,7 @@ public abstract class Computation {
         case OR:
           return LogicalOperator.OR;
         default:
-          throw new SemanticException("Unsupported logical operator: " + operator);
+          throw new SemanticException(CalcMessages.UNSUPPORTED_LOGICAL_OPERATOR + operator);
       }
     }
   }
diff --git a/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/process/rowpattern/expression/LogicalOperator.java b/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/process/rowpattern/expression/LogicalOperator.java
index 1f7fcc99bb1..29ee8045ecb 100644
--- a/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/process/rowpattern/expression/LogicalOperator.java
+++ b/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/process/rowpattern/expression/LogicalOperator.java
@@ -19,6 +19,7 @@
 
 package org.apache.iotdb.calc.execution.operator.process.rowpattern.expression;
 
+import org.apache.iotdb.calc.i18n.CalcMessages;
 import org.apache.iotdb.commons.exception.SemanticException;
 
 import java.util.List;
@@ -29,7 +30,8 @@ public enum LogicalOperator implements NaryOperator {
     public Object apply(List<Object> operands) {
       for (Object operand : operands) {
         if (!(operand instanceof Boolean)) {
-          throw new IllegalArgumentException("AND operator only accepts Boolean operands");
+          throw new IllegalArgumentException(
+              CalcMessages.AND_OPERATOR_ONLY_ACCEPTS_BOOLEAN_OPERANDS);
         }
         if (!((Boolean) operand)) {
           return false; // short-circuit
@@ -43,7 +45,7 @@ public enum LogicalOperator implements NaryOperator {
     public Object apply(List<Object> operands) {
       for (Object operand : operands) {
         if (!(operand instanceof Boolean)) {
-          throw new SemanticException("OR operator only accepts Boolean operands");
+          throw new SemanticException(CalcMessages.OR_OPERATOR_ONLY_ACCEPTS_BOOLEAN_OPERANDS);
         }
         if ((Boolean) operand) {
           return true; // short-circuit
diff --git a/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/process/rowpattern/expression/PatternExpressionComputation.java b/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/process/rowpattern/expression/PatternExpressionComputation.java
index d27d028b361..c05a0f8cb14 100644
--- a/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/process/rowpattern/expression/PatternExpressionComputation.java
+++ b/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/process/rowpattern/expression/PatternExpressionComputation.java
@@ -25,6 +25,7 @@ import org.apache.iotdb.calc.execution.operator.process.rowpattern.PhysicalValue
 import org.apache.iotdb.calc.execution.operator.process.rowpattern.PhysicalValuePointer;
 import org.apache.iotdb.calc.execution.operator.process.rowpattern.matcher.ArrayView;
 import org.apache.iotdb.calc.execution.operator.process.window.partition.Partition;
+import org.apache.iotdb.calc.i18n.CalcMessages;
 import org.apache.iotdb.commons.exception.SemanticException;
 
 import org.apache.tsfile.enums.TSDataType;
@@ -167,7 +168,8 @@ public class PatternExpressionComputation {
         || type instanceof ObjectType) {
       return partition.getBinary(channel, position);
     } else {
-      throw new SemanticException("Unsupported type: " + type.getClass().getSimpleName());
+      throw new SemanticException(
+          CalcMessages.UNSUPPORTED_TYPE_CLASS + type.getClass().getSimpleName());
     }
   }
 }
diff --git a/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/process/rowpattern/matcher/IrRowPatternToProgramRewriter.java b/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/process/rowpattern/matcher/IrRowPatternToProgramRewriter.java
index fccf755bcab..d6aab623f00 100644
--- a/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/process/rowpattern/matcher/IrRowPatternToProgramRewriter.java
+++ b/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/process/rowpattern/matcher/IrRowPatternToProgramRewriter.java
@@ -19,6 +19,8 @@
 
 package org.apache.iotdb.calc.execution.operator.process.rowpattern.matcher;
 
+import org.apache.iotdb.calc.i18n.CalcMessages;
+import org.apache.iotdb.commons.i18n.QueryMessages;
 import org.apache.iotdb.commons.queryengine.plan.relational.planner.rowpattern.IrAlternation;
 import org.apache.iotdb.commons.queryengine.plan.relational.planner.rowpattern.IrAnchor;
 import org.apache.iotdb.commons.queryengine.plan.relational.planner.rowpattern.IrConcatenation;
@@ -63,7 +65,7 @@ public class IrRowPatternToProgramRewriter {
     @Override
     protected Void visitIrRowPattern(IrRowPattern node, Void context) {
       throw new UnsupportedOperationException(
-          "unsupported node type: " + node.getClass().getName());
+          String.format(QueryMessages.UNSUPPORTED_IR_NODE_TYPE, node.getClass().getName()));
     }
 
     @Override
@@ -87,7 +89,7 @@ public class IrRowPatternToProgramRewriter {
           instructions.add(new MatchEnd());
           return null;
         default:
-          throw new IllegalStateException("unexpected anchor type: " + node.getType());
+          throw new IllegalStateException(CalcMessages.UNEXPECTED_ANCHOR_TYPE + node.getType());
       }
     }
 
diff --git a/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/process/rowpattern/matcher/Matcher.java b/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/process/rowpattern/matcher/Matcher.java
index 0d3f6889dbc..e232bd895d5 100644
--- a/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/process/rowpattern/matcher/Matcher.java
+++ b/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/process/rowpattern/matcher/Matcher.java
@@ -22,6 +22,7 @@ package org.apache.iotdb.calc.execution.operator.process.rowpattern.matcher;
 import org.apache.iotdb.calc.execution.operator.process.rowpattern.PatternAggregator;
 import org.apache.iotdb.calc.execution.operator.process.rowpattern.PatternAggregators;
 import org.apache.iotdb.calc.execution.operator.process.rowpattern.PatternVariableRecognizer;
+import org.apache.iotdb.calc.i18n.CalcMessages;
 
 import org.apache.tsfile.utils.RamUsageEstimator;
 
@@ -186,7 +187,7 @@ public class Matcher {
             runtime.scheduleKill(threadId);
             break;
           default:
-            throw new UnsupportedOperationException("not yet implemented");
+            throw new UnsupportedOperationException(CalcMessages.NOT_YET_IMPLEMENTED);
         }
         if (matched) {
           // do not process the following threads, because they are on less preferred paths than the
diff --git a/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/process/window/TopKRankingOperator.java b/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/process/window/TopKRankingOperator.java
index e42a935d4e0..1fea078a4e5 100644
--- a/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/process/window/TopKRankingOperator.java
+++ b/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/process/window/TopKRankingOperator.java
@@ -26,6 +26,7 @@ import org.apache.iotdb.calc.execution.operator.Operator;
 import org.apache.iotdb.calc.execution.operator.SimpleTsBlockWithPositionComparator;
 import org.apache.iotdb.calc.execution.operator.TsBlockWithPositionComparator;
 import org.apache.iotdb.calc.execution.operator.process.ProcessOperator;
+import org.apache.iotdb.calc.i18n.CalcMessages;
 import org.apache.iotdb.commons.queryengine.execution.MemoryEstimationHelper;
 import org.apache.iotdb.commons.queryengine.execution.operator.source.relational.aggregation.grouped.UpdateMemory;
 import org.apache.iotdb.commons.queryengine.execution.operator.source.relational.aggregation.grouped.hash.GroupByHash;
@@ -162,10 +163,10 @@ public class TopKRankingOperator implements ProcessOperator {
     //    }
 
     if (rankingType == TopKRankingNode.RankingType.DENSE_RANK) {
-      throw new UnsupportedOperationException("DENSE_RANK not yet implemented");
+      throw new UnsupportedOperationException(CalcMessages.DENSE_RANK_NOT_YET_IMPLEMENTED);
     }
 
-    throw new IllegalArgumentException("Unknown ranking type: " + rankingType);
+    throw new IllegalArgumentException(CalcMessages.UNKNOWN_RANKING_TYPE + rankingType);
   }
 
   @Override
diff --git a/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/process/window/partition/Partition.java b/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/process/window/partition/Partition.java
index eebbee937d0..555824bf8c8 100644
--- a/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/process/window/partition/Partition.java
+++ b/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/process/window/partition/Partition.java
@@ -21,6 +21,7 @@ package org.apache.iotdb.calc.execution.operator.process.window.partition;
 
 import org.apache.iotdb.calc.execution.operator.process.function.partition.Slice;
 import org.apache.iotdb.calc.execution.operator.process.window.utils.ColumnList;
+import org.apache.iotdb.calc.i18n.CalcMessages;
 
 import org.apache.tsfile.block.column.Column;
 import org.apache.tsfile.block.column.ColumnBuilder;
@@ -217,7 +218,7 @@ public class Partition {
     if (segmentIndex != segments.size()) {
       return new PartitionIndex(segmentIndex, rowIndex);
     } else {
-      throw new IndexOutOfBoundsException("Index out of Partition's bounds!");
+      throw new IndexOutOfBoundsException(CalcMessages.INDEX_OUT_OF_PARTITION_BOUNDS);
     }
   }
 
diff --git a/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/process/window/partition/PartitionExecutor.java b/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/process/window/partition/PartitionExecutor.java
index bdf55cae5b1..673e971a671 100644
--- a/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/process/window/partition/PartitionExecutor.java
+++ b/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/process/window/partition/PartitionExecutor.java
@@ -28,6 +28,7 @@ import org.apache.iotdb.calc.execution.operator.process.window.partition.frame.R
 import org.apache.iotdb.calc.execution.operator.process.window.utils.ColumnList;
 import org.apache.iotdb.calc.execution.operator.process.window.utils.Range;
 import org.apache.iotdb.calc.execution.operator.process.window.utils.RowComparator;
+import org.apache.iotdb.calc.i18n.CalcMessages;
 
 import com.google.common.collect.ImmutableList;
 import org.apache.tsfile.block.column.ColumnBuilder;
@@ -142,7 +143,7 @@ public final class PartitionExecutor {
                     peerGroupEnd - partitionStart - 1);
             break;
           default:
-            throw new UnsupportedOperationException("Unreachable!");
+            throw new UnsupportedOperationException(CalcMessages.UNREACHABLE);
         }
       }
       frames.add(frame);
diff --git a/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/process/window/partition/frame/FrameInfo.java b/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/process/window/partition/frame/FrameInfo.java
index 5b9965b141a..6afa948b98b 100644
--- a/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/process/window/partition/frame/FrameInfo.java
+++ b/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/process/window/partition/frame/FrameInfo.java
@@ -19,6 +19,7 @@
 
 package org.apache.iotdb.calc.execution.operator.process.window.partition.frame;
 
+import org.apache.iotdb.calc.i18n.CalcMessages;
 import org.apache.iotdb.commons.queryengine.plan.relational.planner.SortOrder;
 import org.apache.iotdb.commons.queryengine.plan.relational.sql.ast.FrameBound;
 import org.apache.iotdb.commons.queryengine.plan.relational.sql.ast.WindowFrame;
@@ -59,7 +60,7 @@ public class FrameInfo {
       case GROUPS:
         return FrameType.GROUPS;
       default:
-        throw new IllegalArgumentException("Unsupported frame bound type: " + frameType);
+        throw new IllegalArgumentException(CalcMessages.UNSUPPORTED_FRAME_BOUND_TYPE + frameType);
     }
   }
 
@@ -76,7 +77,8 @@ public class FrameInfo {
       case FOLLOWING:
         return FrameBoundType.FOLLOWING;
       default:
-        throw new IllegalArgumentException("Unsupported frame bound type: " + frameBoundType);
+        throw new IllegalArgumentException(
+            CalcMessages.UNSUPPORTED_FRAME_BOUND_TYPE + frameBoundType);
     }
   }
 
diff --git a/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/process/window/partition/frame/GroupsFrame.java b/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/process/window/partition/frame/GroupsFrame.java
index c89de0d0403..f689e1273ce 100644
--- a/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/process/window/partition/frame/GroupsFrame.java
+++ b/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/process/window/partition/frame/GroupsFrame.java
@@ -23,6 +23,7 @@ import org.apache.iotdb.calc.execution.operator.process.window.partition.Partiti
 import org.apache.iotdb.calc.execution.operator.process.window.utils.ColumnList;
 import org.apache.iotdb.calc.execution.operator.process.window.utils.Range;
 import org.apache.iotdb.calc.execution.operator.process.window.utils.RowComparator;
+import org.apache.iotdb.calc.i18n.CalcMessages;
 import org.apache.iotdb.commons.exception.SemanticException;
 
 import java.util.List;
@@ -78,7 +79,7 @@ public class GroupsFrame implements Frame {
         break;
       default:
         // UNBOUND_FOLLOWING is not allowed in frame start
-        throw new SemanticException("UNBOUND FOLLOWING is not allowed in frame start!");
+        throw new SemanticException(CalcMessages.UNBOUND_FOLLOWING_NOT_ALLOWED_IN_FRAME_START);
     }
 
     int frameEnd;
@@ -97,7 +98,7 @@ public class GroupsFrame implements Frame {
         break;
       default:
         // UNBOUND_PRECEDING is not allowed in frame end
-        throw new SemanticException("UNBOUND PRECEDING is not allowed in frame end!");
+        throw new SemanticException(CalcMessages.UNBOUND_PRECEDING_NOT_ALLOWED_IN_FRAME_END);
     }
 
     // Empty frame
diff --git a/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/process/window/partition/frame/RangeFrame.java b/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/process/window/partition/frame/RangeFrame.java
index 60fa6619bd8..cf59324bdd9 100644
--- a/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/process/window/partition/frame/RangeFrame.java
+++ b/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/process/window/partition/frame/RangeFrame.java
@@ -23,6 +23,7 @@ import org.apache.iotdb.calc.execution.operator.process.window.partition.Partiti
 import org.apache.iotdb.calc.execution.operator.process.window.utils.ColumnList;
 import org.apache.iotdb.calc.execution.operator.process.window.utils.Range;
 import org.apache.iotdb.calc.execution.operator.process.window.utils.RowComparator;
+import org.apache.iotdb.calc.i18n.CalcMessages;
 import org.apache.iotdb.commons.exception.SemanticException;
 
 import org.apache.tsfile.enums.TSDataType;
@@ -129,7 +130,7 @@ public class RangeFrame implements Frame {
         break;
       default:
         // UNBOUND_FOLLOWING is not allowed in frame start
-        throw new SemanticException("UNBOUND PRECEDING is not allowed in frame start!");
+        throw new SemanticException(CalcMessages.UNBOUND_PRECEDING_NOT_ALLOWED_IN_FRAME_START);
     }
 
     int frameEnd;
@@ -148,7 +149,7 @@ public class RangeFrame implements Frame {
         break;
       default:
         // UNBOUND_PRECEDING is not allowed in frame start
-        throw new SemanticException("UNBOUND PRECEDING is not allowed in frame end!");
+        throw new SemanticException(CalcMessages.UNBOUND_PRECEDING_NOT_ALLOWED_IN_FRAME_END);
     }
 
     if (frameEnd < frameStart || frameEnd < 0 || frameStart >= partitionSize) {
@@ -309,7 +310,8 @@ public class RangeFrame implements Frame {
         return followDouble >= currentDouble + deltaDouble;
       default:
         // Unreachable
-        throw new UnSupportedDataTypeException("Unsupported data type: " + column.getDataType());
+        throw new UnSupportedDataTypeException(
+            CalcMessages.UNSUPPORTED_DATA_TYPE + column.getDataType());
     }
   }
 
@@ -354,7 +356,8 @@ public class RangeFrame implements Frame {
         return followDouble > currentDouble + deltaDouble;
       default:
         // Unreachable
-        throw new UnSupportedDataTypeException("Unsupported data type: " + column.getDataType());
+        throw new UnSupportedDataTypeException(
+            CalcMessages.UNSUPPORTED_DATA_TYPE + column.getDataType());
     }
   }
 
@@ -399,7 +402,8 @@ public class RangeFrame implements Frame {
         return precedeDouble >= currentDouble - deltaDouble;
       default:
         // Unreachable
-        throw new UnSupportedDataTypeException("Unsupported data type: " + column.getDataType());
+        throw new UnSupportedDataTypeException(
+            CalcMessages.UNSUPPORTED_DATA_TYPE + column.getDataType());
     }
   }
 
@@ -444,7 +448,8 @@ public class RangeFrame implements Frame {
         return precedeDouble > currentDouble - deltaDouble;
       default:
         // Unreachable
-        throw new UnSupportedDataTypeException("Unsupported data type: " + column.getDataType());
+        throw new UnSupportedDataTypeException(
+            CalcMessages.UNSUPPORTED_DATA_TYPE + column.getDataType());
     }
   }
 
@@ -489,7 +494,8 @@ public class RangeFrame implements Frame {
         return followDouble <= currentDouble - deltaDouble;
       default:
         // Unreachable
-        throw new UnSupportedDataTypeException("Unsupported data type: " + column.getDataType());
+        throw new UnSupportedDataTypeException(
+            CalcMessages.UNSUPPORTED_DATA_TYPE + column.getDataType());
     }
   }
 
@@ -534,7 +540,8 @@ public class RangeFrame implements Frame {
         return followDouble < currentDouble - deltaDouble;
       default:
         // Unreachable
-        throw new UnSupportedDataTypeException("Unsupported data type: " + column.getDataType());
+        throw new UnSupportedDataTypeException(
+            CalcMessages.UNSUPPORTED_DATA_TYPE + column.getDataType());
     }
   }
 
@@ -579,7 +586,8 @@ public class RangeFrame implements Frame {
         return precedeDouble <= currentDouble + deltaDouble;
       default:
         // Unreachable
-        throw new UnSupportedDataTypeException("Unsupported data type: " + column.getDataType());
+        throw new UnSupportedDataTypeException(
+            CalcMessages.UNSUPPORTED_DATA_TYPE + column.getDataType());
     }
   }
 
@@ -624,7 +632,8 @@ public class RangeFrame implements Frame {
         return precedeDouble < currentDouble + deltaDouble;
       default:
         // Unreachable
-        throw new UnSupportedDataTypeException("Unsupported data type: " + column.getDataType());
+        throw new UnSupportedDataTypeException(
+            CalcMessages.UNSUPPORTED_DATA_TYPE + column.getDataType());
     }
   }
 }
diff --git a/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/process/window/partition/frame/RowsFrame.java b/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/process/window/partition/frame/RowsFrame.java
index 6b87a5de9db..9860bc608df 100644
--- a/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/process/window/partition/frame/RowsFrame.java
+++ b/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/process/window/partition/frame/RowsFrame.java
@@ -21,6 +21,7 @@ package org.apache.iotdb.calc.execution.operator.process.window.partition.frame;
 
 import org.apache.iotdb.calc.execution.operator.process.window.partition.Partition;
 import org.apache.iotdb.calc.execution.operator.process.window.utils.Range;
+import org.apache.iotdb.calc.i18n.CalcMessages;
 import org.apache.iotdb.commons.exception.SemanticException;
 
 import static com.google.common.base.Preconditions.checkArgument;
@@ -60,7 +61,7 @@ public class RowsFrame implements Frame {
         break;
       default:
         // UNBOUND_FOLLOWING is not allowed in frame start
-        throw new SemanticException("UNBOUND PRECEDING is not allowed in frame start!");
+        throw new SemanticException(CalcMessages.UNBOUND_PRECEDING_NOT_ALLOWED_IN_FRAME_START);
     }
 
     int frameEnd;
@@ -81,7 +82,7 @@ public class RowsFrame implements Frame {
         break;
       default:
         // UNBOUND_PRECEDING is not allowed in frame end
-        throw new SemanticException("UNBOUND PRECEDING is not allowed in frame end!");
+        throw new SemanticException(CalcMessages.UNBOUND_PRECEDING_NOT_ALLOWED_IN_FRAME_END);
     }
 
     // Empty frame
diff --git a/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/process/window/utils/ColumnList.java b/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/process/window/utils/ColumnList.java
index 8a6da136464..03f2c20c5be 100644
--- a/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/process/window/utils/ColumnList.java
+++ b/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/process/window/utils/ColumnList.java
@@ -19,6 +19,8 @@
 
 package org.apache.iotdb.calc.execution.operator.process.window.utils;
 
+import org.apache.iotdb.calc.i18n.CalcMessages;
+
 import org.apache.tsfile.block.column.Column;
 import org.apache.tsfile.block.column.ColumnEncoding;
 import org.apache.tsfile.enums.TSDataType;
@@ -78,7 +80,7 @@ public class ColumnList {
       return new ColumnListIndex(columnIndex, rowIndex);
     } else {
       // Unlikely
-      throw new IndexOutOfBoundsException("Index out of Partition's bounds!");
+      throw new IndexOutOfBoundsException(CalcMessages.INDEX_OUT_OF_PARTITION_BOUNDS);
     }
   }
 
diff --git a/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/source/relational/aggregation/AccumulatorFactory.java b/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/source/relational/aggregation/AccumulatorFactory.java
index 48a1abc83f3..808cb47202c 100644
--- a/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/source/relational/aggregation/AccumulatorFactory.java
+++ b/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/source/relational/aggregation/AccumulatorFactory.java
@@ -48,6 +48,7 @@ import org.apache.iotdb.calc.execution.operator.source.relational.aggregation.gr
 import org.apache.iotdb.calc.execution.operator.source.relational.aggregation.grouped.GroupedVarianceAccumulator;
 import org.apache.iotdb.calc.execution.operator.source.relational.aggregation.grouped.IntGroupedApproxMostFrequentAccumulator;
 import org.apache.iotdb.calc.execution.operator.source.relational.aggregation.grouped.LongGroupedApproxMostFrequentAccumulator;
+import org.apache.iotdb.calc.i18n.CalcMessages;
 import org.apache.iotdb.common.rpc.thrift.TAggregationType;
 import org.apache.iotdb.commons.queryengine.execution.operator.source.relational.aggregation.grouped.UpdateMemory;
 import org.apache.iotdb.commons.queryengine.execution.operator.source.relational.aggregation.grouped.hash.MarkDistinctHash;
@@ -291,7 +292,8 @@ public class AccumulatorFactory {
           return new GroupedApproxPercentileWithWeightAccumulator(inputDataTypes.get(0));
         }
       default:
-        throw new IllegalArgumentException("Invalid Aggregation function: " + aggregationType);
+        throw new IllegalArgumentException(
+            CalcMessages.INVALID_AGGREGATION_FUNCTION + aggregationType);
     }
   }
 
@@ -354,7 +356,8 @@ public class AccumulatorFactory {
           return new ApproxPercentileWithWeightAccumulator(inputDataTypes.get(0));
         }
       default:
-        throw new IllegalArgumentException("Invalid Aggregation function: " + aggregationType);
+        throw new IllegalArgumentException(
+            CalcMessages.INVALID_AGGREGATION_FUNCTION + aggregationType);
     }
   }
 
@@ -430,7 +433,8 @@ public class AccumulatorFactory {
         checkState(inputDataTypes.size() == 2, "Wrong inputDataTypes size.");
       // return new MinByAccumulator(inputDataTypes.get(0), inputDataTypes.get(1));
       default:
-        throw new IllegalArgumentException("Invalid Aggregation function: " + aggregationType);
+        throw new IllegalArgumentException(
+            CalcMessages.INVALID_AGGREGATION_FUNCTION + aggregationType);
     }
   }
 
@@ -486,7 +490,8 @@ public class AccumulatorFactory {
       case VAR_POP:
         return new VarianceAccumulator(tsDataType, VarianceAccumulator.VarianceType.VAR_POP);*/
       default:
-        throw new IllegalArgumentException("Invalid Aggregation function: " + aggregationType);
+        throw new IllegalArgumentException(
+            CalcMessages.INVALID_AGGREGATION_FUNCTION + aggregationType);
     }
   }
 
@@ -509,7 +514,7 @@ public class AccumulatorFactory {
       case TIMESTAMP:
       case DATE:
       default:
-        throw new IllegalArgumentException("Unknown data type: " + tsDataType);
+        throw new IllegalArgumentException(CalcMessages.UNKNOWN_DATA_TYPE + tsDataType);
     }
   }*/
 
@@ -582,7 +587,8 @@ public class AccumulatorFactory {
 
     @Override
     public void addStatistics(Statistics[] statistics) {
-      throw new UnsupportedOperationException("Distinct aggregation function can not be push down");
+      throw new UnsupportedOperationException(
+          CalcMessages.DISTINCT_AGGREGATION_FUNCTION_CANNOT_BE_PUSH_DOWN);
     }
 
     @Override
diff --git a/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/source/relational/aggregation/ApproxPercentileWithWeightAccumulator.java b/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/source/relational/aggregation/ApproxPercentileWithWeightAccumulator.java
index ae37ee1ba31..ecf11419437 100644
--- a/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/source/relational/aggregation/ApproxPercentileWithWeightAccumulator.java
+++ b/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/source/relational/aggregation/ApproxPercentileWithWeightAccumulator.java
@@ -19,6 +19,7 @@
 
 package org.apache.iotdb.calc.execution.operator.source.relational.aggregation;
 
+import org.apache.iotdb.calc.i18n.CalcMessages;
 import org.apache.iotdb.commons.exception.SemanticException;
 
 import org.apache.tsfile.block.column.Column;
@@ -43,7 +44,7 @@ public class ApproxPercentileWithWeightAccumulator extends AbstractApproxPercent
           continue;
         }
         if (weightColumn.getInt(i) < 1) {
-          throw new SemanticException("weight must be >= 1, was " + weightColumn.getInt(i));
+          throw new SemanticException(CalcMessages.WEIGHT_MUST_BE_GE_1 + weightColumn.getInt(i));
         }
         if (!valueColumn.isNull(i)) {
           tDigest.add(valueColumn.getInt(i), weightColumn.getInt(i));
@@ -58,7 +59,8 @@ public class ApproxPercentileWithWeightAccumulator extends AbstractApproxPercent
           continue;
         }
         if (weightColumn.getInt(position) < 1) {
-          throw new SemanticException("weight must be >= 1, was " + weightColumn.getInt(position));
+          throw new SemanticException(
+              CalcMessages.WEIGHT_MUST_BE_GE_1 + weightColumn.getInt(position));
         }
         if (!valueColumn.isNull(position)) {
           tDigest.add(valueColumn.getInt(position), weightColumn.getInt(position));
@@ -80,7 +82,7 @@ public class ApproxPercentileWithWeightAccumulator extends AbstractApproxPercent
           continue;
         }
         if (weightColumn.getInt(i) < 1) {
-          throw new SemanticException("weight must be >= 1, was " + weightColumn.getInt(i));
+          throw new SemanticException(CalcMessages.WEIGHT_MUST_BE_GE_1 + weightColumn.getInt(i));
         }
         if (!valueColumn.isNull(i)) {
           tDigest.add(toDoubleExact(valueColumn.getLong(i)), weightColumn.getInt(i));
@@ -95,7 +97,8 @@ public class ApproxPercentileWithWeightAccumulator extends AbstractApproxPercent
           continue;
         }
         if (weightColumn.getInt(position) < 1) {
-          throw new SemanticException("weight must be >= 1, was " + weightColumn.getInt(position));
+          throw new SemanticException(
+              CalcMessages.WEIGHT_MUST_BE_GE_1 + weightColumn.getInt(position));
         }
         if (!valueColumn.isNull(position)) {
           tDigest.add(toDoubleExact(valueColumn.getLong(position)), weightColumn.getInt(position));
@@ -117,7 +120,7 @@ public class ApproxPercentileWithWeightAccumulator extends AbstractApproxPercent
           continue;
         }
         if (weightColumn.getInt(i) < 1) {
-          throw new SemanticException("weight must be >= 1, was " + weightColumn.getInt(i));
+          throw new SemanticException(CalcMessages.WEIGHT_MUST_BE_GE_1 + weightColumn.getInt(i));
         }
         if (!valueColumn.isNull(i)) {
           tDigest.add(valueColumn.getFloat(i), weightColumn.getInt(i));
@@ -132,7 +135,8 @@ public class ApproxPercentileWithWeightAccumulator extends AbstractApproxPercent
           continue;
         }
         if (weightColumn.getInt(position) < 1) {
-          throw new SemanticException("weight must be >= 1, was " + weightColumn.getInt(position));
+          throw new SemanticException(
+              CalcMessages.WEIGHT_MUST_BE_GE_1 + weightColumn.getInt(position));
         }
         if (!valueColumn.isNull(position)) {
           tDigest.add(valueColumn.getFloat(position), weightColumn.getInt(position));
@@ -154,7 +158,7 @@ public class ApproxPercentileWithWeightAccumulator extends AbstractApproxPercent
           continue;
         }
         if (weightColumn.getInt(i) < 1) {
-          throw new SemanticException("weight must be >= 1, was " + weightColumn.getInt(i));
+          throw new SemanticException(CalcMessages.WEIGHT_MUST_BE_GE_1 + weightColumn.getInt(i));
         }
         if (!valueColumn.isNull(i)) {
           tDigest.add(valueColumn.getDouble(i), weightColumn.getInt(i));
@@ -169,7 +173,8 @@ public class ApproxPercentileWithWeightAccumulator extends AbstractApproxPercent
           continue;
         }
         if (weightColumn.getInt(position) < 1) {
-          throw new SemanticException("weight must be >= 1, was " + weightColumn.getInt(position));
+          throw new SemanticException(
+              CalcMessages.WEIGHT_MUST_BE_GE_1 + weightColumn.getInt(position));
         }
         if (!valueColumn.isNull(position)) {
           tDigest.add(valueColumn.getDouble(position), weightColumn.getInt(position));
diff --git a/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/source/relational/aggregation/CountAllAccumulator.java b/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/source/relational/aggregation/CountAllAccumulator.java
index f7bae4c3bba..884a6fc6d67 100644
--- a/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/source/relational/aggregation/CountAllAccumulator.java
+++ b/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/source/relational/aggregation/CountAllAccumulator.java
@@ -19,6 +19,8 @@
 
 package org.apache.iotdb.calc.execution.operator.source.relational.aggregation;
 
+import org.apache.iotdb.calc.i18n.CalcMessages;
+
 import org.apache.tsfile.block.column.Column;
 import org.apache.tsfile.block.column.ColumnBuilder;
 import org.apache.tsfile.file.metadata.statistics.Statistics;
@@ -82,7 +84,8 @@ public class CountAllAccumulator implements TableAccumulator {
 
   @Override
   public void addStatistics(Statistics[] statistics) {
-    throw new UnsupportedOperationException("CountAllAccumulator does not support statistics.");
+    throw new UnsupportedOperationException(
+        CalcMessages.COUNT_ALL_ACCUMULATOR_DOES_NOT_SUPPORT_STATISTICS);
   }
 
   @Override
diff --git a/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/source/relational/aggregation/CountIfAccumulator.java b/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/source/relational/aggregation/CountIfAccumulator.java
index db7e958ddc7..29d76bd575d 100644
--- a/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/source/relational/aggregation/CountIfAccumulator.java
+++ b/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/source/relational/aggregation/CountIfAccumulator.java
@@ -19,6 +19,8 @@
 
 package org.apache.iotdb.calc.execution.operator.source.relational.aggregation;
 
+import org.apache.iotdb.calc.i18n.CalcMessages;
+
 import org.apache.tsfile.block.column.Column;
 import org.apache.tsfile.block.column.ColumnBuilder;
 import org.apache.tsfile.file.metadata.statistics.Statistics;
@@ -103,7 +105,8 @@ public class CountIfAccumulator implements TableAccumulator {
 
   @Override
   public void addStatistics(Statistics[] statistics) {
-    throw new UnsupportedOperationException("CountIfAccumulator does not support statistics");
+    throw new UnsupportedOperationException(
+        CalcMessages.COUNT_IF_ACCUMULATOR_DOES_NOT_SUPPORT_STATISTICS);
   }
 
   @Override
diff --git a/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/source/relational/aggregation/RecordIterator.java b/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/source/relational/aggregation/RecordIterator.java
index e0e27aa763c..4046943bd7f 100644
--- a/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/source/relational/aggregation/RecordIterator.java
+++ b/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/source/relational/aggregation/RecordIterator.java
@@ -19,6 +19,7 @@
 
 package org.apache.iotdb.calc.execution.operator.source.relational.aggregation;
 
+import org.apache.iotdb.calc.i18n.CalcMessages;
 import org.apache.iotdb.calc.utils.ObjectTypeUtils;
 import org.apache.iotdb.commons.udf.utils.UDFDataTypeTransformer;
 import org.apache.iotdb.udf.api.relational.access.Record;
@@ -159,7 +160,7 @@ public class RecordIterator implements Iterator<Record> {
     @Override
     public Optional<File> getObjectFile(int columnIndex) {
       if (getDataType(columnIndex) != Type.OBJECT) {
-        throw new UnsupportedOperationException("current column is not object column");
+        throw new UnsupportedOperationException(CalcMessages.CURRENT_COLUMN_IS_NOT_OBJECT_COLUMN);
       }
       return ObjectTypeUtils.getObjectPathFromBinary(getBinarySafely(columnIndex));
     }
@@ -167,7 +168,7 @@ public class RecordIterator implements Iterator<Record> {
     @Override
     public long objectLength(int columnIndex) {
       if (getDataType(columnIndex) != Type.OBJECT) {
-        throw new UnsupportedOperationException("current column is not object column");
+        throw new UnsupportedOperationException(CalcMessages.CURRENT_COLUMN_IS_NOT_OBJECT_COLUMN);
       }
       Binary binary = getBinarySafely(columnIndex);
       return ObjectTypeUtils.getObjectLength(binary);
@@ -175,7 +176,7 @@ public class RecordIterator implements Iterator<Record> {
 
     @Override
     public Binary readObject(int columnIndex, long offset, int length) {
-      throw new UnsupportedOperationException("readObject is not supported");
+      throw new UnsupportedOperationException(CalcMessages.READ_OBJECT_IS_NOT_SUPPORTED);
     }
 
     @Override
diff --git a/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/source/relational/aggregation/TableAccumulator.java b/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/source/relational/aggregation/TableAccumulator.java
index 9699ba17829..e3fbf26377a 100644
--- a/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/source/relational/aggregation/TableAccumulator.java
+++ b/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/source/relational/aggregation/TableAccumulator.java
@@ -19,6 +19,8 @@
 
 package org.apache.iotdb.calc.execution.operator.source.relational.aggregation;
 
+import org.apache.iotdb.calc.i18n.CalcMessages;
+
 import org.apache.tsfile.block.column.Column;
 import org.apache.tsfile.block.column.ColumnBuilder;
 import org.apache.tsfile.file.metadata.statistics.Statistics;
@@ -31,7 +33,8 @@ public interface TableAccumulator {
   void addInput(Column[] arguments, AggregationMask mask);
 
   default void removeInput(Column[] arguments) {
-    throw new UnsupportedOperationException("This Accumulator does not support removing inputs!");
+    throw new UnsupportedOperationException(
+        CalcMessages.THIS_ACCUMULATOR_DOES_NOT_SUPPORT_REMOVING_INPUTS);
   }
 
   void addIntermediate(Column argument);
diff --git a/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/source/relational/aggregation/UserDefinedAggregateFunctionAccumulator.java b/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/source/relational/aggregation/UserDefinedAggregateFunctionAccumulator.java
index 234b1bae258..cd6d0dc1101 100644
--- a/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/source/relational/aggregation/UserDefinedAggregateFunctionAccumulator.java
+++ b/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/source/relational/aggregation/UserDefinedAggregateFunctionAccumulator.java
@@ -19,6 +19,7 @@
 
 package org.apache.iotdb.calc.execution.operator.source.relational.aggregation;
 
+import org.apache.iotdb.calc.i18n.CalcMessages;
 import org.apache.iotdb.udf.api.State;
 import org.apache.iotdb.udf.api.customizer.analysis.AggregateFunctionAnalysis;
 import org.apache.iotdb.udf.api.relational.AggregateFunction;
@@ -119,7 +120,8 @@ public class UserDefinedAggregateFunctionAccumulator implements TableAccumulator
   @Override
   public void addStatistics(Statistics[] statistics) {
     // UDAF not support calculate from statistics now
-    throw new UnsupportedOperationException("UDAF not support calculate from statistics now");
+    throw new UnsupportedOperationException(
+        CalcMessages.UDAF_NOT_SUPPORT_CALCULATE_FROM_STATISTICS);
   }
 
   @Override
@@ -130,7 +132,8 @@ public class UserDefinedAggregateFunctionAccumulator implements TableAccumulator
   @Override
   public void removeInput(Column[] arguments) {
     if (!analysis.isRemovable()) {
-      throw new UnsupportedOperationException("This Accumulator does not support removing inputs!");
+      throw new UnsupportedOperationException(
+          CalcMessages.THIS_ACCUMULATOR_DOES_NOT_SUPPORT_REMOVING_INPUTS);
     }
     RecordIterator iterator =
         new RecordIterator(
diff --git a/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/source/relational/aggregation/approximate/HyperLogLog.java b/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/source/relational/aggregation/approximate/HyperLogLog.java
index 673ae48ef75..6acae090a2f 100644
--- a/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/source/relational/aggregation/approximate/HyperLogLog.java
+++ b/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/source/relational/aggregation/approximate/HyperLogLog.java
@@ -19,6 +19,7 @@
 
 package org.apache.iotdb.calc.execution.operator.source.relational.aggregation.approximate;
 
+import org.apache.iotdb.calc.i18n.CalcMessages;
 import org.apache.iotdb.commons.exception.IoTDBRuntimeException;
 
 import com.google.common.base.Preconditions;
@@ -188,7 +189,7 @@ public class HyperLogLog {
     }
 
     if (sum == 0.0) {
-      throw new IllegalStateException("sum should never be zero.");
+      throw new IllegalStateException(CalcMessages.SUM_SHOULD_NEVER_BE_ZERO);
     }
     // Apply bias correction formula
     double estimate = alpha * m * m / sum;
diff --git a/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/source/relational/aggregation/approximate/TDigest.java b/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/source/relational/aggregation/approximate/TDigest.java
index 981131d6a50..05cd6a1c04e 100644
--- a/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/source/relational/aggregation/approximate/TDigest.java
+++ b/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/source/relational/aggregation/approximate/TDigest.java
@@ -19,6 +19,7 @@
 
 package org.apache.iotdb.calc.execution.operator.source.relational.aggregation.approximate;
 
+import org.apache.iotdb.calc.i18n.CalcMessages;
 import org.apache.iotdb.commons.exception.SemanticException;
 
 import org.apache.tsfile.utils.RamUsageEstimator;
@@ -173,7 +174,7 @@ public class TDigest implements Serializable {
    */
   public void add(double x, int w) {
     if (Double.isNaN(x)) {
-      throw new IllegalArgumentException("Cannot add NaN to t-digest");
+      throw new IllegalArgumentException(CalcMessages.CANNOT_ADD_NAN_TO_T_DIGEST);
     }
     if (tempUsed >= tempWeight.length - lastUsedCell - 1) {
       mergeNewValues();
@@ -206,7 +207,7 @@ public class TDigest implements Serializable {
 
   private void add(double[] m, double[] w, int count) {
     if (m.length != w.length) {
-      throw new IllegalArgumentException("Arrays not same length");
+      throw new IllegalArgumentException(CalcMessages.ARRAYS_NOT_SAME_LENGTH);
     }
     if (m.length < count + lastUsedCell) {
       // make room to add existing centroids
@@ -414,7 +415,7 @@ public class TDigest implements Serializable {
    */
   public double cdf(double x) {
     if (Double.isNaN(x) || Double.isInfinite(x)) {
-      throw new IllegalArgumentException(String.format("Invalid value: %f", x));
+      throw new IllegalArgumentException(String.format(CalcMessages.INVALID_VALUE, x));
     }
     mergeNewValues();
 
@@ -505,7 +506,7 @@ public class TDigest implements Serializable {
       if (x == mean[n - 1]) {
         return 1 - 0.5 / totalWeight;
       } else {
-        throw new IllegalStateException("Can't happen ... loop fell through");
+        throw new IllegalStateException(CalcMessages.CANT_HAPPEN_LOOP_FELL_THROUGH);
       }
     }
   }
@@ -519,7 +520,7 @@ public class TDigest implements Serializable {
    */
   public double quantile(double q) {
     if (q < 0 || q > 1) {
-      throw new SemanticException("percentage should be in [0,1], got " + q);
+      throw new SemanticException(CalcMessages.PERCENTAGE_SHOULD_BE_IN_0_1 + q);
     }
     mergeNewValues();
 
diff --git a/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/source/relational/aggregation/grouped/GroupedApproxPercentileWithWeightAccumulator.java b/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/source/relational/aggregation/grouped/GroupedApproxPercentileWithWeightAccumulator.java
index a843b6b9f9d..fdaabbd7aaa 100644
--- a/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/source/relational/aggregation/grouped/GroupedApproxPercentileWithWeightAccumulator.java
+++ b/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/source/relational/aggregation/grouped/GroupedApproxPercentileWithWeightAccumulator.java
@@ -21,6 +21,7 @@ package org.apache.iotdb.calc.execution.operator.source.relational.aggregation.g
 
 import org.apache.iotdb.calc.execution.operator.source.relational.aggregation.AggregationMask;
 import org.apache.iotdb.calc.execution.operator.source.relational.aggregation.approximate.TDigest;
+import org.apache.iotdb.calc.i18n.CalcMessages;
 import org.apache.iotdb.commons.exception.SemanticException;
 
 import org.apache.tsfile.block.column.Column;
@@ -46,7 +47,7 @@ public class GroupedApproxPercentileWithWeightAccumulator
           continue;
         }
         if (weightColumn.getInt(i) < 1) {
-          throw new SemanticException("weight must be >= 1, was " + weightColumn.getInt(i));
+          throw new SemanticException(CalcMessages.WEIGHT_MUST_BE_GE_1 + weightColumn.getInt(i));
         }
         int groupId = groupIds[i];
         TDigest tDigest = array.get(groupId);
@@ -64,7 +65,8 @@ public class GroupedApproxPercentileWithWeightAccumulator
           continue;
         }
         if (weightColumn.getInt(position) < 1) {
-          throw new SemanticException("weight must be >= 1, was " + weightColumn.getInt(position));
+          throw new SemanticException(
+              CalcMessages.WEIGHT_MUST_BE_GE_1 + weightColumn.getInt(position));
         }
         groupId = groupIds[position];
         TDigest tDigest = array.get(groupId);
@@ -88,7 +90,7 @@ public class GroupedApproxPercentileWithWeightAccumulator
           continue;
         }
         if (weightColumn.getInt(i) < 1) {
-          throw new SemanticException("weight must be >= 1, was " + weightColumn.getInt(i));
+          throw new SemanticException(CalcMessages.WEIGHT_MUST_BE_GE_1 + weightColumn.getInt(i));
         }
         int groupId = groupIds[i];
         TDigest tDigest = array.get(groupId);
@@ -106,7 +108,8 @@ public class GroupedApproxPercentileWithWeightAccumulator
           continue;
         }
         if (weightColumn.getInt(position) < 1) {
-          throw new SemanticException("weight must be >= 1, was " + weightColumn.getInt(position));
+          throw new SemanticException(
+              CalcMessages.WEIGHT_MUST_BE_GE_1 + weightColumn.getInt(position));
         }
         groupId = groupIds[position];
         TDigest tDigest = array.get(groupId);
@@ -130,7 +133,7 @@ public class GroupedApproxPercentileWithWeightAccumulator
           continue;
         }
         if (weightColumn.getInt(i) < 1) {
-          throw new SemanticException("weight must be >= 1, was " + weightColumn.getInt(i));
+          throw new SemanticException(CalcMessages.WEIGHT_MUST_BE_GE_1 + weightColumn.getInt(i));
         }
         int groupId = groupIds[i];
         TDigest tDigest = array.get(groupId);
@@ -148,7 +151,8 @@ public class GroupedApproxPercentileWithWeightAccumulator
           continue;
         }
         if (weightColumn.getInt(position) < 1) {
-          throw new SemanticException("weight must be >= 1, was " + weightColumn.getInt(position));
+          throw new SemanticException(
+              CalcMessages.WEIGHT_MUST_BE_GE_1 + weightColumn.getInt(position));
         }
         groupId = groupIds[position];
         TDigest tDigest = array.get(groupId);
@@ -172,7 +176,7 @@ public class GroupedApproxPercentileWithWeightAccumulator
           continue;
         }
         if (weightColumn.getInt(i) < 1) {
-          throw new SemanticException("weight must be >= 1, was " + weightColumn.getInt(i));
+          throw new SemanticException(CalcMessages.WEIGHT_MUST_BE_GE_1 + weightColumn.getInt(i));
         }
         int groupId = groupIds[i];
         TDigest tDigest = array.get(groupId);
@@ -190,7 +194,8 @@ public class GroupedApproxPercentileWithWeightAccumulator
           continue;
         }
         if (weightColumn.getInt(position) < 1) {
-          throw new SemanticException("weight must be >= 1, was " + weightColumn.getInt(position));
+          throw new SemanticException(
+              CalcMessages.WEIGHT_MUST_BE_GE_1 + weightColumn.getInt(position));
         }
         groupId = groupIds[position];
         TDigest tDigest = array.get(groupId);
diff --git a/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/source/relational/aggregation/grouped/GroupedUserDefinedAggregateAccumulator.java b/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/source/relational/aggregation/grouped/GroupedUserDefinedAggregateAccumulator.java
index 4b2d13b4adc..2ef228b0662 100644
--- a/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/source/relational/aggregation/grouped/GroupedUserDefinedAggregateAccumulator.java
+++ b/iotdb-core/calc-commons/src/main/java/org/apache/iotdb/calc/execution/operator/source/relational/aggregation/grouped/GroupedUserDefinedAggregateAccumulator.java
@@ -23,6 +23,7 @@ import org.apache.iotdb.calc.execution.operator.source.relational.aggregation.Ag
 import org.apache.iotdb.calc.execution.operator.source.relational.aggregation.MaskedRecordIterator;
 import org.apache.iotdb.calc.execution.operator.source.relational.aggregation.RecordIterator;
 import org.apache.iotdb.calc.execution.operator.source.relational.aggregation.grouped.array.ObjectBigArray;
+import org.apache.iotdb.calc.i18n.CalcMessages;
 import org.apache.iotdb.udf.api.State;
 import org.apache.iotdb.udf.api.relational.AggregateFunction;
 import org.apache.iotdb.udf.api.utils.ResultValue;
@@ -126,7 +127,8 @@ public class GroupedUserDefinedAggregateAccumulator implements GroupedAccumulato
         columnBuilder instanceof BinaryColumnBuilder,
         "intermediate input and output of UDAF should be BinaryColumn");
... 82480 lines suppressed ...