avro-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Cutting <cutt...@apache.org>
Subject Re: GenericRecord and passivity
Date Tue, 15 Oct 2013 23:53:01 GMT
On Tue, Oct 15, 2013 at 4:49 PM, Eric Wasserman <ewasserman@247-inc.com> wrote:
> Change this line:
> DatumReader<GenericRecord> reader = new
> GenericDatumReader<GenericRecord>(schema_11);
>
> to this:
> DatumReader<GenericRecord> reader = new
> GenericDatumReader<GenericRecord>(schema_10,  schema_11);

Yes, that is the fix.

Or, better yet, use DataFileWriter & DataFileReader, which handle this for you.

Doug

Mime
View raw message