Search in sources :

Example 1 with Calc

use of org.apache.calcite.rel.core.Calc in project storm by apache.

the class TridentCalcRule method convert.

@Override
public RelNode convert(RelNode rel) {
    final Calc calc = (Calc) rel;
    final RelNode input = calc.getInput();
    return new TridentCalcRel(calc.getCluster(), calc.getTraitSet().replace(TridentLogicalConvention.INSTANCE), convert(input, input.getTraitSet().replace(TridentLogicalConvention.INSTANCE)), calc.getProgram());
}
Also used : TridentCalcRel(org.apache.storm.sql.planner.trident.rel.TridentCalcRel) RelNode(org.apache.calcite.rel.RelNode) LogicalCalc(org.apache.calcite.rel.logical.LogicalCalc) Calc(org.apache.calcite.rel.core.Calc)

Aggregations

RelNode (org.apache.calcite.rel.RelNode)1 Calc (org.apache.calcite.rel.core.Calc)1 LogicalCalc (org.apache.calcite.rel.logical.LogicalCalc)1 TridentCalcRel (org.apache.storm.sql.planner.trident.rel.TridentCalcRel)1