Prep version 4.0.0a2 (#7268)

Co-authored-by: alanmcruickshank <4670904+alanmcruickshank@users.noreply.github.com>
Co-authored-by: Alan <alan@a14k.co.uk>
This commit is contained in:
github-actions[bot]
2025-11-12 00:31:08 +00:00
committed by GitHub
parent f81b4c1801
commit ef33b2d7a1
5 changed files with 54 additions and 6 deletions

View File

@@ -10,6 +10,54 @@ Note: Changes are now automatically tracked in [GitHub](https://github.com/sqlfl
-->
<!--Start Of Releases (DO NOT DELETE THIS LINE)-->
## [4.0.0a2] - 2025-11-11
## 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](https://github.com/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.
## Whats Changed
* refactor: Move Rust parts into their own crates [#7229](https://github.com/sqlfluff/sqlfluff/pull/7229) [@keraion](https://github.com/keraion)
* fix(duckdb): add support for trailing commas in select * rename/exclude/replace commands [#7254](https://github.com/sqlfluff/sqlfluff/pull/7254) [@stevenlw-porpoise](https://github.com/stevenlw-porpoise)
* Resolve rust templating assertions [#7252](https://github.com/sqlfluff/sqlfluff/pull/7252) [@alanmcruickshank](https://github.com/alanmcruickshank)
* TSQL: Remove redundant optional DelimiterGrammar from individual statements [#7231](https://github.com/sqlfluff/sqlfluff/pull/7231) [@peterbud](https://github.com/peterbud)
* Impala: Add INVALIDATE METADATA and REFRESH statements [#7251](https://github.com/sqlfluff/sqlfluff/pull/7251) [@mrebaker](https://github.com/mrebaker)
* T-SQL: Enhance Alter Database with Set Recovery Options [#7241](https://github.com/sqlfluff/sqlfluff/pull/7241) [@CactusCollider](https://github.com/CactusCollider)
* TSQL: Add support for variable assignments in SELECT statements [#7222](https://github.com/sqlfluff/sqlfluff/pull/7222) [@peterbud](https://github.com/peterbud)
* Added alignment_coordinate_space to ALLOWABLE_LAYOUT_CONFIG_KEYS [#7237](https://github.com/sqlfluff/sqlfluff/pull/7237) [@tojnk](https://github.com/tojnk)
* Support aliasing in Snowflake PIVOT clause [#7245](https://github.com/sqlfluff/sqlfluff/pull/7245) [@robert-norberg](https://github.com/robert-norberg)
* Fix util script to update Cargo.lock [#7249](https://github.com/sqlfluff/sqlfluff/pull/7249) [@keraion](https://github.com/keraion)
* Postgres: Implement UTF-8 identifier support [#7242](https://github.com/sqlfluff/sqlfluff/pull/7242) [@adnandaut](https://github.com/adnandaut)
* TSQL: CreateServerRoleSegment [#7201](https://github.com/sqlfluff/sqlfluff/pull/7201) [@piers-williams](https://github.com/piers-williams)
* TSQL: Rework DatatypeSegment [#7200](https://github.com/sqlfluff/sqlfluff/pull/7200) [@peterbud](https://github.com/peterbud)
* Update Datacoves image source in README [#7227](https://github.com/sqlfluff/sqlfluff/pull/7227) [@keraion](https://github.com/keraion)
* Slightly more obvious logging when rust extensions are used [#7226](https://github.com/sqlfluff/sqlfluff/pull/7226) [@alanmcruickshank](https://github.com/alanmcruickshank)
## New Contributors
* [@piers-williams](https://github.com/piers-williams) made their first contribution in [#7201](https://github.com/sqlfluff/sqlfluff/pull/7201)
* [@adnandaut](https://github.com/adnandaut) made their first contribution in [#7242](https://github.com/sqlfluff/sqlfluff/pull/7242)
* [@robert-norberg](https://github.com/robert-norberg) made their first contribution in [#7245](https://github.com/sqlfluff/sqlfluff/pull/7245)
* [@tojnk](https://github.com/tojnk) made their first contribution in [#7237](https://github.com/sqlfluff/sqlfluff/pull/7237)
* [@CactusCollider](https://github.com/CactusCollider) made their first contribution in [#7241](https://github.com/sqlfluff/sqlfluff/pull/7241)
* [@stevenlw-porpoise](https://github.com/stevenlw-porpoise) made their first contribution in [#7254](https://github.com/sqlfluff/sqlfluff/pull/7254)
## [4.0.0a1] - 2025-10-28
## Highlights

View File

@@ -1,6 +1,6 @@
[project]
name = "sqlfluff-templater-dbt"
version = "4.0.0a1"
version = "4.0.0a2"
description = "Lint your dbt project SQL"
readme = {file = "README.md", content-type = "text/markdown"}
authors = [
@@ -53,7 +53,7 @@ keywords = [
"dbt",
]
dependencies = [
"sqlfluff==4.0.0a1",
"sqlfluff==4.0.0a2",
"dbt-core>=1.4.1",
"jinja2-simple-tags>=0.3.1",
]

View File

@@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "sqlfluff"
version = "4.0.0a1"
version = "4.0.0a2"
description = "The SQL Linter for Humans"
readme = { file = "README.md", content-type = "text/markdown" }
requires-python = ">=3.9"
@@ -98,7 +98,7 @@ dependencies = [
]
[project.optional-dependencies]
rs = ["sqlfluffrs==4.0.0a1"]
rs = ["sqlfluffrs==4.0.0a2"]
[project.urls]
Homepage = "https://www.sqlfluff.com"

2
sqlfluffrs/Cargo.lock generated
View File

@@ -2037,7 +2037,7 @@ dependencies = [
[[package]]
name = "sqlfluffrs"
version = "4.0.0-alpha.1"
version = "4.0.0-alpha.2"
dependencies = [
"bincode",
"blake2",

View File

@@ -3,7 +3,7 @@ name = "sqlfluffrs"
# NOTE: Version uses Rust SemVer format (e.g., "4.0.0-alpha.1").
# Maturin automatically converts this to PEP 440 format for the Python package (e.g., "4.0.0a1").
# See: https://www.maturin.rs/metadata.html
version = "4.0.0-alpha.1"
version = "4.0.0-alpha.2"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html