You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@sedona.apache.org by "jiayuasu (via GitHub)" <gi...@apache.org> on 2026/10/22 06:21:21 UTC
[PR] fix(python/sedonadb): collect DuckDB results with DuckDB 2.0 in the testing helpers [sedona-db]
jiayuasu opened a new pull request, #1481:
URL: https://github.com/apache/sedona-db/pull/1481
## What changes
DuckDB 2.0.0 (released 2026-10-21) removed `arrow()` and `fetch_arrow_table()` from a query result in favor of `to_arrow_table()`. The Python test environment installs the latest DuckDB, so `sedonadb.testing.DuckDB.execute_and_collect()` (`self.con.execute(query).arrow().read_all()`) now fails with `'_duckdb.DuckDBPyConnection' object has no attribute 'arrow'`, and with it seven DuckDB comparison tests (`test_read_sedona_testing[*]` and the DuckDB cases of `test_testing.py`) on `main` and every open PR since then.
`execute_and_collect()` now collects with `to_arrow_table()` where the result has it (DuckDB 2.0, and recent 1.x releases) and with `fetch_arrow_table()` otherwise. Before DuckDB 1.4, `arrow()` also returned a table rather than a reader (so `.read_all()` failed there too); this covers those versions as well.
## Testing
Checked the collection on DuckDB 1.3.2 (`fetch_arrow_table()`), 1.5.6, and 2.0.0 (`to_arrow_table()`): each returns a `pyarrow.Table`, with no deprecation warning. This PR's own CI runs the failing tests with DuckDB 2.0.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@sedona.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] fix(python/sedonadb): collect DuckDB results with DuckDB 2.0 in the testing helpers [sedona-db]
Posted by "jiayuasu (via GitHub)" <gi...@apache.org>.
jiayuasu merged PR #1481:
URL: https://github.com/apache/sedona-db/pull/1481
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@sedona.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org