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

Java: ReflectData cannot resolve union with fixed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.7.6
    • 1.7.7
    • java
    • None
    • Reviewed

    Description

      Writing records with the following schema fail when using the Reflect API:

      {
        "type" : "record",
        "name" : "simple_schema",
        "namespace" : "com.foo.bar",
        "fields" : [ {
          "name" : "foo",
          "type" : {
            "type" : "fixed",
            "name" : "bar",
            "size" : 2
          }
        }, {
          "name" : "baz",
          "type" : [ "null", "bar" ],
          "default" : null
        } ]
      }
      

      This was found by Harsh J Chouraria.

      Attachments

        1. AVRO-1525.patch
          2 kB
          Thomas White

        Issue Links

          Activity

            People

              tomwhite Thomas White
              tomwhite Thomas White
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: