Skip to content

Commit

Permalink
leaf
Browse files Browse the repository at this point in the history
  • Loading branch information
englefly committed Dec 4, 2024
1 parent 86c68f0 commit a6c1a5b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
import org.apache.doris.nereids.trees.expressions.functions.scalar.DecodeAsVarchar;
import org.apache.doris.nereids.trees.expressions.functions.scalar.EncodeString;
import org.apache.doris.nereids.trees.plans.Plan;
import org.apache.doris.nereids.trees.plans.logical.LogicalCatalogRelation;
import org.apache.doris.nereids.trees.plans.logical.LogicalJoin;
import org.apache.doris.nereids.trees.plans.logical.LogicalLeaf;
import org.apache.doris.nereids.trees.plans.logical.LogicalProject;
import org.apache.doris.nereids.trees.plans.logical.LogicalRepeat;
import org.apache.doris.nereids.trees.plans.logical.LogicalSetOperation;
Expand Down Expand Up @@ -77,7 +77,7 @@ public class PushDownEncodeSlot extends OneRewriteRuleFactory {
public Rule build() {
return logicalProject()
.whenNot(project -> project.child() instanceof LogicalRepeat)
.when(project -> !(project.child() instanceof LogicalCatalogRelation))
.whenNot(project -> (project.child() instanceof LogicalLeaf))
.then(project -> pushDownEncodeSlot(project))
.toRule(RuleType.PUSH_DOWN_ENCODE_SLOT);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ protected void runBeforeAll() throws Exception {
SSBUtils.createTables(this);
createView("CREATE VIEW V1 AS SELECT * FROM part");
createView("CREATE VIEW V2 AS SELECT * FROM part");
connectContext.getSessionVariable().enableCompressMaterialize=false;
connectContext.getSessionVariable().enableCompressMaterialize = false;
}

@Override
Expand Down

0 comments on commit a6c1a5b

Please sign in to comment.