MCPcopy Create free account
hub / github.com/apache/datafusion / filter

Method filter

datafusion/expr/src/logical_plan/builder.rs:624–629  ·  view source on GitHub ↗

Apply a filter

(self, expr: impl Into<Expr>)

Source from the content-addressed store, hash-verified

622
623 /// Apply a filter
624 pub fn filter(self, expr: impl Into<Expr>) -> Result<Self> {
625 let expr = normalize_col(expr.into(), &self.plan)?;
626 Filter::try_new(expr, self.plan)
627 .map(LogicalPlan::Filter)
628 .map(Self::new)
629 }
630
631 /// Apply a filter which is used for a having clause
632 pub fn having(self, expr: impl Into<Expr>) -> Result<Self> {

Callers 15

exclude_using_columnsFunction · 0.45
partial_cmpMethod · 0.45
reorder_named_argumentsFunction · 0.45
partial_cmpMethod · 0.45
partial_cmpMethod · 0.45
partial_cmpMethod · 0.45
partial_cmpMethod · 0.45
is_scalarMethod · 0.45
try_newMethod · 0.45
display_planFunction · 0.45

Calls 3

normalize_colFunction · 0.85
intoMethod · 0.45
mapMethod · 0.45

Tested by 10

test_planFunction · 0.36
plan_builder_simpleFunction · 0.36
exists_subqueryFunction · 0.36
filter_in_subqueryFunction · 0.36
select_scalar_subqueryFunction · 0.36