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

Reply via email to