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

Method reduce

src/expr/src/scalar.rs:689–691  ·  view source on GitHub ↗

Reduces a complex expression where possible. This function uses nullability information present in `column_types`, and the result may only continue to be a correct transformation as long as this information continues to hold (nullability may not hold as expressions migrate around). (If you'd like to not use nullability information here, then you can tweak the nullabilities in `column_types` befo

(&mut self, column_types: &[ReprColumnType])

Source from the content-addressed store, hash-verified

687 /// ```
688 /// Reduce the expression to a simpler form.
689 pub fn reduce(&mut self, column_types: &[ReprColumnType]) {
690 reduce::reduce(self, column_types);
691 }
692
693 /// Decompose an IsNull expression into a disjunction of
694 /// simpler expressions.

Callers 15

printQuerySummaryFunction · 0.45
tab-stress.spec.tsFile · 0.45
generateSitemapJSONFunction · 0.45
history.tsFile · 0.45
mergeMzDiffsFunction · 0.45
countVisiblePlanInsightsFunction · 0.45
calculateClusterStatusFunction · 0.45
UserFilterFunction · 0.45

Calls 1

reduceFunction · 0.50

Tested by 3

test_reduceFunction · 0.36
reduceFunction · 0.36
test_interpretFunction · 0.36