anupsingh3292 opened a new issue, #3179:
URL: https://github.com/apache/kvrocks/issues/3179

   ### Search before asking
   
   - [x] I had searched in the 
[issues](https://github.com/apache/kvrocks/issues) and found no similar issues.
   
   
   ### Version
   
   JSON.ARRINSERT does not work correctly, while the same command works fine in 
Redis with the RedisJSON module.
   
   ### Minimal reproduce step
   
   127.0.0.1:6666> JSON.SET riders $ []
   OK
   127.0.0.1:6666> JSON.ARRAPPEND riders $ '"Norem"'
   (integer) 1
   127.0.0.1:6666> JSON.ARRINSERT riders $ 1 '"Prickett"' '"Royce"' '"Castilla"'
   (nil)
   127.0.0.1:6666> JSON.GET riders $
   "[[\"Norem\"]]"
   
   ### What did you expect to see?
   
   127.0.0.1:6379> JSON.SET riders $ []
   OK
   127.0.0.1:6379> JSON.ARRAPPEND riders $ '"Norem"'
   (integer) 1
   127.0.0.1:6379> JSON.ARRINSERT riders $ 1 '"Prickett"' '"Royce"' '"Castilla"'
   (integer) 4
   127.0.0.1:6379> JSON.GET riders $
   "[[\"Norem\",\"Prickett\",\"Royce\",\"Castilla\"]]"
   
   ### What did you see instead?
   
   JSON.ARRINSERT should insert the elements into the JSON array (same as 
RedisJSON), returning the new array length.
   
   ### Anything Else?
   
   _No response_
   
   ### Are you willing to submit a PR?
   
   - [ ] I'm willing to submit a PR!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to