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

Function plan_exprs

src/sql/src/plan/query.rs:4933–4942  ·  view source on GitHub ↗

Plans a slice of expressions. This function is a simple convenience function for mapping [`plan_expr`] over a slice of expressions. The planned expressions are returned in the same order as the input. If any of the expressions fail to plan, returns an error instead.

(ecx: &ExprContext, exprs: &[E])

Source from the content-addressed store, hash-verified

4931/// same order as the input. If any of the expressions fail to plan, returns an
4932/// error instead.
4933fn plan_exprs<E>(ecx: &ExprContext, exprs: &[E]) -> Result<Vec<CoercibleScalarExpr>, PlanError>
4934where
4935 E: std::borrow::Borrow<Expr<Aug>>,
4936{
4937 let mut out = vec![];
4938 for expr in exprs {
4939 out.push(plan_expr(ecx, expr.borrow())?);
4940 }
4941 Ok(out)
4942}
4943
4944/// Plans an `ARRAY` expression.
4945fn plan_array(

Callers 9

plan_valuesFunction · 0.85
plan_aggregate_commonFunction · 0.85
plan_opFunction · 0.85
plan_functionFunction · 0.85
resolve_funcFunction · 0.85
plan_caseFunction · 0.85

Calls 3

plan_exprFunction · 0.85
pushMethod · 0.45
borrowMethod · 0.45

Tested by

no test coverage detected