opwvhk commented on code in PR #2652: URL: https://github.com/apache/avro/pull/2652#discussion_r1464674618
########## doc/content/en/docs/++version++/Specification/_index.md: ########## @@ -827,7 +827,25 @@ Here, as scale property is stored in value itself it needs more bytes than prece ### UUID The `uuid` logical type represents a random generated universally unique identifier (UUID). -A `uuid` logical type annotates an Avro `string`. The string has to conform with [RFC-4122](https://www.ietf.org/rfc/rfc4122.txt) +A `uuid` logical type annotates an Avro `string` or `fixed` of length 16. The string has to conform with [RFC-4122](https://www.ietf.org/rfc/rfc4122.txt) + +The following schemas represent a uuid: +```json +{ + "type": "string", + "logicalType": "uuid" +} +``` + +```json +{ + "type": "fixed", + "size": "16", + "logicalType": "uuid" +} +``` + +(UUID will be sorted differently if the underlying type is a string or a fixed) Review Comment: Let's wait until PR #2672 is merged, and take that as documentation. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
