askalt opened a new issue, #12120: URL: https://github.com/apache/datafusion/issues/12120
### Is your feature request related to a problem or challenge? I use the implementation of several TableProviders that allow for concurrent modification of the logical plan they store. A bit of context: this is necessary for implementing mutable views. Several views depend on view A and have TableProvider(A) in their logical plan. Then, when view A is modified, the logical plan for it is updated via some synchronization primitive, so all dependent views see the updated plan. I would like the plans for the views to be inlined during the optimization phase in my implementation. However, the current TableProvider API forces me to return a shared reference to the internal logical plan for inlining, even though a copy would suffice. I propose adding a `get_logical_plan_cloned(...)` method to the TableProvider trait, which would be used by passes that don't require a shared reference to the internal logical plan. ### Describe the solution you'd like _No response_ ### Describe alternatives you've considered _No response_ ### Additional context _No response_ -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
