Skip to content

Releases: sqlfluff/sqlfluff

[4.1.0] - 2026-03-26

26 Mar 22:37
ec5ed61

Choose a tag to compare

Highlights

This minor release expands SQLFluff in four meaningful ways: recursion protection, more complete Rust-backed execution, broader dialect support, and better performance on large templated projects.

  • Security improvements that protect against resource exhaustion through malicious queries by limiting recursion within the parser. Users can configure the new max_parse_depth config setting to enable deeper parsing in their project if necessary.
  • Rust support moves forward again, with Python now able to call Rust apply logic, full lazy evaluation in the Rust parser, and more parallel and streaming work in the lint/fix pipeline.
  • Oracle and T-SQL both received major grammar expansions, alongside important new support across ClickHouse, DuckDB, Databricks, Trino, Hive/SparkSQL, BigQuery, Snowflake, PostgreSQL, and others.
  • The dbt templater now includes support for the dbt return builtin, improved thread handling from profiles, and fixes for several Jinja edge cases.
  • Users also gain more indentation configuration flexibility, plus a wide set of rule and parser correctness fixes. Specifically, the ability to skip enforcement of implicit indents for specific dialect elements.

Also, welcome to the nineteen new contributors! Thanks for your contributions! 🏆

What’s Changed

Read more

[4.0.4] - 2026-02-08

09 Feb 00:03
ca2e228

Choose a tag to compare

Highlights

This is a re-release of 4.0.1 which had issues in initial deployment.

What’s Changed

[4.0.4a1] - 2026-02-08

08 Feb 23:27
a00a9b2

Choose a tag to compare

Pre-release

Highlights

Testing release to confirm functionality of rust publish script.

What’s Changed

[4.0.3] - 2026-02-08

08 Feb 21:26
ef70d8f

Choose a tag to compare

Highlights

This is a re-release of the planned 4.0.1 which failed to publish due to deploy pipeline issues.

Normally we would use a post-release but rust doesn't support that construct.

[4.0.2] - 2026-02-08

08 Feb 18:51
8e8f3f1

Choose a tag to compare

Highlights

This is a re-release of the planned 4.0.1 which failed to publish due to deploy pipeline issues.

Normally we would use a post-release but rust doesn't support that construct.

[4.0.1.post1] - 2026-02-08

08 Feb 18:24
8e8f3f1

Choose a tag to compare

Highlights

This is a post release of 4.0.1 to fix issues in the package publish pipeline.

What’s Changed

  • build: revert publish pipeline back to ubuntu-latest (#7460) @peterbud

[4.0.1] - 2026-02-08

08 Feb 15:39
8522dbe

Choose a tag to compare

Highlights

This is a bugfix and dialect enhancement release following the 4.0.0 major release.

  • Python 3.14 is now officially supported.
  • Rule fixes for ST02, ST06, CP02, RF03, and indentation handling.
  • New SARIF output format for better CI/CD integration.
  • Dialect improvements across T-SQL, Snowflake, PostgreSQL, BigQuery, DuckDB, ClickHouse, Oracle, Databricks, and SQLite.

This release also includes the first contributions from fourteen new contributors!
Welcome to the project and thank you for your contributions.

What’s Changed

New Contributors

[4.0.0] - 2026-01-15

15 Jan 20:58
30e0e57

Choose a tag to compare

Highlights

This major release brings support for internal rust optimisations. Rust support is still effectively in beta and is available on an opt in basis. To take advantage of these performance improvements, users can install sqlfluff[rs] to get the parser and lexer running in rust. The current implementation does yield noticeable gains on large files and projects - although for small individual files, the overhead of moving data into rust means that performance is a tiny bit slower. Functionality has proven fairly stable during pre release testing, and we anticipate that the rust implementations will become defaults from 5.0 onwards.

We advise testing the rust package in a development environment before going direct to production.

A massive shout out to @keraion, who's been leading the way on this effort.

Additionally in this release:

  • We drop support for dbt 1.4 and older, and include support for dbt 1.10.
  • We add the capability to force implicit indents.
  • Bufixes for CV12 and RF01.
  • Tons of docs and dialect improvements.

What’s Changed

New Contributors

[4.0.0a3] - 2026-01-14

14 Jan 12:04
601e959

Choose a tag to compare

Pre-release

Highlights

This is an alpha release of SQLFluff 4.0 to continue verification of the rust portions of the codebase. In particular to verify the inclusion of a rust parser. Rust support is still in beta, but from this release, users can install sqlfluff[rs] to get the parser and lexer running in rust. Current implementation does yield noticeable gains on large files and projects - although for small individual files, the overhead of moving data into rust means that performance is a tiny bit slower.

We do not recommend that users install this release except for testing and evaluation.

Big thanks to @keraion, who's been leading the way on this effort.

Additionally in this release:

  • Several docs improvements
  • Dialect improvements for Databricks, Snowflake, DuckDB, TSQL, BigQuery, Postgres & Oracle.

These will be added to the changelog properly in the full 4.0.0 release.

What’s Changed

New Contributors

[4.0.0a2] - 2025-11-12

12 Nov 00:33
ef33b2d

Choose a tag to compare

Pre-release

Highlights

This is an alpha release of SQLFluff 4.0 to continue verification of the rust portions of the codebase. In particular to verify version locking of pypi packages works, and testing users can verify that Rust is working easily. Rust support is still in beta, but from this release, users can install sqlfluff[rs] to get some of the parser running in rust. Current implementation is not expected to yield significant gains but we do expect that once mature that it will.

We do not recommend that users install this release except for testing and evaluation.

Big thanks to @keraion, who's been leading the way on this effort.

Additionally in this release:

  • Several rust bugfixes.
  • Dialect improvements for Snowflake, DuckDB, TSQL, Impala & Postgres.

These will be added to the changelog properly in the full 4.0.0 release.

What’s Changed

New Contributors