You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ca...@apache.org on 2023/07/17 06:29:55 UTC

[iotdb] branch beyyes/1.2_fix_delete_view created (now 5bc6a25309d)

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

caogaofei pushed a change to branch beyyes/1.2_fix_delete_view
in repository https://gitbox.apache.org/repos/asf/iotdb.git


      at 5bc6a25309d fix the bug when delete view meets statement error

This branch includes the following new commits:

     new 5bc6a25309d fix the bug when delete view meets statement error

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: fix the bug when delete view meets statement error

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

caogaofei pushed a commit to branch beyyes/1.2_fix_delete_view
in repository https://gitbox.apache.org/repos/asf/iotdb.git

commit 5bc6a25309da55f72e9367e93e3ff2fa5fb38244
Author: Beyyes <cg...@foxmail.com>
AuthorDate: Mon Jul 17 13:17:24 2023 +0800

    fix the bug when delete view meets statement error
---
 .../org/apache/iotdb/db/queryengine/plan/analyze/AnalyzeVisitor.java  | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/analyze/AnalyzeVisitor.java b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/analyze/AnalyzeVisitor.java
index 3dfbae4ddd8..52c5f798c0c 100644
--- a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/analyze/AnalyzeVisitor.java
+++ b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/analyze/AnalyzeVisitor.java
@@ -484,7 +484,9 @@ public class AnalyzeVisitor extends StatementVisitor<Analysis, MPPQueryContext>
       throw new SemanticException(e);
     }
     analysis.setUseLogicalView(useLogicalView);
-    if (useLogicalView && ((QueryStatement) analysis.getStatement()).isGroupByTag()) {
+    if (useLogicalView
+        && analysis.getStatement() instanceof QueryStatement
+        && (((QueryStatement) analysis.getStatement()).isGroupByTag())) {
       throw new SemanticException("Views cannot be used in GROUP BY TAGS query yet.");
     }