mingmwang commented on PR #5630:
URL: 
https://github.com/apache/arrow-datafusion/pull/5630#issuecomment-1486173489

   I think this method can be removed.
   
   ```rust
   pub fn optimize_children(
       optimizer: &impl PhysicalOptimizerRule,
       plan: Arc<dyn ExecutionPlan>,
       config: &ConfigOptions,
   ) -> Result<Arc<dyn ExecutionPlan>> {
       let children = plan
           .children()
           .iter()
           .map(|child| optimizer.optimize(Arc::clone(child), config))
           .collect::<Result<Vec<_>>>()?;
   
       if children.is_empty() {
           Ok(Arc::clone(&plan))
       } else {
           with_new_children_if_necessary(plan, children).map(Transformed::into)
       }
   }
   ```


-- 
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]

Reply via email to