[C++] sum doesn't check for overflow
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.
```pycon
>>> pc.sum(pa.array([2**63, 2**63], type=pa.uint64()))
>>> pc.sum(pa.array([2**62, 2**62], type=pa.int64()))
```
### Component(s)
C++
Contributor guide
Assessment
This issue has not been assessed yet.