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

Method filter

src/sql/src/plan/hir.rs:1826–1844  ·  view source on GitHub ↗
(mut self, mut preds: Vec<HirScalarExpr>)

Source from the content-addressed store, hash-verified

1824 }
1825
1826 pub fn filter(mut self, mut preds: Vec<HirScalarExpr>) -> Self {
1827 if let HirRelationExpr::Filter {
1828 input: _,
1829 predicates,
1830 } = &mut self
1831 {
1832 predicates.extend(preds);
1833 predicates.sort();
1834 predicates.dedup();
1835 self
1836 } else {
1837 preds.sort();
1838 preds.dedup();
1839 HirRelationExpr::Filter {
1840 input: Box::new(self),
1841 predicates: preds,
1842 }
1843 }
1844 }
1845
1846 pub fn reduce(
1847 self,

Callers 15

select_implFunction · 0.45
find_matchFunction · 0.45
validateMethod · 0.45
walk_scalarFunction · 0.45
fuse_window_functionsFunction · 0.45
applied_toMethod · 0.45
branchFunction · 0.45
attempt_outer_equijoinFunction · 0.45
newMethod · 0.45
resolve_internalMethod · 0.45

Calls 2

sortMethod · 0.80
extendMethod · 0.45

Tested by

no test coverage detected