Anees Mohammed created AVRO-2925:
------------------------------------
Summary: No UUID support in IDL compiler.
Key: AVRO-2925
URL: https://issues.apache.org/jira/browse/AVRO-2925
Project: Apache Avro
Issue Type: Improvement
Components: java
Affects Versions: 1.10.0
Reporter: Anees Mohammed
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)