From 9f62f619ab6896b07ae13a3bd8704e0ef28757e8 Mon Sep 17 00:00:00 2001 From: Fokko Driesprong Date: Wed, 31 Jan 2024 21:44:04 +0100 Subject: [PATCH] Use buffer instead --- doc/content/en/docs/++version++/Specification/_index.md | 6 +++--- .../avro/src/main/java/org/apache/avro/Conversions.java | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/doc/content/en/docs/++version++/Specification/_index.md b/doc/content/en/docs/++version++/Specification/_index.md index 84c6f98ec53..c630869416f 100755 --- a/doc/content/en/docs/++version++/Specification/_index.md +++ b/doc/content/en/docs/++version++/Specification/_index.md @@ -825,11 +825,13 @@ _Currently only available in Java and Rust_. Here, as scale property is stored in value itself it needs more bytes than preceding `decimal` type, but it allows more flexibility. ### UUID + The `uuid` logical type represents a random generated universally unique identifier (UUID). -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) +A `uuid` logical type annotates an Avro `string` or `fixed` of length 16. Both the string and `fixed` byte layout have to conform with [RFC-4122](https://www.ietf.org/rfc/rfc4122.txt). The following schemas represent a uuid: + ```json { "type": "string", @@ -845,8 +847,6 @@ The following schemas represent a uuid: } ``` -(UUID will be sorted differently if the underlying type is a string or a fixed) - ### Date The `date` logical type represents a date within the calendar, with no reference to a particular time zone or time of day. diff --git a/lang/java/avro/src/main/java/org/apache/avro/Conversions.java b/lang/java/avro/src/main/java/org/apache/avro/Conversions.java index d8da2d9a2b9..99ad500647e 100644 --- a/lang/java/avro/src/main/java/org/apache/avro/Conversions.java +++ b/lang/java/avro/src/main/java/org/apache/avro/Conversions.java @@ -44,7 +44,6 @@ public class Conversions { public static class UUIDConversion extends Conversion { - @Override public Class getConvertedType() { return UUID.class;