Skip to content

[Python] set_memory_pool() is misleading #47595

@pitrou

Description

@pitrou

Describe the bug, including details regarding any error messages, version, and platform.

The PyArrow set_memory_pool() function does not set the C++ default memory pool, but a separate PyArrow-specific default memory pool (which does not seem to be used everywhere, see #47266 (comment)). So in many cases, calling it does not change the underlying allocator for later operations.

We could either fix this function to set the default C++ memory pool (but we would need to add an API for that), or deprecate it.

Component(s)

Parquet, Python

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions