pub fn new_orphan(&self) -> Arc<HashAggregateExec> {
        let mut projection = None;
        if let Some(memory_exec) = self.input().as_any().downcast_ref::<MemoryExec>() {
            projection = memory_exec.projection().clone();
        }
        let memory_exec = MemoryExec::try_new(&vec![], self.schema(), projection).unwrap();
        Arc::new(HashAggregateExec {
            input: Arc::new(memory_exec),
            mode: self.mode.clone(),
            group_expr: self.group_expr.clone(),
            aggr_expr: self.aggr_expr.clone(),
            schema: self.schema().clone(),
            input_schema: self.input_schema().clone(),
            metrics: self.metrics.clone(),
        })
    }
/// Get new orphan of execution plan
Get new orphan of execution plan
Get new orphan of execution plan
pub fn new_orphan(&self) -> Arc<HashAggregateExec> {
        let mut projection = None;
        if let Some(memory_exec) = self.input().as_any().downcast_ref::<MemoryExec>() {
            projection = memory_exec.projection().clone();
        }
        let memory_exec = MemoryExec::try_new(&vec![], self.schema(), projection).unwrap();
        Arc::new(HashAggregateExec {
            input: Arc::new(memory_exec),
            mode: self.mode.clone(),
            group_expr: self.group_expr.clone(),
            aggr_expr: self.aggr_expr.clone(),
            schema: self.schema().clone(),
            input_schema: self.input_schema().clone(),
            metrics: self.metrics.clone(),
        })
    }
pub fn new_orphan ( & self ) -> Arc < HashAggregateExec > { let mut projection = None ; if let Some ( memory_exec ) = self . input ( ) . as_any ( ) . downcast_ref :: < MemoryExec > ( ) { projection = memory_exec . projection ( ) . clone ( ) ; } let memory_exec = MemoryExec :: try_new ( & vec ! [ ] , self . schema ( ) , projection ) . unwrap ( ) ; Arc :: new ( HashAggregateExec { input : Arc :: new ( memory_exec ) , mode : self . mode . clone ( ) , group_expr : self . group_expr . clone ( ) , aggr_expr : self . aggr_expr . clone ( ) , schema : self . schema ( ) . clone ( ) , input_schema : self . input_schema ( ) . clone ( ) , metrics : self . metrics . clone ( ) , } ) }
Get new orphan of execution plan
Get new orphan of execution plan
&self
&self