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

Function plan_op

src/sql/src/plan/query.rs:5415–5427  ·  view source on GitHub ↗
(
    ecx: &ExprContext,
    op: &str,
    expr1: &Expr<Aug>,
    expr2: Option<&Expr<Aug>>,
)

Source from the content-addressed store, hash-verified

5413}
5414
5415fn plan_op(
5416 ecx: &ExprContext,
5417 op: &str,
5418 expr1: &Expr<Aug>,
5419 expr2: Option<&Expr<Aug>>,
5420) -> Result<HirScalarExpr, PlanError> {
5421 let impls = func::resolve_op(op)?;
5422 let args = match expr2 {
5423 None => plan_exprs(ecx, &[expr1])?,
5424 Some(expr2) => plan_exprs(ecx, &[expr1, expr2])?,
5425 };
5426 func::select_impl(ecx, FuncSpec::Op(op), impls, args, vec![])
5427}
5428
5429fn plan_function<'a>(
5430 ecx: &ExprContext,

Callers 1

plan_expr_innerFunction · 0.85

Calls 4

resolve_opFunction · 0.85
plan_exprsFunction · 0.85
select_implFunction · 0.85
OpClass · 0.50

Tested by

no test coverage detected