englefly commented on code in PR #21482:
URL: https://github.com/apache/doris/pull/21482#discussion_r1257802799
##########
fe/fe-core/src/main/java/org/apache/doris/statistics/ColumnStatistic.java:
##########
@@ -138,7 +175,8 @@ public static ColumnStatistic fromResultRow(ResultRow
resultRow) {
columnStatisticBuilder.setNumNulls(Double.parseDouble(nullCount));
columnStatisticBuilder.setDataSize(Double
.parseDouble(resultRow.getColumnValueWithDefault("data_size_in_bytes", "0")));
-
columnStatisticBuilder.setAvgSizeByte(columnStatisticBuilder.getDataSize()
+
columnStatisticBuilder.setAvgSizeByte(columnStatisticBuilder.getCount() == 0 ?
Review Comment:
it not proper to set avgSize=0 for empty table
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]