[C++] During casting, `allow_int_overflow` option ignored when `allow_float_truncate` set to True
Open
Component: C++
Type: bug
- Dominant language
- C++
- Stars
- 17.1k
- Forks
- 4.3k
- Avg merge
- 3d 13h
- Merged PRs (30d)
- 88
Description
### Describe the bug, including details regarding any error messages, version, and platform.
```
>>> import pyarrow as pa
>>> import pyarrow.compute as pc
>>> pc.cast(pa.scalar(1e308), options = pc.CastOptions(target_type = pa.int32(), allow_float_truncate = True, allow_int_overflow = False))
```
### Component(s)
Python
Contributor guide
Assessment
This issue has not been assessed yet.