Hi Tianxiang, Looks like that the UUID type hasn't been added to IDL definition yet.
https://github.com/apache/avro/blob/master/lang/java/compiler/src/main/javacc/org/apache/avro/compiler/idl/idl.jj#L214-L244 Please create a JIRA to track this. *Yibing Shi* *Customer Operations Engineer* <http://www.cloudera.com> On Wed, Nov 23, 2016 at 4:58 AM, Tianxiang Xiong < [email protected]> wrote: > The AVRO-1554 <https://issues.apache.org/jira/browse/AVRO-1554> ticket > seems to suggest that the issue of representing UUIDs is resolved with > logical > types <http://avro.apache.org/docs/1.8.1/spec.html#Logical+Types> in Avro > 1.8.1. > > The specification offers several examples of using logical types; decimals > are represented as: > > { > > "type": "bytes", > "logicalType": "decimal", > "precision": 4, > "scale": 2 > } > > However, there does not seem to be an example of UUID. The most > popular answers <http://stackoverflow.com/a/19705149/864684> via > Google/StackOverflow are a few years old and do not make use of > logical types, and can therefore be misleading for newer versions of > Avro > > Is there an idiomatic way of representing UUIDs in Avro Schemas? > > Thanks, > > -- > > *Tianxiang Xiong *| Clojure Engineer > > *[email protected] <[email protected]>* > > 747 Front Street, Floor 4 | San Francisco, CA 94111 >
