stevenlandis-rl opened a new issue, #44356:
URL: https://github.com/apache/arrow/issues/44356
### Describe the bug, including details regarding any error messages,
version, and platform.
I'm using the python pyarrow module and running into this strange behavior
when casting strings into a decimal:
```py
pyarrow.compute.cast(
pyarrow.array(['0.9999999999999999999999999999999999999999999999999999999999999999999999999']),
options=pyarrow.compute.CastOptions(
target_type=pyarrow.decimal128(38, 19),
allow_decimal_truncate=True
)
)
""" Returns:
<pyarrow.lib.Decimal128Array object at 0x11878c1c0>
[
-3711.3482369388076293398
]
"""
```
Is this behavior expected?
### Component(s)
Python
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]