xitongsys / parquet-go

pure golang library for reading/writing parquet file
Apache License 2.0
1.27k stars 293 forks source link

fix for byte array as decimal with negative value #433

Closed hangxie closed 2 years ago

hangxie commented 2 years ago

It seems DECIMAL_BYTE_ARRAY_ToString has a bug when dealing with negative decimal value, there may be a better way to address this, but this approach works for me.

EDIT one more commit to fix values between -1 and 1.