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:
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 isdatafusion-distributedwhich works by rewriting the physical plan to do network shuffling. If we exposePhysicalOptimizerRulein the FFI crate, it would enable adding this feature downstream.Describe the solution you'd like
Create a
FFI_PhysicalOptimizerRuleand 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: