Skip to content

v2.2.0

Compare
Choose a tag to compare
@sfc-gh-pjob sfc-gh-pjob released this 25 Apr 12:17
· 657 commits to main since this release

Deprecations

  • snow snowpark package lookup no longer performs check against PyPi. Using --pypi-download or --yes
    has no effect and will cause a warning. In this way the command has single responsibility - check if package is
    available in Snowflake Anaconda channel.
  • snow snowpark package create:
    • --pypi-download or --yes flags are deprecated, have no effect and will cause a warning.
      create command always checks against PyPi.
    • --allow-native-libraries is deprecated in favour of boolean flag --allow-shared-libraries.
      Using old flag will cause a warning.
  • snow snowpark build:
    • --pypi-download flag is deprecated, have no effect and will cause a warning. Build command always check against PyPi.
    • --check-anaconda-for-pypi-depts is deprecated and using it will cause warning, the functionality is replaced by --ignore-anaconda
    • --package-native-libraries is deprecated and using it will cause warning, the functionality is replaced by --allow-shared-libraries
  • snow object stage commands are deprecated and using them will cause a warning.
    Functionality is replaced by snow stage commands.

New additions

  • Added support for fully qualified name (database.schema.name) in name parameter in streamlit project definition
  • Added support for fully qualified image repository names in spcs image-repository commands.
  • Added --if-not-exists option to create commands for service, and compute-pool. Added --replace and --if-not-exists options for image-repository create.
  • Added support for python connector diagnostic report.
  • Added snow app deploy command that creates an application package and syncs the local changes to the stage without creating or updating the application.
  • Added is_default column to snow connection list output to highlight default connection.
  • snow snowpark package create:
    • new --ignore-anaconda flag disables package lookup in Snowflake Anaconda channel.
      All dependencies will be downloaded from PyPi.
    • new --skip-version-check skips comparing versions of dependencies between requirements and Anaconda.
    • new --index-url flag sets up Base URL of the Python Package Index to use for package lookup.
  • snow snowpark build:
    • new --skip-version-check skips comparing versions of dependencies between requirements and Anaconda.
    • new --index-url flag sets up Base URL of the Python Package Index to use for package lookup.
  • Added --recursive flag for copy from stage, it will reproduce the directory structure locally.
  • Added support for snowgit. New commands:
    • snow git setup - wizard setting up a git repository stage and creating all necessary objects
    • snow git fetch - fetches latest changes from the origin repository into Snowflake repository
    • snow git list-branches - lists all branches in the repository
    • snow git list-tags - lists all tags in the repository
    • snow git list-files - lists all files on provided branch/tag/commit
    • snow git copy - copies files from provided branch/tag/commit into stage or local directory
    • snow git execute - execute immediate files from repository
  • Added command for execute immediate snow stage execute
  • Fetching available packages list from Snowflake instead of directly from Anaconda with fallback to the old method (for backward compatibility).
    As the new method requires a connection to Snowflake, it adds connection options to the following commands:
    • snow snowpark build
    • snow snowpark package lookup
    • snow snowpark package create

Fixes and improvements

  • Adding --image-name option for image name argument in spcs image-repository list-tags for consistency with other commands.
  • Fixed errors during spcs image-registry login not being formatted correctly.
  • Project definition no longer accept extra fields. Any extra field will cause an error.
  • Changing imports in function/procedure section in snowflake.yml will cause the definition update on replace
  • Adding --pattern flag to stage list-files command for filtering out results with regex.
  • Fixed snowpark build paths for builds with --project option (fixed empty zip issue).
  • More clear error messages in snow snowpark build command
  • Adding support for any source supported by pip in snow snowpark.
  • Fixed version parsing for packages lookup on Snowflake Anaconda Channel
  • Fix handling database/schema/role identifiers containing dashes
  • Fix schema override bug in snow connection test
  • Hidden incorrectly working config permissions warning on Windows
  • Make errors from snow connection test more meaningful when role, warehouse or database does not exist.