You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Sven Erik Knop (Jira)" <ji...@apache.org> on 2021/01/10 11:03:00 UTC
[jira] [Created] (KAFKA-12170) Connect Cast cannot deal with Bytes
correctly
Sven Erik Knop created KAFKA-12170:
--------------------------------------
Summary: Connect Cast cannot deal with Bytes correctly
Key: KAFKA-12170
URL: https://issues.apache.org/jira/browse/KAFKA-12170
Project: Kafka
Issue Type: Bug
Components: KafkaConnect
Affects Versions: 2.6.1, 2.7.0
Reporter: Sven Erik Knop
Fix For: 2.7.1
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"}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)