pub fn fold_constant(
expr: &SqlExpr,
registry: &FunctionRegistry,
) -> Option<SqlValue>Expand description
Fold a SqlExpr to a literal SqlValue at plan time, or return
None if the expression depends on row/runtime state (column refs,
subqueries, unknown functions, etc.).