You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for raising this issue, you definitely make a great point regarding differentiate missing values and true zero.
I'll need to do a little code archaeology to see if I can discern the original reasoning for the behaviour incase it is relevant.
As changing this behaviour would be a breaking change it may not be fixed until the 3.0.0 release, otherwise it would need a backwards compatible change that adds an additional getter (e.g. valueOrNull) with the correct behaviour and the old getter keeps the defaulting logic.
What is the bug?
MaxAggregate
has value as 0 when there is no record match or aggregated field has no values even though OpenSearch returns nullHow can one reproduce the bug?
null
by OpenSearch butMaxAggregate
fromjava-client
has value as 0What is the expected behavior?
Because value is defaulted to 0, it causes confusion to consumers as there is no way to tell whether
0
means no value or it's actually the max.The expected behaviour should be returning the same value as
OpenSearch
What is your host/environment?
OpenSearch 2.11
OpenSearch java client 2.14
The text was updated successfully, but these errors were encountered: