Skip to main content

parse_and_normalize

Function parse_and_normalize 

Source
pub fn parse_and_normalize(
    sql: &str,
    catalog: &Catalog,
) -> Result<Statement, SqlError>
Expand description

Parses sql and returns a normalized statement (alias removal, catalog-driven type binding) suitable for stable canonical-form comparisons.

ยงErrors

Surfaces parse, validation, and normalization errors.