avro-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Will Gorman <will.gor...@gmail.com>
Subject Error serializing TUnion with avro-thrift
Date Wed, 14 May 2014 20:29:18 GMT
I don't seem to be able to serialize Thrift structures that contain a
Thrift union type (TUnion).  An AvroRuntimeException saying "Unknown datum
type" is thrown when it gets to that field.  Are Thrift unions intended to
be supported?  It looks like org.apache.avro.thrift.ThriftData#isRecord
returns false if the datum is a TUnion and so it falls through all the
datum type checks.  On the other hand, an Avro schema can be generated for
the  Thrift class that produces an Avro record type for the TUnion just as
if it were a regular TBase struct.  I'd expect an error generating the
schema if the type was unsupported.

Mime
View raw message