StreamEntry support Binary#3803
Conversation
sazzad16
left a comment
There was a problem hiding this comment.
We must not break the existing implementations.
Hi, @sazzad16, thanks for the review 🙇 |
By creating new methods. I just realized what your title says:
Actually we want StreamEntry binary support while keeping the String ones. |
Thanks, I will update. |
thachlp
left a comment
There was a problem hiding this comment.
Hi @sazzad16, as I understand, there is xadd support Map<byte[], byte[]> hash already.
public final CommandObject<byte[]> xadd(byte[] key, XAddParams params, Map<byte[], byte[]> hash) {
return new CommandObject<>(addFlatMapArgs(commandArguments(XADD).key(key).addParams(params), hash),
BuilderFactory.BINARY);
}
|
@thachlp StreamEntry has nothing to do with XADD. |
1ffa1d7 to
431f721
Compare
|
Now that this package supports binary value in stream entries, would someone be able to update spark redis to support binary columns also? It is currently only Map<string, string> https://github.com/RedisLabs/spark-redis/blob/master/src/main/scala/com/redislabs/provider/redis/streaming/RedisStreamReceiver.scala#L108 Which causes the following error:
If your stream entry schema has binary data: |
|
@jfloodnet This PR is closed by OP without being merged. |
oh that's true. @thachlp what was the reason you closed this PR? |
|
@jfloodnet I am just ambiguous about doing it, but If it is important, I will continue on it now, I will ask @sazzad16 for help. |
480180b to
8582f4c
Compare
8582f4c to
d92e9d7
Compare
Issue: #3566