MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / except

Method except

src/sql/src/plan/hir.rs:57–66  ·  view source on GitHub ↗
(all: &bool, lhs: Self::Relation, rhs: Self::Relation)

Source from the content-addressed store, hash-verified

55
56impl AlgExcept for Hir {
57 fn except(all: &bool, lhs: Self::Relation, rhs: Self::Relation) -> Self::Relation {
58 if *all {
59 let rhs = rhs.negate();
60 HirRelationExpr::union(lhs, rhs).threshold()
61 } else {
62 let lhs = lhs.distinct();
63 let rhs = rhs.distinct().negate();
64 HirRelationExpr::union(lhs, rhs).threshold()
65 }
66 }
67
68 fn un_except<'a>(expr: &'a Self::Relation) -> Option<Except<'a, Self>> {
69 let mut result = None;

Callers

nothing calls this directly

Calls 3

negateMethod · 0.45
thresholdMethod · 0.45
distinctMethod · 0.45

Tested by

no test coverage detected