-
Notifications
You must be signed in to change notification settings - Fork 25.2k
Extended Stats Bucket Aggregation returns parse exception when sigma is an Integer #17499
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
Comments
@russcam Are you sure this is an Elasticsearch issue rather than a NEST issue? I have just tested this on both master and 2.3 (see command line output below for what I did for 2.3) and have not been able to reproduce the issue. Could you maybe provide the stack trace from the Elasticsearch logs?
|
Also, from looking at the code in |
@colings86 I think you've made the same mistake I initially did in looking at Looking at ExtendedStatsBucketParser in 2.3, it looks like the parsing logic for this should be brought in line with the logic used in I see @alexshadow007 has opened a PR with a fix; happy to submit a fix if needed. NEST had an issue with modelling the Extended Stats Bucket Aggregation's |
@russcam yep you are right, I missed that it was |
Fixed by #17562 |
Elasticsearch version:
2.3.0
JVM version:
java version "1.8.0_77"
Java(TM) SE Runtime Environment (build 1.8.0_77-b03)
Java HotSpot(TM) 64-Bit Server VM (build 25.77-b03, mixed mode)
OS version:
Windows 10
Description of the problem including expected versus actual behavior:
The documentation for Extended Stats Aggregation specifies that
sigma
can be any non-negative double. In the example in the docs,3
is passed as the value for sigma.Extended Stats Bucket Aggregation also has a
sigma
parameter but the documentation does not specify what typesigma
is. I assumed it is also adouble
and confirmed this with a (failing) integration test for NEST; a parse exception is returned when passing aninteger
(i.e. no decimal places) as the value forsigma
. I would expect an integer to be valid value as an input for adouble
, based on the example provided for Extended Stats Aggregation.Steps to reproduce:
2
forsigma
returns:
sigma
from2
to2.0
:successfully returns results:
The text was updated successfully, but these errors were encountered: