---
title: "duckdb 2.0.1 Breaking Changes on PyPI | Since.dev"
description: "What each duckdb release removed, renamed or changed: 129 breaking changes in 3 versions on PyPI, each with its source."
canonical_url: https://since.dev/packages/pypi/duckdb
last_updated: 2026-12-04
---

# duckdb breaking changes

duckdb 2.0.1 (November 20, 2026) is its newest release with breaking changes, 34 of them. The first: Lone surrogates in identifiers and SQL text are now refused in duckdb 2.0.1. Every breaking API change we have recorded in duckdb on PyPI: 129 breaking changes in 3 versions. Below, its 3 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `2.0.1`, released November 20, 2026. [Source repository](https://github.com/duckdb/duckdb-python)

Its 2.0.0 release requires [Python 3.11](https://since.dev/calendar/python/3.11.md) or later. [Python end of life dates](https://since.dev/calendar/python.md).

- From [1.5.0](#v-1-5-0) to [2.0.1](#v-2-0-1): 121 breaking changes in 2 versions.

## duckdb 2.0.1 breaking changes

duckdb 2.0.1, released November 20, 2026: 34 breaking changes.

- **Behavior changed**  

Identifiers and SQL text containing lone surrogates raise a clear error instead of being accepted, so such input must be cleaned up. [github.com](https://github.com/duckdb/duckdb-python/releases/tag/v2.0.1)
- **Behavior changed**  

Timezone-aware values are converted with zoneinfo rather than pytz, so code that depends on pytz tzinfo objects must change. [github.com](https://github.com/duckdb/duckdb-python/releases/tag/v2.0.1)
- **Behavior changed**  

EXECUTE of a prepared statement over a register()ed source fails after unregister() is called, so code must not rely on the prepared statement after unregistering. [github.com](https://github.com/duckdb/duckdb-python/releases/tag/v2.0.1)
- **Behavior changed**  

After a parse error in SQL that runs, the active transaction is aborted, so code that continued the transaction must handle this. [github.com](https://github.com/duckdb/duckdb-python/releases/tag/v2.0.1)
- **Behavior changed** `con.append`  

An object column is converted to the declared column type value by value rather than by sampling, so values that were previously truncated are now converted. [github.com](https://github.com/duckdb/duckdb-python/releases/tag/v2.0.1)
- **Behavior changed** `map`  

Output columns of map() now keep the input column types, so an ENUM column comes back as ENUM rather than TINYINT. [github.com](https://github.com/duckdb/duckdb-python/releases/tag/v2.0.1)
- **Behavior changed** `read_json`  

DECIMAL values read by read_json now come from the number's text, which can change the values returned. [github.com](https://github.com/duckdb/duckdb-python/releases/tag/v2.0.1)
- **Signature changed** `duckdb.Expression.any_value`  

Was def any_value(self, \*args: ValueOrExpr) -> Expression; now def any_value(self, \*args: ValueOrExpr, order_by: Exprs | None = None) -> Expression. [pypi.org](https://pypi.org/project/duckdb/2.0.1/)
- **Signature changed** `duckdb.Expression.arg_max`  

Was def arg_max(self, \*args: ValueOrExpr) -> Expression; now def arg_max(self, \*args: ValueOrExpr, order_by: Exprs | None = None) -> Expression. [pypi.org](https://pypi.org/project/duckdb/2.0.1/)
- **Signature changed** `duckdb.Expression.arg_min`  

Was def arg_min(self, \*args: ValueOrExpr) -> Expression; now def arg_min(self, \*args: ValueOrExpr, order_by: Exprs | None = None) -> Expression. [pypi.org](https://pypi.org/project/duckdb/2.0.1/)
- **Signature changed** `duckdb.Expression.array_agg`  

Was def array_agg(self, \*args: ValueOrExpr) -> Expression; now def array_agg(self, \*args: ValueOrExpr, order_by: Exprs | None = None) -> Expression. [pypi.org](https://pypi.org/project/duckdb/2.0.1/)
- **Signature changed** `duckdb.Expression.avg`  

Was def avg(self, \*args: ValueOrExpr) -> Expression; now def avg(self, \*args: ValueOrExpr, order_by: Exprs | None = None) -> Expression. [pypi.org](https://pypi.org/project/duckdb/2.0.1/)
- **Signature changed** `duckdb.Expression.bit_and`  

Was def bit_and(self, \*args: ValueOrExpr) -> Expression; now def bit_and(self, \*args: ValueOrExpr, order_by: Exprs | None = None) -> Expression. [pypi.org](https://pypi.org/project/duckdb/2.0.1/)
- **Signature changed** `duckdb.Expression.bit_or`  

Was def bit_or(self, \*args: ValueOrExpr) -> Expression; now def bit_or(self, \*args: ValueOrExpr, order_by: Exprs | None = None) -> Expression. [pypi.org](https://pypi.org/project/duckdb/2.0.1/)
- **Signature changed** `duckdb.Expression.bool_and`  

Was def bool_and(self, \*args: ValueOrExpr) -> Expression; now def bool_and(self, \*args: ValueOrExpr, order_by: Exprs | None = None) -> Expression. [pypi.org](https://pypi.org/project/duckdb/2.0.1/)
- **Signature changed** `duckdb.Expression.bool_or`  

Was def bool_or(self, \*args: ValueOrExpr) -> Expression; now def bool_or(self, \*args: ValueOrExpr, order_by: Exprs | None = None) -> Expression. [pypi.org](https://pypi.org/project/duckdb/2.0.1/)
- **Signature changed** `duckdb.Expression.count`  

Was def count(self, \*args: ValueOrExpr) -> Expression; now def count(self, \*args: ValueOrExpr, order_by: Exprs | None = None) -> Expression. [pypi.org](https://pypi.org/project/duckdb/2.0.1/)
- **Signature changed** `duckdb.Expression.entropy`  

Was def entropy(self, \*args: ValueOrExpr) -> Expression; now def entropy(self, \*args: ValueOrExpr, order_by: Exprs | None = None) -> Expression. [pypi.org](https://pypi.org/project/duckdb/2.0.1/)
- **Signature changed** `duckdb.Expression.first`  

Was def first(self, \*args: ValueOrExpr) -> Expression; now def first(self, \*args: ValueOrExpr, order_by: Exprs | None = None) -> Expression. [pypi.org](https://pypi.org/project/duckdb/2.0.1/)
- **Signature changed** `duckdb.Expression.kurtosis`  

Was def kurtosis(self, \*args: ValueOrExpr) -> Expression; now def kurtosis(self, \*args: ValueOrExpr, order_by: Exprs | None = None) -> Expression. [pypi.org](https://pypi.org/project/duckdb/2.0.1/)
- **Signature changed** `duckdb.Expression.last`  

Was def last(self, \*args: ValueOrExpr) -> Expression; now def last(self, \*args: ValueOrExpr, order_by: Exprs | None = None) -> Expression. [pypi.org](https://pypi.org/project/duckdb/2.0.1/)
- **Signature changed** `duckdb.Expression.max`  

Was def max(self, \*args: ValueOrExpr) -> Expression; now def max(self, \*args: ValueOrExpr, order_by: Exprs | None = None) -> Expression. [pypi.org](https://pypi.org/project/duckdb/2.0.1/)
- **Signature changed** `duckdb.Expression.mean`  

Was def mean(self, \*args: ValueOrExpr) -> Expression; now def mean(self, \*args: ValueOrExpr, order_by: Exprs | None = None) -> Expression. [pypi.org](https://pypi.org/project/duckdb/2.0.1/)
- **Signature changed** `duckdb.Expression.median`  

Was def median(self, \*args: ValueOrExpr) -> Expression; now def median(self, \*args: ValueOrExpr, order_by: Exprs | None = None) -> Expression. [pypi.org](https://pypi.org/project/duckdb/2.0.1/)
- **Signature changed** `duckdb.Expression.min`  

Was def min(self, \*args: ValueOrExpr) -> Expression; now def min(self, \*args: ValueOrExpr, order_by: Exprs | None = None) -> Expression. [pypi.org](https://pypi.org/project/duckdb/2.0.1/)
- **Signature changed** `duckdb.Expression.mode`  

Was def mode(self, \*args: ValueOrExpr) -> Expression; now def mode(self, \*args: ValueOrExpr, order_by: Exprs | None = None) -> Expression. [pypi.org](https://pypi.org/project/duckdb/2.0.1/)
- **Signature changed** `duckdb.Expression.product`  

Was def product(self, \*args: ValueOrExpr) -> Expression; now def product(self, \*args: ValueOrExpr, order_by: Exprs | None = None) -> Expression. [pypi.org](https://pypi.org/project/duckdb/2.0.1/)
- **Signature changed** `duckdb.Expression.quantile`  

Was def quantile(self, \*args: ValueOrExpr) -> Expression; now def quantile(self, \*args: ValueOrExpr, order_by: Exprs | None = None) -> Expression. [pypi.org](https://pypi.org/project/duckdb/2.0.1/)
- **Signature changed** `duckdb.Expression.quantile_cont`  

Was def quantile_cont(self, \*args: ValueOrExpr) -> Expression; now def quantile_cont(self, \*args: ValueOrExpr, order_by: Exprs | None = None) -> Expression. [pypi.org](https://pypi.org/project/duckdb/2.0.1/)
- **Signature changed** `duckdb.Expression.skewness`  

Was def skewness(self, \*args: ValueOrExpr) -> Expression; now def skewness(self, \*args: ValueOrExpr, order_by: Exprs | None = None) -> Expression. [pypi.org](https://pypi.org/project/duckdb/2.0.1/)
- **Signature changed** `duckdb.Expression.std`  

Was def std(self, \*args: ValueOrExpr) -> Expression; now def std(self, \*args: ValueOrExpr, order_by: Exprs | None = None) -> Expression. [pypi.org](https://pypi.org/project/duckdb/2.0.1/)
- **Signature changed** `duckdb.Expression.string_agg`  

Was def string_agg(self, \*args: ValueOrExpr) -> Expression; now def string_agg(self, \*args: ValueOrExpr, order_by: Exprs | None = None) -> Expression. [pypi.org](https://pypi.org/project/duckdb/2.0.1/)
- **Signature changed** `duckdb.Expression.sum`  

Was def sum(self, \*args: ValueOrExpr) -> Expression; now def sum(self, \*args: ValueOrExpr, order_by: Exprs | None = None) -> Expression. [pypi.org](https://pypi.org/project/duckdb/2.0.1/)
- **Signature changed** `duckdb.Expression.var`  

Was def var(self, \*args: ValueOrExpr) -> Expression; now def var(self, \*args: ValueOrExpr, order_by: Exprs | None = None) -> Expression. [pypi.org](https://pypi.org/project/duckdb/2.0.1/)

## duckdb 2.0.0 breaking changes

duckdb 2.0.0, released October 21, 2026: 87 breaking changes.

- **Removed**  

The package now requires Python 3.11 or later. Users on Python 3.10 must upgrade their interpreter. [github.com](https://github.com/duckdb/duckdb-python/releases/tag/v2.0.0)
- **Removed** `duckdb.experimental.spark.sql.functions.LambdaExpression`  

duckdb.experimental.spark.sql.functions.LambdaExpression was removed in duckdb 2.0.0 [pypi.org](https://pypi.org/project/duckdb/2.0.0/)
- **Removed** `duckdb.fetch_arrow_table`  

fetch_arrow_table on a con.execute() result is gone. Use con.sql(query).to_arrow_table() instead. [pypi.org](https://pypi.org/project/duckdb/2.0.0/)
- **Removed** `duckdb.fetch_record_batch`  

fetch_record_batch on a con.execute() result is gone. Use con.sql(query).to_arrow_reader() instead. [pypi.org](https://pypi.org/project/duckdb/2.0.0/)
- **Removed** `duckdb.pl`  

pl() on a con.execute() result is gone. Call pl() on the relation from con.sql() instead. [pypi.org](https://pypi.org/project/duckdb/2.0.0/)
- **Removed** `execute`  

execute() on a relation is gone. Run the query through con.execute() instead. [github.com](https://github.com/duckdb/duckdb-python/releases/tag/v2.0.0)
- **Removed** `fetch_df_chunk`  

fetch_df_chunk() on a relation is gone. Use limit(n).df() for batches. [github.com](https://github.com/duckdb/duckdb-python/releases/tag/v2.0.0)
- **Removed** `fetchmany`  

fetchmany() on a relation is gone. Use to_arrow_reader() or limit(n).df() for batches. [github.com](https://github.com/duckdb/duckdb-python/releases/tag/v2.0.0)
- **Removed** `fetchone`  

fetchone() on a relation is gone. Use limit(1).fetchall() instead. [github.com](https://github.com/duckdb/duckdb-python/releases/tag/v2.0.0)
- **Behavior changed**  

Using an expression in a boolean context raises. Combine conditions with &, | and \~. [github.com](https://github.com/duckdb/duckdb-python/releases/tag/v2.0.0)

And 77 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## duckdb 1.5.0 breaking changes

duckdb 1.5.0, released March 9, 2026: 8 breaking changes.

- **Removed** `duckdb.experimental.spark.sql.type_utils.TimestampMilisecondNTZType`  

duckdb.experimental.spark.sql.type_utils.TimestampMilisecondNTZType was removed in duckdb 1.5.0 [pypi.org](https://pypi.org/project/duckdb/1.5.0/)
- **Removed** `duckdb.experimental.spark.sql.types.TimestampMilisecondNTZType`  

duckdb.experimental.spark.sql.types.TimestampMilisecondNTZType was removed in duckdb 1.5.0 [pypi.org](https://pypi.org/project/duckdb/1.5.0/)
- **Removed** `duckdb.functional`  

The duckdb.functional module, deprecated in 1.4.0, is removed. Import from duckdb.func instead. [pypi.org](https://pypi.org/project/duckdb/1.5.0/)
- **Removed** `duckdb.typing`  

The duckdb.typing module, deprecated in 1.4.0, is removed. Import from duckdb.sqltypes instead. [pypi.org](https://pypi.org/project/duckdb/1.5.0/)
- **Renamed** `duckdb.TimestampMilisecondValue`  

Use duckdb.TimestampMillisecondValue instead. [pypi.org](https://pypi.org/project/duckdb/1.5.0/)
- **Renamed** `min`  

In relational API functions such as min, max, sum and mean, the column parameter is now named expression. Update keyword arguments. [github.com](https://github.com/duckdb/duckdb-python/releases/tag/v1.5.0)
- **Behavior changed**  

The minimum supported Python version is now 3.10. Users on Python 3.9 must upgrade. [github.com](https://github.com/duckdb/duckdb-python/releases/tag/v1.5.0)
- **Signature changed** `duckdb.experimental.spark.sql.types.Row.__new__`  

Was def \_\_new\_\_(cls, \*args: Optional\[str\], \*\*kwargs: Optional\[Any\]) -> Row; now def \_\_new\_\_(cls, \*args: str | None, \*\*kwargs: Any | None) -> Self. [pypi.org](https://pypi.org/project/duckdb/1.5.0/)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
