mroeschke opened a new issue, #34913: URL: https://github.com/apache/arrow/issues/34913
### Describe the bug, including details regarding any error messages, version, and platform. ``` In [15]: import numpy as np; import pyarrow as pa In [16]: pa.compute.mean(pa.array([np.iinfo(np.int64).max, 1])) Out[16]: <pyarrow.DoubleScalar: -4.611686018427388e+18> In [17]: pa.__version__ Out[17]: '11.0.0' ``` Haven't checked, but I suspect if mean is calculated as `sum(values) / len(values)`, `sum(values)` might be overflowing before performing the divisor. ### Component(s) Python -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
