vincbeck commented on code in PR #76705:
URL: https://github.com/apache/airflow/pull/76705#discussion_r4635579108


##########
providers/snowflake/pyproject.toml:
##########
@@ -113,6 +113,7 @@ dev = [
     "apache-airflow-providers-microsoft-azure",
     "apache-airflow-providers-openlineage",
     # Additional devel dependencies (do not remove this line and add extra 
development dependencies)
+    "boto3>=1.43.6",

Review Comment:
   Why `1.43.6`? The connection docs say AWS WIF needs `botocore>=1.41.0`.



##########
providers/snowflake/pyproject.toml:
##########
@@ -73,15 +73,15 @@ dependencies = [
     # declare no upper bound on cryptography, so an unconstrained resolve 
pairs them with a
     # cryptography they cannot import against. 22.1.0 is the first release 
with a correct bound.
     "pyOpenSSL>=22.1.0",
-    # TODO(potiuk): We should bump the snowflake-connector-python to >=4.0.0 
when sqlalchemy>=2.0 is required
     # 3.17.0 is the first version with Workload Identity Federation 
(WORKLOAD_IDENTITY authenticator).
     "snowflake-connector-python>=3.17.0",
+    "snowflake-connector-python>=5.1.0; python_version >= '3.14'",
     "snowflake-sqlalchemy>=1.7.0",
-    # snowflake-sqlalchemy (up to 1.11.1) subclasses 
sqlalchemy.orm.context.ORMSelectCompileState, which
-    # SQLAlchemy 2.1 made private, so importing it fails; 2.0.0rc2 itself 
declares sqlalchemy<2.1.
-    # Remove the cap once snowflake-sqlalchemy supports SQLAlchemy 2.1;
-    # tracked at https://github.com/apache/airflow/issues/75118
-    "sqlalchemy>=1.4.54,<2.1",
+    "snowflake-sqlalchemy>=2.1.0; python_version >= '3.14'",
+    # Snowpark requires connector<5; the dialect supporting SQLAlchemy 2.1 
requires connector>=5.1.
+    # https://github.com/apache/airflow/issues/75118

Review Comment:
   nit: I would keep why the cap exists: `snowflake-sqlalchemy` 1.x breaks on 
SQLAlchemy 2.1. Otherwise someone could drop `<2.1` once Snowpark supports 
connector 5 without raising the dialect floor.
   
   ```suggestion
       # Snowpark requires connector<5, so on Python < 3.14 the dialect stays 
on snowflake-sqlalchemy 1.x,
       # which breaks on SQLAlchemy 2.1 (it subclasses the now-private 
ORMSelectCompileState).
       # https://github.com/apache/airflow/issues/75118
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to