Closed benjamine closed 6 years ago
it seems PRESTO API will return big ints as numbers in the json responses (when querying a table with a bigint column), when parsing that using regular JSON.parse they will be rounded to js Number precision.
bigint
JSON.parse
Number
this can be fixed by using a JSON parser that supports bigints, like this one: https://www.npmjs.com/package/json-bigint
oh just noticed the jsonParser option, I guess this can be closed then.
jsonParser
it seems PRESTO API will return big ints as numbers in the json responses (when querying a table with a
bigint
column), when parsing that using regularJSON.parse
they will be rounded to jsNumber
precision.this can be fixed by using a JSON parser that supports bigints, like this one: https://www.npmjs.com/package/json-bigint