Skip to content

[v3-4-test] Do not warn about bare postgresql:// metadata DB URLs (#74863) - #74884

Merged
vatsrahul1001 merged 1 commit into
v3-4-testfrom
backport-8317410-v3-4-test
Oct 17, 2026
Merged

vatsrahul1001 merged 1 commit into
v3-4-testfrom
backport-8317410-v3-4-test

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

The bare postgresql scheme is valid in SQLAlchemy; Airflow only rewrites
it to make the driver explicit. It nevertheless emitted the old "Bad
scheme ... You must change to postgresql+psycopg" FutureWarning, which
users read as driver-less URLs being deprecated.

Only warn for the unsupported postgres and postgres+psycopg2 schemes,
reword that warning (no outdated SQLAlchemy 1.4 / Airflow 2.3 reference
or release deadline), update the docstring, and add a test.
(cherry picked from commit 8317410)

Co-authored-by: Jed Cunningham [email protected]

…4863)

The bare postgresql scheme is valid in SQLAlchemy; Airflow only rewrites
it to make the driver explicit. It nevertheless emitted the old "Bad
scheme ... You must change to postgresql+psycopg" FutureWarning, which
users read as driver-less URLs being deprecated.

Only warn for the unsupported postgres and postgres+psycopg2 schemes,
reword that warning (no outdated SQLAlchemy 1.4 / Airflow 2.3 reference
or release deadline), update the docstring, and add a test.
(cherry picked from commit 8317410)

Co-authored-by: Jed Cunningham <[email protected]>
@shahar1
shahar1 marked this pull request as ready for review October 17, 2026 11:57
@vatsrahul1001 vatsrahul1001 added this to the Airflow 3.4.0 milestone Oct 17, 2026
@vatsrahul1001
vatsrahul1001 merged commit 9fb62eb into v3-4-test Oct 17, 2026
105 of 116 checks passed
@vatsrahul1001
vatsrahul1001 deleted the backport-8317410-v3-4-test branch October 17, 2026 13:22
vatsrahul1001 pushed a commit that referenced this pull request Oct 20, 2026
…4863) (#74884)

The bare postgresql scheme is valid in SQLAlchemy; Airflow only rewrites
it to make the driver explicit. It nevertheless emitted the old "Bad
scheme ... You must change to postgresql+psycopg" FutureWarning, which
users read as driver-less URLs being deprecated.

Only warn for the unsupported postgres and postgres+psycopg2 schemes,
reword that warning (no outdated SQLAlchemy 1.4 / Airflow 2.3 reference
or release deadline), update the docstring, and add a test.
(cherry picked from commit 8317410)

Co-authored-by: Jed Cunningham <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants