dependabot[bot] opened a new pull request, #4565: URL: https://github.com/apache/iceberg-python/pull/4565
Bumps [duckdb](https://github.com/duckdb/duckdb-python) from 2.0.0 to 2.0.1. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/duckdb/duckdb-python/releases">duckdb's releases</a>.</em></p> <blockquote> <h2>v2.0.1 Bugfix Release</h2> <p>DuckDB Python 2.0.1 is a bugfix release for the 2.0 line. It fixes the hangs and crashes at interpreter exit that 2.0.0 introduced, a number of wrong results when scanning pandas, numpy, Arrow and polars data, and several long-standing conversion bugs. It ships DuckDB v2.0.1.</p> <h2>Exit and shutdown</h2> <ul> <li>A script that ends with an open result over a pandas object column no longer hangs at exit. Every live result is now ended by the module's exit hook, before the interpreter finalizes, including Arrow readers and capsules exported from a result (<a href="https://redirect.github.com/duckdb/duckdb-python/issues/709">#709</a>).</li> <li>A process whose daemon threads still run queries over Python data no longer crashes or hangs at exit on Python 3.14. A query that starts after the exit handlers ran fails with <code>InvalidInputException: the Python interpreter is shutting down</code> instead (<a href="https://redirect.github.com/duckdb/duckdb-python/issues/719">#719</a>, fixes <a href="https://redirect.github.com/duckdb/duckdb-python/issues/714">#714</a>).</li> <li>The <code>nanobind: leaked N instances!</code> report at exit is gone from release builds. Debug and assertion builds keep it (<a href="https://redirect.github.com/duckdb/duckdb-python/issues/784">#784</a>, fixes <a href="https://redirect.github.com/duckdb/duckdb-python/issues/732">#732</a> and <a href="https://redirect.github.com/duckdb/duckdb-python/issues/736">#736</a>). We're following up with better object tracking to prevent the leaks from happening.</li> <li>A <code>map()</code> function that calls <code>sys.exit()</code> no longer ends or hangs the process; it raises an engine error like every other exception from the function (<a href="https://redirect.github.com/duckdb/duckdb-python/issues/746">#746</a>).</li> </ul> <h2>Results and conversion</h2> <ul> <li>A fetch whose conversion fails, such as invalid UTF-8 in a VARCHAR or a Python error from a datetime conversion, now ends its result. The next statement runs instead of failing with <code>ResourceInUseException</code> (<a href="https://redirect.github.com/duckdb/duckdb-python/issues/712">#712</a>).</li> <li><code>TIMESTAMPTZ</code> values are converted to Python through <code>zoneinfo</code> instead of <code>pytz</code>. A clean install no longer fails with "Required module 'pytz' failed to import", and instants from 2038 on get the right DST offset (<a href="https://redirect.github.com/duckdb/duckdb-python/issues/710">#710</a>, <a href="https://redirect.github.com/duckdb/duckdb-python/issues/406">#406</a> and <a href="https://redirect.github.com/duckdb/duckdb-python/issues/579">#579</a>).</li> <li>Comparing a DuckDB type with a Python class no longer constructs the class. A class is read as a numpy scalar type only when it is a concrete subclass of <code>numpy.generic</code>; a <code>KeyboardInterrupt</code> raised while an operand converts reaches the caller instead of being swallowed. Lone surrogates in identifiers and SQL text are refused with a clear error (<a href="https://redirect.github.com/duckdb/duckdb-python/issues/747">#747</a>).</li> </ul> <h2>Scanning pandas, numpy and Arrow data</h2> <ul> <li>A pandas 2 categorical read through a strided view (<code>df[::2]</code>, <code>iloc[1::2]</code>) returned the rows of the full column. Strided and reversed views, tuples of arrays and pandas 2 Series now read correctly or are refused with a clear error instead of <code>std::bad_cast</code> (<a href="https://redirect.github.com/duckdb/duckdb-python/issues/711">#711</a>).</li> <li>A sliced numeric numpy column (<code>iloc[1::3]</code>) could read wrong values (<a href="https://redirect.github.com/duckdb/duckdb-python/issues/724">#724</a>).</li> <li><code>con.append</code> and Spark <code>createDataFrame</code> with a schema now convert an object column into the declared column type, cell by cell, instead of sampling the column and silently truncating values the sample missed (<a href="https://redirect.github.com/duckdb/duckdb-python/issues/739">#739</a>).</li> <li><code>con.appender</code> accepts numpy scalars (<a href="https://redirect.github.com/duckdb/duckdb-python/issues/748">#748</a>).</li> <li>pandas 2 dictionary-encoded string columns are read (<a href="https://redirect.github.com/duckdb/duckdb-python/issues/745">#745</a>).</li> <li>The Arrow importer reads three layouts it refused before: a struct or union below an offset, empty lists over a dictionary child, and a run-end encoded child inside a fixed size list. Sliced pyarrow Tables with nested struct columns are the common case (<a href="https://redirect.github.com/duckdb/duckdb-python/issues/730">#730</a>). Arrow refusals now name the column instead of its position (<a href="https://redirect.github.com/duckdb/duckdb-python/issues/745">#745</a>).</li> </ul> <h2>map()</h2> <ul> <li><code>map()</code> keeps its input's column types: an ENUM no longer comes back as TINYINT with NULL as -1, and STRUCT, MAP, ARRAY, UNION, TIME_NS and nested columns no longer fail with a type mismatch. A whole chunk of NULLs in an object column no longer trips the type check (<a href="https://redirect.github.com/duckdb/duckdb-python/issues/744">#744</a>, <a href="https://redirect.github.com/duckdb/duckdb-python/issues/746">#746</a>).</li> </ul> <h2>Views, polars and Parquet pruning</h2> <ul> <li>A view created with <code>to_view</code> or <code>create_view</code> over a relation that reads a file-like object (<code>read_csv(StringIO(...))</code>) keeps working after the relation is collected (<a href="https://redirect.github.com/duckdb/duckdb-python/issues/741">#741</a>, fixes <a href="https://redirect.github.com/duckdb/duckdb-python/issues/477">#477</a>).</li> <li>A polars lazy frame over a DuckDB relation pushes a filter to DuckDB only where it reads the same as polars. A filter that casts the column before comparing, such as a timestamp cast to milliseconds, no longer returns fewer rows than the eager frame (<a href="https://redirect.github.com/duckdb/duckdb-python/issues/740">#740</a>).</li> <li>Parquet row group pruning works for <code>TIMESTAMPTZ</code> and <code>TIME</code> constants that lie between two points of a coarser column, and for points before 1970 (<a href="https://redirect.github.com/duckdb/duckdb-python/issues/745">#745</a>).</li> </ul> <h2>Expression API</h2> <ul> <li>Aggregate calls take an <code>ORDER BY</code> inside the call: <code>col("x").first(order_by=col("t"))</code> and <code>fn("first", col("x")).order_by(col("t"))</code> render <code>"first"("x" ORDER BY "t")</code>. Works with <code>FILTER</code>, <code>IGNORE NULLS</code> and <code>over()</code> (<a href="https://redirect.github.com/duckdb/duckdb-python/issues/713">#713</a>).</li> </ul> <h2>Engine</h2> <ul> <li>Ships DuckDB v2.0.1 (8d78114e9). Behavior that follows the engine: a parse error in SQL that runs aborts the active transaction; <code>EXECUTE</code> of a prepared statement over a <code>register()</code>ed source fails after <code>unregister()</code>; every finite timestamp renders as text; <code>read_json</code> reads DECIMAL from the number's text (<a href="https://redirect.github.com/duckdb/duckdb-python/issues/721">#721</a>, <a href="https://redirect.github.com/duckdb/duckdb-python/issues/729">#729</a>, <a href="https://redirect.github.com/duckdb/duckdb-python/issues/734">#734</a>, <a href="https://redirect.github.com/duckdb/duckdb-python/issues/770">#770</a>, <a href="https://redirect.github.com/duckdb/duckdb-python/issues/772">#772</a>, <a href="https://redirect.github.com/duckdb/duckdb-python/issues/778">#778</a> and the submodule bumps).</li> </ul> <h2>Build and CI</h2> <ul> <li>The macOS wheels no longer carry a 10.7 deployment minimum on the module's objects (<a href="https://redirect.github.com/duckdb/duckdb-python/issues/749">#749</a>).</li> <li>CI test jobs install the test group with <code>uv sync</code> (<a href="https://redirect.github.com/duckdb/duckdb-python/issues/728">#728</a>); the release workflow's S3 staging upload pins the classic transfer client and retries (<a href="https://redirect.github.com/duckdb/duckdb-python/issues/750">#750</a>).</li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/duckdb/duckdb-python/compare/v2.0.0...v2.0.1">https://github.com/duckdb/duckdb-python/compare/v2.0.0...v2.0.1</a></p> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/duckdb/duckdb-python/commit/de8eed775826e6c515af3656a6a88e00559a903b"><code>de8eed7</code></a> Silence nanobind exit leak report (<a href="https://redirect.github.com/duckdb/duckdb-python/issues/784">#784</a>)</li> <li><a href="https://github.com/duckdb/duckdb-python/commit/846a95fbfc0c72d40c9e332742008f5f923cbc1b"><code>846a95f</code></a> Keep the exit leak checks live through a private switch and give duckdb its o...</li> <li><a href="https://github.com/duckdb/duckdb-python/commit/ac3eb2e0851289d9b9e155cb6bc712dcc7b805e6"><code>ac3eb2e</code></a> Silence nanobind's exit leak report in builds without assertions</li> <li><a href="https://github.com/duckdb/duckdb-python/commit/fd05ced4ba53cf352ad63fb1c85ad1dbbe093774"><code>fd05ced</code></a> pin submodule to v2.0.1 release commit</li> <li><a href="https://github.com/duckdb/duckdb-python/commit/169de1912ef2eac7201cfcc07bd08aba6195bf19"><code>169de19</code></a> [duckdb-labs bot] Bump DuckDB submodule (<a href="https://redirect.github.com/duckdb/duckdb-python/issues/781">#781</a>)</li> <li><a href="https://github.com/duckdb/duckdb-python/commit/25d5949b82c3949f8d1b84e84dfc56ec294ffa74"><code>25d5949</code></a> Bump submodule</li> <li><a href="https://github.com/duckdb/duckdb-python/commit/13a4e337a344f29aa883fc0c5d925f4e7399806d"><code>13a4e33</code></a> [duckdb-labs bot] Bump DuckDB submodule (<a href="https://redirect.github.com/duckdb/duckdb-python/issues/780">#780</a>)</li> <li><a href="https://github.com/duckdb/duckdb-python/commit/6819cb74e9b6e5bb14f8f4435b0fbadf8c185baa"><code>6819cb7</code></a> Bump submodule</li> <li><a href="https://github.com/duckdb/duckdb-python/commit/db70c60fd073d7d7c379aea3afb3f6b01cd75362"><code>db70c60</code></a> [duckdb-labs bot] Bump DuckDB submodule (<a href="https://redirect.github.com/duckdb/duckdb-python/issues/779">#779</a>)</li> <li><a href="https://github.com/duckdb/duckdb-python/commit/4d3b766355e62846bf82b19dd07010735b7bd907"><code>4d3b766</code></a> Bump submodule</li> <li>Additional commits viewable in <a href="https://github.com/duckdb/duckdb-python/compare/v2.0.0...v2.0.1">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
