Skip to content

AL08 — Duplicate column alias in a SELECT list

Group: Aliasing · Auto-fixable: no

Two select items resolve to the same output name, so any consumer addressing the column by name gets an ambiguous or surprising result. Give each a distinct alias.

bad: SELECT a AS x, b AS x FROM t
good: SELECT a AS x, b AS y FROM t

Disable this rule in banshee.toml:

[lint]
exclude = ["AL08"]

Or silence one line with -- noqa: AL08. See Linting.