From bd19e794e1de151ccc022946f18cd82d63d4aee2 Mon Sep 17 00:00:00 2001 From: minghong Date: Tue, 22 Oct 2024 13:29:33 +0800 Subject: [PATCH] deltaRow+analyzeRow --- .../java/org/apache/doris/nereids/stats/StatsCalculator.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); }