justinpark opened a new pull request, #21996: URL: https://github.com/apache/superset/pull/21996
### SUMMARY In #21968, it replaces the `json-bigint` by `json-bigint-native` to fix the invalid float number handling by escaping BigNumber(BigInt) wrapper. However, `json-bigint-native` uses native BigInt only which has limit compatibility of Math functions that throws [TypeError](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors/Cant_convert_BigInt_to_number) several cases. This commit reverts the commit in order to keep it back to use `BigNumber` (which is compatible with Math functions). Instead it adds a custom logic to escape the BigNumber for floating numbers. It also adds a `todo` comment to fix the root cause by open source in the future. cc: @john-bodley @ktmud @villebro @zhaoyongjie ### BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF Before: (returns NaN values)  After:  ### TESTING INSTRUCTIONS Create a chart with floating numbers ### ADDITIONAL INFORMATION - [ ] Has associated issue: - [ ] Required feature flags: - [ ] Changes UI - [ ] Includes DB Migration (follow approval process in [SIP-59](https://github.com/apache/superset/issues/13351)) - [ ] Migration is atomic, supports rollback & is backwards-compatible - [ ] Confirm DB migration upgrade and downgrade tested - [ ] Runtime estimates and downtime expectations provided - [ ] Introduces new feature or API - [ ] Removes existing feature or API -- 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: notifications-unsubscr...@superset.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org For additional commands, e-mail: notifications-h...@superset.apache.org