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

Method function_args_to_expr_with_names

datafusion/sql/src/expr/function.rs:1115–1132  ·  view source on GitHub ↗
(
        &self,
        args: Vec<FunctionArg>,
        schema: &DFSchema,
        planner_context: &mut PlannerContext,
    )

Source from the content-addressed store, hash-verified

1113 }
1114
1115 pub(super) fn function_args_to_expr_with_names(
1116 &self,
1117 args: Vec<FunctionArg>,
1118 schema: &DFSchema,
1119 planner_context: &mut PlannerContext,
1120 ) -> Result<(Vec<Expr>, Vec<Option<ArgumentName>>)> {
1121 let results: Result<Vec<(Expr, Option<ArgumentName>)>> = args
1122 .into_iter()
1123 .map(|a| {
1124 self.sql_fn_arg_to_logical_expr_with_name(a, schema, planner_context)
1125 })
1126 .collect();
1127
1128 let pairs = results?;
1129 let (exprs, names): (Vec<Expr>, Vec<Option<ArgumentName>>) =
1130 pairs.into_iter().unzip();
1131 Ok((exprs, names))
1132 }
1133
1134 #[expect(dead_code)]
1135 fn extract_and_prepend_within_group_args(

Callers 1

sql_function_to_exprMethod · 0.80

Calls 4

collectMethod · 0.80
mapMethod · 0.45
into_iterMethod · 0.45

Tested by

no test coverage detected