-
Notifications
You must be signed in to change notification settings - Fork 919
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
[Decouple] [BUG] Dev tool console is losing big number precision due to client #4536
Comments
The bug is related to some changes we made in dev tool console starting from 2.5
|
In final resolution, we might need to determine the impact of this on dashboard graphs/visualizations. It may be a challenge to find the impact of a 10^3 delta within a 10^19 number, especially in a visualization displayed on a 100x200 pixel canvas. |
@pjfitzgibbons If a visualization is based on a delta between two numbers, it could become super obvious. I'm not sure if any visualizations do have that. |
Ahh. Excellent use case. In this situation the loss could/would result in
a flatline graph where there should be noise.
On Tue, Jul 18, 2023 at 10:55 AM William Beckler ***@***.***> wrote:
@pjfitzgibbons <https://github.com/pjfitzgibbons> If a visualization is
based on a delta between two numbers, it could become super obvious. I'm
not sure if any visualizations do have that.
—
Reply to this email directly, view it on GitHub
<#4536 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAACYNXMBFZJMB7PJ34IVBLXQ3E2ZANCNFSM6AAAAAA2E53EWM>
.
You are receiving this because you were mentioned.Message ID:
***@***.***
com>
--
Thanks and Kindest Regards,
Peter Fitzgibbons
|
Describe the bug
Dev tool console is losing precision when displaying big number.
To Reproduce
Steps to reproduce the behavior:
long
type data into OS, and send GET request to retrieve it.1688275058533285124
and the displayed data in OSD1688275058533285000
Expected behavior
OSD should display the same number as stored in OS, without losing precision
OpenSearch Version
2.5 and later
Dashboards Version
2.5 and later
Additional context
JavaScript does not support 64 bit integer values. Using a number in JavaScript results in the Number type which itself is a 64bit IEEE floating point number, thus leaving us a 52 bit mantisse to store integer values without rounding errors. Everything above what fits into 52 bit will have rounding errors.
Thus fields in OpenSearch that can contain numbers outside that safe JavaScript range(E.g.
long
) is prone to that rounding error in Dev tool consoleThe text was updated successfully, but these errors were encountered: