Evaluate a constant SqlExpr to a SqlValue. Delegates to the shared `const_fold::fold_constant` helper so that zero-arg scalar functions like `now()` and `current_timestamp` go through the same evaluator as the runtime expression path.
(expr: &SqlExpr, functions: &FunctionRegistry)
| 89 | /// like `now()` and `current_timestamp` go through the same evaluator |
| 90 | /// as the runtime expression path. |
| 91 | pub(super) fn eval_constant_expr(expr: &SqlExpr, functions: &FunctionRegistry) -> SqlValue { |
| 92 | crate::planner::const_fold::fold_constant(expr, functions).unwrap_or(SqlValue::Null) |
| 93 | } |
| 94 | |
| 95 | /// Extract a geometry argument: handles ST_Point(lon, lat), ST_GeomFromGeoJSON('...'), |
| 96 | /// or a raw string literal containing GeoJSON. |
no test coverage detected