Repository navigation
Allow SQLAlchemy 2.1 in Snowflake provider on Python 3.14+ - #76705
Conversation
|
Fork CI: green. CI for the latest commit passed in your fork. The pull request is ready for maintainer review. Pull requests from contributors run their CI in the contributor's own fork. GitHub Actions is free and has no minute limit on public forks, while the CI capacity of the Apache Software Foundation is shared by every ASF project and is finite. Fork CI tested this branch merged with Latest run: https://github.com/Dev-iL/airflow/actions/runs/44781394721 How this works: CI in your fork. This comment was posted automatically by the fork CI monitor from templates drafted with an AI-assisted tool, so it may contain mistakes. An Apache Airflow maintainer, a real person, will review the pull request once its fork CI is green. Why the first pass is automated. |
edc2105 to
5afbcd9
Compare
5afbcd9 to
22b5eec
Compare
22b5eec to
c07962f
Compare
kaxil
left a comment
There was a problem hiding this comment.
The change looks right to me, but I'd like a full run on 3.14 before we merge. The earlier fork CI only built the 3.11 image and skipped every core and provider test job, and on 3.11 this PR changes nothing. With the new lock, 3.14 resolves SQLAlchemy 2.1.8 for the whole workspace, so core gets 2.1 there too, not just Snowflake. full tests needed alone still runs on 3.11 only, so this needs latest versions only (or all versions) as well.
kaxil
left a comment
There was a problem hiding this comment.
Approving. I ran it end to end on 3.14 with SQLAlchemy 2.1.8: CeleryExecutor with a db+postgresql:// result backend and no psycopg2, plus a Snowflake Dag through SQLExecuteQueryOperator, get_sqlalchemy_engine() and pandas.read_sql. It all worked. The inline comments aren't blockers, but please take a look at them. Let's merge once the all-versions run is green.
Head branch was pushed to by a user without write access
1d55c02 to
3a5b2ef
Compare
3a5b2ef to
334dfc8
Compare
The compatible Snowflake dialect requires connector 5.1, while Snowpark still caps the connector below 5. Keep the older Python environments compatible with Snowpark and enable the newer dialect where Snowpark is already excluded.
Users who install Snowpark separately need to know its connector cap conflicts with the SQLAlchemy 2.1-compatible dialect. The installation guidance belongs with the operator prerequisites; the release manager owns the next changelog version.
Isolated lowest-dependency syncs remove undeclared boto3, preventing collection of the AWS workload identity federation tests.
334dfc8 to
0fa61e2
Compare
The Snowflake provider's global
sqlalchemy<2.1cap keeps constraints on SQLAlchemy 2.0 even though a compatible Snowflake dialect is now available. Requiresnowflake-sqlalchemy>=2.1.0andsnowflake-connector-python>=5.1.0on Python 3.14+, and allow SQLAlchemy 2.1 there. The updated lock resolves SQLAlchemy 2.1.8 for those interpreters.Python 3.11–3.13 retain the cap: Snowpark requires connector
<5, while the compatible dialect needs connector>=5.1. This preserves Snowpark support on Python 3.11–3.13 and Airflow 2.11 compatibility. Current Snowpark releases cannot be installed alongside this provider on Python 3.14+: their connector<5requirement conflicts with the new>=5.1floor. Broader support remains tracked in #75118; this PR addresses the Python 3.14+ portion.Validation:
boto3==1.43.6. Snowflake now declares boto3 as a development dependency so isolated syncs retain the AWS WIF test SDK.breeze verify, using the updated lock on Python 3.14: Strands 212 passed, Google ADK 177 passed, OpenAI Agents 263 passed, LlamaIndex 207 passed; other frameworks' tests skip in each isolated run.pagefind_enabled=0); the default local build stalls at search indexing.Was generative AI tooling used to co-author this PR?
Generated-by: Codex (GPT-6) following the guidelines