From ae4fc8ed798ca5fdb65a1a8d039506a40f52c441 Mon Sep 17 00:00:00 2001 From: minghong Date: Wed, 11 Sep 2024 19:08:56 +0800 Subject: [PATCH] add-commm --- .../java/org/apache/doris/nereids/stats/StatsCalculator.java | 3 +++ 1 file changed, 3 insertions(+) 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 15a973a19d5e3d6..c0598b01ede0283 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 @@ -377,6 +377,9 @@ private void checkIfUnknownStatsUsedAsKey(StatisticsBuilder builder) { } } + /** + * if the table is not analyzed and BE does not report row count, return -1 + */ private double getOlapTableRowCount(OlapScan olapScan) { OlapTable olapTable = olapScan.getTable(); AnalysisManager analysisManager = Env.getCurrentEnv().getAnalysisManager();