Search in sources :

Example 1 with LogicalIntersect

use of org.apache.calcite.rel.logical.LogicalIntersect in project calcite by apache.

the class EnumerableIntersectRule method convert.

public RelNode convert(RelNode rel) {
    final LogicalIntersect intersect = (LogicalIntersect) rel;
    if (intersect.all) {
        // INTERSECT ALL not implemented
        return null;
    }
    final EnumerableConvention out = EnumerableConvention.INSTANCE;
    final RelTraitSet traitSet = intersect.getTraitSet().replace(out);
    return new EnumerableIntersect(rel.getCluster(), traitSet, convertList(intersect.getInputs(), out), false);
}
Also used : LogicalIntersect(org.apache.calcite.rel.logical.LogicalIntersect) RelTraitSet(org.apache.calcite.plan.RelTraitSet)

Aggregations

RelTraitSet (org.apache.calcite.plan.RelTraitSet)1 LogicalIntersect (org.apache.calcite.rel.logical.LogicalIntersect)1