You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2023/01/14 12:54:52 UTC

[GitHub] [arrow-datafusion] alamb commented on a diff in pull request #4906: Alamb/walk all exprs

alamb commented on code in PR #4906:
URL: https://github.com/apache/arrow-datafusion/pull/4906#discussion_r1070261913


##########
datafusion/expr/src/logical_plan/plan.rs:
##########
@@ -233,42 +233,60 @@ impl LogicalPlan {
     /// logical plan node. This does not include expressions in any
     /// children
     pub fn expressions(self: &LogicalPlan) -> Vec<Expr> {
+        let mut exprs = vec![];
+        self.observe_expressions(|e| exprs.push(e.clone()));

Review Comment:
   The basic idea is to refactor the current code to clone all expressions to just call a function 



-- 
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-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org