-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
Incorrect rate agg with custom _doc_count #77734
Labels
:Analytics/Aggregations
Aggregations
>bug
Team:Analytics
Meta label for analytical engine team (ESQL/Aggs/Geo)
Comments
iverase
added
:Analytics/Aggregations
Aggregations
and removed
needs:triage
Requires assignment of a team area label
labels
Sep 15, 2021
elasticmachine
added
the
Team:Analytics
Meta label for analytical engine team (ESQL/Aggs/Geo)
label
Sep 15, 2021
Pinging @elastic/es-analytics-geo (Team:Analytics) |
jpountz
changed the title
Incorrect rate agg when used on histogram fields
Incorrect rate agg with custom _doc_count
Sep 15, 2021
As per a discussion with @sqren, I updated the title and description to remove references to the histogram field since this bug can be reproduced with the rate agg and documents that have custom |
This was referenced Oct 5, 2021
Closed
csoulios
added a commit
that referenced
this issue
Oct 19, 2021
When running a rate aggregation without setting the field parameter, the result is computed based on the bucket doc_count. This PR adds support for a custom _doc_count field. Closes #77734
csoulios
added a commit
that referenced
this issue
Oct 19, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
:Analytics/Aggregations
Aggregations
>bug
Team:Analytics
Meta label for analytical engine team (ESQL/Aggs/Geo)
Versions affected: 7.15 and up
I'm seeing some odd results with the rate agg on documents that have a custom
_doc_count
and wondering if it's a bug, similar to #74617.Reproduce problem
Response
The search request will return:
Expectation
I'd expect that a bucket for 1 minute with 10 documents should have a rate of 10.
Actual
Rate is 1.0
The text was updated successfully, but these errors were encountered: