Search in sources :

Example 6 with FlinkLogicalAggregate

use of org.apache.flink.table.planner.plan.nodes.logical.FlinkLogicalAggregate in project flink by apache.

the class RelTimeIndicatorConverter method visitAggregate.

private FlinkLogicalAggregate visitAggregate(FlinkLogicalAggregate agg) {
    RelNode newInput = convertAggInput(agg);
    List<AggregateCall> updatedAggCalls = convertAggregateCalls(agg);
    return (FlinkLogicalAggregate) agg.copy(agg.getTraitSet(), newInput, agg.getGroupSet(), agg.getGroupSets(), updatedAggCalls);
}
Also used : AggregateCall(org.apache.calcite.rel.core.AggregateCall) RelNode(org.apache.calcite.rel.RelNode) FlinkLogicalAggregate(org.apache.flink.table.planner.plan.nodes.logical.FlinkLogicalAggregate)

Aggregations

FlinkLogicalAggregate (org.apache.flink.table.planner.plan.nodes.logical.FlinkLogicalAggregate)6 AggregateCall (org.apache.calcite.rel.core.AggregateCall)4 RelNode (org.apache.calcite.rel.RelNode)3 RelTraitSet (org.apache.calcite.plan.RelTraitSet)2 TableException (org.apache.flink.table.api.TableException)2 FlinkRelDistribution (org.apache.flink.table.planner.plan.trait.FlinkRelDistribution)2 RelCollation (org.apache.calcite.rel.RelCollation)1 UserDefinedFunction (org.apache.flink.table.functions.UserDefinedFunction)1 FlinkLogicalTableAggregate (org.apache.flink.table.planner.plan.nodes.logical.FlinkLogicalTableAggregate)1 BatchPhysicalPythonGroupAggregate (org.apache.flink.table.planner.plan.nodes.physical.batch.BatchPhysicalPythonGroupAggregate)1 StreamPhysicalPythonGroupAggregate (org.apache.flink.table.planner.plan.nodes.physical.stream.StreamPhysicalPythonGroupAggregate)1 DataType (org.apache.flink.table.types.DataType)1 Seq (scala.collection.Seq)1