Skip to main content

Module json_expr

Module json_expr 

Source
Expand description

Expression evaluation against a JSON row.

Scan handlers materialize rows as serde_json::Value before applying ORDER BY and window functions. Both evaluate arbitrary expressions per row and both must surface an evaluation failure — a zero divisor in ORDER BY 100 / weight fails the statement with SQLSTATE 22012 rather than sorting the row under NULL.

Functions§

compare_json
Total order over JSON values for sorting.
eval_expr_on_json
Evaluate expr against a JSON row.