You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ha...@apache.org on 2023/12/05 04:24:36 UTC

(iotdb) branch master updated: fix the error when last query non-writble view with same sensors (#11658)

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

haonan 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 b2be051adb0 fix the error when last query non-writble view with same sensors (#11658)
b2be051adb0 is described below

commit b2be051adb05227b82dc099f22ce798582dddbcf
Author: Beyyes <cg...@foxmail.com>
AuthorDate: Tue Dec 5 12:24:30 2023 +0800

    fix the error when last query non-writble view with same sensors (#11658)
---
 .../org/apache/iotdb/db/queryengine/plan/analyze/AnalyzeVisitor.java    | 2 +-
 1 file changed, 1 insertion(+), 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 c05329bf26f..89842c3d1af 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
@@ -475,7 +475,7 @@ public class AnalyzeVisitor extends StatementVisitor<Analysis, MPPQueryContext>
           }
           List<Expression> sourceExpressionsOfNonWritableView =
               searchSourceExpressions(lastQuerySourceExpression);
-          lastQueryNonWritableViewSourceExpressionMap.put(
+          lastQueryNonWritableViewSourceExpressionMap.putIfAbsent(
               lastQuerySourceExpression, sourceExpressionsOfNonWritableView);
           sourceExpressions.addAll(sourceExpressionsOfNonWritableView);
         }