avro-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robey Pointer <ro...@twitter.com>
Subject Re: how to fill in an array (list) from java
Date Fri, 09 Apr 2010 22:23:58 GMT
On 7 Apr 2010, at 21:24, Bruce Mitchener wrote:

> Is this useful to you?
> http://code.google.com/p/thrift-protobuf-compare/source/browse/trunk/tpc/src/serializers/avro/AvroGenericSerializer.java

Is the idea that I can pass null as the schema? I did try that and it blows up:

Exception in thread "main" org.apache.avro.AvroRuntimeException: Not an array schema: null
	at org.apache.avro.generic.GenericData$Array.<init>(GenericData.java:93)
	at com.twitter.avrotest.AvroFoo.<init>(AvroTest.scala:15)

How did you get that to work? :) Is this maybe a recent change in avro? (I'm using 1.3.1.)


View raw message