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

Average seems to be wrong #15169

Closed
bigl0af opened this issue Dec 2, 2015 · 1 comment
Closed

Average seems to be wrong #15169

bigl0af opened this issue Dec 2, 2015 · 1 comment

Comments

@bigl0af
Copy link

bigl0af commented Dec 2, 2015

I seem to be getting the wrong result when performing average aggregations via Kibana 4. As you can see, the values being returned for the are steadily right around 8,500,000,000.
screenshot from 2015-12-01 21-38-22

Yet, somehow, I get an average around 4,755,736,842,123,345,920!
screenshot from 2015-12-01 21-37-56

screenshot from 2015-12-01 21-42-30

Running ES 1.7.2, JVM 1.8.0_31

@clintongormley
Copy link
Contributor

Hi @bigl0af

It looks like you have an index which has conflicting mappings between shards. In other words, the same field has been mapped differently on different shards, resulting in this weird calculation. The only thing to do here is to reindex the data with the correct mappings.

This issue has been fixed (along with many others) in the great mapping cleanup in 2.0 (see #8870)

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

No branches or pull requests

2 participants