Repository navigation
snowflake-connector-python v5.0.0
5.0.0 (October 15, 2026)
Breaking changes:
- Changed an empty
connections.tomlso connections defined inconfig.tomlare kept. - Changed
ConfigManagerwith nofile_pathso reading an option raisesMissingConfigOptionErrorinstead ofConfigManagerError. - Changed a bare
connect()so a detected application name — from theSF_PARTNERenvironment variable, or from an imported Streamlit, Jupyter, orsnowbooksmodule — takes precedence overapplicationin the default connection profile. - Changed
client_session_keep_aliveandclient_session_keep_alive_heartbeat_frequencyto read-only properties; assigning them raisesAttributeError. - Removed
snowflake.connector.config_manager.CONFIG_PARSER; useCONFIG_MANAGER. - Removed
ConfigManager.add_subparser()andConfigManager._sub_parsers; useadd_submanager()and_sub_managers. - Removed the public
Connection.connect()method; the session is opened when the connection is constructed. - Removed the
regionconnection parameter andConnection.region; pass a fully qualifiedaccountor sethostinstead. - Removed the
backoff_policycallable; retry delays are set withretry_backoff_base_ms,retry_backoff_cap_ms,retry_backoff_factor, andretry_backoff_jitter, the default initial delay is 250 ms (was 1 s), and the default jitter is decorrelated (was full). - Removed
Connection.disable_request_pooling; passingdisable_request_poolingtoconnect()warns and has no effect. - Removed the
converter_classconnection parameter andDefaultConverterClass; passingconverter_classraisesProgrammingError. - Changed OAuth login failures for a bad client secret to include the identity provider's error name, such as
invalid_client, in the exception message. - Changed session-token login so
master_tokenis required and invalid tokens fail inconnect()instead of on a later request. - Changed OAuth token and authorization endpoint URL validation to require HTTPS;
http://is allowed only for loopback addresses. - Changed external-browser login so a mid-session master-token expiry raises
ReauthenticationRequestinstead of opening the browser again and retrying the query. - Changed EXTERNALBROWSER login so
disable_console_loginwarns and has no effect: the parameter defaults to false, and the driver always requests the SSO URL from Snowflake instead of opening/console/login. - Removed the
password_callbackconnection parameter; passing it raisesProgrammingError, and an expired password must be changed outside the driver. - Changed cursor session parameters so a change on one cursor is visible to other cursors on the same connection without those cursors running a query.
- Changed methods on a closed cursor to raise
InterfaceError;fetchone,fetchmany,fetchall, andresetstill read rows already buffered on an open cursor afterconnection.close(). - Changed
fetchone,fetchmany,fetchall, and cursor iteration before any query to raiseProgrammingErrorinstead ofTypeError. - Changed
cursor.executeso passingfile_streamon a statement that is not a PUT raisesProgrammingError. - Changed
fetch_pandas_all,fetch_pandas_batches, and thefetch_arrow_*methods so a JSON result, such asSHOWorDESCRIBE, returns a DataFrame or Arrow table instead of raisingNotSupportedError. - Changed
executemany()on anINSERTwithout aVALUESclause to raiseProgrammingErrorinstead ofInterfaceError. - Removed the
create_temp_tableargument fromwrite_pandas; passtable_type='temp'instead. - Removed
ResultBatch.session_managerandResultBatch.http_config. - Changed result-chunk fetching to always use a thread pool:
client_fetch_use_mpwarns and no longer selects a process pool, andclient_fetch_threadsis a deprecated alias ofclient_prefetch_threads. - Changed PUT so symlinks in a source path are resolved before upload: a symlinked file is stored under the target file's name, and a relative path that walks through a symlink and
..can select a different file. - Removed
iobound_tpe_limit; passing it toconnect()warns and has no effect, andConnection.iobound_tpe_limitdoes not exist. - Changed proxy selection so an explicit
proxy_host/proxy_portorproxyURL wins whenHTTP_PROXY,HTTPS_PROXY, orNO_PROXYis also set. - Changed CRL caching so
enable_crl_cache=Falsewarns and no longer disables it; set bothenable_crl_memory_cacheandenable_crl_file_cachetoFalseto turn caching off. - Changed FIPS support so it is available only when the Python connector is installed from source with
SNOWFLAKE_FIPS=1; see the installation instructions for details. - Removed support of OCSP certificate validation in favor of CRL validation.
- Removed YAML easy-logging configuration; troubleshooting logs are enabled with the
SNOWFLAKE_TROUBLESHOOTING_ENABLEDenvironment variable. - Removed the
snowflake.connector.optionsmodule; importing it raisesModuleNotFoundError. - Removed
snowflake.connector.dbapiand the authenticator classes previously exported fromsnowflake.connector.auth. - Removed file-transfer and type-helper exports from
snowflake.connector.constants, includingFileTransferType,ResultStatus, cloud filesystem labels, part-size constants, theget_*_typesandis_*_type_namehelpers, and the Arrow type helpers;QueryStatusremains. - Removed
DownloadMetrics,RemoteChunkInfo, and the chunk-download constantsDOWNLOAD_TIMEOUT,MAX_DOWNLOAD_RETRY,SSE_C_AES,SSE_C_ALGORITHM, andSSE_C_KEYfromsnowflake.connector.result_batch.
New features:
-
Added an asyncio-compatible API under
snowflake.connector.aio, including nonblocking connection, query, fetch, transaction, Arrow, pandas, and async context-manager operations. -
Added the
use_core_arrowconnection parameter to opt into native Rust conversion for row, Arrow, and pandas result fetching in the synchronous and asyncio APIs.
Bug fixes: -
Fixed PUT
SOURCE_COMPRESSION=AUTO_DETECTso a.deflatefile is recognized asDEFLATE. -
Fixed GET so a failed download removes the temporary
.partfile. -
Fixed Azure client-side encryption metadata so
EncryptionAgent.EncryptionAlgorithmisAES_CBC_256. -
Fixed the GET result
filecolumn so a stage path with more than one directory level reports only the file name. -
Fixed
Connection.is_valid()so a livePAT_WITH_EXTERNAL_SESSIONconnection returns true.
Changes:
- Changed gzip-compressed PUT uploads to omit the original filename from the gzip header.
- Added support for PUT
SOURCE_COMPRESSION=BROTLI, including auto-detection of.brfiles. - Changed the private-key password parameter to
private_key_password;private_key_file_pwdis still accepted and warns. - Changed the MFA token-caching parameter to
client_store_temporary_credential;client_request_mfa_tokenis still accepted and warns. - Changed
connection.rest.request()to raiseValueErrorfor an HTTP method other thangetorpost. - Changed
JSONResultBatchandArrowResultBatchsoto_arrow(),to_pandas(), and table iteration work on every result batch. - Changed S3 uploads and downloads in China regions (
cn-*) to use the AWS SDK's default endpoint when no regional URL and no custom endpoint are set. - Changed
oauth_enable_refresh_tokensso it warns and has no effect; a refresh token is used when the identity provider returns one, andclient_store_temporary_credentialcontrols whether that token is cached on disk. - Changed
oauth_credentials_in_body=Trueso the client id and secret are sent only in the token-request body. - Changed the connection parameter for S3 regional URLs to
use_s3_regional_url;enable_stage_s3_privatelink_for_us_east_1is still accepted and warns. - Changed Azure Blob PUT to omit the
Content-Encodingandx-ms-blob-content-encodingheaders. - Changed concurrent interactive logins for the same user and host to share one prompt when
disable_parallel_user_promptandclient_store_temporary_credentialare left at their defaults. - Changed
executemanyto follow the server's array-binding flag instead of detectingINSERTin the SQL text; a statement the server does not mark as array-bindable still runs one row at a time. - Changed Azure PUT and GET so any HTTP 403 refreshes the SAS token and retries.
- Changed a failed Azure SAS refresh so it raises a terminal error instead of retrying without a limit; a rejected token is logged as a warning and a failed refresh as an error.
- Removed the
snowflake.connector.telemetry_oobmodule. - Changed client-side encryption metadata so
KeyWrappingMetadata.EncryptionLibraryisRust(OpenSSL). - Added
parameterandvalidation_codeon errors from connection-configuration validation. - Changed
fetch_pandas_allandfetch_pandas_batchesso extra keyword arguments are passed to Arrow'sto_pandas; arguments that onlypandas.concataccepts, such assort,keys, andcopy, raiseTypeError. - Changed
login_timeout,network_timeout, andsocket_timeoutsologin_timeoutreturns the login budget (120 seconds when unset, previouslyNone),network_timeoutreturnsrequest_timeout(120 seconds when unset, previouslyNone), andsocket_timeoutreturnsretry_timeout; passingnetwork_timeoutwarns and also setsquery_timeout, passingsocket_timeoutwarns and also setsconnect_timeout, andretry_timeoutis a total time limit for the attempt rather than a per-read inactivity timeout. - Changed
cursor._request_idto warn on use; it returns the sameuuid.UUIDascursor.request_id. - Changed non-string session parameter values so they are sent as JSON strings.
- Changed binding of an unsupported Python type to raise
ProgrammingErrorwith errno 255001. - Added
display_sizefor text columns, set to the column's character length. - Changed
put_get_max_attemptsso any positive integer is used, with no upper limit. - Changed the default of
client_store_temporary_credentialto true on every platform; an explicit false now disables token caching on macOS and Windows as well. - Changed the unused connection arguments
dsn,session_id,support_negative_year,json_result_force_utf8_decoding,inject_client_pause,probe_connection,debug_arrow_chunk,snowflake_server_dop_cap_for_file_transfer, andreraise_error_in_file_transfer_work_functionso they warn and have no effect;connection.session_idafter login still returns the server-assigned id, andlog_imported_packagesandlog_imported_packages_in_telemetryare ignored without a warning. - Changed legacy HTTP error classes so they remain importable from
snowflake.connector.errors, warn on first use, and are no longer raised:HttpError,InternalServerError,ServiceUnavailableError,GatewayTimeoutError,ForbiddenError,RequestTimeoutError,BadRequest,BadGatewayError,MethodNotAllowed,TooManyRequests,OtherHTTPRetryableError,RevocationCheckError,RefreshTokenError,BindUploadError,RequestExceedMaxRetryError,TokenExpiredError, andPresignedUrlExpiredError.