Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
englefly committed Oct 30, 2023
1 parent 8d228b6 commit 4657f4f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,8 @@ private long getBuildSideNdv(AbstractPhysicalJoin<? extends Plan, ? extends Plan
}
ExpressionEstimation estimator = new ExpressionEstimation();
ColumnStatistic buildColStats = compare.right().accept(estimator, right.getStats());
return buildColStats.isUnKnown ? (long) right.getStats().getRowCount() : Math.max(1, (long) buildColStats.ndv);
return buildColStats.isUnKnown ?
Math.max(1, (long) right.getStats().getRowCount()) : Math.max(1, (long) buildColStats.ndv);
}

public static Slot checkTargetChild(Expression leftChild) {
Expand Down

0 comments on commit 4657f4f

Please sign in to comment.