pub fn normalize_identifiers(
expression: Expression,
dialect: Option<DialectType>,
) -> ExpressionExpand description
Normalize identifiers in an expression based on dialect rules.
This transformation reflects how identifiers would be resolved by the engine corresponding to each SQL dialect. For example:
FoO→fooin PostgreSQL (lowercases unquoted)FoO→FOOin Snowflake (uppercases unquoted)"FoO"→FoOpreserved when quoted (case-sensitive)
§Arguments
expression- The expression to normalizedialect- The dialect to use for normalization rules
§Returns
The expression with normalized identifiers