Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-12170

Connect Cast cannot deal with fields of type "bytes" correctly

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • 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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            seknop Sven Erik Knop
            seknop Sven Erik Knop
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 24h
                24h
                Remaining:
                Remaining Estimate - 24h
                24h
                Logged:
                Time Spent - Not Specified
                Not Specified

                Issue deployment