-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
ExtendedStats with one document -> UnexpectedElasticsearchClientException #5007
Comments
Actually now I'm just filtering my results based on document count calculated on a pre query. Secondly, how to avoid a pre query to filter data? is it possible to calculate ExtendedStats based on document count > 1 on the same query? |
Hi @meriturva, this looks like a bug.
I've not seen Elasticsearch return |
In meanwhile, any workaround to avoid double query (to filter aggregation without documents)? |
Hi @russcam I just would like to ask news about that issue or maybe a cool workaround to avoid double queries. |
Just to know @russcam ...is it fixed on 7.10 version? |
Hi @meriturva there's no change in NEST for this yet. There's been some discussion about whether Elasticsearch should be returning @Mpdreamz, @stevejgordon perhaps we can check for |
Just updated from 7.6 to latest version: 7.10 and encountered the very similar problem `
` error message is pretty much the same: Elasticsearch.Net.UnexpectedElasticsearchClientException: expected:'Number Token', actual:'"NaN"', at offset:493 ---> Elasticsearch.Net.Utf8Json.JsonParsingException: expected:'Number Token', actual:'"NaN"', at offset:493 |
With ES 7.6 "NaN" has been returned - at aleast when index is set to ignore malformed values. |
same issue un 7.11.1 |
I am experiencing the very same problem (in my case it's on 7.10.0), and can confirm that the NaN comes from the computed "sampling" fields, not from my documents.
I really just need to compute the standard deviation, don't even know what the "sampling" fields are used for. |
I've opened #5404 to address |
Awesome, thanks!!! |
NEST/Elasticsearch.Net version: Hello, FYI - same type of issue still exists, but me comes from different line of code in both master and 7.13: |
NEST/Elasticsearch.Net version:
7.9.0
Elasticsearch version:
7.9.1
Description of the problem including expected versus actual behavior:
Using ExtendedStats on a numeric value on one document generates always an exception:
ps: I really don't know if the issue was present before, actually we working usually with a lot of documents, so this is the first time we see only one document after filtering our index and the first time in years that we see this exception.
Expected behavior
No exception but an empty result.
The text was updated successfully, but these errors were encountered: