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