Highlights
This is an alpha release of SQLFluff 4.0 to begin verification of the rust portions of the codebase. In particular to verify that publishing to pypi works as expected, and that users can install the package. 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:
- We drop support for dbt 1.4 and older, and include support for dbt1.10.
- We add the capability to force implicit indents.
- Bugfixes for CV12 and RF01.
- Dialect improvements for DuckDB, Clickhouse, TSQL & SparkSQL.
These will be added to the changelog properly in the full 4.0.0 release.
What’s Changed
- Lock versions of sqlfluffrs to versions of the main package. (#7218) @alanmcruickshank
- Improve phrasing of ST11 (#7221) @annebelleo
- Another pass on logos (#7219) @alanmcruickshank
- Use distinct upload token for rust package deploy (#7216) @alanmcruickshank
- Remove checks on Rust release action step (#7215) @alanmcruickshank
- DuckDB: Add support for COPY TO statement options (#7209) @tvogels01
- TSQL: Add rule to wrap with BEGIN/END for multi-statement procedures (#7202) @peterbud
- BigQuery: recognize STRUCT and ARRAY data types for CP01/CP05 (#7203) @annebelleo
- Docs logos (#7213) @alanmcruickshank
- Clickhouse: Adds support for parametric aggregate functions (#7205) @franloza
- TSQL: update OutputClauseSegment to match specification (#7207) @peterbud
- Write an implementation of the lexer in Rust (#7132) @keraion
- Disregard CV12 when UNNEST is detected in from_expression_element (#7211) @annebelleo
- TSQL: Update T-SQL keyword identifier usage (#7191) @peterbud
- Add the option to require implicit indents (#7197) @WittierDinosaur
- Update dbt CI matrix (#7196) @WittierDinosaur
- SparkSQL: allow accessing nested array fields for RF01 (#7198) @Ruward
New Contributors
- @Ruward made their first contribution in #7198
- @tvogels01 made their first contribution in #7209