Repository navigation
snowflake-connector-python v5.0.0rc4
Pre-release
Pre-release
New features
- Added Duo push continuation and MFA callbacks for username/password
authentication. - Added native Arrow conversion for Boolean, numeric, DECFLOAT, text, binary,
DATE, TIME, TIMESTAMP, INTERVAL, and VECTOR values, including NumPy scalar
output andDictCursorrows. - Added pandas and Arrow fetching for JSON result sets returned by commands
such asSHOW,DESCRIBE, DDL, PUT, and GET. - Added
platform_detection_timeout_seconds. Setting it to0skips cloud
metadata and STS requests while retaining environment-based platform
detection. - Added
put_compress_levelandput_tempdirconnection parameters for PUT
auto-compression. - Added
proxy_schemefor HTTPS connections to proxies and
extra_root_store_pathfor extending the default TLS trust store. - Added support for generators and other iterators in
executemany(). - Added
FILE,INTERVAL_YEAR_MONTH, andINTERVAL_DAY_TIMEtype codes. - Added Conda packaging for the connector.
Changes
- Changed the minimum supported Python version from 3.10 to 3.11.
- Changed
client_store_temporary_credentialto default toTrue. Set it to
Falseexplicitly to disable ID, OAuth, and MFA token caching. - Improved native Arrow fetching by using the result prefetch pipeline for
asynchronous rows. - Improved GCS PUT throughput by streaming each file in one request.
- Improved first-connection latency on non-FIPS builds.
- Restored the
timezone,interpolate_empty_sequences, andreuse_results
connection parameters, along with legacy aliases for private-key,
external-browser timeout, and console-login settings. - Changed failed-login errors to include the server-provided reason.
Bug fixes
- Fixed
cursor.descriptionreporting GEOGRAPHY and GEOMETRY columns as
OBJECT. - Fixed
ALTER SESSION,COMMIT, and other statements rejected by statement
preparation so they fall back to direct execution. - Fixed
ALTER SESSION SETcache updates with non-ASCII SQL text. - Fixed
SNOWFLAKE_CONNECTIONSparsing so Snowpark configuration is read as
TOML. - Fixed
ReauthenticationRequestso it is importable from
snowflake.connector.networkand exposes its underlyingcause. - Fixed asynchronous multi-statement result retrieval returning only the first
statement. - Fixed statement-level parameters being omitted from queries and bind values
being omitted from describe-only preparation. - Fixed Python array binding when the session-scoped bind stage is unavailable
by retrying with inline JSON bindings. - Fixed timestamp and MAP conversion failures that could terminate the Python
process. - Fixed invalid query IDs so they raise a connector error instead of reaching
the server. - Fixed
write_pandas()quoting for Parquet and Iceberg field and option
names. - Fixed intermittent key-pair authentication failures on Windows and added
support for plaintext PEM strings inprivate_key. - Fixed OAuth refresh-token retention when refresh-token rotation is disabled.
- Fixed token-cache files with unsafe permissions so they are reported and
ignored rather than modified and used. - Fixed native Okta authentication errors so they include the Snowflake
rejection reason. - Fixed external-browser callbacks so their CORS origin must match the
connected Snowflake account. - Fixed Azure GET corruption caused by transparent gzip decompression.
- Fixed encrypted S3 GET downloads for files created by server-side unloads.
- Fixed S3 and GCS upload retries after temporary credential expiration.
- Fixed S3 external-stage operations that do not provide a session token.
- Fixed GET results from stage subdirectories so the
filecolumn reports the
downloaded file name.