-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
V2.0 Definition for snowpark #1402
Merged
Merged
Changes from all commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
8f9b89a
Support project definition V2 in streamlit deploy command (#1369)
sfc-gh-turbaszek 1603dd8
Init
sfc-gh-jsikorski 06c6d63
Solution outline
sfc-gh-jsikorski 45703d9
Merge branch 'main' into jsikorski/snowpark-v2
sfc-gh-jsikorski 0884c45
Fixing paths
sfc-gh-jsikorski 55761e9
build fix
sfc-gh-jsikorski f226451
build fix
sfc-gh-jsikorski e4ef4be
Merge branch 'main' into jsikorski/snowpark-v2
sfc-gh-jsikorski ac53ecc
Update src/snowflake/cli/api/project/schemas/entities/snowpark_entity.py
sfc-gh-jsikorski 10fc53f
Update src/snowflake/cli/api/project/schemas/entities/snowpark_entity.py
sfc-gh-jsikorski a3db93b
query problem
sfc-gh-jsikorski cf933f2
Merge branch 'main' into jsikorski/snowpark-v2
sfc-gh-jsikorski 563886d
Fix for zipper
sfc-gh-jsikorski 5a4a7a0
Test fix
sfc-gh-jsikorski 403e3c7
Test fix
sfc-gh-jsikorski 67710b8
Update src/snowflake/cli/plugins/snowpark/commands.py
sfc-gh-jsikorski 01c284e
Update src/snowflake/cli/plugins/snowpark/commands.py
sfc-gh-jsikorski 8553cf7
Merge branch 'main' into jsikorski/snowpark-v2
sfc-gh-jsikorski 83e5012
Merge branch 'main' into jsikorski/snowpark-v2
sfc-gh-jsikorski 6a4cc33
Fixes
sfc-gh-jsikorski aca0d21
Test fix
sfc-gh-jsikorski 4c5ab82
Merge branch 'main' into jsikorski/snowpark-v2
sfc-gh-jsikorski 2cc7c4f
Merge branch 'main' into jsikorski/snowpark-v2
sfc-gh-jsikorski 9128470
Merge fixes
sfc-gh-jsikorski 73e29a6
Test fix
sfc-gh-jsikorski 3aad2eb
Reformat
sfc-gh-jsikorski 0747807
Merge branch 'main' into jsikorski/snowpark-v2
sfc-gh-jsikorski a7d449a
Merge cleanup
sfc-gh-jsikorski 2766b72
Fixup
sfc-gh-jsikorski 659636f
Merge branch 'main' into jsikorski/snowpark-v2
sfc-gh-jsikorski be0d58f
Changed to artifacts
sfc-gh-jsikorski 221d5e5
Merge branch 'main' into jsikorski/snowpark-v2
sfc-gh-jsikorski 4176171
Fixup
sfc-gh-jsikorski bff4b4d
Merge branch 'main' into jsikorski/snowpark-v2
sfc-gh-jsikorski 33ac466
Fixup
sfc-gh-jsikorski 1f6d50c
After review fixes
sfc-gh-jsikorski ccdea97
Merge branch 'main' into jsikorski/snowpark-v2
sfc-gh-jsikorski bd98653
Post merge cleanup
sfc-gh-jsikorski 91b7a5f
Merge branch 'main' into jsikorski/snowpark-v2
sfc-gh-turbaszek File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're assuming
pd.defaults.project_name
is defined, but shouldn't it be optional? What should be the stage if different values are defined on each entity?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ATM we have only one snowpark project value. I think we should introduce different stage paths after introducing mixins, as it will change much more logic. I.e. now we create only one artifact for all snowpark entities.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I now realize you used the
defaults
section to store global-like values for entities to reference, but it's not exactly its purpose. You can think ofdefaults
as automatic mixins that are applied to all entities if they have a value of the same name and the user didn't specify it on the entity.In this example
sp1.project_name
will be "proj1", andsp2.project_name
will be "default_proj":There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, you're right- i used the default value when converting from v1 and went on with this logic.
Nevertheless - currently it doesn't change anything, as we use single artifact for all snowpark entities