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

hui 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 aa175c2053 [IOTDB-3357] Throw an exception when using the select-into 
statement (#6117)
aa175c2053 is described below

commit aa175c20539263e2b03a2cb91a5a7142129aee3f
Author: liuminghui233 <[email protected]>
AuthorDate: Wed Jun 1 14:09:44 2022 +0800

    [IOTDB-3357] Throw an exception when using the select-into statement (#6117)
---
 .../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();
 

Reply via email to