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

Method is_empty

src/expr/src/relation.rs:1467–1473  ·  view source on GitHub ↗

Indicates if this is a constant empty collection. A false value does not mean the collection is known to be non-empty, only that we cannot currently determine that it is statically empty.

(&self)

Source from the content-addressed store, hash-verified

1465 /// A false value does not mean the collection is known to be non-empty,
1466 /// only that we cannot currently determine that it is statically empty.
1467 pub fn is_empty(&self) -> bool {
1468 if let Some((Ok(rows), ..)) = self.as_const() {
1469 rows.is_empty()
1470 } else {
1471 false
1472 }
1473 }
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])> {

Callers 15

parse_let_or_letrec_oldFunction · 0.45
parse_let_or_letrecFunction · 0.45
parse_exprFunction · 0.45
parse_join_equivalencesFunction · 0.45
parseMethod · 0.45
keys_with_input_keysMethod · 0.45
mapMethod · 0.45
filterMethod · 0.45
is_trivialMethod · 0.45
is_streamableMethod · 0.45
is_identityMethod · 0.45
literal_constraintsMethod · 0.45

Calls 1

as_constMethod · 0.45