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

rong pushed a commit to branch rc/1.3.3
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/rc/1.3.3 by this push:
     new 42967426fd5 Load: add detailed exception message in rpc returned 
status (#13493) (#13497)
42967426fd5 is described below

commit 42967426fd5746422231676d76c54d9879adb45c
Author: Zhenyu Luo <[email protected]>
AuthorDate: Fri Sep 13 10:08:39 2024 +0800

    Load: add detailed exception message in rpc returned status (#13493) 
(#13497)
---
 .../iotdb/db/queryengine/plan/analyze/LoadTsFileAnalyzer.java | 11 +++--------
 1 file changed, 3 insertions(+), 8 deletions(-)

diff --git 
a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/analyze/LoadTsFileAnalyzer.java
 
b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/analyze/LoadTsFileAnalyzer.java
index 38fc1eebe82..af8239c3104 100644
--- 
a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/analyze/LoadTsFileAnalyzer.java
+++ 
b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/analyze/LoadTsFileAnalyzer.java
@@ -203,12 +203,7 @@ public class LoadTsFileAnalyzer implements AutoCloseable {
               e.getMessage() == null ? e.getClass().getName() : 
e.getMessage());
       LOGGER.warn(exceptionMessage, e);
       analysis.setFinishQueryAfterAnalyze(true);
-      analysis.setFailStatus(
-          RpcUtils.getStatus(
-              TSStatusCode.LOAD_FILE_ERROR,
-              String.format(
-                  "Auto create or verify schema error when executing statement 
%s.",
-                  loadTsFileStatement)));
+      analysis.setFailStatus(RpcUtils.getStatus(TSStatusCode.LOAD_FILE_ERROR, 
exceptionMessage));
       return analysis;
     }
 
@@ -446,8 +441,8 @@ public class LoadTsFileAnalyzer implements AutoCloseable {
         LOGGER.warn("Auto create or verify schema error.", e);
         throw new SemanticException(
             String.format(
-                "Auto create or verify schema error when executing statement 
%s.",
-                loadTsFileStatement));
+                "Auto create or verify schema error when executing statement 
%s.  Detail: %s.",
+                loadTsFileStatement, e.getMessage()));
       }
     }
 

Reply via email to