github sqlfluff/sqlfluff 2.2.0
[2.2.0] - 2023-08-04

latest releases: 4.2.2, 4.2.1, 4.2.0...
2 years ago

Highlights

This release changes some of the interfaces between SQLFluff core and our plugin ecosystem. The only breaking change is in the interface between SQLFluff and templater plugins (which are not common in the ecosystem, hence why this is only a minor and not a major release).

For all plugins, we also recommend a different structure for their imports (especially for rule plugins which are more common in the ecosystem) - for performance and stability reasons. Some users had been experiencing very long import times with previous releases as a result of the layout of plugin imports. Users with affected plugins will begin to see a warning from this release onward, which can be resolved for their plugin by updating to a new version of that plugin which follows the guidelines.

For more details (especially if you're a plugin maintainer) see our release notes.

Additionally this release includes:

  • Some internal performance gains which may cumulatively save roughly 10% of the time spent in the parsing phase of larger files.
  • Improvements to the Simple API, including the ability to pass in a FluffConfig object directly, and better support for parsing config files directly from strings (see the included example).
  • A bugfix for AM06.
  • A new --warn-unused-ignores CLI option (and corresponding config setting) to allow warnings to be shown if any noqa comments in SQL files are unused.
  • Improvements to Redshift, Oracle, Clickhouse, Materialize & MySQL dialects.
  • A selection of internal improvements, documentation and type hints.

Thanks also to @kaiyannameighu, @josef-v, @aglebov & @joaostorrer who made their first contributions as part of this release! πŸŽ‰πŸŽ‰πŸŽ‰

What’s Changed

New Contributors

Don't miss a new sqlfluff release

NewReleases is sending notifications on new releases.