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
On this page
Latest version 2.0.1, released November 20, 2026. Source repository
Its 2.0.0 release requires Python 3.11 or later. Python end of life dates.
duckdb 2.0.1 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 - Behavior changed
Timezone-aware values are converted with zoneinfo rather than pytz, so code that depends on pytz tzinfo objects must change. github.com - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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
duckdb 2.0.0 breaking changes
- Removed
The package now requires Python 3.11 or later. Users on Python 3.10 must upgrade their interpreter. github.com - Removed
duckdb.experimental.spark.sql.functions.LambdaExpression
duckdb.experimental.spark.sql.functions.LambdaExpression was removed in duckdb 2.0.0 pypi.org - 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 - 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 - Removed
duckdb.pl
pl() on a con.execute() result is gone. Call pl() on the relation from con.sql() instead. pypi.org - Removed
execute
execute() on a relation is gone. Run the query through con.execute() instead. github.com - Removed
fetch_df_chunk
fetch_df_chunk() on a relation is gone. Use limit(n).df() for batches. github.com - Removed
fetchmany
fetchmany() on a relation is gone. Use to_arrow_reader() or limit(n).df() for batches. github.com - Removed
fetchone
fetchone() on a relation is gone. Use limit(1).fetchall() instead. github.com - Behavior changed
Using an expression in a boolean context raises. Combine conditions with &, | and ~. github.com
And 77 more in this version. Sign up to see every change
duckdb 1.5.0 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 - Removed
duckdb.experimental.spark.sql.types.TimestampMilisecondNTZType
duckdb.experimental.spark.sql.types.TimestampMilisecondNTZType was removed in duckdb 1.5.0 pypi.org - Removed
duckdb.functional
The duckdb.functional module, deprecated in 1.4.0, is removed. Import from duckdb.func instead. pypi.org - Removed
duckdb.typing
The duckdb.typing module, deprecated in 1.4.0, is removed. Import from duckdb.sqltypes instead. pypi.org - Renamed
duckdb.TimestampMilisecondValue
Use duckdb.TimestampMillisecondValue instead. pypi.org - 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 - Behavior changed
The minimum supported Python version is now 3.10. Users on Python 3.9 must upgrade. github.com - 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
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The 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.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.