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
Redash transform integer wrong, like, select 331451557290541101 #2666
Comments
Hi @guzhenping. Probably, because the number exceeds the max number which will be able to treat as JSON. For example To fix this, first, parses as a string when making the response and returns it in server-side. Second, parse as a string and display as an integer in client-side. |
Bump. Any update on this? Pretty annoying, our users are getting confused. |
I reproduced this on our preview instance. |
Looks like we can address this with https://www.npmjs.com/package/json-bigint. Just need to figure out if there are any performance implications. |
I will link a workaround for this issue (casting to char) because there seemed to be no comments about it in this issue.
example: i wonder if there is anyway to fix this issue because casting to char everytime is a bit annoying. 😢 using json-bigint? |
Noting here that the above example workaround with Casting to varchar works well also in that scenario. I.e. |
Execute sql :
the result:
331,451,557,290,541,120.00
, they are not equal.Redash can not support the type of bigint. l think it's a bug.
Technical details:
The text was updated successfully, but these errors were encountered: