-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Fix Extended stats deserialization #4109
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
Conversation
Fixes an issue where datetime extended_stats aggregation was getting deserialized as a regular stats aggregation
Note that this fix might not impact anything in practice, since when this code is hit, the rest of the fields are "as_string" fields anyways (in the response examples I'm aware of).
…into benbenwilde-6.x
This commit adds a unit test to assert that the change to AggregateJsonConverter for ExtendedStats aggregation can deserialize the provided response.
@russcam I'm still having issues with a datetime extended stats aggregation dropping subsequent aggregations. It looks like we need another I believe once the aggregate is parsed, the reader is supposed to end on the end token of the aggregation object. However, it looks like it's ending on the end token of the |
Thanks @benbenwilde, that does sound like the case if subsequent aggs are not parsed and returned in the search response instance . I'll take a look at it today |
Relates: #4109 This commit fixes an issue with extended stats aggregation parsing whereby the closing brace of std_deviation_bounds_as_string is not read when skipping over the object, leading to the reader exiting at this point, resulting in any subsequent aggregations from not being read from the JSON response and added to SearchResponse.Aggregations.
@benbenwilde I've opened #4118 to address |
Relates: #4109 This commit fixes an issue with extended stats aggregation parsing whereby the closing brace of std_deviation_bounds_as_string is not read when skipping over the object, leading to the reader exiting at this point, resulting in any subsequent aggregations from not being read from the JSON response and added to SearchResponse.Aggregations.
Supersedes: #4103
Adds a unit test to assert that the change to
AggregateJsonConverter
for ExtendedStats aggregationcan deserialize the provided response.