use of org.apache.flink.table.planner.plan.nodes.physical.batch.BatchPhysicalLocalHashAggregate in project flink by apache.
the class PushLocalHashAggWithCalcIntoScanRule method matches.
@Override
public boolean matches(RelOptRuleCall call) {
BatchPhysicalLocalHashAggregate localHashAgg = call.rel(1);
BatchPhysicalCalc calc = call.rel(2);
BatchPhysicalTableSourceScan tableSourceScan = call.rel(3);
return isInputRefOnly(calc) && isProjectionNotPushedDown(tableSourceScan) && canPushDown(call, localHashAgg, tableSourceScan);
}
use of org.apache.flink.table.planner.plan.nodes.physical.batch.BatchPhysicalLocalHashAggregate in project flink by apache.
the class PushLocalHashAggWithCalcIntoScanRule method onMatch.
@Override
public void onMatch(RelOptRuleCall call) {
BatchPhysicalLocalHashAggregate localHashAgg = call.rel(1);
BatchPhysicalCalc calc = call.rel(2);
BatchPhysicalTableSourceScan oldScan = call.rel(3);
int[] calcRefFields = getRefFiledIndex(calc);
pushLocalAggregateIntoScan(call, localHashAgg, oldScan, calcRefFields);
}
use of org.apache.flink.table.planner.plan.nodes.physical.batch.BatchPhysicalLocalHashAggregate in project flink by apache.
the class PushLocalHashAggIntoScanRule method matches.
@Override
public boolean matches(RelOptRuleCall call) {
BatchPhysicalLocalHashAggregate localAggregate = call.rel(1);
BatchPhysicalTableSourceScan tableSourceScan = call.rel(2);
return canPushDown(call, localAggregate, tableSourceScan);
}
use of org.apache.flink.table.planner.plan.nodes.physical.batch.BatchPhysicalLocalHashAggregate in project flink by apache.
the class PushLocalHashAggIntoScanRule method onMatch.
@Override
public void onMatch(RelOptRuleCall call) {
BatchPhysicalLocalHashAggregate localHashAgg = call.rel(1);
BatchPhysicalTableSourceScan oldScan = call.rel(2);
pushLocalAggregateIntoScan(call, localHashAgg, oldScan);
}
Aggregations