This is an automated email from the ASF dual-hosted git repository.

vincbeck pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new 107c2c0a447 Remove obsolete SQLAlchemy 1 driver compatibility check 
(#75892)
107c2c0a447 is described below

commit 107c2c0a4473fcdd020604aad13a8c0036e295a0
Author: Hussein Awala <[email protected]>
AuthorDate: Wed Oct 28 21:23:38 2026 +0100

    Remove obsolete SQLAlchemy 1 driver compatibility check (#75892)
---
 airflow-core/src/airflow/utils/db.py | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/airflow-core/src/airflow/utils/db.py 
b/airflow-core/src/airflow/utils/db.py
index 85af474f8ab..061f5042b8b 100644
--- a/airflow-core/src/airflow/utils/db.py
+++ b/airflow-core/src/airflow/utils/db.py
@@ -67,14 +67,8 @@ _USE_PSYCOPG3: bool
 try:
     from importlib.util import find_spec
 
-    import sqlalchemy
-    from packaging.version import Version
-
     is_psycopg3 = find_spec("psycopg") is not None
-    sqlalchemy_version = Version(sqlalchemy.__version__)
-    is_sqla2 = (sqlalchemy_version.major, sqlalchemy_version.minor, 
sqlalchemy_version.micro) >= (2, 0, 0)
-
-    _USE_PSYCOPG3 = is_psycopg3 and is_sqla2
+    _USE_PSYCOPG3 = is_psycopg3
 except (ImportError, ModuleNotFoundError):
     _USE_PSYCOPG3 = False
 

Reply via email to