github snowflakedb/snowpark-python v1.32.0
Release

latest releases: v1.38.0, v1.37.0, v1.36.0...
3 months ago

1.32.0 (2025-05-15)

Snowpark Python API Updates

Improvements

  • Invoking snowflake system procedures does not invoke an additional describe procedure call to check the return type of the procedure.
  • Added support for Session.create_dataframe() with the stage URL and FILE data type.
  • Added support for different modes for dealing with corrupt XML records when reading an XML file using session.read.option('mode', <mode>), option('rowTag', <tag_name>).xml(<stage_file_path>). Currently PERMISSIVE, DROPMALFORMED and FAILFAST are supported.
  • Improved the error message of the XML reader when the specified row tag is not found in the file.
  • Improved query generation for Dataframe.drop to use SELECT * EXCLUDE () to exclude the dropped columns. To enable this feature, set session.conf.set("use_simplified_query_generation", True).
  • Added support for VariantType to StructType.from_json

Bug Fixes

  • Fixed a bug in DataFrameWriter.dbapi (PrPr) that unicode or double-quoted column name in external database causes error because not quoted correctly.
  • Fixed a bug where named fields in nested OBJECT data could cause errors when containing spaces.

Snowpark Local Testing Updates

Bug Fixes

  • Fixed a bug in snowflake.snowpark.functions.rank that would cause sort direction to not be respected.
  • Fixed a bug in snowflake.snowpark.functions.to_timestamp_* that would cause incorrect results on filtered data.

Snowpark pandas API Updates

New Features

  • Added support for dict values in Series.str.get, Series.str.slice, and Series.str.__getitem__ (Series.str[...]).
  • Added support for DataFrame.to_html.
  • Added support for DataFrame.to_string and Series.to_string.
  • Added support for reading files from S3 buckets using pd.read_csv.

Improvements

  • Make iceberg_config a required parameter for DataFrame.to_iceberg and Series.to_iceberg.

Don't miss a new snowpark-python release

NewReleases is sending notifications on new releases.