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

Don't return NaN values for empty clusters #4

Merged
merged 2 commits into from
Oct 7, 2024

Conversation

evgenii-kuznetcov
Copy link
Contributor

@evgenii-kuznetcov evgenii-kuznetcov commented Oct 4, 2024

When there is no data to compute TDigest, TDigest::default is returned. This struct contains NaNs.
When this value is sent back to polars during reduction step, it's not deserialized properly and rust code panics.
This is a minimal fix. Later error handling should be improved to turn panic into a proper error

@evgenii-kuznetcov evgenii-kuznetcov changed the title Don't return NaN values for empty clusters draft: Don't return NaN values for empty clusters Oct 4, 2024
@evgenii-kuznetcov evgenii-kuznetcov changed the title draft: Don't return NaN values for empty clusters Don't return NaN values for empty clusters Oct 4, 2024
@liveforeverx liveforeverx merged commit 97526fb into appian:main Oct 7, 2024
11 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.

2 participants