presto-orc/src/main/java/io/prestosql/orc/metadata/statistics/StringStatisticsBuilder.java/StringStatisticsBuilder/dropStringMinMaxIfNecessary
class StringStatisticsBuilder:    private Slice dropStringMinMaxIfNecessary(Slice minOrMax)
    {
        if (minOrMax == null || minOrMax.length() > stringStatisticsLimitInBytes) {
            return null;
        }

        // Do not hold the entire slice where the actual stats could be small
        if (minOrMax.isCompact()) {
            return minOrMax;
        }
        return Slices.copyOf(minOrMax);
    }