[
https://issues.apache.org/jira/browse/AVRO-2925?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17194095#comment-17194095
]
ASF subversion and git services commented on AVRO-2925:
-------------------------------------------------------
Commit 603319f79ca7db6a3b9f40e5270aa8f137d0fb25 in avro's branch
refs/heads/master from xaneesaxo
[ https://gitbox.apache.org/repos/asf?p=avro.git;h=603319f ]
AVRO-2925: add support for UUID in compiler (#951)
* AVRO-2925: add support for UUID in compiler
* add license
* fix formatting with doc
> No UUID support in IDL compiler.
> --------------------------------
>
> Key: AVRO-2925
> URL: https://issues.apache.org/jira/browse/AVRO-2925
> Project: Apache Avro
> Issue Type: Bug
> Components: java
> Affects Versions: 1.10.0
> Reporter: Anees Mohammed
> Priority: Major
>
> There is no UUID support in IDL.
>
> *Trying to compile*
>
>
> {code:java}
> @namespace("org.apache.avro")
> protocol MyProtocol {
> record APlaygroundEvent {
> /**
> * Documentation must be provided for each attribute
> */
> decimal(9,2) identifier;
> /**
> * a nullable uuid field
> */
> union { null, uuid } optionalString;
> }
> }
> {code}
>
>
> *Throws errors*
>
> {code:java}
> Exception in thread "main" org.apache.avro.AvroTypeException: Unable to
> resolve org.apache.avro.uuid
> at
> org.apache.avro.compiler.idl.ResolvingVisitor.visitNonTerminal(ResolvingVisitor.java:112)
> at org.apache.avro.compiler.schema.Schemas.visitNonTerminal(Schemas.java:186)
> at org.apache.avro.compiler.schema.Schemas.visit(Schemas.java:146)
> at
> org.apache.avro.compiler.idl.SchemaResolver.resolve(SchemaResolver.java:99)
> at org.apache.avro.compiler.idl.Idl.CompilationUnit(Idl.java:135)
> at org.apache.avro.tool.IdlTool.run(IdlTool.java:61)
> at org.apache.avro.tool.Main.run(Main.java:67)
> at org.apache.avro.tool.Main.main(Main.java:56){code}
>
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)