lateral_alias_warning

Function lateral_alias_warning 

Source
pub fn lateral_alias_warning(
    dialect: Dialect,
    alias_name: &str,
    statement_index: usize,
) -> Issue
Expand description

Emits a warning for unsupported lateral column alias usage.

Lateral column aliases allow referencing an alias defined earlier in the same SELECT list. Not all dialects support this feature.

§Arguments

  • dialect - The SQL dialect being used
  • alias_name - The name of the alias being referenced
  • statement_index - The index of the statement in the analysis request

§Returns

An Issue warning that can be pushed to the analyzer’s issue list.