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

Spec example for record serialization is incorrect

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.2.0
    • 1.3.0
    • spec
    • None

    Description

      An instance of this record whose a field has value 27 (encoded as hex 36) and whose b field has value "foo" (encoded as hex bytes OC 66 6f 6f), would be encoded simply as the concatenation of these ...

      but "foo" should be encoded as zigzag(3) followed by "foo". zigzag(3) is 0x06, not 0x0c

      Attachments

        1. avro-227.txt
          0.9 kB
          Todd Lipcon

        Activity

          People

            tlipcon Todd Lipcon
            tlipcon Todd Lipcon
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: