Skip to main content

eval_expr_on_json

Function eval_expr_on_json 

Source
pub fn eval_expr_on_json(
    expr: &SqlExpr,
    doc: &Value,
) -> Result<Value, EvalError>
Expand description

Evaluate expr against a JSON row.

Column and literal references short-circuit; anything else goes through the shared row evaluator, so arithmetic, function calls, and CASE all behave exactly as they do in a projection or WHERE clause.