-
Notifications
You must be signed in to change notification settings - Fork 139
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
[BUG] Larger integers in a SUM aggregation are ignored #1052
Comments
Note: in the example above, the mapping for According to https://opensearch.org/docs/2.0/opensearch/supported-field-types/numeric/, longs are supported up to 2^63. Seems like aggregation probably converts the numbers to doubles to do the aggregation, since the response is:
And a conversion from |
Option A) Report an error when trying to aggregate on Regardless, we should fail with an error for any number larger than what is supported by OpenSearch (https://opensearch.org/docs/2.0/opensearch/supported-field-types/numeric). |
Option B was taken. Issue made in OpenSearch project opensearch-project/OpenSearch#5537. |
What is the bug?
When summing integers, large integers can be ignored.
How can one reproduce the bug?
Steps to reproduce the behavior:
What is the expected behavior?
Expected the sum to be:
499
.If you leave out the
1000
and-500
values, you get a result of0
.What is your host/environment?
n/a
Do you have any screenshots?
n/a
Do you have any additional context?
n/a
The text was updated successfully, but these errors were encountered: