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