Skip to content

Commit

Permalink
storage agg
Browse files Browse the repository at this point in the history
  • Loading branch information
englefly committed Aug 9, 2024
1 parent 51125fe commit fa1f42f
Show file tree
Hide file tree
Showing 3 changed files with 183 additions and 185 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
import org.apache.doris.nereids.trees.plans.AggPhase;
import org.apache.doris.nereids.trees.plans.GroupPlan;
import org.apache.doris.nereids.trees.plans.Plan;
import org.apache.doris.nereids.trees.plans.algebra.OlapScan;
import org.apache.doris.nereids.trees.plans.algebra.Project;
import org.apache.doris.nereids.trees.plans.logical.LogicalAggregate;
import org.apache.doris.nereids.trees.plans.logical.LogicalFileScan;
Expand Down Expand Up @@ -253,8 +254,7 @@ public List<Rule> buildRules() {
logicalProject(
logicalFileScan()
)
)
.when(agg -> agg.isNormalized() && enablePushDownNoGroupAgg())
).when(agg -> agg.isNormalized() && enablePushDownNoGroupAgg())
.thenApply(ctx -> {
LogicalAggregate<LogicalProject<LogicalFileScan>> agg = ctx.root;
LogicalProject<LogicalFileScan> project = agg.child();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -696,8 +696,6 @@ public Statistics visitPhysicalFileScan(PhysicalFileScan fileScan, Void context)
public Statistics visitPhysicalStorageLayerAggregate(
PhysicalStorageLayerAggregate storageLayerAggregate, Void context) {
PhysicalRelation relation = storageLayerAggregate.getRelation();
Preconditions.checkArgument(relation instanceof PhysicalOlapScan,
"StorageLayerAggregate only support OlapTable");
return relation.accept(this, context);

}
Expand Down
Loading

0 comments on commit fa1f42f

Please sign in to comment.