avro-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Cutting <cutt...@apache.org>
Subject Re: Type unsupported: string error with Schema.java:704
Date Thu, 06 Aug 2009 21:38:01 GMT
tazan007 wrote:
> Caused by: org.apache.avro.SchemaParseException: Type not yet supported: 
> string
[ ...]
> Is this expeceted behavior?  Do the types have to be complex if they are 
> named types?

Yes.  The only named types are record, enum, and fixed, and only these 
are permitted in the "types" section of a protocol.


Like Java, Avro protocols have no typedef.  You could instead define a 
record with a single field.  This would not alter what's serialized, 
since records add no serialization overhead, but would make for stronger 


View raw message