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++