avro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bram Biesbrouck (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AVRO-457) add tools that read/write xml records from/to avro data files
Date Fri, 22 Jan 2016 09:37:40 GMT

    [ https://issues.apache.org/jira/browse/AVRO-457?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15112209#comment-15112209

Bram Biesbrouck commented on AVRO-457:

I wish it was that easy. When I run this code 
Schema avroSchema = ReflectData.get().getSchema(EbuCoreMainType.class);

I get this exception: {code}org.apache.avro.AvroTypeException: Unknown type: T{code}
because JAXBElement uses generic types and one of the members in the tree is:
protected List<JAXBElement<Object>> audioContentIDRef;
and generics don't seem to work well.

Any suggestions to get around this?


> add tools that read/write xml records from/to avro data files
> -------------------------------------------------------------
>                 Key: AVRO-457
>                 URL: https://issues.apache.org/jira/browse/AVRO-457
>             Project: Avro
>          Issue Type: New Feature
>          Components: java
>    Affects Versions: 1.7.8
>            Reporter: Doug Cutting
>              Labels: gsoc
>         Attachments: AVRO-457.patch, AVRO-457.patch, AVRO-457.patch, AVRO-457.patch,
> It might be useful to have command-line tools that can read & write arbitrary XML
data from & to Avro data files.

This message was sent by Atlassian JIRA

View raw message