-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TreeNode Expr Implementation for LogicalPlan's #9457
Comments
@peter-toth I'm curious about your thoughts and solution suggestions on this issue. |
Thanks for pinging me @berkaysynnada. I was thinking about using macros or helper functions instead of the current chaining |
I was thinking of a macro that accepts a sequence of expressions and their transformations:
Inside the macro we can build up the same |
Is your feature request related to a problem or challenge?
The recent update in #8891 has made significant improvements, making many
TreeNode
implementations simpler and more straightforward. However, the map_children method inExpr
enum appears to be quite complex. I think there's room for improvement in making this design more user-friendly, which would not only enhance user comprehension, but also help debugging.Take, for instance, the
Expr::Case
pattern:As shown, the function employs multiple nested and chained utility functions, which can be quite daunting. Simplifying these would significantly enhance readability and understanding.
Describe the solution you'd like
New implementations of
TreeNode
forOption
andBox
may be implemented, or new simplifying utils may be written with a more understandable style.Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: