presto-hive/src/main/java/io/prestosql/plugin/hive/util/Statistics.java/Statistics/getDoubleValue
class Statistics:    private static OptionalDouble getDoubleValue(ConnectorSession session, Type type, Block block)
    {
        return block.isNull(0) ? OptionalDouble.empty() : OptionalDouble.of(((Number) type.getObjectValue(session, block, 0)).doubleValue());
    }