From 87faa2f92a4852ed32b6f479cf92b444d6b488f3 Mon Sep 17 00:00:00 2001 From: Yijun Xie Date: Fri, 14 Oct 2022 17:59:59 +0000 Subject: [PATCH] Add Release notes to 0.12.0 release notes (#561) --- CHANGELOG.md | 19 +++++++++++++++++++ recipe/meta.yaml | 2 +- src/snowflake/snowpark/version.py | 2 +- 3 files changed, 21 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ab6af9ce420..2079d6557c3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,23 @@ # Release History +## 0.12.0 (2022-10-14) +### New Features +- Added new APIs for async job: + - `Session.create_async_job()` to create an `AsyncJob` instance from a query id. + - `AsyncJob.result()` now accepts argument `result_type` to return the results in different formats. + - `AsyncJob.to_df()` returns a `DataFrame` built from the result of this asynchronous job. + - `AsyncJob.query()` returns the SQL text of the executed query. +- `DataFrame.agg()` and `RelationalGroupedDataFrame.agg()` now accept variable-length arguments. +- Added parameters `lsuffix` and `rsuffix` to `DataFram.join()` and `DataFrame.cross_join()` to conveniently rename overlapping columns. +- Added `Table.drop_table()` so you can drop the temp table after `DataFrame.cache_result()`. `Table` is also a context manager so you can use the `with` statement to drop the cache temp table after use. +- Added `Session.use_secondary_roles()`. +- Added functions `first_value()` and `last_value()`. (contributed by @chasleslr) +- Added `on` as an alias for `using_columns` and `how` as an alias for `join_type` in `DataFrame.join()`. + +### Bug Fixes +- Fixed a bug in `Session.create_dataframe()` that raised an error when `schema` names had special characters. +- Fixed a bug in which options set in `Session.read.option()` were not passed to `DataFrame.copy_into_table()` as default values. +- Fixed a bug in which `DataFrame.copy_into_table()` raises an error when a copy option has single quotes in the value. + ## 0.11.0 (2022-09-28) ### Behavior Changes diff --git a/recipe/meta.yaml b/recipe/meta.yaml index f97be6c7682..760204909be 100644 --- a/recipe/meta.yaml +++ b/recipe/meta.yaml @@ -1,5 +1,5 @@ {% set name = "snowflake-snowpark-python" %} -{% set version = "0.11.0" %} +{% set version = "0.12.0" %} package: name: {{ name|lower }} diff --git a/src/snowflake/snowpark/version.py b/src/snowflake/snowpark/version.py index f46e7d9bded..658069c8976 100644 --- a/src/snowflake/snowpark/version.py +++ b/src/snowflake/snowpark/version.py @@ -4,4 +4,4 @@ # # Update this for the versions -VERSION = (0, 11, 0) +VERSION = (0, 12, 0)