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: nan and inf values in formula result #5733

Merged
merged 2 commits into from
Aug 21, 2024
Merged

fix: nan and inf values in formula result #5733

merged 2 commits into from
Aug 21, 2024

Conversation

srikanthccv
Copy link
Member

Summary

Fixes https:/SigNoz/engineering-pod/issues/1687

The formula result can be +/-Inf when the denominator value is zero. It can be Nan if one of the values involved in expression is Nan. Even if we send them back to the client, it doesn't know what to do with these values. For example, in time series it incorrectly shows them as random numbers. In tables, it's not desirable for end users to see Nan or +Inf. The same reasons apply to other panel types. The best thing to do for now is to skip them from the result. I will let the real-world use cases come when it's required to include these in the result.

Copy link

Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id>

@github-actions github-actions bot added the bug Something isn't working label Aug 21, 2024
@srikanthccv srikanthccv merged commit 072693d into develop Aug 21, 2024
11 of 12 checks passed
@srikanthccv srikanthccv deleted the sikp-nan-inf branch August 21, 2024 12:25
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.

2 participants