Skip to main content

Module st_006

Module st_006 

Source
Expand description

LINT_ST_006: Structure column order.

SQLFluff ST06 parity: prefer wildcards first, then simple column references and casts, before complex expressions (aggregates, window functions, etc.) in SELECT projection lists.

The rule only applies to order-insensitive SELECTs: it skips INSERT, MERGE, CREATE TABLE AS, and SELECTs participating in UNION/set operations (where column position is semantically significant).

Structsยง

StructureColumnOrder