presto-hive/src/main/java/io/prestosql/plugin/hive/util/Statistics.java/Statistics/getDateValue
class Statistics:    private static Optional<LocalDate> getDateValue(ConnectorSession session, Type type, Block block)
    {
        return block.isNull(0) ? Optional.empty() : Optional.of(LocalDate.ofEpochDay(((SqlDate) type.getObjectValue(session, block, 0)).getDays()));
    }