crepererum commented on PR #7775:
URL: 
https://github.com/apache/arrow-datafusion/pull/7775#issuecomment-1755799814

   > One of the tensions is that if we wrapped the plan in Arc it is harder to 
match on it as I understand
   
   Depends on how you want to match. You can use `match plan.as_ref() {...}` 
but then you need to manually clone all struct members if you want to construct 
a new `LogicalPlan`. However I would argue that the logical and phys. plan 
should not contain copies of any large data structures that are NOT wrapped 
into an `Arc` in the first place.


-- 
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