Uploaded image for project: 'Apache Avro'
  1. Apache Avro
  2. AVRO-2588

DatumWriter does not serialize bytes-typed fields

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Not A Problem
    • 1.9.1
    • None
    • java
    • None

    Description

      When you use a DatumWriter to serialize a record, fields of "bytes" type are NOT serialized. You have to hand-serialize these fields using BinaryEncoder.writeBytes().

      I will attach a sample program which demonstrates this problem.

      Attachments

        1. avroByteSerialization.tar
          20 kB
          Richard N. Hillegas

        Activity

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

          People

            Unassigned Unassigned
            rhillegas Richard N. Hillegas
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment