Search in sources :

Example 6 with BatchPhysicalCalc

use of org.apache.flink.table.planner.plan.nodes.physical.batch.BatchPhysicalCalc in project flink by apache.

the class PushLocalSortAggWithSortAndCalcIntoScanRule method matches.

@Override
public boolean matches(RelOptRuleCall call) {
    BatchPhysicalGroupAggregateBase localAggregate = call.rel(1);
    BatchPhysicalCalc calc = call.rel(3);
    BatchPhysicalTableSourceScan tableSourceScan = call.rel(4);
    return isInputRefOnly(calc) && isProjectionNotPushedDown(tableSourceScan) && canPushDown(call, localAggregate, tableSourceScan);
}
Also used : BatchPhysicalGroupAggregateBase(org.apache.flink.table.planner.plan.nodes.physical.batch.BatchPhysicalGroupAggregateBase) BatchPhysicalCalc(org.apache.flink.table.planner.plan.nodes.physical.batch.BatchPhysicalCalc) BatchPhysicalTableSourceScan(org.apache.flink.table.planner.plan.nodes.physical.batch.BatchPhysicalTableSourceScan)

Aggregations

BatchPhysicalCalc (org.apache.flink.table.planner.plan.nodes.physical.batch.BatchPhysicalCalc)6 BatchPhysicalTableSourceScan (org.apache.flink.table.planner.plan.nodes.physical.batch.BatchPhysicalTableSourceScan)6 BatchPhysicalGroupAggregateBase (org.apache.flink.table.planner.plan.nodes.physical.batch.BatchPhysicalGroupAggregateBase)2 BatchPhysicalLocalHashAggregate (org.apache.flink.table.planner.plan.nodes.physical.batch.BatchPhysicalLocalHashAggregate)2 BatchPhysicalLocalSortAggregate (org.apache.flink.table.planner.plan.nodes.physical.batch.BatchPhysicalLocalSortAggregate)2