-
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
Rename expr::window_function::WindowFunction
to WindowFunctionDefintion
for consistency
#8347
Comments
That is an excellent point. Thank you for the research @haohuaijin Maybe we could rename https://github.com/apache/arrow-datafusion/blob/4c914ea1e5d3dc61f3552adcffb8356c90d73bac/datafusion/expr/src/window_function.rs#L35-L44 to |
@haohuaijin are you already working on it or can I pick it up? |
@edmondop I haven't started working yet, feel free to pick it up. |
@alamb I am probably losing some pre-requisite, the Expr doesn't contain a WindowUDF variant but only a WindowFunction variant https://github.com/apache/arrow-datafusion/blob/main/datafusion/expr/src/expr.rs#L156 there is an AggregateUDF though... |
Expr::WindowFunction
and Expr::WindowUDF
expr::window_function::WindowFunction
to WindowFunctionDefintion
for consistency
You are right that the ticket description was incorrect, as @haohuaijin noted in #8347 (comment) I have updated it to say "rename WindowFunction I think |
Is your feature request related to a problem or challenge?
Part of #8045 we are working
to consolidate the function implementation in DataFusion to make it easier to
manage DataFusion's built in list of functions as well as ensure user defined
and built in functions have the same feature sets.
I think it is also important to keep the Expr representation consistent for
Aggregate and Window functions to make DataFusion easier to work with, as well
as to permit eventually applying the same unification of built in and user
defined functions to aggregates and window functions.
Describe the solution you'd like
I would like to rename the
WindowFunction
in to https://github.com/apache/arrow-datafusion/blob/4c914ea1e5d3dc61f3552adcffb8356c90d73bac/datafusion/expr/src/window_function.rs#L35-L44 toWindowFunctionDefinition
so we didn't have so many things namedWindowFunction
and to mirror the structure of ScalarFunctionEdited:
I would like to unifyExpr::WindowFunction
andExpr::WindowUDF
following the pattern in #8258 @2010YOUY01:Describe alternatives you've considered
No response
Additional context
I think this is a pretty good first issue because we have an existing pattern in #8258
The text was updated successfully, but these errors were encountered: