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

Method is_negated_project

src/expr/src/relation.rs:1476–1488  ·  view source on GitHub ↗

If the expression is a negated project, return the input and the projection.

(&self)

Source from the content-addressed store, hash-verified

1474
1475 /// If the expression is a negated project, return the input and the projection.
1476 pub fn is_negated_project(&self) -> Option<(&MirRelationExpr, &[usize])> {
1477 if let MirRelationExpr::Negate { input } = self {
1478 if let MirRelationExpr::Project { input, outputs } = &**input {
1479 return Some((&**input, outputs));
1480 }
1481 }
1482 if let MirRelationExpr::Project { input, outputs } = self {
1483 if let MirRelationExpr::Negate { input } = &**input {
1484 return Some((&**input, outputs));
1485 }
1486 }
1487 None
1488 }
1489
1490 /// Pretty-print this [MirRelationExpr] to a string.
1491 pub fn pretty(&self) -> String {

Callers 1

keys_with_input_keysMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected