Dandandan commented on code in PR #12040: URL: https://github.com/apache/datafusion/pull/12040#discussion_r1720815089
########## datafusion/expr/src/logical_plan/builder.rs: ########## @@ -145,7 +150,7 @@ impl LogicalPlanBuilder { coerce_plan_expr_for_schema(&recursive_term, self.plan.schema())?; Ok(Self::from(LogicalPlan::RecursiveQuery(RecursiveQuery { name, - static_term: Arc::new(self.plan.clone()), + static_term: Arc::clone(&self.plan), Review Comment: This seems the only place a deep clone is "saved"? -- 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: github-unsubscr...@datafusion.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For additional commands, e-mail: github-h...@datafusion.apache.org