Skip to content

Commit 29db86e

Browse files
Release notes for 0.321.0
Co-authored-by: bitsondatadev <[email protected]> Co-authored-by: Ashhar Hasan <[email protected]>
1 parent ea55fc0 commit 29db86e

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

CHANGES.md

+37
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,43 @@ list](https://github.com/trinodb/trino-python-client/tags), the
66
[README](https://github.com/trinodb/trino-python-client/blob/master/README.md)
77
and the [PyPI page](https://pypi.org/project/trino/).
88

9+
## Release 0.321.0
10+
11+
* Add support for SQLAlchemy 2.0.
12+
([#307](https://github.com/trinodb/trino-python-client/issues/307))
13+
* Add support for `varbinary` query parameters.
14+
([#299](https://github.com/trinodb/trino-python-client/issues/299))
15+
* Add `Cursor.describe` method to return some metadata about the results of a
16+
query.
17+
([#302](https://github.com/trinodb/trino-python-client/issues/302))
18+
* Add `internal_size`, `precision` and `scale` in `Cursor.description`.
19+
([#315](https://github.com/trinodb/trino-python-client/issues/315))
20+
* Add support for chaining methods on `Cursor.execute`.
21+
([#279](https://github.com/trinodb/trino-python-client/issues/279))
22+
* Fix bug where passing `roles` to `Connection` did not enable the provided roles.
23+
([#311](https://github.com/trinodb/trino-python-client/issues/311))
24+
25+
### Breaking Changes
26+
27+
* The client now maps query results to Python types by default. In older
28+
versions this could be enabled explicitly by passing
29+
`experimental_python_types=True` to the `trino.dbapi.connect` method. To
30+
restore the old behaviour of mapping results to primitive types you can pass
31+
`legacy_primitive_types=True` to the `trino.dbapi.connect` method. See the
32+
[documentation](https://github.com/trinodb/trino-python-client#legacy-primitive-types)
33+
to learn more.
34+
([#305](https://github.com/trinodb/trino-python-client/issues/305))
35+
* Add support for setting the session timezone. When not set explicitly it
36+
defaults to the client side local timezone. This changes the behaviour of the
37+
client in backward-incompatible way. To preserve the behaviour from client
38+
versions older than 0.321.0 you can explicitly pass `timezone='UTC'` to
39+
`trino.dbapi.connect` when creating the connection.
40+
([#27](https://github.com/trinodb/trino-python-client/issues/27))
41+
* Add support for variable precision datetime types. This change makes temporal
42+
types contain the correct precision as computed by Trino instead of being
43+
always limited to millisecond precision.
44+
([#300](https://github.com/trinodb/trino-python-client/issues/300))
45+
946
## Release 0.320.0
1047

1148
* Fix handling of expired access tokens when using OAuth 2 authentication.

0 commit comments

Comments
 (0)