Highlights
Major changes include:
- Addition of "rule groups" (currently
coreandall) to allow ease of turning on and off groups of rules. - Addition of
db2dialect - PRS errors are now highlighted in red.
- Many bugs fixes and dialect improvements
What’s Changed
- Allow optional
ASinMERGEstatements usingSELECT#3276 @tunetheweb - Add groups each rule is in to Rules documentation #3272 @tunetheweb
- BigQuery: Enhanced
EXPORT DATAstatement #3267 @tunetheweb - BigQuery:
CREATE TABLEsupport forCOPYandLIKE#3266 @tunetheweb - Improve error on missing keywords #3268 @greg-finley
- MySQL: Add
FLUSHsupport #3269 @greg-finley - Postgres: Add
ALTER TYPEsupport #3265 @greg-finley - Bug fix: L036 handle single-column
SELECTwith comment on same line asSELECTkeyword #3259 @barrywhart - Put working example in the README #3261 @greg-finley
- Snowflake: Add
CREATE FILE FORMATSupport #3104 @jmc-bbk - Bug fix: Disable L059 in snowflake dialect #3260 @barrywhart
- Remove redundant
Anything()frommatch_grammars#3258 @tunetheweb - Postgres: Add
DOMAINsupport #3257 @tunetheweb - T-SQL: Allow optional brackets with
EXECUTE#3255 @pguyot - Add rule groups and a core rules group #3142 @pwildenhain
- MySQL: Better
UNSIGNEDsupport #3250 @tunetheweb - MySQL (and others): Support
DROP TEMPORARY TABLE#3251 @tunetheweb - Add Db2 dialect #3231 @ddresslerlegalplans
- BigQuery: Add
CREATE EXTERNAL TABLEstatement #3241 @dmohns - SQLite: Add support for expressions in
CREATE INDEXcolumns #3240 @tunetheweb - Fix exception in
check_still_completeand matching inStartsWith#3236 @tunetheweb - Snowflake: Add Support for
DROPStatements #3238 @chrisalexeev - Allow YAML generation script to accept arguments when run through
tox#3233 @tunetheweb - Bug fix: Cleanly catch and report errors during
load_macros_from_path#3239 @barrywhart - Indent procedure parameters #3234 @fdw
- Enhance
apply_fixes()to automatically fix violations ofcan_start_end_non_code#3232 @barrywhart - T-SQL: Fix
for xml pathidentifier #3230 @fdw - SparkSQL: Additional Delta Merge Test Cases #3228 @R7L208
- Fix bug where L018 warns inappropriately if CTE definition includes a column list #3227 @barrywhart
- BigQuery: Better
STRUCTsupport #3217 @tunetheweb - Fix bug where L003 and L036 fixes caused a parse error #3221 @barrywhart
- Make
IF EXISTSwork withUNIONselects #3218 @fdw - Fix bug where the
fix_even_unparsablesetting was not being respected in.sqlfluff#3220 @barrywhart - BigQuery: Better
DELETEtable support #3224 @tunetheweb - Snowflake:
ALTER MATERIALIZED VIEWstatement #3215 @jmc-bbk - BigQuery: recognise
DATE,DATETIMEandTIMEas a date parts forEXTRACT#3209 @tunetheweb - Postgres: enhanced
UPDATEstatement support #3203 @tunetheweb - Prevent Date Constructors from being changed to double quotes by L064 #3212 @tunetheweb
- Postgres: Fix
DROP EXTENSIONsyntax #3213 @tunetheweb - Snowflake: Handle
FLATTEN()table function aliases correctly in L025, L027, L028 #3194 @barrywhart - Snowflake: Function
LANGUAGE SQL#3202 @WittierDinosaur - Postgres: Enhanced
CREATE MATERIALIZED VIEW#3204 @tunetheweb - T-SQL: Support basic
FOR XMLstatements #3193 @fdw - T-SQL: Fix cursor syntax #3192 @fdw
- Snowflake:
REMOVEstatement enhancement #3191 @jmc-bbk - Snowflake: Moved
VIEWto unreserved keywords #3190 @WittierDinosaur - BigQuery: Support
EXPORT DATA#3177 @tunetheweb - T-SQL: Fix exception when using variable names in
FROMclause #3175 @tunetheweb - Fix bug where
encodingsetting in .sqlfluff file was not being respected #3170 @barrywhart - Highlight
PRSerrors in red #3168 @OTooleMichael - Remove unnecessary
StartsWithand maketerminatormandatory when using it #3165 @tunetheweb - Postgres: Support Composite Types #3167 @tunetheweb
- T-SQL: Support opening, closing, deallocating and fetching cursors #3166 @fdw
- T-SQL: Add declaration of cursors #3164 @fdw
- Missed #3151 from CHANGELOG #3163 @tunetheweb
- Bug fix: L028 sometimes makes incorrect fix when there are subqueries #3156 @barrywhart
- T-SQL: Support
OUTPUT INTO#3162 @fdw - T-SQL: Add
CREATE TYPEstatement #3154 @fdw - Hive: Support
TABLESAMPLE#3159 @barunpuri - Hive: Support back quoted identifier and literal #3158 @barunpuri
- T-SQL: Add table hints to
INSERTandDELETE#3155 @fdw
New Contributors
- @ddresslerlegalplans made their first contribution in #3231
- @greg-finley made their first contribution in #3261