Kikyou1997 commented on code in PR #8864: URL: https://github.com/apache/doris/pull/8864#discussion_r980662059
########## fe/fe-core/src/main/java/org/apache/doris/statistics/ColumnStats.java: ########## @@ -180,23 +262,10 @@ public void updateStats(Type columnType, Map<StatsType, String> statsTypeToValue } } - public List<String> getShowInfo() { - List<String> result = Lists.newArrayList(); - result.add(Long.toString(ndv)); - result.add(Float.toString(avgSize)); - result.add(Long.toString(maxSize)); - result.add(Long.toString(numNulls)); - if (minValue != null) { - result.add(minValue.getStringValue()); - } else { - result.add("N/A"); - } - if (maxValue != null) { - result.add(maxValue.getStringValue()); - } else { - result.add("N/A"); - } - return result; + // TODO: The generated statistics should not be modified + public void updateBySelectivity(double selectivity) { + ndv = (long) Math.ceil(ndv * selectivity); Review Comment: ok thx -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org