Skip to content

Commit

Permalink
Use buffer instead
Browse files Browse the repository at this point in the history
  • Loading branch information
Fokko committed Jan 31, 2024
1 parent a15f9e4 commit 9f62f61
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 3 additions & 3 deletions doc/content/en/docs/++version++/Specification/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
public class Conversions {

public static class UUIDConversion extends Conversion<UUID> {

@Override
public Class<UUID> getConvertedType() {
return UUID.class;
Expand Down

0 comments on commit 9f62f61

Please sign in to comment.