You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by su...@apache.org on 2020/11/17 09:48:31 UTC

[iotdb] branch jira-1012 created (now 61546f8)

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

sunzesong pushed a change to branch jira-1012
in repository https://gitbox.apache.org/repos/asf/iotdb.git.


      at 61546f8  [IOTDB-1012] Remove unfriendly query process error for users

This branch includes the following new commits:

     new 61546f8  [IOTDB-1012] Remove unfriendly query process error for users

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[iotdb] 01/01: [IOTDB-1012] Remove unfriendly query process error for users

Posted by su...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

sunzesong pushed a commit to branch jira-1012
in repository https://gitbox.apache.org/repos/asf/iotdb.git

commit 61546f82373b598f7587c8b68f4cff08ea61eb70
Author: samperson1997 <sz...@mails.tsinghua.edu.cn>
AuthorDate: Tue Nov 17 17:38:24 2020 +0800

    [IOTDB-1012] Remove unfriendly query process error for users
---
 .../main/java/org/apache/iotdb/db/qp/strategy/PhysicalGenerator.java    | 2 +-
 .../test/java/org/apache/iotdb/db/integration/IoTDBMultiSeriesIT.java   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/server/src/main/java/org/apache/iotdb/db/qp/strategy/PhysicalGenerator.java b/server/src/main/java/org/apache/iotdb/db/qp/strategy/PhysicalGenerator.java
index 0044134..0e27a8f 100644
--- a/server/src/main/java/org/apache/iotdb/db/qp/strategy/PhysicalGenerator.java
+++ b/server/src/main/java/org/apache/iotdb/db/qp/strategy/PhysicalGenerator.java
@@ -586,7 +586,7 @@ public class PhysicalGenerator {
           IExpression expression = filterOperator.transformToExpression(pathTSDataTypeHashMap);
           ((RawDataQueryPlan) queryPlan).setExpression(expression);
         } catch (MetadataException e) {
-          throw new LogicalOptimizeException(e);
+          throw new LogicalOptimizeException(e.getMessage());
         }
       }
     }
diff --git a/server/src/test/java/org/apache/iotdb/db/integration/IoTDBMultiSeriesIT.java b/server/src/test/java/org/apache/iotdb/db/integration/IoTDBMultiSeriesIT.java
index 2538cc4..e755b66 100644
--- a/server/src/test/java/org/apache/iotdb/db/integration/IoTDBMultiSeriesIT.java
+++ b/server/src/test/java/org/apache/iotdb/db/integration/IoTDBMultiSeriesIT.java
@@ -434,7 +434,7 @@ public class IoTDBMultiSeriesIT {
     } catch (SQLException e) {
       e.printStackTrace();
       assertEquals(
-          "411: Meet error in query process: org.apache.iotdb.db.exception.metadata.PathNotExistException: Path [root.vehicle.d0.s10] does not exist",
+          "411: Meet error in query process: Path [root.vehicle.d0.s10] does not exist",
           e.getMessage());
     }
   }