Skip to content

[C++] sum doesn't check for overflow #37090

@pitrou

Description

@pitrou

Describe the bug, including details regarding any error messages, version, and platform.

>>> pc.sum(pa.array([2**63, 2**63], type=pa.uint64()))
<pyarrow.UInt64Scalar: 0>
>>> pc.sum(pa.array([2**62, 2**62], type=pa.int64()))
<pyarrow.Int64Scalar: -9223372036854775808>

Component(s)

C++

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions