Skip to content

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

Draft
github-actions[bot] wants to merge 1 commit into
v3-4-testfrom
backport-8317410-v3-4-test
Draft

github-actions[bot] wants to merge 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 66968678+jedcunningham@users.noreply.github.com

…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 <66968678+jedcunningham@users.noreply.github.com>

This branch has not been deployed

No deployments
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.

1 participant