Skip to content

Re-Enable num_centroids to approx_percentile_cont #798

Merged
andygrove merged 4 commits intoapache:mainfrom
Michael-J-Ward:approx-percentile-cont
Aug 9, 2024
Merged

Re-Enable num_centroids to approx_percentile_cont #798
andygrove merged 4 commits intoapache:mainfrom
Michael-J-Ward:approx-percentile-cont

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
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