englefly commented on code in PR #12987:
URL: https://github.com/apache/doris/pull/12987#discussion_r990585141
##########
fe/fe-core/src/main/java/org/apache/doris/nereids/stats/StatsCalculator.java:
##########
@@ -320,17 +323,17 @@ private StatsDeriveResult computeAggregate(Aggregate
aggregate) {
// .map(childSlotToColumnStats::get)
// .map(ColumnStats::getNdv)
// .reduce(1L, (a, b) -> a * b);
- long resultSetCount = childStats.getRowCount() /
DEFAULT_AGGREGATE_RATIO;
+ long resultSetCount = (long) childStats.getRowCount() /
DEFAULT_AGGREGATE_RATIO;
Review Comment:
how about define rowCount as double? Since it always multiplies
selectivity(Double) frequently
--
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]