SNOW-616199: updated _resolve_packages to only query for added packages
Please answer these questions before submitting your pull requests. Thanks!
-
What GitHub issue is this PR addressing? Make sure that there is an accompanying issue to your PR.
No existing github issue. Only addressing JIRA SNOW-616199
-
Fill out the following pre-review checklist:
- [x] I am adding a new automated test(s) to verify correctness of my new code
- [x] I am adding new logging messages
- [ ] I am adding new credentials
- [ ] I am adding a new dependency
-
Please describe how your code solves the related issue.
- Updated code to only query for packages and versions that are requested in
add_packagesmethod. - Updated code to check if requested versions are available in Snowflake. Raise error if they are not.
- Updated code to warn when local version of python package does not match with any supported packages on Snowflake server
- Updated code to only query for packages and versions that are requested in
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅
I have read the CLA Document and I hereby sign the CLA
Just dump the release notes here
When adding a package using session.add_packages() with a specific version to UDFs or stored procedures, if the version is not supported by Snowflake, an exception will be raised immediately instead of when registering the UDF or stored procedure.