Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.7.0, 2.6.1
-
Patch, Important
Description
Cast operation on a field of type bytes to a string returns the default ByteBuffer representation, not the content. For example, a field called "payload" of type bytes transformed in this way:
payload:string
Returns the resultĀ
"payload":{"string":"java.nio.HeapByteBuffer[pos=0 lim=4 cap=4]"}
We propose instead to represent the byte array as a hex string
"payload":{"string":"FFEEDDAABB123F"}
Attachments
Issue Links
- relates to
-
KAFKA-6684 Support casting values with bytes schema to string
-
- Resolved
-
- links to