Skip to content

snowflake-connector-python v5.0.0rc4

Pre-release
Pre-release

Choose a tag to compare

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 and DictCursor rows.
  • Added pandas and Arrow fetching for JSON result sets returned by commands
    such as SHOW, DESCRIBE, DDL, PUT, and GET.
  • Added platform_detection_timeout_seconds. Setting it to 0 skips cloud
    metadata and STS requests while retaining environment-based platform
    detection.
  • Added put_compress_level and put_tempdir connection parameters for PUT
    auto-compression.
  • Added proxy_scheme for HTTPS connections to proxies and
    extra_root_store_path for extending the default TLS trust store.
  • Added support for generators and other iterators in executemany().
  • Added FILE, INTERVAL_YEAR_MONTH, and INTERVAL_DAY_TIME type codes.
  • Added Conda packaging for the connector.

Changes

  • Changed the minimum supported Python version from 3.10 to 3.11.
  • Changed client_store_temporary_credential to default to True. Set it to
    False explicitly 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, and reuse_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.description reporting 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 SET cache updates with non-ASCII SQL text.
  • Fixed SNOWFLAKE_CONNECTIONS parsing so Snowpark configuration is read as
    TOML.
  • Fixed ReauthenticationRequest so it is importable from
    snowflake.connector.network and exposes its underlying cause.
  • 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 in private_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 file column reports the
    downloaded file name.