Skip to content

Commit

Permalink
[opt](nereids) refine expression estimation
Browse files Browse the repository at this point in the history
  • Loading branch information
zhongjian.xzj authored and zhongjian.xzj committed Sep 19, 2024
1 parent fbef9e2 commit 216dfba
Showing 1 changed file with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -442,14 +442,7 @@ public ColumnStatistic visitBoundFunction(BoundFunction boundFunction, Statistic
@Override
public ColumnStatistic visitAggregateExpression(AggregateExpression aggregateExpression,
Statistics context) {
ColumnStatistic columnStat = aggregateExpression.child().accept(this, context);
if (columnStat.isUnKnown) {
return ColumnStatistic.UNKNOWN;
}
return new ColumnStatisticBuilder(columnStat)
.setMinExpr(null).setMinValue(Double.NEGATIVE_INFINITY)
.setMaxExpr(null).setMaxValue(Double.POSITIVE_INFINITY)
.build();
return aggregateExpression.child().accept(this, context);
}

@Override
Expand Down

0 comments on commit 216dfba

Please sign in to comment.