Skip to content

Commit

Permalink
SNOW-629044: 0.8.0 Release Notes (#410)
Browse files Browse the repository at this point in the history
Added changelog for v0.8.0 release
  • Loading branch information
sfc-gh-kwagner authored Jul 22, 2022
1 parent 49ae68f commit 510b2b5
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 12 deletions.
35 changes: 25 additions & 10 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,33 @@
# Release History
## 0.8.0 (Unreleased)
## 0.8.0 (2022-07-22)

### New Features:
- Added keyword only argument `statement_params` to the following methods to allow for specifying statement level parameters:
- `collect`, `to_local_iterator`, `to_pandas`, `to_pandas_batches`,
`count`, `copy_into_table`, `show`, `create_or_replace_view`, `create_or_replace_temp_view`, `first`, `cache_result`
and `random_split` on class `snowflake.snowpark.Dateframe`
- `update`, `delete` and `merge` on class `snowflake.snowpark.Table`
- `save_as_table` and `copy_into_location` on class `snowflake.snowpark.DataFrameWriter`
- `approx_quantile`, `statement_params`, `cov` and `crosstab` on class `snowflake.snowpark.DataFrameStatFunctions`
- `register` and `register_from_file` on class `snowflake.snowpark.udf.UDFRegistration`
- `register` and `register_from_file` on class `snowflake.snowpark.udtf.UDTFRegistration`
- `register` and `register_from_file` on class `snowflake.snowpark.stored_procedure.StoredProcedureRegistration`
- `udf`, `udtf` and `sproc` in `snowflake.snowpark.functions`
and `random_split` on class `snowflake.snowpark.Dateframe`.
- `update`, `delete` and `merge` on class `snowflake.snowpark.Table`.
- `save_as_table` and `copy_into_location` on class `snowflake.snowpark.DataFrameWriter`.
- `approx_quantile`, `statement_params`, `cov` and `crosstab` on class `snowflake.snowpark.DataFrameStatFunctions`.
- `register` and `register_from_file` on class `snowflake.snowpark.udf.UDFRegistration`.
- `register` and `register_from_file` on class `snowflake.snowpark.udtf.UDTFRegistration`.
- `register` and `register_from_file` on class `snowflake.snowpark.stored_procedure.StoredProcedureRegistration`.
- `udf`, `udtf` and `sproc` in `snowflake.snowpark.functions`.
- Added support for `Column` as an input argument to `session.call()`.
- Added support for `table_type` in `df.write.save_as_table()`. You can now choose from these `table_type` options: `"temporary"`, `"temp"`, and `"transient"`.

### Improvements:
- Added validation of object name in `session.use_*` methods.
- Updated the query tag in SQL to escape it when it has special characters.
- Added a check to see if Anaconda terms are acknowledged when adding missing packages.

### Bug Fixes:
- Fixed the limited length of the string column in `session.create_dataframe()`.
- Fixed a bug in which `session.create_dataframe()` mistakenly converted 0 and `False` to `None` when the input data was only a list.
- Fixed a bug in which calling `session.create_dataframe()` using a large local dataset sometimes created a temp table twice.
- Aligned the definition of `function.trim()` with the SQL function definition.
- Fixed an issue where snowpark-python would hang when using the Python system-defined (built-in function) `sum` vs. the Snowpark `function.sum()`.


## 0.7.0 (2022-05-25)

Expand All @@ -28,7 +43,7 @@
- Updated `Session.table_function()` and `DataFrame.join_table_function()` to accept `TableFunctionCall` instances.

### Breaking Changes:
- Wnen creating a function with `functions.udf()` and `functions.sproc()`, you can now specify an empty list for the `imports` or `packages` argument to indicate that no import or package is used for this UDF or stored procedure. Previously, specifying an empty list meant that the function would use session-level imports or packages.
- When creating a function with `functions.udf()` and `functions.sproc()`, you can now specify an empty list for the `imports` or `packages` argument to indicate that no import or package is used for this UDF or stored procedure. Previously, specifying an empty list meant that the function would use session-level imports or packages.
- Improved the `__repr__` implementation of data types in `types.py`. The unused `type_name` property has been removed.
- Added a Snowpark-specific exception class for SQL errors. This replaces the previous `ProgrammingError` from the Python connector.

Expand Down
2 changes: 1 addition & 1 deletion recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% set name = "snowflake-snowpark-python" %}
{% set version = "0.7.0" %}
{% set version = "0.8.0" %}

package:
name: {{ name|lower }}
Expand Down
2 changes: 1 addition & 1 deletion src/snowflake/snowpark/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
#

# Update this for the versions
VERSION = (0, 7, 0)
VERSION = (0, 8, 0)

0 comments on commit 510b2b5

Please sign in to comment.