avro-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Cutting <cutt...@apache.org>
Subject Re: How to deserialize avro file with union/many schemas?
Date Thu, 24 Jul 2014 16:18:08 GMT
On Thu, Jul 24, 2014 at 7:23 AM, Echo <echolql@gmail.com> wrote:
> The avro library can't read the file with that 'union' schema, so I wonder:

With which Avro library can't you read a file with a union schema?
Unions are a standard feature and every implementation should be able
to read a file with such a schema.

You can view the file contents with the 'tojson' command line tool:

java -jar /path/to/avro-tools.jar tojson --pretty myfile.avro

(You can also use the 'getschema' command line tool to view the schema
of the file.)

Doug

Mime
View raw message