You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Ryan Skraba (Jira)" <ji...@apache.org> on 2020/09/11 08:32:00 UTC

[jira] [Updated] (AVRO-2925) No UUID support in IDL compiler.

     [ https://issues.apache.org/jira/browse/AVRO-2925?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ryan Skraba updated AVRO-2925:
------------------------------
    Fix Version/s: 1.11.0

> 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
>             Fix For: 1.11.0
>
>
> 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)