LW049 Alias ignored by a clause

Severity: WarningFree

An output alias read in GROUP BY, WHERE, HAVING, QUALIFY or a JOIN where a column of the same name wins — Snowflake reads the column, not the alias, and says nothing.

How it scores

Debugging time saved
Impact
Time to detection
Complexity

Our estimates, from 1 to 5, not measurements. Compare it with the other 53 codes →

Part of

Also in “SQL errors before dbt™ run”

Install free →All 54 diagnostic codes