New Features
- Added stored procedures API.
- Added
Session.sproc
property andsproc()
tosnowflake.snowpark.functions
, so you can register stored procedures. - Added
Session.call
to call stored procedures by name.
- Added
- Added
UDFRegistration.register_from_file()
to allow registering UDFs from Python source files or zip files directly. - Added
UDFRegistration.describe()
to describe a UDF. - Added
DataFrame.random_split()
to provide a way to randomly split a dataframe. - Added functions
md5()
,sha1()
,sha2()
,ascii()
,initcap()
,length()
,lower()
,lpad()
,ltrim()
,rpad()
,rtrim()
,repeat()
,soundex()
,regexp_count()
,replace()
,charindex()
,collate()
,collation()
,insert()
,left()
,right()
,endswith()
tosnowflake.snowpark.functions
. - Allowed
call_udf()
to accept literal values. - Provided a
distinct
keyword inarray_agg()
.
Bug Fixes:
- Fixed an issue that caused
DataFrame.to_pandas()
to have a string column ifColumn.cast(IntegerType())
was used. - Fixed a bug in
DataFrame.describe()
when there is more than one string column.