Losing precision on decimal number during conversion from JSON #287
Answered
by
Cinchoo
trunklegs911
asked this question in
Q&A
|
I have a JSON string with a decimal value 26.61657491, and when I write the JSON file to parquet:
which appears to be successful, but when I open the resulting parquet file the decimal is now 26.616575. So it has been rounded down somewhere in the conversion process. Is this expected behavior of writing parquet files? Is there usually going to be some loss of precision in this way? Thanks! |
Answered by
Cinchoo
Apr 27, 2023
Replies: 1 comment 1 reply
|
It seems to be bug in the library. While I fix and release it, you can do as below in the meantime to fix this issue |
1 reply
Answer selected by
trunklegs911
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It seems to be bug in the library. While I fix and release it, you can do as below in the meantime to fix this issue