avro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tom White (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AVRO-1525) Java: ReflectData cannot resolve union with fixed
Date Wed, 11 Jun 2014 15:08:03 GMT
Tom White created AVRO-1525:
-------------------------------

             Summary: Java: ReflectData cannot resolve union with fixed
                 Key: AVRO-1525
                 URL: https://issues.apache.org/jira/browse/AVRO-1525
             Project: Avro
          Issue Type: Bug
          Components: java
    Affects Versions: 1.7.6
            Reporter: Tom White
            Assignee: Tom White


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

{code}
{
  "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
  } ]
}
{code}
This was found by Harsh J Chouraria.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message