mingmwang opened a new issue #1972:
URL: https://github.com/apache/arrow-datafusion/issues/1972


   **Is your feature request related to a problem or challenge? Please describe 
what you are trying to do.**
   A clear and concise description of what the problem is. Ex. I'm always 
frustrated when [...] 
   
   Current DataFusion's optimizer rules are complex and not easy to implement. 
I think one of the reason is each optimization rule has to deal with the plan 
tree traversing, pattern matching and rewriting. It is more a visitor model 
(like the old Presto optimizer rules).
   And if we add new logical plan nodes, especially non-leaf plan nodes, it is 
very possible that all the rules need to be modified to add the related visit 
logic.
   
   An alternative approach is we can have the Optimizer itself drive the plan 
tree traversing and apply the rules down/up the tree, it will make the rule 
logic much clear and can focus on pattern matching and rewriting. 
   
   I see there is a new experimental optimizer framework which leverages the 
egg lib. 
   [https://github.com/apache/arrow-datafusion/issues/440](url)
   I'm not familiar with egg and not sure how mature the egg lib is.
   
   Please share your thoughts.
   
   **Describe the solution you'd like**
   A clear and concise description of what you want to happen.
   
   **Describe alternatives you've considered**
   A clear and concise description of any alternative solutions or features 
you've considered.
   
   **Additional context**
   Add any other context or screenshots about the feature request here.
   


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

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


Reply via email to