SQLFluff 1.1.0
Highlights
Major changes include:
- L066 - New rule to allow you to set min/max length requirements for aliases to ensure they are meaningful
- L062 - addition of
blocked_regexas well asblocked_words - L025 - fix several corner cases where aliases were removed inappropriately
- L059 is now disabled by default for Postgres
- Many more dialect improvements and bug fixes.
What’s Changed
- L025: Derived query requires alias -- also handle UNION, etc. #3548 @barrywhart
- L025 should not remove aliases from derived queries #3546 @barrywhart
- T-SQL keyword functions should be treated as keywords #3540 @tunetheweb
- Fix issue where "--nocolor" is ignored [#3536)(https://github.com//pull/3536) @barrywhart
- Clickhouse: allow
FINALmodifier #3534 @ThomAub - L018 change to just check for newlines rather than alignment #3499 @zidder
- SparkSQL: Update terminator grammar for
HAVING,WHERE,GROUP BY#3526 @R7L208 - Fix L025 false positive for T-SQL
VALUESclause #3533 @barrywhart - New rule L066 for enforcing table alias lengths #3384 @f0rk
- Redshift:
CALLstatement #3529 @greg-finley - Core: Compile regexes at init time to avoid overhead #3511 @judahrand
- Disable L059 by default for Postgres #3528 @tunetheweb
- Core: Add
MultiStringParserto match a collection of strings #3510 @judahrand - SQLite:
PRIMARY KEY AUTOINCREMENT#3527 @greg-finley - MySQL: Support
LOAD DATA#3518 @greg-finley - Redshift:
GRANT EXECUTE ON PROCEDURES#3516 @greg-finley - Allow
DEFAULTexpression in RedshiftALTER TABLE ADD COLUMNstatements #3513 @menzenski - BigQuery: Fix parsing of Array creation from full subquery #3502 @judahrand
- SparkSQL: Allow dateparts as table aliases #3500 @R7L208
- Fix
load_macros_from_pathto actually support multiple paths #3488 @emancu - Allow linter to apply fixes spanning more than 2 slices #3492 @barrywhart
- Fix L022 false positive when the CTE definition has a column list #3490 @barrywhart
- SparkSQL: Support for Delta
RESTOREstatement #3486 @R7L208 - Add values function to
SETclause #3483 @hgranthorner - SparkSQL: Support for
CONVERT TO DELTAcommand #3482 @R7L208 - BigQuery: Remaining procedural statements #3473 @tunetheweb
- Postgres: support grouping sets #3477 @tunetheweb
- SparkSQL: Support for Delta syntax to create manifest files through the
GENERATEcommand #3478 @R7L208 - Add config for optionally indenting contents of
ONblocks #3471 @PeterBalsdon - L026: check standalone aliases as well as table aliases #3470 @tunetheweb
- L045: Add handling for nested queries and CTEs #3468 @barrywhart
- L062: add
blocked_regexsupport #3467 @tunetheweb - SparkSQL: Support for the Delta
DESCRIBE DETAILcommand #3465 @R7L208
New Contributors
- @PeterBalsdon made their first contribution in #3471
- @hgranthorner made their first contribution in #3483
- @emancu made their first contribution in #3488
- @judahrand made their first contribution in #3502
- @f0rk made their first contribution in #3384
- @zidder made their first contribution in #3499
- @ThomAub made their first contribution in #3534