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

Web interface displays unsinged 64 bit integers wrong #22882

Open
mehdisadeghi opened this issue Nov 16, 2021 · 1 comment
Open

Web interface displays unsinged 64 bit integers wrong #22882

mehdisadeghi opened this issue Nov 16, 2021 · 1 comment
Labels
area/ui area/2.x OSS 2.0 related issues and PRs

Comments

@mehdisadeghi
Copy link

mehdisadeghi commented Nov 16, 2021

Steps to reproduce:
List the minimal actions needed to reproduce the behavior.

  1. insert a field value with max unsigned integer value, i.e. 2**64 -1 which is 18446744073709551615u
  2. query that using the web interface of InfluxDB 2.1.1 (git: 657e183)
  3. _value field would display 18446744073709552000 instead of 18446744073709551615

Expected behavior:
The data explorer should display 18446744073709551615

Actual behavior:
It displays 18446744073709552000

Environment info:

  • System info: Run uname -srm and copy the output here
  • Linux 5.14.14-arch1-1 x86_64
  • InfluxDB version: Run influxd version and copy the output here
  • InfluxDB 2.1.1 (git: 657e183) build_date: 2021-11-09T03:03:48Z
  • Other relevant environment details: Container runtime, disk info, etc

Config:
Copy any non-default config values here or attach the full config as a gist or file.

Strong Hypothesis

JavaScript can support unsigned 64 bit integers with BigInt. Without BigInt the result would be:

2**64-1 -> 18446744073709552000

With BigInt it would be:

2n**64n-1n -> 18446744073709551615n

Perhaps that's the culprit. If queried using the influxdb-cli tool yields the correct values.

Edit: added 'u' to the value in step one

@timhallinflux timhallinflux added area/2.x OSS 2.0 related issues and PRs area/ui labels Nov 17, 2021
@acidos
Copy link

acidos commented Jun 29, 2022

Any update on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ui area/2.x OSS 2.0 related issues and PRs
Projects
None yet
Development

No branches or pull requests

3 participants