DiceDB / dice

DiceDB is a redis-compliant, reactive, scalable, highly-available, unified cache optimized for modern hardware.
https://dicedb.io/
Other
6.83k stars 1.08k forks source link

Inconsistent `JSON.GET`: The output isn't matching with redis #1278

Closed shashi-sah2003 closed 1 week ago

shashi-sah2003 commented 1 week ago

Steps to reproduce

  1. JSON.SET doc $ '{"a":2, "b": 3, "nested": {"a": 4, "b": null}}'
  2. JSON.GET doc $..b
  3. JSON.GET doc ..a $..b

Expected output

image image image

The expected output when the above set of commands when run on Redis

Observed output

image

The observed output when the above set of commands when run on DiceDB

The steps to run the test cases are mentioned in the README of the dice-tests repository.

Expectations for resolution

This issue will be considered resolved when the following things are done

  1. changes in the dice code to meet the expected behavior
  2. Successful run of the tcl test behavior

You can find the tests under the tests directory of the dice repository and the steps to run are in the README file. Refer to the following links to set up DiceDB and Redis 7.2.5 locally

shashi-sah2003 commented 1 week ago

@JyotinderSingh @lucifercr07 @apoorvyadav1111 I can work on this issue. thanks

JyotinderSingh commented 1 week ago

@JyotinderSingh @lucifercr07 @apoorvyadav1111 I can work on this issue.

thanks

Thanks for taking this up, assigned

apoorvyadav1111 commented 1 week ago

Hi, this issue is a duplicate of #1002, please comment on the issue. Closing as duplicate.