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

Wrong result when using a filter expression on a non-existing child array #1089

Open
LiorKogan opened this issue Sep 14, 2023 · 0 comments
Open
Labels

Comments

@LiorKogan
Copy link
Member

LiorKogan commented Sep 14, 2023

RedisJSON 2.6.6

redis> JSON.SET x $ '{"a":[1,2,3]}'
OK
redis> JSON.GET x '$.a[0][?(@==1)]'
"[1]"

Expected

redis> JSON.GET x '$.a[0][?(@==1)]'
"[]"

Another example:

redis> JSON.GET x '$.a[0][?(@==@)][?1][?2][?3]'
"[1]"
@LiorKogan LiorKogan added the bug label Sep 14, 2023
@LiorKogan LiorKogan changed the title Wrong result when using a relational operator on a non-existing child array Wrong result when using a filter expression on a non-existing child array Sep 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant