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 serializing confusion matrix from older whylogs #1329

Merged
merged 2 commits into from
Aug 2, 2023

Conversation

cswarth
Copy link
Contributor

@cswarth cswarth commented Aug 2, 2023

Description

Support backwards compatibility.
Decoding a KllFloatsSketch when expecting a KllDoublesSketch can result in a few different types of exceptions.
This change broadens the class of exceptions that can be caught before trying to decode the sketch as KllFloatsSketch.
Adds unit test to make sure IndexError is caught.

@cswarth cswarth requested a review from andyndang August 2, 2023 19:07
jamie256
jamie256 previously approved these changes Aug 2, 2023
Copy link
Contributor

@jamie256 jamie256 left a comment

Choose a reason for hiding this comment

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

Looks good, seems ok to try the fallback on a wider scope.

@jamie256 jamie256 merged commit 349510d into mainline Aug 2, 2023
19 checks passed
@jamie256 jamie256 deleted the dev/chris-kll-floats branch August 2, 2023 20:41
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.

None yet

2 participants