tagomoris / presto-client-node

Distributed query engine Presto client library for node.js
MIT License
125 stars 57 forks source link

support for bigint values #19

Closed benjamine closed 6 years ago

benjamine commented 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.

this can be fixed by using a JSON parser that supports bigints, like this one: https://www.npmjs.com/package/json-bigint

benjamine commented 6 years ago

oh just noticed the jsonParser option, I guess this can be closed then.