Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Avro, mail # user - GenericDatumWriter.write and the Integer type

Copy link to this message
Re: GenericDatumWriter.write and the Integer type
Doug Cutting 2012-06-11, 20:13
On Sat, Jun 9, 2012 at 8:58 AM, Mark Hayes <[EMAIL PROTECTED]> wrote:
> I can override GenericDatumWriter.write to address this (essentially revert
> to the old code behavior).
> But is my reliance on the casting errors, to get cheap validation,
> appropriate?

Relying on a casting error for validation seems appropriate.  Sorry
this change wasn't good for you.  Your workaround seems entirely
reasonable to me.