wgzhao opened a new issue, #62128: URL: https://github.com/apache/doris/issues/62128
### Search before asking - [x] I had searched in the [issues](https://github.com/apache/doris/issues?q=is%3Aissue) and found no similar issues. ### Version 2.1.11 ### What's Wrong? We have observed that a large integer value, such as `2040824788225757185`, which is correctly represented in the backend context, is being incorrectly displayed or parsed on the frontend as `2040824788225757200` (or some other rounded/incorrect value). ### What You Expected? It should be display the correct value ### How to Reproduce? In the Doris admin web frontend, navigate to the "Playground" ,then input the following sql: ```sql select 2040824788225757185 ``` you can get the incorrect result, like the following:  ### Anything Else? To ensure the integrity of these large integer identifiers and numeric IDs: 1. **Backend Fix:** When serializing data structures containing these large integers (e.g., in JSON responses), the key-value pair holding the large number **must** be explicitly transmitted as a **JSON String** (e.g., `"id": "2040824788225757185"`), rather than a numeric literal. 2. **Frontend Fix:** On the consuming frontend side, the receiving code should check for fields expected to be large integers. Upon receipt, these fields should be read and immediately converted to JavaScript's `BigInt` type using `BigInt(receivedString)` before any further computation or display logic is applied. ### Are you willing to submit PR? - [x] Yes I am willing to submit a PR! ### Code of Conduct - [x] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
