In Presto, array_max or array_min both returns NAN if at least one element in the array is NAN.
SELECT array_max(ARRAY [4.0, nan(), NULL]) --> NAN
SELECT array_min(ARRAY [4.0, nan(), NULL]) --> NAN
Wondering if the behavior is correct or not.
CC: @kaikalur @prithvip @mbasmanova