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

   ### Search before asking
   
   - [x] I had searched in the 
[issues](https://github.com/apache/kvrocks/issues) and found no similar issues.
   
   
   ### Version
   
   ```
   version:unstable
   kvrocks_version:unstable
   redis_version:4.0.0
   git_sha1:8a50e51c
   kvrocks_git_sha1:8a50e51c
   redis_mode:cluster
   kvrocks_mode:cluster
   os:Linux 5.15.0-139-generic x86_64
   gcc_version:11.4.0
   rocksdb_version:10.2.1
   ```
   
   ### Minimal reproduce step
   
   In KVRocks:
   ```
   localhost:53771> JSON.SET test $ '{"k1":"v1"}'
   OK
   localhost:53771> JSON.SET test $.k2.subk1 '{"k1":"v1"}'
   OK
   localhost:53771> JSON.GET test
   "{\"k1\":\"v1\",\"k2\":{\"subk1\":{\"k1\":\"v1\"}}}"
   ```
   
   ### What did you expect to see?
   
   In Redis:
   ```
   localhost:6379> JSON.SET test $ '{"k1":"v1"}'
   OK
   localhost:6379> JSON.SET test $.k2.subk1 '{"k1":"v1"}'
   (nil)
   localhost:6379> JSON.GET test
   "{\"k1\":\"v1\"}"
   ```
   
   ### What did you see instead?
   
   KVRocks adds the `k2` path but not Redis. I expect them to behave the same.
   
   ### 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