-
Notifications
You must be signed in to change notification settings - Fork 1.9k
refactor: Expr::ScalarFunction to use a struct #6281
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
Conversation
| #[derive(Clone, PartialEq, Eq, Hash)] | ||
| pub struct ScalarFunction { | ||
| /// The function | ||
| pub fun: built_in_function::BuiltinScalarFunction, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would love, long term, to remove the difference between ScalarFunction and ScalarUDF (aka have a single way of calling functions for built in and extension functions)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a great idea, I trace it in #6282
alamb
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like a nice cleanup to me -- thank you @jackwener
alamb
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like a nice cleanup to me -- thank you @jackwener
|
Thanks @alamb review. |
|
Because there is a following PR to refactor ScalarUDF. So, I merge this PR to continue #6284. (otherwise, it will cause conflict) |
Which issue does this PR close?
Related to #2175 and #3807.
Rationale for this change
Continuing the work outlined in #3807 to bring
Exprvariants more in line withLogicalPlanvariants.What changes are included in this PR?
Refactors
Expr::ScalarFunctionto use a struct.Are there any user-facing changes?
No