Skip to content

Commit c3da55b

Browse files
committed
Add 0.317.0 release notes
1 parent b4bd746 commit c3da55b

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

CHANGES.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,36 @@ 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+
## Trino Python client 0.317.0
10+
11+
* Add support for creating tables containing `JSON` columns and reading and
12+
writing to them with SQLAlchemy.
13+
([#194](https://trinodb/trino-python-client/issues/194))
14+
* Add support for setting roles by passing a dictionary of catalog name and
15+
role as the `roles` keyword argument to `trino.dbapi.connect`.
16+
([#230](https://trinodb/trino-python-client/issues/230))
17+
* Add support for setting roles by adding the `roles` URL query parameter in
18+
SQLAlchemy connections to a JSON object with keys as the catalog name and
19+
values as the role name.
20+
([#230](https://trinodb/trino-python-client/issues/230))
21+
* Fix query failures not being propagated to the client when using `fetchone`.
22+
([#95](https://trinodb/trino-python-client/issues/95))
23+
* Fix queries returning a single row from sometimes appearing as failed on the
24+
server. ([#220](https://trinodb/trino-python-client/issues/220))
25+
* Fix query failures when using SQLAlchemy `TableClause` by not performing
26+
catalog lookup. ([#237](https://trinodb/trino-python-client/issues/237))
27+
* Fix errors when using prepared statements with Trino versions greater than or
28+
equal to 398. ([#242](https://trinodb/trino-python-client/issues/242))
29+
30+
### Breaking Changes
31+
32+
* Block the `execute` method of the cursor until at least one row is received.
33+
Users no longer need to call `fetchone` or `fetchall` to ensure query starts
34+
executing on the Trino server. Note that results still need to be consumed by
35+
calling `fetchone` or `fetchall` to ensure that a query isn't considered idle
36+
and terminated on the server.
37+
([#232](https://trinodb/trino-python-client/issues/232))
38+
939
## Trino Python client 0.316.0
1040

1141
* Add support for SQLAlchemy queries to access multiple catalogs by specifying

0 commit comments

Comments
 (0)