apache / apache/arrow

[C++] During casting, `allow_int_overflow` option ignored when `allow_float_truncate` set to True

Open
#46,557 3 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.