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());
}
Aggregations