[
https://issues.apache.org/jira/browse/KAFKA-12170?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17262723#comment-17262723
]
Sven Erik Knop commented on KAFKA-12170:
----------------------------------------
Yes please - and yes I am working on this issue. The PR is ready, but I am just
reading through the steps that have to be taken since this is my first PR for
Apache Kafka.
> Connect Cast cannot deal with fields of type "bytes" correctly
> --------------------------------------------------------------
>
> Key: KAFKA-12170
> URL: https://issues.apache.org/jira/browse/KAFKA-12170
> Project: Kafka
> Issue Type: Bug
> Components: KafkaConnect
> Affects Versions: 2.7.0, 2.6.1
> Reporter: Sven Erik Knop
> Priority: Major
> Fix For: 2.7.1
>
> Original Estimate: 24h
> Remaining Estimate: 24h
>
> 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)