You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Sebastien Dubois (JIRA)" <ji...@apache.org> on 2017/12/08 14:29:00 UTC

[jira] [Comment Edited] (AVRO-1497) Add LogicalType support to Java

    [ https://issues.apache.org/jira/browse/AVRO-1497?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16283656#comment-16283656 ] 

Sebastien Dubois edited comment on AVRO-1497 at 12/8/17 2:28 PM:
-----------------------------------------------------------------

Hello,

This is probably a silly question, but is it possible to add annotations to a Java type to specify the logicalType?
In my case, I have a UUID field thus I'd like to set the logicalType to "uuid".

I'd like to annotate my existing classes and derive the Avro schema using ReflectData


was (Author: dsebastien):
Hello,

This is probably a silly question, but is it possible to add annotations to a Java type to specify the logicalType?
In my case, I have a UUID field thus I'd like to set the logicalType to "uuid".

> Add LogicalType support to Java
> -------------------------------
>
>                 Key: AVRO-1497
>                 URL: https://issues.apache.org/jira/browse/AVRO-1497
>             Project: Avro
>          Issue Type: New Feature
>          Components: java
>            Reporter: Ryan Blue
>            Assignee: Ryan Blue
>             Fix For: 1.7.8, 1.8.0
>
>         Attachments: AVRO-1497-1.diff, Logical Types Performance Comparison - Sheet1.csv
>
>
> AVRO-1402 updates the Avro spec to include logical types, which are stored as existing types but interpreted as others. The next step is to implement LogicalType (in Java) that provides tools to attach a logical type to a schema, read a logical type, and validate logical types.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)