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

Method as_const_err

src/expr/src/relation.rs:1121–1127  ·  view source on GitHub ↗

If self is a constant error, return the error, otherwise `None`. Looks behind `ArrangeBy`s.

(&self)

Source from the content-addressed store, hash-verified

1119 /// If self is a constant error, return the error, otherwise `None`.
1120 /// Looks behind `ArrangeBy`s.
1121 pub fn as_const_err(&self) -> Option<&EvalError> {
1122 match self {
1123 MirRelationExpr::Constant { rows: Err(e), .. } => Some(e),
1124 MirRelationExpr::ArrangeBy { input, .. } => input.as_const_err(),
1125 _ => None,
1126 }
1127 }
1128
1129 /// Checks if `self` is the single element collection with no columns.
1130 pub fn is_constant_singleton(&self) -> bool {

Callers 1

actionMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected