Open arpitbbhayani opened 3 weeks ago
@arpitbbhayani can i take this up?
@kushal0511-not go for it :)
We have some inconsistency in command due to how we treat JSONPath in JSON.SET command. here are few examples. 1 ) dice : Redis 7.2.5 :
2 ) dice : Redis 7.2.5 :
I will raise PR to fix it
cc @JyotinderSingh
I have tried other libraries for jsonpath, but the current library which we are using is the closest to redis(7.2.5) jsonpath. As we have inconsistency with the redis (like this library parse some json paths differently than redis 7.2.5) , what should be the next steps for this issue. This will affect almost all JSON related commands. Should we fork this library and make changes to it OR Should we create our own from scratch.
@JyotinderSingh @soumya-codes
I have tried other libraries for jsonpath, but the current library which we are using is the closest to redis(7.2.5) jsonpath. As we have inconsistency with the redis (like this library parse some json paths differently than redis 7.2.5) , what should be the next steps for this issue. This will affect almost all JSON related commands. Should we fork this library and make changes to it OR Should we create our own from scratch.
@JyotinderSingh @soumya-codes
Thanks for looking into this @kushal0511-not, let's keep this issue open for now, we can look into fixing it at a later stage. The partial support for the syntax is enough for the existing use cases.
Hi, I have found another inconsistency for JSON.SET
when we try to create a string at the root path.
dice:
redis:
I am working on JSON.STRLEN
and found this deviation. Since this is an open issue, I feel reporting it here is better than raising another issue.
Regards,
Apoorv
This issue is all about ensuring we are as close to Redis as possible. The command in focus for this issue is
JSON.SET
.Go through the official documentation of the command
JSON.SET
on Redis and identify the inconsistencies. The inconsistencies could be inBecause we are trying to be compatible with Redis v7.2.5, I would recommend you try out different variants of the command with different inputs on that specific version. The instructions on running Redis v7.2.5 locally
Once you find the discrepancy, you can either
If you are raising the issue, make sure you provide the details such as
Also, feel free to update the documentation and raise the PR in the docs repository.