You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Maxim Bolotin (Jira)" <ji...@apache.org> on 2019/10/02 05:16:00 UTC
[jira] [Commented] (AVRO-2498) UUID generation is not working avro
1.9 version
[ https://issues.apache.org/jira/browse/AVRO-2498?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16942497#comment-16942497 ]
Maxim Bolotin commented on AVRO-2498:
-------------------------------------
"type": "text" - doesn't work as well:
Execution default of goal org.apache.avro:avro-maven-plugin:1.9.1:schema failed: Type not supported: text -> [Help 1]
> UUID generation is not working avro 1.9 version
> -----------------------------------------------
>
> Key: AVRO-2498
> URL: https://issues.apache.org/jira/browse/AVRO-2498
> Project: Apache Avro
> Issue Type: Bug
> Reporter: Raj G
> Priority: Major
>
> Hi,
>
> I've downloaded avro-tools 1.9 jar and trying to generate a java file from an avro schema using below command
>
> java -jar avro-tools-1.9.0.jar compile schema ./myschema.avsc ./avro_java
>
> and have below schema in my .avsc file to generate a UUID field
> {
> "name": "myField",
> "type": {
> "type": "long",
> "logicalType": "uuid"
> }
> }
>
> But this is generating a long field instead of UUID type. Please suggest.
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)