tustvold commented on issue #2175:
URL: 
https://github.com/apache/arrow-datafusion/issues/2175#issuecomment-1262641211

   > But since Logical Expressions are already enums, why we have the Physical 
Exprs stick to Trait.
   
   Perhaps, because they are representations optimised for different use-cases? 
I'd personally argue LogicalPlan is a bit of a toss up, just take a look at all 
the various methods we have for walking the tree in different ways 
`LogicalPlan::expressions` or `LogicalPlan::inputs`, `LogicalPlan::accept`, 
etc... by comparison we have `ExecutionPlan::children` and we're done. 
Definitely not saying we should change `LogicalPlan` to be a trait object, but 
perhaps different approaches is fine?


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