SNOW-3052213: Add support for the DEFAULT_PYTHON_ARTIFACT_REPOSITORY parameter#4073
Open
sfc-gh-bkogan wants to merge 23 commits intomainfrom
Open
SNOW-3052213: Add support for the DEFAULT_PYTHON_ARTIFACT_REPOSITORY parameter#4073sfc-gh-bkogan wants to merge 23 commits intomainfrom
sfc-gh-bkogan wants to merge 23 commits intomainfrom
Conversation
sfc-gh-bkogan
commented
Feb 5, 2026
…ogan-default-artifact
sfc-gh-bkogan
commented
Feb 6, 2026
Contributor
Author
|
Tests currently failing because the system function isn't available in the test environment yet. EDIT: should be good now |
9a8e115 to
4a51691
Compare
…ogan-default-artifact
sfc-gh-joshi
approved these changes
Feb 18, 2026
sfc-gh-aling
approved these changes
Feb 18, 2026
a04e507 to
586c2ee
Compare
586c2ee to
70e97e7
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Which Jira issue is this PR addressing? Make sure that there is an accompanying issue to your PR.
Fixes SNOW-3052213
Fill out the following pre-review checklist:
Please describe how your code solves the related issue.
Reads the
SYSTEM$GET_DEFAULT_PYTHON_ARTIFACT_REPOSITORYbuilt in system function to determine the default artifact repository to use for function creation. SQL generation is unaffected, just have to change the places that assumeartifact_repository is Nonemeans we are using conda.Some things to note:
session._packagesremoved and merged withsession._artifact_repository_packages. This is because we can no longer assume the default repo name, so we must tag each package with it's corresponding repo name.session._default_artifact_repository_cacheto cache repeated invocations of getting the default repo in the same DB/schema context. The cache introduces a gap where users who manually alter the parameter value in same context will not see that value reflected if the cache is already set. This is a reasonable tradeoff for now, we can follow up if it becomes an issue.