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 9, 2024
2 parents f35b253 + 0f26e43 commit 8733cc0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ public ResultColumnStatistics describe() {
@NotNull
private List<StringColumnStatsCollector.ColumnDescription.Entry> createBins(int expectedBins) {

final double min = Math.max(getStatistics().getMean() - getStatistics().getStandardDeviation() * 2, getStatistics().getMin());
final double max = Math.min(getStatistics().getMean() + getStatistics().getStandardDeviation() * 2, getStatistics().getMax());
final double min = getStatistics().getPercentile(20d);
final double max = getStatistics().getPercentile(80d);

final BalancingHistogram histogram = BalancingHistogram.create(min, max, expectedBins);

Expand Down

0 comments on commit 8733cc0

Please sign in to comment.