We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Filter might return duplicate results when the internal objects are similar.
e.g. input JSON both objects have name == {"first":"A","middle":"A"}
{"first":"A","middle":"A"}
[{{"name":{"first":"A","middle":"A"},"rank":8},{"name":{"first":"A","middle":"A"},"rank":90}]
When running:
$[?($.name.first=="A")]
The following result is returned:
[{{"name":{"first":"A","middle":"A"},"rank":8},{"name":{"first":"A","middle":"A"},"rank":8},{{"name":{"first":"A","middle":"A"},"rank":90},{"name":{"first":"A","middle":"A"},"rank":90}]
It seems like the bug is in this code which compares all the candidates with all values and return each "parent" twice.
jsonpath/src/select/expr_term.rs
Line 107 in 1a84c5a
ref RedisJSON/RedisJSON#667
The text was updated successfully, but these errors were encountered:
Here's a working example (above syntax is broken):
[{"name":{"first":"A"},"rank":8},{"name":{"first":"A"},"rank":90}]
for selector
$[?(@.name.first=="A")]
Interestingly enough a simpler document works:
[{"name": "A","rank":8},{"name": "A","rank":90}] $[?(@.name=="A")]
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Filter might return duplicate results when the internal objects are similar.
e.g. input JSON both objects have name ==
{"first":"A","middle":"A"}
When running:
The following result is returned:
It seems like the bug is in this code which compares all the candidates with all values and return each "parent" twice.
jsonpath/src/select/expr_term.rs
Line 107 in 1a84c5a
ref RedisJSON/RedisJSON#667
The text was updated successfully, but these errors were encountered: