Skip to content

Expose PhysicalOptimizerRule via FFI #20450

Description

@timsaucer

Is your feature request related to a problem or challenge?

It is desirable for downstream users, specifically datafusion-python, to add methods to enable users to have custom physical plan optimizers. One specific case is datafusion-distributed which works by rewriting the physical plan to do network shuffling. If we expose PhysicalOptimizerRule in the FFI crate, it would enable adding this feature downstream.

Describe the solution you'd like

Create a FFI_PhysicalOptimizerRule and implement it's methods in a FFI-safe manner.

Describe alternatives you've considered

No response

Additional context

In order to support this we need two additional PRs to merge first:

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions