Skip to content
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

Tsaucer/find window fn #747

Merged
merged 4 commits into from
Jul 6, 2024
Merged

Conversation

timsaucer
Copy link
Contributor

Which issue does this PR close?

Closes #730.

Rationale for this change

The current fix is a work around for the sum function. We have hard coded it to use the aggregate sum function as the built in function is removed. With this change, we can remove all other built in window functions without having to similarly encode work arounds.

What changes are included in this PR?

This change will add a search order to attempt to find the correct function, by first looking through all registered window functions, then registered aggregate functions, then default aggregate functions, and finally the built in window functions.

Are there any user-facing changes?

None.

Copy link
Contributor

@Michael-J-Ward Michael-J-Ward left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent, thank you.

Copy link
Member

@andygrove andygrove left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@andygrove andygrove merged commit faa5a3f into apache:main Jul 6, 2024
14 checks passed
@timsaucer timsaucer deleted the tsaucer/find_window_fn branch August 1, 2024 12:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upgrade window UDF api
3 participants