Repository navigation
fix(snowflake): require snowflake-snowpark-python>=1.0.0 - #6242
Conversation
snowflake-connector-python 5.x (5.2.0 released 2026-11-04) is not installable alongside any snowflake-snowpark-python 1.x, which all pin connector<5. With no floor on snowpark, resolvers keep connector 5.x and fall back to snowpark 0.12.0, the only release without a connector cap. That release imports snowflake.connector.options, which no longer exists, so the Snowpark session is None. This broke engine-tests-cloud (snowflake) on main from 2026-11-04 and affects a fresh `pip install sqlmesh[snowflake]` the same way. A floor of 1.0.0 makes the resolver pick connector 4.x with a current Snowpark. Signed-off-by: mday-io <mdaytn@gmail.com>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
StuffbyYuki
left a comment
There was a problem hiding this comment.
Approved though one ci test failed
Problem
engine-tests-cloud (snowflake)has failed on everymainrun since 2026-11-04. The last pass wasc4dbac499on 11-02, and the first failure was3fea21eaa. The errors are:test_snowpark_concurrency:ModuleNotFoundError: No module named 'snowflake.connector.options'[df-snowpark]case:AttributeError: 'NoneType' object has no attribute 'create_dataframe'Cause
snowflake-connector-python5.2.0 was released on 2026-11-04. Everysnowflake-snowpark-python1.x pinssnowflake-connector-python<5. Nothing sets a floor on Snowpark, so the resolver keeps connector 5.2.0 and falls back tosnowflake-snowpark-python==0.12.0, the only release without a connector cap. That release importssnowflake.connector.options, which connector 5 removed, so the Snowpark session isNone. The CI install log for job137528636670showssnowflake-connector-python==5.2.0withsnowflake-snowpark-python==0.12.0.This isn't limited to CI. A fresh resolve of the
snowflakeextra produces the same pair, sopip install sqlmesh[snowflake]users get a broken Snowpark.Fix
Require
snowflake-snowpark-python>=1.0.0in thesnowflakeextra. The non-Snowpark Snowflake tests passed on connector 5.2.0, so the connector itself stays uncapped.Verification
uv pip compileof the extra's requirements:snowflake-connector-python==5.2.0,snowflake-snowpark-python==0.12.0snowflake-connector-python==4.8.1,snowflake-snowpark-python==1.58.0main, so the firstmainrun after merge is what proves the fix.Summary by CodeRabbit