xzj7019 commented on code in PR #40698:
URL: https://github.com/apache/doris/pull/40698#discussion_r1756717759
##########
fe/fe-core/src/main/java/org/apache/doris/nereids/stats/FilterEstimation.java:
##########
@@ -332,7 +332,8 @@ private Statistics estimateEqualTo(ComparisonPredicate cp,
ColumnStatistic stats
} else {
double val = statsForRight.maxValue;
if (val > statsForLeft.maxValue || val <
statsForLeft.minValue) {
- selectivity = 0.0;
+ // do a lower bound protection to avoid using 0 directly
+ selectivity = RANGE_SELECTIVITY_THRESHOLD;
Review Comment:
this is equal to path an no handled before.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]