Skip to content

Commit

Permalink
better comment
Browse files Browse the repository at this point in the history
  • Loading branch information
max-hoffman committed Jul 26, 2024
1 parent 4f71536 commit a3c3bd8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sql/memo/rel_props.go
Original file line number Diff line number Diff line change
Expand Up @@ -496,6 +496,8 @@ func getJoinStats(leftIdx, rightIdx, leftChild, rightChild sql.Statistic, prefix
if expandRatio == 1 {
return leftIdx, nil
} else {
// ths undershoots the estimate, but is directionally correct and faster
// than squaring every bucket
return leftIdx.WithRowCount(leftIdx.RowCount() * expandRatio), nil
}
}
Expand Down

0 comments on commit a3c3bd8

Please sign in to comment.