Function datafusion::physical_plan::with_new_children_if_necessary
source ยท pub fn with_new_children_if_necessary(
plan: Arc<dyn ExecutionPlan>,
children: Vec<Arc<dyn ExecutionPlan>>,
) -> Result<Arc<dyn ExecutionPlan>, DataFusionError>
Expand description
Returns a copy of this plan if we change any child according to the pointer comparison.
The size of children
must be equal to the size of ExecutionPlan::children()
.