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

caogaofei 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 7b34fa91e42 Fixed logical view creation with "into" pattern failure 
problem
7b34fa91e42 is described below

commit 7b34fa91e42e4572d834e8fcd6d90b6399f9fe66
Author: Caideyipi <[email protected]>
AuthorDate: Thu Mar 14 14:49:37 2024 +0800

    Fixed logical view creation with "into" pattern failure problem
---
 .../apache/iotdb/db/queryengine/plan/analyze/AnalyzeVisitor.java | 9 +++++----
 1 file changed, 5 insertions(+), 4 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 198ef3f6b58..9b97f03a090 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
@@ -3349,6 +3349,11 @@ public class AnalyzeVisitor extends 
StatementVisitor<Analysis, MPPQueryContext>
       // Only check and use source paths when view expressions are not set 
because there
       // is no need to check source when renaming views and the check may not 
be satisfied
       // when the statement is generated by pipe
+
+      // Use source and into item to generate target views
+      // If expressions are filled the target paths must be filled likewise
+      createLogicalViewStatement.parseIntoItemIfNecessary();
+
       checkSourcePathsInCreateLogicalView(analysis, 
createLogicalViewStatement);
       if (analysis.isFinishQueryAfterAnalyze()) {
         return analysis;
@@ -3360,10 +3365,6 @@ public class AnalyzeVisitor extends 
StatementVisitor<Analysis, MPPQueryContext>
       if (analysis.isFinishQueryAfterAnalyze()) {
         return analysis;
       }
-
-      // Use source and into item to generate target views
-      // If expressions are filled the target paths must be filled likewise
-      createLogicalViewStatement.parseIntoItemIfNecessary();
     }
 
     // Check target paths.

Reply via email to