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

Method sql_in_list_to_expr

datafusion/sql/src/expr/mod.rs:867–885  ·  view source on GitHub ↗
(
        &self,
        expr: SQLExpr,
        list: Vec<SQLExpr>,
        negated: bool,
        schema: &DFSchema,
        planner_context: &mut PlannerContext,
    )

Source from the content-addressed store, hash-verified

865 }
866
867 fn sql_in_list_to_expr(
868 &self,
869 expr: SQLExpr,
870 list: Vec<SQLExpr>,
871 negated: bool,
872 schema: &DFSchema,
873 planner_context: &mut PlannerContext,
874 ) -> Result<Expr> {
875 let list_expr = list
876 .into_iter()
877 .map(|e| self.sql_expr_to_logical_expr(e, schema, planner_context))
878 .collect::<Result<Vec<_>>>()?;
879
880 Ok(Expr::InList(InList::new(
881 Box::new(self.sql_expr_to_logical_expr(expr, schema, planner_context)?),
882 list_expr,
883 negated,
884 )))
885 }
886
887 #[expect(clippy::too_many_arguments)]
888 fn sql_like_to_expr(

Callers 1

Calls 5

InListClass · 0.85
newFunction · 0.85
mapMethod · 0.45
into_iterMethod · 0.45

Tested by

no test coverage detected