alamb opened a new pull request, #9974:
URL: https://github.com/apache/arrow-datafusion/pull/9974

   ## Which issue does this PR close?
   
   Part of #9637 
   
   ## Rationale for this change
   
   I found this while working on 
https://github.com/apache/arrow-datafusion/pull/9913 with @peter-toth
   
   Calling `LogicalPlan::expressions()` does a copy of the expressions, but 
this function simply needs to check them
   
   
   ## What changes are included in this PR?
   1. Use `TreeNode` API to visit expressions rather than 
`LogicalPlan::expressions()`
   
   ## Are these changes tested?
   Covered by existing unit tests
   
   ## Are there any user-facing changes?
   (Slightly) faster planning, and fewer copies during planning
   
   <!--
   If there are user-facing changes then we may require documentation to be 
updated before approving the PR.
   -->
   
   <!--
   If there are any breaking changes to public APIs, please add the `api 
change` label.
   -->
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to