Skip to content

Commit

Permalink
Treat 0 Estimations as NaN
Browse files Browse the repository at this point in the history
  • Loading branch information
abhinavmuk04 committed Jun 27, 2024
1 parent c3e4c8e commit 2d27492
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public PlanNodeStatsEstimate(double outputRowCount, double totalSize, PMap<Varia
JoinNodeStatsEstimate joinNodeStatsEstimate, TableWriterNodeStatsEstimate tableWriterNodeStatsEstimate, PartialAggregationStatsEstimate partialAggregationStatsEstimate)
{
checkArgument(isNaN(outputRowCount) || outputRowCount >= 0, "outputRowCount cannot be negative");
this.outputRowCount = outputRowCount;
this.outputRowCount = outputRowCount == 0 ? NaN : outputRowCount;
this.totalSize = totalSize;
this.variableStatistics = variableStatistics;
this.sourceInfo = requireNonNull(sourceInfo, "SourceInfo is null");
Expand Down

0 comments on commit 2d27492

Please sign in to comment.