Inconsistent `JSON.FORGET`: Getting null when deleting element from array
Steps to reproduce
- Create a JSON array in DiceDB.
- Use the JSON.FORGET command to remove an element from the array.
- Observe the resulting array.
Expected output
The expected output when the above set of commands (maybe when run on Redis)
["element1", "element3"]
Observed output
The observed output when the above set of commands when run on DiceDB
["element1", null, "element3"]
Expectations for resolution
This issue will be considered resolved when the following things are done
- changes in the
dicecode to meet the expected behavior - addition of relevant test case to ensure we catch the regression
You can find the tests under the integration_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
@JyotinderSingh @lucifercr07 I've created the issue for JSON.FORGET but i'm not able to assign it to myself. Can you please assign this to me?
@JyotinderSingh @lucifercr07 I've created the issue for JSON.FORGET but i'm not able to assign it to myself. Can you please assign this to me?
Assigned
@JyotinderSingh Please review this PR