SQL

SQL

Made by DeepSource

Trailing commas within SELECT clause SQL-L038

Style
Major

Many database backends regard this as a syntax error, and as such lint against trailing commas in the SELECT clause.

But for yet many database backends this is allowed. Hence, for some users this may be something they wish to enforce (in line with Python best practice). Then one should consider disabling it.

Bad practice

SELECT
    a,
    b,
FROM foo

Recommended

SELECT
    a,
    b
FROM foo