This is an automated email from the ASF dual-hosted git repository.
englefly pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new 48f3614ce8 [fix](nereids) a bug in estimation of intersect ndv (#24664)
48f3614ce8 is described below
commit 48f3614ce8d834de25c4132bc04985d50cba4a91
Author: minghong <[email protected]>
AuthorDate: Thu Sep 21 23:06:31 2023 +0800
[fix](nereids) a bug in estimation of intersect ndv (#24664)
---
.../src/main/java/org/apache/doris/statistics/StatisticRange.java | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git
a/fe/fe-core/src/main/java/org/apache/doris/statistics/StatisticRange.java
b/fe/fe-core/src/main/java/org/apache/doris/statistics/StatisticRange.java
index f784536443..360f5f5cdd 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/statistics/StatisticRange.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/statistics/StatisticRange.java
@@ -195,10 +195,7 @@ public class StatisticRange {
double overlapPercentOfRight = other.overlapPercentWith(this);
double overlapDistinctValuesLeft = overlapPercentOfLeft *
distinctValues;
double overlapDistinctValuesRight = overlapPercentOfRight *
other.distinctValues;
- double minInputDistinctValues = minExcludeNaN(this.distinctValues,
other.distinctValues);
-
- return minExcludeNaN(minInputDistinctValues,
- maxExcludeNaN(overlapDistinctValuesLeft,
overlapDistinctValuesRight));
+ return minExcludeNaN(overlapDistinctValuesLeft,
overlapDistinctValuesRight);
}
public static double minExcludeNaN(double v1, double v2) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]