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

jackietien 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 741a218fb75 fix filter push down is not valid in template align by 
device situation
741a218fb75 is described below

commit 741a218fb7518f70f69fe54fc6819061108ee9d5
Author: Beyyes <[email protected]>
AuthorDate: Tue May 14 09:39:05 2024 +0800

    fix filter push down is not valid in template align by device situation
---
 .../db/queryengine/plan/planner/TemplatedLogicalPlanBuilder.java     | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git 
a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/planner/TemplatedLogicalPlanBuilder.java
 
b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/planner/TemplatedLogicalPlanBuilder.java
index fb6b2ea04c8..b1107ae8fab 100644
--- 
a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/planner/TemplatedLogicalPlanBuilder.java
+++ 
b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/planner/TemplatedLogicalPlanBuilder.java
@@ -114,7 +114,7 @@ public class TemplatedLogicalPlanBuilder extends 
LogicalPlanBuilder {
       return this;
     }
 
-    this.root =
+    FilterNode filterNode =
         new FilterNode(
             context.getQueryId().genPlanNodeId(),
             this.getRoot(),
@@ -122,6 +122,9 @@ public class TemplatedLogicalPlanBuilder extends 
LogicalPlanBuilder {
             filterExpression,
             isGroupByTime,
             scanOrder);
+    analysis.setFromWhere(filterNode);
+
+    this.root = filterNode;
 
     return this;
   }

Reply via email to