You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by hu...@apache.org on 2022/06/01 02:46:31 UTC
[iotdb] branch SelectIntoErrorMsg created (now c76c9f7228)
This is an automated email from the ASF dual-hosted git repository.
hui pushed a change to branch SelectIntoErrorMsg
in repository https://gitbox.apache.org/repos/asf/iotdb.git
at c76c9f7228 add error message in select-into
This branch includes the following new commits:
new c76c9f7228 add error message in select-into
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: add error message in select-into
Posted by hu...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
hui pushed a commit to branch SelectIntoErrorMsg
in repository https://gitbox.apache.org/repos/asf/iotdb.git
commit c76c9f722806a6614f66c4e1ab937ad124013d51
Author: Minghui Liu <li...@foxmail.com>
AuthorDate: Wed Jun 1 10:45:50 2022 +0800
add error message in select-into
---
.../main/java/org/apache/iotdb/db/mpp/plan/parser/ASTVisitor.java | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/server/src/main/java/org/apache/iotdb/db/mpp/plan/parser/ASTVisitor.java b/server/src/main/java/org/apache/iotdb/db/mpp/plan/parser/ASTVisitor.java
index de68bb85a2..90c2fed2f3 100644
--- a/server/src/main/java/org/apache/iotdb/db/mpp/plan/parser/ASTVisitor.java
+++ b/server/src/main/java/org/apache/iotdb/db/mpp/plan/parser/ASTVisitor.java
@@ -674,6 +674,11 @@ public class ASTVisitor extends IoTDBSqlParserBaseVisitor<Statement> {
@Override
public Statement visitSelectStatement(IoTDBSqlParser.SelectStatementContext ctx) {
+ if (ctx.intoClause() != null) {
+ throw new SemanticException(
+ "The SELECT-INTO statement is not supported in the current version.");
+ }
+
// initialize query statement
queryStatement = new QueryStatement();