Repository navigation
snowflake-connector-python v5.2.0
5.2.0 (November 4, 2026)
New features:
- Added support for Python 3.15 and free-threaded Python 3.15t. The pandas extra installs pandas 3 on Python 3.15. (snowflakedb/drivers#2929)
- Added a connection-level
force_microsecond_precisionsetting so Arrow and pandas fetches use it when the call omits the argument. (snowflakedb/drivers#3052) - Added support for
EllipticCurvePrivateKeyobjects asprivate_key. (snowflakedb/drivers#3005) - Added support for a leading
~intoken_file_path, so a path such as~/.snowflake/pat.tokenis read from the home directory when loading a PAT, OAuth, or OIDC bearer token. (snowflakedb/drivers#3049)
Changes:
- Removed pandas upper bound dependency constraint on the
[pandas]extra to allow installation of pandas 3.0.0 and later. (snowflakedb/drivers#2971) - Changed
split_statementsto apply one delimiter for the whole script, read when the call starts. (snowflakedb/drivers#3043)
Bug fixes:
- Fixed
cursor.execute()raising000006: Invalid Snowflake responsefor an empty or whitespace-only statement; it now skips the statement with a warning and returns the cursor, as the 4.x connector did. (snowflakedb/drivers#2970) - Fixed
Error.errorhandler_make_exceptionso it constructs only PEP 249Errorsubclasses. (snowflakedb/drivers#2873) - Fixed a hang when two threads read their first Arrow result at the same time. (snowflakedb/drivers#2943)
- Fixed the driver resubmitting a running query when the session token expired during a long-running server-side poll; the driver now refreshes the token and retries only the result poll. (snowflakedb/drivers#3127)
- Fixed type hints so
cursor(DictCursor)remains aDictCursorthroughexecuteandexecutemany, its fetch results andnext()are dictionaries, and the defaultcursor()is narrowed to a tuple cursor, for both the sync and async cursors. (snowflakedb/drivers#2872) - Fixed building the Python connector from source on FreeBSD, where the system headers do not define ENODATA. (snowflakedb/drivers#2870)
- Implemented the
service_nameconnection property, reading the liveSERVICE_NAMEsession parameter from the core driver so the value tracks cluster reassignments made by query responses. (snowflakedb/drivers#3068) - Fixed an issue where
write_pandasaccepted column names that are not valid unquoted identifiers whenquote_identifiers=False. (snowflakedb/drivers#2977) - Fixed
validate_default_parameters=truenot failing login when the specified database, schema, or warehouse does not exist. (snowflakedb/drivers#2974)