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

Fix approximate percentile reduction UnsupportedOperationException #5160

Merged
merged 1 commit into from
Apr 8, 2022

Conversation

andygrove
Copy link
Contributor

Closes #5159

The integration tests for approx percentile did not cover the cases where com.nvidia.spark.rapids.GpuApproximatePercentile#initialValues is used and this had not been implemented.

This PR adds a test that reproduces the issue, and implements initialValues to produce a t-digest literal with no centroids and zero for min and max.

@andygrove andygrove added the bug Something isn't working label Apr 7, 2022
@andygrove andygrove added this to the Apr 4 - Apr 15 milestone Apr 7, 2022
@andygrove andygrove self-assigned this Apr 7, 2022
abellina
abellina previously approved these changes Apr 7, 2022
Copy link
Collaborator

@abellina abellina left a comment

Choose a reason for hiding this comment

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

LGTM

@andygrove andygrove changed the base branch from branch-22.06 to branch-22.04 April 7, 2022 16:24
@andygrove andygrove dismissed abellina’s stale review April 7, 2022 16:24

The base branch was changed.

@andygrove andygrove changed the base branch from branch-22.04 to branch-22.06 April 7, 2022 16:24
@andygrove
Copy link
Contributor Author

I am going to retarget this to 22.04

Signed-off-by: Andy Grove <andygrove@nvidia.com>
@andygrove andygrove force-pushed the approx-percentile-bug branch from 93a498a to 0429dd4 Compare April 7, 2022 16:30
@andygrove andygrove changed the base branch from branch-22.06 to branch-22.04 April 7, 2022 16:30
@andygrove andygrove changed the title WIP: Fix approximate percentile reduction UnsupportedOperationException Fix approximate percentile reduction UnsupportedOperationException Apr 7, 2022
@andygrove andygrove marked this pull request as ready for review April 7, 2022 16:31
@andygrove andygrove requested a review from abellina April 7, 2022 16:31
@andygrove
Copy link
Contributor Author

build

Copy link
Collaborator

@mythrocks mythrocks left a comment

Choose a reason for hiding this comment

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

Looks safe to me.

@andygrove andygrove merged commit c739213 into NVIDIA:branch-22.04 Apr 8, 2022
@andygrove andygrove deleted the approx-percentile-bug branch April 8, 2022 00:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Approx percentile query fails with UnsupportedOperationException
3 participants