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

yiguolei pushed a commit to branch branch-2.1
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-2.1 by this push:
     new afd87e9aee0 [fix](nereids)should prune logicalSink's child node in 
ColumnPruning (#41289) (#41424)
afd87e9aee0 is described below

commit afd87e9aee0c60d881ddf07b9e923ed45a188ad8
Author: starocean999 <40539150+starocean...@users.noreply.github.com>
AuthorDate: Sat Sep 28 08:35:35 2024 +0800

    [fix](nereids)should prune logicalSink's child node in ColumnPruning 
(#41289) (#41424)
    
    ## Proposed changes
    
    pick from master https://github.com/apache/doris/pull/41289
    
    <!--Describe your changes.-->
---
 .../main/java/org/apache/doris/nereids/rules/rewrite/ColumnPruning.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/fe/fe-core/src/main/java/org/apache/doris/nereids/rules/rewrite/ColumnPruning.java
 
b/fe/fe-core/src/main/java/org/apache/doris/nereids/rules/rewrite/ColumnPruning.java
index 32478ceb954..b10a87479f2 100644
--- 
a/fe/fe-core/src/main/java/org/apache/doris/nereids/rules/rewrite/ColumnPruning.java
+++ 
b/fe/fe-core/src/main/java/org/apache/doris/nereids/rules/rewrite/ColumnPruning.java
@@ -186,7 +186,7 @@ public class ColumnPruning extends 
DefaultPlanRewriter<PruneContext> implements
 
     @Override
     public Plan visitLogicalSink(LogicalSink<? extends Plan> logicalSink, 
PruneContext context) {
-        return skipPruneThisAndFirstLevelChildren(logicalSink);
+        return pruneChildren(logicalSink, logicalSink.getOutputSet());
     }
 
     // the backend not support filter(project(agg)), so we can not prune the 
key set in the agg,


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to