Search in sources :

Example 1 with LogicalRepeatUnion

use of org.apache.calcite.rel.logical.LogicalRepeatUnion in project Mycat2 by MyCATApache.

the class MycatRepeatUnionRule method convert.

@Override
public RelNode convert(RelNode rel) {
    LogicalRepeatUnion union = (LogicalRepeatUnion) rel;
    RelTraitSet traitSet = union.getTraitSet().replace(out);
    RelNode seedRel = union.getSeedRel();
    RelNode iterativeRel = union.getIterativeRel();
    return new MycatRepeatUnion(rel.getCluster(), traitSet, convert(seedRel, seedRel.getTraitSet().replace(out)), convert(iterativeRel, iterativeRel.getTraitSet().replace(out)), union.all, union.iterationLimit);
}
Also used : RelNode(org.apache.calcite.rel.RelNode) LogicalRepeatUnion(org.apache.calcite.rel.logical.LogicalRepeatUnion) MycatRepeatUnion(io.mycat.calcite.physical.MycatRepeatUnion) RelTraitSet(org.apache.calcite.plan.RelTraitSet)

Aggregations

MycatRepeatUnion (io.mycat.calcite.physical.MycatRepeatUnion)1 RelTraitSet (org.apache.calcite.plan.RelTraitSet)1 RelNode (org.apache.calcite.rel.RelNode)1 LogicalRepeatUnion (org.apache.calcite.rel.logical.LogicalRepeatUnion)1