vroyer commented on issue #9899:
URL: https://github.com/apache/pulsar/issues/9899#issuecomment-797513900


   May you coud have in Record:
   default Optional<byte[]> getKeyBytes() {
          return getKey().map(s -> Base64.getDecoder().decode(s));
       }
   
   And if the schema is a KeyValueSchema<Object,Object>, you should get the 
actual ket with getKey() properly decoded with  the ObjectSchema of the key.


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to