xzj7019 commented on code in PR #41804:
URL: https://github.com/apache/doris/pull/41804#discussion_r1820942095
##########
fe/fe-core/src/main/java/org/apache/doris/nereids/stats/StatsCalculator.java:
##########
@@ -502,6 +502,10 @@ private Statistics computeOlapScan(OlapScan olapScan) {
}
checkIfUnknownStatsUsedAsKey(builder);
builder.setRowCount(selectedPartitionsRowCount);
+ } else {
Review Comment:
If the range is not splitted as even distribution, the following will have
skew on estimation; if yes, then the filter estimation based on partition key
will have similar impact on partition estimation; so seems the added logic
seems have no improvement?
--
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]