github sqlfluff/sqlfluff 4.2.0
[4.2.0] - 2026-05-13

latest releases: 4.2.2, 4.2.1
2 months ago

Highlights

This minor release contains four particular changes of note:

  • The default render_variant_limit is now 5 instead of 1, so SQLFluff may report new linting violations from templated branches that were previously not inspected in Jinja and dbt projects. Documentation for the feature is now also available in Template Variant Rendering.
  • This release drops support for Python 3.9, which reached end of life at the end of October 2025.
  • Security improvements that protect against resource exhaustion through malicious queries by limiting total parsed nodes. Users can configure the new max_parse_nodes config setting to enable parsing of larger files in their project if necessary.
  • A new AL10 rule requires aliases on FROM subqueries, because omitting them causes parse errors in most major dialects.

Beyond that, there are parser improvements for T-SQL, PostgreSQL, Snowflake, BigQuery, DuckDB, ClickHouse, Oracle, Hive/SparkSQL, Databricks, DB2, Athena, Trino, MariaDB/MySQL, StarRocks, Teradata, and Greenplum. There are also rule fixes for ST06, ST11, LT02, and LT09, better handling for placeholder and dbt/Jinja rendering edge cases, and a new option to fail when files are skipped for size.

This release also includes first-time contributions from twenty new contributors. Thank you all for your contributions. πŸ†

What’s Changed

New Contributors

Don't miss a new sqlfluff release

NewReleases is sending notifications on new releases.