Skip to main content

Module eval

Module eval 

Source
Expand description

Expression evaluation over rows, with SQL three-valued logic.

The evaluator works both with a single Table and with a resolved query schema assembled by the planner for joins. Aggregate expressions are evaluated over a group through eval_group.

Structs§

ColumnBinding
A column visible to a query, including the table names/aliases that qualify it. The position in a schema slice is its position in a joined row.

Functions§

contains_aggregate
eval
Evaluate an expression against a single table row.
eval_group
Evaluate an expression over a group of rows. Non-aggregate expressions use the first row; aggregate expressions combine every row.
eval_with_schema
Evaluate an expression against a row and a resolved, possibly joined, schema. Unqualified ambiguous columns are rejected.
schema_for_table
validate_with_schema
Validate names, function names, and function arity without evaluating an expression. Query execution calls this before scanning so an empty input cannot hide a malformed or unresolved expression.
where_matches
WHERE filter: a row matches only when the predicate is exactly TRUE.
where_matches_with_schema