-
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
chore: reinstate find_df_window_func #13708
base: main
Are you sure you want to change the base?
Conversation
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.
Thank you @andygrove
@@ -840,6 +840,12 @@ impl WindowFunction { | |||
} | |||
} | |||
|
|||
/// Find DataFusion's built-in window function by name. | |||
#[deprecated(since = "44.0.0", note = "built-in window functions have been removed")] |
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.
Shall we give a hint about the best replacement API?
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'll have to research what the replacement API is first, but yes, that would be good. Once I have Comet tests passing, I will come back and improve this.
pub fn find_df_window_func(_name: &str) -> Option<WindowFunctionDefinition> { | ||
None |
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.
As someone who did upgrades, I'd appreciate a compiler error more than a dummy implementation.
But we can do good here. We can see what's the name being looked up and return non-built-in implementation based on that. The return type allows to do this, fortunately.
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.
That makes sense. I am moving this to draft until I can implement the feedback.
Which issue does this PR close?
Related to #13702
Rationale for this change
Public API function
find_df_window_func
was removed in #13201. It would be better to deprecate it and remove it in a future release.What changes are included in this PR?
Add deprecated method.
Are these changes tested?
Are there any user-facing changes?