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

Method ignore_nullability

src/transform/src/typecheck.rs:243–250  ·  view source on GitHub ↗

Returns the same type difference, but ignoring nullability Returns `None` when _all_ of the differences are due to nullability

(self)

Source from the content-addressed store, hash-verified

241 ///
242 /// Returns `None` when _all_ of the differences are due to nullability
243 pub fn ignore_nullability(self) -> Option<Self> {
244 use ReprRelationTypeDifference::*;
245
246 match self {
247 Length { .. } => Some(self),
248 Column { col, diff } => diff.ignore_nullability().map(|diff| Column { col, diff }),
249 }
250 }
251}
252
253impl ReprColumnTypeDifference {

Callers 2

typecheckMethod · 0.80

Calls 4

mapMethod · 0.45
flat_mapMethod · 0.45
into_iterMethod · 0.45
is_emptyMethod · 0.45

Tested by

no test coverage detected