Skip to main content

bind_statement_outlined

Function bind_statement_outlined 

Source
pub fn bind_statement_outlined(
    ast: &Ast,
    catalog: &Catalog,
    parameters: &Parameters,
    session: &Session,
) -> Result<Bound>
Expand description

Binds one statement the way bind_statement_with does, except that a query reads a Parquet file that could go through a native mirror from its columns and row count alone.

For the first bind of a query that will be bound again once its mirrors are in. A query that comes back with rudb_plan::Plan::wanted_mirrors empty was bound in full and can run. One that comes back with any must be bound again with bind_statement_with before it runs, because the reads that asked for a mirror were bound without the bounds and the distinct counts the optimizer would have used.

ยงErrors

Everything bind_statement_with reports.