From d45eb5cc723e2e4f89574e911acf450d40e2ab6c Mon Sep 17 00:00:00 2001 From: Adam Ling Date: Tue, 30 Aug 2022 15:32:17 -0700 Subject: [PATCH] SNOW-652526: update release notes for v0.9.0 (#456) --- CHANGELOG.md | 18 ++++++++++++++++-- recipe/meta.yaml | 2 +- src/snowflake/snowpark/version.py | 2 +- 3 files changed, 18 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ac3f35ef757..0761291521a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,10 +1,24 @@ # Release History -## 0.9.0 (Unreleased) +## 0.9.0 (2022-08-30) ### New Features: - Added support for displaying source code as comments in the generated scripts when registering UDFs. -This feature is turned on by default. To turn if off, pass the new keyword argument `source_code_display` as `False` when calling `register()` or `@udf()`. +This feature is turned on by default. To turn it off, pass the new keyword argument `source_code_display` as `False` when calling `register()` or `@udf()`. +- Added support for calling table functions from `DataFrame.select()`, `DataFrame.with_column()` and `DataFrame.with_columns()` which now take parameters of type `table_function.TableFunctionCall` for columns. +- Added keyword argument `overwrite` to `session.write_pandas()` to allow overwriting contents of a Snowflake table with that of a Pandas DataFrame. +- Added keyword argument `column_order` to `df.write.save_as_table()` to specify the matching rules when inserting data into table in append mode. +- Added method `FileOperation.put_stream()` to upload local files to a stage via file stream. +- Added methods `TableFunctionCall.alias()` and `TableFunctionCall.as_()` to allow aliasing the names of columns that come from the output of table function joins. +- Added function `get_active_session()` in module `snowflake.snowpark.context` to get the current active Snowpark session. +### Bug Fixes: +- Fixed a bug in which batch insert should not raise an error when `statement_params` is not passed to the function. +- Fixed a bug in which column names should be quoted when `session.create_dataframe()` is called with dicts and a given schema. +- Fixed a bug in which creation of table should be skipped if the table already exists and is in append mode when calling `df.write.save_as_table()`. +- Fixed a bug in which third-party packages with underscores cannot be added when registering UDFs. + +### Improvements: +- Improved function `function.uniform()` to infer the types of inputs `max_` and `min_` and cast the limits to `IntegerType` or `FloatType` correspondingly. ## 0.8.0 (2022-07-22) diff --git a/recipe/meta.yaml b/recipe/meta.yaml index 43a6f4d28e9..be44729947d 100644 --- a/recipe/meta.yaml +++ b/recipe/meta.yaml @@ -1,5 +1,5 @@ {% set name = "snowflake-snowpark-python" %} -{% set version = "0.8.0" %} +{% set version = "0.9.0" %} package: name: {{ name|lower }} diff --git a/src/snowflake/snowpark/version.py b/src/snowflake/snowpark/version.py index 84f4ddebb35..9c854ef1980 100644 --- a/src/snowflake/snowpark/version.py +++ b/src/snowflake/snowpark/version.py @@ -4,4 +4,4 @@ # # Update this for the versions -VERSION = (0, 8, 0) +VERSION = (0, 9, 0)