Search in sources :

Example 1 with LogicalMinus

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

the class EnumerableMinusRule method convert.

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

Aggregations

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