-
Notifications
You must be signed in to change notification settings - Fork 25k
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
sum
and stats.sum
return different values when doc_count
is 0
.
#26893
Labels
Comments
We should change the Stats aggregation so the value of |
I will be happy to fix this issue! Please assign it to me |
@PammyS We are not able to assign issues to users that are not part of the Elastic org but we would love it if you are able to work on this fix. Please feel most welcome to open a PR. Thanks |
liketic
added a commit
to liketic/elasticsearch
that referenced
this issue
Nov 2, 2017
colings86
pushed a commit
that referenced
this issue
Nov 2, 2017
martijnvg
added a commit
that referenced
this issue
Nov 3, 2017
* master: Fixed byte buffer leak in Netty4 request handler Avoid uid creation in ParsedDocument (#27241) Rander sum as zero if count is zero for stats aggregation (#26893) (#27193) Add additional explanations around discovery.zen.ping_timeout (#27231) Remove unused searcher parameter in SearchService#createContext (#27227) Upgrade to Lucene 7.1 (#27225) Move IndexShard#getWritingBytes() under InternalEngine (#27209) Adjust bwc version for exists query tests Introducing took time for _msearch
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Elasticsearch version: 7.0.0-alpha1-SNAPSHOT, Build: 9e36764/2017-10-03T12:16:42.018Z
Plugins installed: [x-pack]
JVM version: 1.8.0_144
OS version: macOS 10.13
Description of the problem including expected versus actual behavior:
You get different results for e.g. a distinct
sum
aggregation vs. thesum
within thestats
aggregation. For adoc_count
of0
, thesum
aggregation returns0
whereas thesum
within thestats
aggregation isnull
.Steps to reproduce:
The document in category
c2
doesn't include thevalue
field. All the aggregation results have a value ofnull
whereas only thesum
aggregation has avalue
of0
.The text was updated successfully, but these errors were encountered: