Skip to content

Re-Enable num_centroids to approx_percentile_cont #798

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

Merged
merged 4 commits into from
Aug 9, 2024

Conversation

Michael-J-Ward
Copy link
Contributor

Which issue does this PR close?

Closes #777.
Supersedes #794 #785 #739 #732.

Rationale for this change

When approx_percentile_cont was migrated to a UDAf upstream, the num_centroids argument was removed from its fluent API.

This works around that by invoking the AggregateFunction::call directly.

What changes are included in this PR?

Though approx_percentile_cont is re-enabled, this actually matches the behavior of the last release.

Are there any user-facing changes?

No.

@Michael-J-Ward Michael-J-Ward marked this pull request as ready for review August 6, 2024 15:56
@Michael-J-Ward
Copy link
Contributor Author

@andygrove this is ready to go, and then the datafusion-python release is also ready

@andygrove andygrove merged commit 2205e05 into apache:main Aug 9, 2024
22 checks passed
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.

approx_percentile_cont can't accept num_centroids
3 participants