pub fn prepare_plan(&self, plan: &LogicalPlan) -> Result<Arc<dyn ExecutionPlan>> {
        debug!(text=%plan.display_indent_schema(), "prepare_plan: initial plan");

        let plan = self.inner.optimize(plan)?;
        trace!(text=%plan.display_indent_schema(), graphviz=%plan.display_graphviz(), "optimized plan");

        let physical_plan = self.inner.create_physical_plan(&plan)?;

        debug!(text=%displayable(physical_plan.as_ref()).indent(), "prepare_plan: plan to run");
        Ok(physical_plan)
    }
/// Prepare (optimize + plan) a pre-created logical plan for execution
Prepare (optimize + plan) a pre-created logical plan for execution
Prepare ( optimize + plan ) a pre - created logical plan for execution
pub fn prepare_plan(&self, plan: &LogicalPlan) -> Result<Arc<dyn ExecutionPlan>> {
        debug!(text=%plan.display_indent_schema(), "prepare_plan: initial plan");
        let plan = self.inner.optimize(plan)?;
        trace!(text=%plan.display_indent_schema(), graphviz=%plan.display_graphviz(), "optimized plan");
        let physical_plan = self.inner.create_physical_plan(&plan)?;
        debug!(text=%displayable(physical_plan.as_ref()).indent(), "prepare_plan: plan to run");
        Ok(physical_plan)
    }
pub fn prepare_plan ( & self , plan : & LogicalPlan ) -> Result < Arc < dyn ExecutionPlan > > { debug ! ( text plan display_indent_schema ( ) " " ) ; let plan = self . inner . optimize ( plan ) ? ; trace ! ( text plan display_indent_schema ( ) graphviz plan display_graphviz ( ) " " ) ; let physical_plan = self . inner . create_physical_plan ( & plan ) ? ; debug ! ( text displayable ( physical_plan as_ref ( ) ) indent ( ) " " ) ; Ok ( physical_plan ) }
Prepare (optimize + plan) a pre-created logical plan for execution
Prepare ( optimize + plan ) a pre - created logical plan for execution
&self
plan
&LogicalPlan
&self
plan
&LogicalPlan