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

Switch to Plain View
Avro >> mail # user >> GenericDatumWriter.write and the Integer type

Mark Hayes 2012-06-09, 15:58
Copy link to this message
Re: GenericDatumWriter.write and the Integer type
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.