snowflake-connector-python v5.0.0rc1
Pre-release
Pre-release
Snowflake Connector for Python — Release Notes
Features
- Added an asyncio API under
snowflake.connector.aiofor non-blocking connect,
execute, fetch, and concurrent queries on a single thread. - Added typed
ConnectionConfig, generated from the shared parameter registry,
passable viaconnect(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 onlyexecute()was guarded and other methods failed with
TypeError/AttributeError. - Fetching or iterating a cursor before any execute raises
ProgrammingError
(errno=252009) instead ofTypeError. - Removed the public
Connection.connect()method; the session is established
at construction time—create a new connection to reconnect. - Removed the
regionconnection parameter andConnection.region; use a
fully qualifiedaccountor sethostexplicitly. - Deprecated
client_fetch_threads(alias ofclient_prefetch_threads);
client_fetch_use_mpis accepted but has no effect (always a thread pool). - Made
client_session_keep_aliveand
client_session_keep_alive_heartbeat_frequencyread-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_1touse_s3_regional_url
(old name remains a deprecated alias). - Stopped reading
HTTP_PROXY/HTTPS_PROXY/NO_PROXYby default; set
use_proxy_env=True(orPROXYWITHENV=true) to opt in. Explicit proxy
params win over env vars. - Stopped raising
ReauthenticationRequeston master-token expiry (Snowpark
reauth signal not yet wired). - Stopped forcing a hardcoded
amazonaws.com.cnS3 endpoint forcn-*
regions; the AWS SDK resolver is used unless an explicit or regional-URL
override is set. - Stopped setting
Content-Encoding: utf-8on Azure Blob PUT (matches JDBC /
libsnowflakeclient). - Stopped embedding the original filename in the gzip header for compressed
uploads.