Skip to content

SNOW-3081273: fix Creating a stored procedure locally results in an unsupported version of cloudpicker#4234

Draft
sfc-gh-yuwang wants to merge 2 commits into
mainfrom
SNOW-3081273
Draft

SNOW-3081273: fix Creating a stored procedure locally results in an unsupported version of cloudpicker#4234
sfc-gh-yuwang wants to merge 2 commits into
mainfrom
SNOW-3081273

Conversation

@sfc-gh-yuwang
Copy link
Copy Markdown
Collaborator

@sfc-gh-yuwang sfc-gh-yuwang commented May 21, 2026

  1. Which Jira issue is this PR addressing? Make sure that there is an accompanying issue to your PR.

    Fixes SNOW-NNNNNNN

  2. Fill out the following pre-review checklist:

    • I am adding a new automated test(s) to verify correctness of my new code
      • If this test skips Local Testing mode, I'm requesting review from @snowflakedb/local-testing
    • I am adding new logging messages
    • I am adding a new telemetry message
    • I am adding new credentials
    • I am adding a new dependency
    • If this is a new feature/behavior, I'm adding the Local Testing parity changes.
    • I acknowledge that I have ensured my changes to be thread-safe. Follow the link for more information: Thread-safe Developer Guidelines
    • If adding any arguments to public Snowpark APIs or creating new public Snowpark APIs, I acknowledge that I have ensured my changes include AST support. Follow the link for more information: AST Support Guidelines
  3. Please describe how your code solves the related issue.

    This PR fixes a Python 3.13 local-registration issue for Snowpark UDFs/stored procedures by changing auto-injected cloudpickle dependency specs from strict pins (==) to compatible lower bounds (>=), so server-side resolution can choose a supported version instead of failing on an exact local version match.

This change is safe because cloudpickle is backward compatible, meaning higher version can deserialize encoding create by lower version

…g a Python stored procedure or UDF with `runtime_version='3.13'`.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented May 21, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.40%. Comparing base (1253e7e) to head (5dd8c86).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4234   +/-   ##
=======================================
  Coverage   95.40%   95.40%           
=======================================
  Files         171      171           
  Lines       44205    44205           
  Branches     7548     7548           
=======================================
  Hits        42174    42174           
  Misses       1247     1247           
  Partials      784      784           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

2 participants