presto-main/src/main/java/io/prestosql/cost/StatisticRange.java/StatisticRange/maxExcludeNaN
class StatisticRange:    private static double maxExcludeNaN(double v1, double v2)
    {
        if (isNaN(v1)) {
            return v2;
        }
        if (isNaN(v2)) {
            return v1;
        }
        return max(v1, v2);
    }