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

Fixes non-bucket based aggregations throwing exception #216

Merged

Conversation

quintenbuis
Copy link
Contributor

Currently using the MaxAggregation throws an exception because the buckets key cannot be found, which is correct because according to the docs the max aggregation doesn't have a buckets key.
The

The fix:

When the above scenario happens it will dump the raw aggregation data as the AggregationResult->values.

Notes

I'm aware it isn't the cleanest of implementations, but this way it ensures backwards compatibility.

@quintenbuis quintenbuis marked this pull request as draft September 21, 2023 09:43
@quintenbuis quintenbuis force-pushed the support-non-bucket-based-aggregations branch from 7ff0225 to 5da9305 Compare September 21, 2023 09:46
@quintenbuis quintenbuis marked this pull request as ready for review September 21, 2023 09:46
@Jeroen-G Jeroen-G merged commit fc68836 into Jeroen-G:master Sep 21, 2023
6 checks passed
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

Successfully merging this pull request may close these issues.

2 participants