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
Describe the bug
JSON.ARRTRIM semantics is reversed
It trims the specified range instead of "rim an array so that it contains only the specified inclusive range of elements" (from redis docs)
Describe the bug
JSON.ARRTRIM semantics is reversed
It trims the specified range instead of "rim an array so that it contains only the specified inclusive range of elements" (from redis docs)
To Reproduce
127.0.0.1:6379> JSON.SET key $ "[1, 2, 3, 4, 5, 6, 7]"
OK
127.0.0.1:6379> JSON.GET key
"[1,2,3,4,5,6,7]"
127.0.0.1:6379> JSON.ARRLEN key $
127.0.0.1:6379> JSON.ARRTRIM key $ 2 3
EXPECTED:
GOT:
127.0.0.1:6379> JSON.GET key
EXPECTED:
"[3, 4]"
GOT:
"[1,2,4,5,6,7]"
The text was updated successfully, but these errors were encountered: