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 11, 2024
1 parent 1a6b92e commit e75189d
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,14 @@ public ColumnStatistic visitBoundFunction(BoundFunction boundFunction, Statistic
@Override
public ColumnStatistic visitAggregateExpression(AggregateExpression aggregateExpression,
Statistics context) {
return aggregateExpression.child().accept(this, 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();
}

@Override
Expand Down

0 comments on commit e75189d

Please sign in to comment.