[
https://issues.apache.org/jira/browse/AVRO-1962?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15688400#comment-15688400
]
Yibing Shi commented on AVRO-1962:
----------------------------------
[~xiongtx], sorry for the misleading info in mail list! UUID type can be
specified like below:
{code}
{
"type": "string",
"logicalType": "uuid"
}
{code}
> Support UUID logical type
> -------------------------
>
> Key: AVRO-1962
> URL: https://issues.apache.org/jira/browse/AVRO-1962
> Project: Avro
> Issue Type: Bug
> Affects Versions: 1.8.1
> Reporter: Tianxiang Xiong
>
> The 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. However, there is [no UUID logical type in Avro
> 1.8.1|https://github.com/apache/avro/blob/release-1.8.1/lang/java/compiler/src/main/javacc/org/apache/avro/compiler/idl/idl.jj#L214-L244].
> The specification offers several examples of using logical types; decimals
> are represented as:
> {code}
> {
> "type": "bytes",
> "logicalType": "decimal",
> "precision": 4,
> "scale": 2
> }
> {code}
> No examples for UUID are offered, presumably because UUIDs are not supported.
> Thanks to [~Yibing]'s confirmation on the mailing list that this is the case.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)