doki23 commented on PR #7775: URL: https://github.com/apache/arrow-datafusion/pull/7775#issuecomment-1757533139
There are some functions taking borrow of plan and return a new plan like: ```rust pub fn optimize(&self, plan: &LogicalPlan) -> Result<LogicalPlan> ``` If we wrap plan with `Arc`, we still cannot avoid some clones. How about `Arc<RefCell<LogicalPlan>>`? We can return a new plan by changing the original plan by `plan.borrow_mut()`. -- 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]
