HaoYang670 edited a comment on issue #101:
URL: https://github.com/apache/arrow-rs/issues/101#issuecomment-1046508881
Could we close this issue, as `NaN` has been considered to be greater than
non-NaN values?
```rust
pub fn min<T>(array: &PrimitiveArray<T>) -> Option<T::Native>
where
T: ArrowNumericType,
T::Native: ArrowNativeType,
{
min_max_helper(array, |a, b| (is_nan(*a) & !is_nan(*b)) || a > b)
}
```
--
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]