Search in sources :

Example 1 with RepeatUnion

use of org.apache.calcite.rel.core.RepeatUnion in project calcite by apache.

the class EnumerableRepeatUnionRule method convert.

@Override
public RelNode convert(RelNode rel) {
    RepeatUnion union = (RepeatUnion) rel;
    EnumerableConvention out = EnumerableConvention.INSTANCE;
    RelTraitSet traitSet = union.getTraitSet().replace(out);
    RelNode seedRel = union.getSeedRel();
    RelNode iterativeRel = union.getIterativeRel();
    return new EnumerableRepeatUnion(rel.getCluster(), traitSet, convert(seedRel, seedRel.getTraitSet().replace(out)), convert(iterativeRel, iterativeRel.getTraitSet().replace(out)), union.all, union.iterationLimit, union.getTransientTable());
}
Also used : RelNode(org.apache.calcite.rel.RelNode) RepeatUnion(org.apache.calcite.rel.core.RepeatUnion) LogicalRepeatUnion(org.apache.calcite.rel.logical.LogicalRepeatUnion) RelTraitSet(org.apache.calcite.plan.RelTraitSet)

Aggregations

RelTraitSet (org.apache.calcite.plan.RelTraitSet)1 RelNode (org.apache.calcite.rel.RelNode)1 RepeatUnion (org.apache.calcite.rel.core.RepeatUnion)1 LogicalRepeatUnion (org.apache.calcite.rel.logical.LogicalRepeatUnion)1