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

Function plan_and

src/sql/src/plan/query.rs:4227–4238  ·  view source on GitHub ↗
(
    ecx: &ExprContext,
    left: &Expr<Aug>,
    right: &Expr<Aug>,
)

Source from the content-addressed store, hash-verified

4225}
4226
4227fn plan_and(
4228 ecx: &ExprContext,
4229 left: &Expr<Aug>,
4230 right: &Expr<Aug>,
4231) -> Result<CoercibleScalarExpr, PlanError> {
4232 let ecx = ecx.with_name("AND argument");
4233 Ok(HirScalarExpr::variadic_and(vec![
4234 plan_expr(&ecx, left)?.type_as(&ecx, &SqlScalarType::Bool)?,
4235 plan_expr(&ecx, right)?.type_as(&ecx, &SqlScalarType::Bool)?,
4236 ])
4237 .into())
4238}
4239
4240fn plan_or(
4241 ecx: &ExprContext,

Callers 1

plan_expr_innerFunction · 0.85

Calls 1

with_nameMethod · 0.45

Tested by

no test coverage detected