diff --git a/fe/fe-core/src/main/java/org/apache/doris/nereids/stats/StatsCalculator.java b/fe/fe-core/src/main/java/org/apache/doris/nereids/stats/StatsCalculator.java index 10ad76b5a8ef9e..6bdd930b4326de 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/nereids/stats/StatsCalculator.java +++ b/fe/fe-core/src/main/java/org/apache/doris/nereids/stats/StatsCalculator.java @@ -497,7 +497,7 @@ private Statistics computeOlapScan(OlapScan olapScan) { builder.putColumnStatistics(slot, colStatsBuilder.build()); } checkIfUnknownStatsUsedAsKey(builder); - builder.setRowCount(tableRowCount + deltaRowCount); + builder.setRowCount(tableRowCount); } } else { // get table level stats @@ -509,7 +509,7 @@ private Statistics computeOlapScan(OlapScan olapScan) { builder.putColumnStatistics(slot, colStatsBuilder.build()); } checkIfUnknownStatsUsedAsKey(builder); - builder.setRowCount(tableRowCount + deltaRowCount); + builder.setRowCount(tableRowCount); } return builder.build(); }