Skip to content

snowflake-connector-python v5.0.0rc1

Pre-release
Pre-release

Choose a tag to compare

Snowflake Connector for Python — Release Notes

Features

  • Added an asyncio API under snowflake.connector.aio for non-blocking connect,
    execute, fetch, and concurrent queries on a single thread.
  • Added typed ConnectionConfig, generated from the shared parameter registry,
    passable via connect(config=...) or built automatically from kwargs.
  • Moved networking, authentication, query execution, result fetching, and
    PUT/GET into a shared Rust core (sf_core) used across universal-driver
    bindings.

Breaking Changes

  • Closed cursors raise InterfaceError (errno=252006) on all operations;
    previously only execute() was guarded and other methods failed with
    TypeError / AttributeError.
  • Fetching or iterating a cursor before any execute raises ProgrammingError
    (errno=252009) instead of TypeError.
  • Removed the public Connection.connect() method; the session is established
    at construction time—create a new connection to reconnect.
  • Removed the region connection parameter and Connection.region; use a
    fully qualified account or set host explicitly.
  • Deprecated client_fetch_threads (alias of client_prefetch_threads);
    client_fetch_use_mp is accepted but has no effect (always a thread pool).
  • Made client_session_keep_alive and
    client_session_keep_alive_heartbeat_frequency read-only; assignment raises
    AttributeError—set them at connection time.
  • Ignored oauth_enable_refresh_tokens (deprecated no-op); refresh tokens are
    always used when the IdP returns one—gate disk caching with
    client_store_temporary_credential.
  • Renamed enable_stage_s3_privatelink_for_us_east_1 to use_s3_regional_url
    (old name remains a deprecated alias).
  • Stopped reading HTTP_PROXY / HTTPS_PROXY / NO_PROXY by default; set
    use_proxy_env=True (or PROXYWITHENV=true) to opt in. Explicit proxy
    params win over env vars.
  • Stopped raising ReauthenticationRequest on master-token expiry (Snowpark
    reauth signal not yet wired).
  • Stopped forcing a hardcoded amazonaws.com.cn S3 endpoint for cn-*
    regions; the AWS SDK resolver is used unless an explicit or regional-URL
    override is set.
  • Stopped setting Content-Encoding: utf-8 on Azure Blob PUT (matches JDBC /
    libsnowflakeclient).
  • Stopped embedding the original filename in the gzip header for compressed
    uploads.