Highlights
This is mostly a bugfix release addressing some of the issues from the recent 2.0 release. Notable fixes are:
- Spacing for (as applied by
LT01
) for datatypes, hyphenated identifiers and casting operators. - Several bugs in the indentation routines (
LT02
), in particular with implicit indents. - Fixing a conflict between
LT09
andLT02
, by only limitingLT09
to bringing targets onto a single line if there is only one select target and that it contains no newlines. - Supporting arrays, and the new rules configuration more effectively in
pyproject.toml
. - Configuring dialects on a file by file basis using inline comments now works.
This release also brings one small new feature in allowing additional flags to be passed to SQLFluff when called as a pre-commit
hook.
Thanks especially to @JavierMonton and @LauraRichter who made their first contributions to the project as part of this release! ππ
Whatβs Changed
- Repair Coveralls (#4553) @alanmcruickshank
- Add support for arrays in TOML configuration (#4387) @AidanHarveyNelson
- Rethink test segregation in CI (#4547) @alanmcruickshank
- Fix #4515 and add more test cases (#4525) @alanmcruickshank
- Add additional flags to
sqlfluff
invocations in pre-commit hooks (#4546) @borchero - Resolve #4484 (issues with indented_joins indents) (#4544) @alanmcruickshank
- Per file dialect selection fix (#4518) @LauraRichter
- MySQL: Add CREATE INDEX (#4538) @yoichi
- Resolve implicit indent issues when catching negative indents (#4543) @alanmcruickshank
- Github Action Deprecations (#4545) @alanmcruickshank
- LT09 and multiline select targets (#4529) @alanmcruickshank
- Remove Codecov from CI (#4535) @alanmcruickshank
- Bigquery hyphenated identifiers (#4530) @alanmcruickshank
- Attempt in-house coverage (#4532) @alanmcruickshank
- Postgres datatype spacing issues (#4528) @alanmcruickshank
- Support new rules config in toml files. (#4526) @alanmcruickshank
- Resolve #1146 (log propagation) (#4513) @alanmcruickshank
- Snowflake: Optional quotes for
create user
statement (#4514) @JavierMonton