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 2025/07/09 05:54:03 UTC

(iotdb) branch master updated: Change ErrorCode from 305 to 701 if there is no from clause

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

jackietien 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 966cfc73348 Change ErrorCode from 305 to 701 if there is no from clause
966cfc73348 is described below

commit 966cfc733480b05941e1f70f80cceca7d7da7f9f
Author: Jackie Tien <ja...@gmail.com>
AuthorDate: Wed Jul 9 13:53:58 2025 +0800

    Change ErrorCode from 305 to 701 if there is no from clause
---
 .../iotdb/db/queryengine/plan/relational/planner/QueryPlanner.java      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/relational/planner/QueryPlanner.java b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/relational/planner/QueryPlanner.java
index cb5085d7aa2..c99e6d36680 100644
--- a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/relational/planner/QueryPlanner.java
+++ b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/relational/planner/QueryPlanner.java
@@ -752,7 +752,7 @@ public class QueryPlanner {
               .process(node.getFrom().orElse(null), null);
       return newPlanBuilder(relationPlan, analysis);
     } else {
-      throw new IllegalStateException("From clause must not by empty");
+      throw new SemanticException("From clause must not be empty");
     }
   }