Skip to content

Commit

Permalink
[opt](nereids) refine operator estimation
Browse files Browse the repository at this point in the history
  • Loading branch information
zhongjian.xzj authored and zhongjian.xzj committed Sep 13, 2024
1 parent 3a61c2b commit 1d2fbd5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -547,8 +547,8 @@ public Statistics visitIsNull(IsNull isNull, EstimationContext context) {
Expression child = isNull.child();
Statistics childStats = child.accept(this, context);
outputRowCount = Math.max(childStats.getRowCount() * DEFAULT_ISNULL_SELECTIVITY, outputRowCount);
outputRowCount = Math.max(outputRowCount, 1);
}
outputRowCount = Math.max(outputRowCount, 1);

ColumnStatisticBuilder colBuilder = new ColumnStatisticBuilder(childColStats);
colBuilder.setCount(outputRowCount).setNumNulls(outputRowCount)
Expand Down

0 comments on commit 1d2fbd5

Please sign in to comment.