liukun4515 commented on PR #3139: URL: https://github.com/apache/arrow-rs/pull/3139#issuecomment-1328150981
> 123 I am confused about this, if the data type is decimal(10,-2) and the 128-bit integer is `123`, it represent the value of `12300`, and the value has been changed after casting. I think the 128-bit integer should be `12` after casted to decimal(10,-2). From the doc: https://arrow.apache.org/docs/python/generated/pyarrow.decimal128.html#pyarrow-decimal128 ``` decimal128(5, -3) can exactly represent the number 12345000 (encoded internally as the 128-bit integer 12345), but neither 123450000 nor 1234500. ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: github-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org