Skip to content

[C++] min/max aggregate for floating points can return values not contained in column #46063

@rohanjain101

Description

@rohanjain101

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

>>> pa.compute.max(pa.array([float("nan"), float("nan")]))
<pyarrow.DoubleScalar: -inf>
>>> pa.compute.min(pa.array([float("nan"), float("nan")]))
<pyarrow.DoubleScalar: inf>
>>>

min/max returned values that are not in the column. Perhaps NaN should be returned instead?

Component(s)

C++

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions