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
which is leading to deletion of [*] from the Path inside the map, and hence for subsequent calls json path is evaluated on "$.max($.req._event.interpretations.nluConfidence)" which gives Aggregation function attempted to calculate value using empty array because the evaluation criteria has changed.
when we stored in he LRU cache the value of path was $['req']['_event']['interpretations'][*]['nluConfidence'] which was running the max function on array. but after cleanWildcardPathToken(); the value is changed to below image
The text was updated successfully, but these errors were encountered:
we have a use case where we are doing
documentContext.read("$.max($.req._event.interpretations[*].nluConfidence)", String.class)
for the first invocation this is passing.
as for the first invocation there is no value in the LRU cache and new object of JsonPath is created and added in the cache. continuing the first invocation after the new JsonPath is added in cache we are performing multiple operations such as
https://github.com/json-path/JsonPath/blame/8a0d2fd594b4a1baab71132cf5ef74889b9976e5/json-path/src/main/java/com/jayway/jsonpath/internal/path/FunctionPathToken.java#L43
which is leading to deletion of [*] from the Path inside the map, and hence for subsequent calls json path is evaluated on "$.max($.req._event.interpretations.nluConfidence)" which gives
Aggregation function attempted to calculate value using empty array
because the evaluation criteria has changed.when we stored in he LRU cache the value of path was $['req']['_event']['interpretations'][*]['nluConfidence'] which was running the max function on array. but after cleanWildcardPathToken(); the value is changed to below image
The text was updated successfully, but these errors were encountered: