You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kvrocks.apache.org by "superikw (via GitHub)" <gi...@apache.org> on 2024/03/18 08:00:29 UTC
[I] JSON.SET cant add a new field [kvrocks]
superikw opened a new issue, #2176:
URL: https://github.com/apache/kvrocks/issues/2176
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/kvrocks/issues) and found no similar issues.
### Version
2.7.0 & 2.8.0
### Minimal reproduce step
redis> JSON.SET doc $ '{"a":2}'
OK
redis> JSON.SET doc $.b '8'
OK
redis> JSON.GET doc $
"[{\"a\":2}]"
### What did you expect to see?
"[{\"a\":2,\"b\":8}]"
### What did you see instead?
"[{\"a\":2}]"
### 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: issues-unsubscribe@kvrocks.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] JSON.SET cant add a new field [kvrocks]
Posted by "superikw (via GitHub)" <gi...@apache.org>.
superikw commented on issue #2176:
URL: https://github.com/apache/kvrocks/issues/2176#issuecomment-2003744241
Thanks for your work :)
--
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: issues-unsubscribe@kvrocks.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] JSON.SET cant add a new field [kvrocks]
Posted by "PragmaTwice (via GitHub)" <gi...@apache.org>.
PragmaTwice commented on issue #2176:
URL: https://github.com/apache/kvrocks/issues/2176#issuecomment-2003218450
Yeah it is an known issue. Currently Kvrocks doesn't support set value for a nonexistant path.
Current a workaround is to retrieve the full object and then set the field.
I'll try to fix it soon.
--
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: issues-unsubscribe@kvrocks.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] JSON.SET cant add a new field [kvrocks]
Posted by "PragmaTwice (via GitHub)" <gi...@apache.org>.
PragmaTwice closed issue #2176: JSON.SET cant add a new field
URL: https://github.com/apache/kvrocks/issues/2176
--
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: issues-unsubscribe@kvrocks.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] JSON.SET cant add a new field [kvrocks]
Posted by "PragmaTwice (via GitHub)" <gi...@apache.org>.
PragmaTwice commented on issue #2176:
URL: https://github.com/apache/kvrocks/issues/2176#issuecomment-2003386114
It will be fixed in https://github.com/apache/kvrocks/pull/2178.
Although it's not a perfect fix since we're waiting for support in the underlying library jsoncons, it can work for most scenarios.
--
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: issues-unsubscribe@kvrocks.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org