Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix histogram when there are larger differences in document count #38

Merged
merged 1 commit into from
Sep 24, 2024

Conversation

heyLu
Copy link
Member

@heyLu heyLu commented Sep 23, 2024

The large difference would cause histogram boxes not to be rendered when the counts were very different, very likely due to rounding issues.

A similar fix was already in place when aggregation_terms was used, but not for regular queries.

Before:

2024-09-23T17:29:35,762483331+02:00

After (note the tiny boxes after the big spike):

2024-09-23T17:29:10,423599121+02:00

And for completeness, with &aggregation_terms=level (same as before):

2024-09-23T17:43:30,656994521+02:00

The large difference would cause histogram boxes not to be rendered when the
counts were very different, very likely due to rounding issues.

A similar fix was already in place when `aggregation_terms` was used, but
not for regular queries.
@heyLu heyLu self-assigned this Sep 23, 2024
Copy link
Collaborator

@ivangonzalezacuna ivangonzalezacuna left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@heyLu heyLu merged commit a545a7d into main Sep 24, 2024
2 checks passed
@heyLu heyLu deleted the fix-histogram-with-large-differences branch September 24, 2024 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants