From ce703533a76ba802b697a9163a819b437e173911 Mon Sep 17 00:00:00 2001 From: englefly Date: Thu, 30 Nov 2023 12:04:26 +0800 Subject: [PATCH] fix --- .../java/org/apache/doris/nereids/stats/JoinEstimation.java | 1 + .../main/java/org/apache/doris/statistics/ColumnStatistic.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/fe/fe-core/src/main/java/org/apache/doris/nereids/stats/JoinEstimation.java b/fe/fe-core/src/main/java/org/apache/doris/nereids/stats/JoinEstimation.java index bfbcfb3739c0e72..3173b654d48769a 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/nereids/stats/JoinEstimation.java +++ b/fe/fe-core/src/main/java/org/apache/doris/nereids/stats/JoinEstimation.java @@ -46,6 +46,7 @@ public class JoinEstimation { private static double DEFAULT_ANTI_JOIN_SELECTIVITY_COEFFICIENT = 0.3; private static double UNKNOWN_COL_STATS_FILTER_SEL_LOWER_BOUND = 0.5; + private static EqualPredicate normalizeHashJoinCondition(EqualPredicate equal, Statistics leftStats, Statistics rightStats) { boolean changeOrder = equal.left().getInputSlots().stream() diff --git a/fe/fe-core/src/main/java/org/apache/doris/statistics/ColumnStatistic.java b/fe/fe-core/src/main/java/org/apache/doris/statistics/ColumnStatistic.java index c60792e84178410..c0f799c5cfc8c9f 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/statistics/ColumnStatistic.java +++ b/fe/fe-core/src/main/java/org/apache/doris/statistics/ColumnStatistic.java @@ -303,7 +303,7 @@ public boolean enclosed(ColumnStatistic other) { @Override public String toString() { return isUnKnown ? "unknown(" + count + ")" - : String.format("ndv=%.4f, min=%f(%s), max=%f(%s), count=%.4f, avgSizeByte=%f" , + : String.format("ndv=%.4f, min=%f(%s), max=%f(%s), count=%.4f, avgSizeByte=%f", ndv, minValue, minExpr, maxValue, maxExpr, count, avgSizeByte); }