Search in sources :

Example 1 with CalcRelSplitter

use of org.apache.beam.sdk.extensions.sql.impl.rel.CalcRelSplitter in project beam by apache.

the class BeamCalcSplittingRule method onMatch.

@Override
public void onMatch(RelOptRuleCall relOptRuleCall) {
    final Calc calc = (Calc) relOptRuleCall.rel(0);
    final CalcRelSplitter transform = new CalcRelSplitter(calc, relOptRuleCall.builder(), getRelTypes());
    RelNode newRel = transform.execute();
    relOptRuleCall.transformTo(newRel);
}
Also used : RelNode(org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.rel.RelNode) CalcRelSplitter(org.apache.beam.sdk.extensions.sql.impl.rel.CalcRelSplitter) LogicalCalc(org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.rel.logical.LogicalCalc) Calc(org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.rel.core.Calc)

Aggregations

CalcRelSplitter (org.apache.beam.sdk.extensions.sql.impl.rel.CalcRelSplitter)1 RelNode (org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.rel.RelNode)1 Calc (org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.rel.core.Calc)1 LogicalCalc (org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.rel.logical.LogicalCalc)1