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

Java: ReflectData cannot resolve union with fixed

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.7.6
    • Fix Version/s: 1.7.7
    • Component/s: java
    • Labels:
      None
    • Hadoop Flags:
      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

          Issue Links

            Activity

              People

              • Assignee:
                tomwhite Tom White
                Reporter:
                tomwhite Tom White
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: