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 2023/09/07 03:33:50 UTC

[iotdb] branch rel/1.2 updated: [To rel/1.2] Fix mods file contains writable view

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

jackietien pushed a commit to branch rel/1.2
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/rel/1.2 by this push:
     new eaa1083d2fe [To rel/1.2] Fix mods file contains writable view
eaa1083d2fe is described below

commit eaa1083d2fe60a28188a791eb4981bb3087d49f0
Author: Chen YZ <43...@users.noreply.github.com>
AuthorDate: Thu Sep 7 11:33:44 2023 +0800

    [To rel/1.2] Fix mods file contains writable view
---
 .../org/apache/iotdb/db/queryengine/plan/analyze/AnalyzeVisitor.java   | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

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 d2eda281ae3..ff8df182aac 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
@@ -2863,9 +2863,8 @@ public class AnalyzeVisitor extends StatementVisitor<Analysis, MPPQueryContext>
             sourcePathOfAliasSeries = logicalViewSchema.getSourcePathIfWritable();
             deletePatternSet.add(sourcePathOfAliasSeries);
             deduplicatedDevicePaths.add(sourcePathOfAliasSeries.getDevice());
-          } else {
-            deletePatternSet.remove(measurementPath);
           }
+          deletePatternSet.remove(measurementPath);
         } else {
           deduplicatedDevicePaths.add(measurementPath.getDevice());
         }