diff --git a/fe/fe-core/src/main/java/org/apache/doris/nereids/stats/FilterEstimation.java b/fe/fe-core/src/main/java/org/apache/doris/nereids/stats/FilterEstimation.java index fcafb680ccb0e2..fbc15fc0e5ee74 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/nereids/stats/FilterEstimation.java +++ b/fe/fe-core/src/main/java/org/apache/doris/nereids/stats/FilterEstimation.java @@ -345,7 +345,7 @@ private Statistics estimateEqualTo(ComparisonPredicate cp, ColumnStatistic stats double val = statsForRight.maxValue; if (val > statsForLeft.maxValue || val < statsForLeft.minValue) { selectivity = 0.0; - } else if (ndv >= 1.0 ){ + } else if (ndv >= 1.0 ) { selectivity = StatsMathUtil.minNonNaN(1.0, 1.0 / ndv); } else { selectivity = DEFAULT_INEQUALITY_COEFFICIENT;