Skip to main content

build

Function build 

Source
pub fn build<'a>(
    plan: &'a Plan,
    catalog: &'a Catalog,
) -> Result<Box<dyn Operator + 'a>>
Expand description

Builds the operator tree for a plan’s root, for a query nothing will stop.

Every seam is left at its default, which is what a caller with no session behind it wants and is what the tests in this crate are written against.

§Errors

If the plan names a table or a column the catalog does not have, if an expression is malformed in a way Plan::validate would have caught, or anything an operator’s construction reports.