travisshivers opened a new issue, #2830: URL: https://github.com/apache/kvrocks/issues/2830
### Search before asking - [x] I had searched in the [issues](https://github.com/apache/kvrocks/issues) and found no similar issues. ### Version kvrocks 2.11.1 5.15.106-flatcar linux ### Minimal reproduce step XADD on a stream with a empty field name results in it being returned as nil when read instead of an empty string, which is how normal redis behaves. With kvrocks and redis-cli: ``` > XADD myTestStream * "" myVal "1742078441675-0" > XREAD COUNT 1000 STREAMS myTestStream 0 1) 1) "myTestStream" 2) 1) 1) "1742078441675-0" 2) 1) (nil) 2) "myVal" ``` ### What did you expect to see? I expected to see the same behavior as normal redis: ``` > XADD myTestStream * "" myVal "1742078743716-0" > XREAD COUNT 1000 STREAMS myTestStream 0 1) 1) "myTestStream" 2) 1) 1) "1742078743716-0" 2) 1) "" 2) "myVal" ``` ### What did you see instead? With kvrocks and redis-cli: ``` > XADD myTestStream * "" myVal "1742078441675-0" > XREAD COUNT 1000 STREAMS myTestStream 0 1) 1) "myTestStream" 2) 1) 1) "1742078441675-0" 2) 1) (nil) 2) "myVal" ``` ### Anything Else? This difference in behavior messes up the [go-redis client](https://github.com/redis/go-redis) which is not expecting that these fields can be nil. ### 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]
