Skip to content

Fix/python udf refcount leak#2

Closed
Schwarf wants to merge 31 commits into
mainfrom
fix/python-udf-refcount-leak
Closed

Fix/python udf refcount leak#2
Schwarf wants to merge 31 commits into
mainfrom
fix/python-udf-refcount-leak

Conversation

@Schwarf

@Schwarf Schwarf commented Jan 3, 2026

Copy link
Copy Markdown
Owner

No description provided.

staticlibs and others added 30 commits October 17, 2025 18:18
This change makes all CMake targets to use `-MT`/`-MTd` compilation
flags for Windows MSVC builds. This way the MSVC runtime library is
linked statically and the workaround for VS2019 described in
duckdb/duckdb#17991 is no longer necessary.

`extension-ci-tools` PR: duckdb/extension-ci-tools#276

Ref: duckdblabs/duckdb-internal#2036
Bump duckdb submodule:
- Target branch: main
- Date: 2025-12-30 05:56:41
- DuckDB SHA: 9fffe278189182bc4538dfe99e4c885d3d45db27
- Trigger:
https://github.com/duckdb/duckdb-python/actions/runs/20589697308
…ues to avoid leaking Python objects during scalar UDF execution.
Fixes ADBC tests to align with changes made in
duckdb/duckdb#20344
Fixes duckdb/duckdb#20329

`DuckDBPyRelation.select_dtypes` failed for relations with column names
that
require quoting (e.g., names containing spaces). The projection builder
did
not correctly quote identifiers, leading to binder errors.

This change ensures identifiers are quoted consistently and adds a
regression
test to cover the reported case.
This fixes a bug in the cmake function that checks whether we should
include jemalloc in our extension list. Should make sure that jemalloc
not included on Windows.
The jemalloc extension's symbols can't be found. There might be a deeper
issue at play here, but there isn't really any reason to use jemalloc by
default, so let's remove that first.
This change makes all CMake targets to use `-MT`/`-MTd` compilation
flags for Windows MSVC builds. This way the MSVC runtime library is
linked statically and the workaround for VS2019 described in
duckdb/duckdb#17991 is no longer necessary.

`extension-ci-tools` PR: duckdb/extension-ci-tools#276

Ref: duckdblabs/duckdb-internal#2036
Fixes duckdb#209

The type stub for `DuckDBPyRelation.aggregate` incorrectly restricts the
`aggr_expr` parameter to `Expression | str`. However, the DuckDB Python
API
and runtime behavior also support passing a list of `Expression` objects
for
multiple aggregations.

The fix extends the type annotation to include `list[Expression]`,
aligning
the stub definition with the actual supported API behavior.
``` 
   def aggregate(
        self, aggr_expr: Expression | str | list[Expression], group_expr: Expression | str = ""
    ) -> DuckDBPyRelation: ...
```
@Schwarf Schwarf closed this Jan 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants