hasura / hasura/graphql-engine
BigInt not shown properly in table interface
- Dominant language
- TypeScript
- Stars
- 32.1k
- Forks
- 3k
- PR merge metrics
- PR metrics pending
Description
### Version Information
Server Version:
CLI Version (for CLI related issue): -
### Environment
gcloud
### What is the current behaviour?
When I store the number 2615582031828877312 in a field for a BigInt, in the GUI it gets shown as 2615582031828877300 (last two numbers replaced with zeros). The number is small enough to be stored in a bigInt and via SQL query I can verify that the number is stored correctly, but not correctly displayed...
### What is the expected behaviour?
The full number should be shown and not manipulated
### How to reproduce the issue?
1. Create a table with a bigInt column
2. Insert 2615582031828877312 in a field in this column
3. Check the number in the table view and see that the last to numbers are replaced
### Screenshots or Screencast
### Please provide any traces or logs that could help here.
### Any possible solutions/workarounds you're aware of?
You can verify that the number is stored correctly by querying via SQL
### Keywords
long, bigInt
Contributor guide
Research direction
Start with the table interface and reproduce the issue using a BigInt column containing 2615582031828877312, then compare the displayed value with the SQL result. Done means the table view shows the complete stored number without replacing its final digits.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100