You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Tom White (JIRA)" <ji...@apache.org> on 2014/06/11 17:12:02 UTC
[jira] [Updated] (AVRO-1525) Java: ReflectData cannot resolve union
with fixed
[ https://issues.apache.org/jira/browse/AVRO-1525?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tom White updated AVRO-1525:
----------------------------
Attachment: AVRO-1525.patch
Here's a patch that fixes the problem. The test fails without the fix.
> 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
> Attachments: AVRO-1525.patch
>
>
> 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)