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>)
. CurrentlyPERMISSIVE
,DROPMALFORMED
andFAILFAST
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 useSELECT * EXCLUDE ()
to exclude the dropped columns. To enable this feature, setsession.conf.set("use_simplified_query_generation", True)
. - Added support for
VariantType
toStructType.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
, andSeries.str.__getitem__
(Series.str[...]
). - Added support for
DataFrame.to_html
. - Added support for
DataFrame.to_string
andSeries.to_string
. - Added support for reading files from S3 buckets using
pd.read_csv
.
Improvements
- Make
iceberg_config
a required parameter forDataFrame.to_iceberg
andSeries.to_iceberg
.