Skip to content

AL02 — Column alias should be introduced with AS

Group: Aliasing · Auto-fixable: yes

An implicit column alias (a b) reads like a typo or a missing comma. Spelling it a AS b is unambiguous. Inserted automatically.

bad: SELECT total t FROM s
good: SELECT total AS t FROM s

Disable this rule in banshee.toml:

[lint]
exclude = ["AL02"]

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