xitongsys / parquet-go

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

Issues with DECIMAL_INT_ToString() #465

Open Senyuta opened 2 years ago

Senyuta commented 2 years ago

func DECIMAL_INT_ToString(dec int64, precision int, scale int) string https://github.com/xitongsys/parquet-go/blob/134bd047b2334d6832b97722b7f7fd6fe121badc/types/converter.go#L115

Actual results DECIMAL_INT_ToString(1, 0, 3) = "0.1" ( expected "0.001") DECIMAL_INT_ToString(-1, 0, 3) = "0.-1" ( expected "-0.001")