Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/feature/query-stats-followup' in…
Browse files Browse the repository at this point in the history
…to staging/query-statistics
  • Loading branch information
awildturtok committed Jan 2, 2024
2 parents d616ea1 + 8185e0b commit 2941afd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ private Layout getIntegerLayout() {

final int nBins = Math.min(1 + min - max, expectedBins);

final int width = (min - max) / nBins;
final int width = Math.max(1, (min - max) / nBins);


return CustomLayout.create(DoubleStream.iterate(min, cur -> cur <= max, cur -> cur + width).toArray());
Expand Down

0 comments on commit 2941afd

Please sign in to comment.