avro-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Markus Weimer <wei...@yahoo-inc.com>
Subject Re: runtime error when casting Array<String> to String[]
Date Wed, 27 Apr 2011 18:06:45 GMT

> Do you guys have this problem when casting Array<String> to String[]?
> Am I missing something here :(

whenever you ask for an "array" in the schema, the avro specific compiler gives you a java.util.List,
which cannot be cast to a Java array. I'm personally pretty interested in a way around this,
as my data usually consists of primitive type arrays, where the overhead for a Object Collection
can be prohibitive.

Take care,

View raw message