zanmato1984 opened a new pull request, #48459:
URL: https://github.com/apache/arrow/pull/48459

   ### Rationale for this change
   
   Our MinMax kernels emit -inf/inf for all-NaN input array, which doesn't make 
sense.
   
   ### What changes are included in this PR?
   
   Initialize the running min/max value from -inf/inf to NaN, so we can 
leverage the nice property that:
   `std::fmin/fmax(all-NaN) = NaN`
   `std::fmin/fmax(NaN, non-NaN) = non-NaN`
   
   ### Are these changes tested?
   
   Test included.
   
   ### Are there any user-facing changes?
   
   None.


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

Reply via email to