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 a7540622303bbe..cdb23fa4258634 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 @@ -773,7 +773,8 @@ private Statistics computeCatalogRelation(CatalogRelation catalogRelation) { Optional optStats = cascadesContext.getStatementContext() .getStatistics(olap.getRelationId()); if (optStats.isPresent()) { - double actualRowCount = catalogRelation.getTable().getRowCountForNereids(); + double actualRowCount = catalogRelation + .getTable().getRowCountForNereids(); if (actualRowCount > optStats.get().getRowCount()) { return optStats.get(); }