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);
}
Aggregations