[
https://issues.apache.org/jira/browse/AVRO-495?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12899655#action_12899655
]
Patrick Wendell commented on AVRO-495:
--------------------------------------
Hey Doug,
Still getting errors on trying to include a type defined in another file. The
import statement itself is fine, but as soon as a type is referenced I get:
{quote}
Exception in thread "main" org.apache.avro.idl.ParseException: Undefined name
'com.cloudera.flume.conf.avro.FlumeNodeState' at line 25, column 5
at org.apache.avro.idl.Idl.ReferenceType(Idl.java:664)
at org.apache.avro.idl.Idl.Type(Idl.java:584)
at org.apache.avro.idl.Idl.FieldDeclaration(Idl.java:453)
at org.apache.avro.idl.Idl.RecordDeclaration(Idl.java:414)
at org.apache.avro.idl.Idl.NamedSchemaDeclaration(Idl.java:102)
at org.apache.avro.idl.Idl.ProtocolBody(Idl.java:253)
at org.apache.avro.idl.Idl.ProtocolDeclaration(Idl.java:162)
at org.apache.avro.idl.Idl.CompilationUnit(Idl.java:49)
at org.apache.avro.tool.IdlTool.run(IdlTool.java:65)
at org.apache.avro.tool.Main.run(Main.java:77)
at org.apache.avro.tool.Main.main(Main.java:66)
{quote}
The relevant file pieces are here:
[[flumeconfig.avdl]]
{quote}
@namespace("com.cloudera.flume.conf.avro")
protocol FlumeReportAvroServer{
enum FlumeNodeState \{ HELLO, IDLE, CONFIGURING, ACTIVE, ERROR, LOST \}
...
{quote}
[[mastercontrol.avdl]]
{quote}
@namespace("com.cloudera.flume.conf.avro")
protocol FlumeMasterAdminServerAvro {
import protocol "flumeconfig.avdl.avpr";
record FlumeNodeStatusAvro {
FlumeNodeState state;
{quote}
> Avro IDL should support includes
> --------------------------------
>
> Key: AVRO-495
> URL: https://issues.apache.org/jira/browse/AVRO-495
> Project: Avro
> Issue Type: Improvement
> Components: java
> Affects Versions: 1.3.1
> Reporter: Eric Evans
> Assignee: Doug Cutting
> Fix For: 1.4.0
>
> Attachments: AVRO-495.patch, AVRO-495.patch, AVRO-495.patch
>
>
> includes would be a nice feature for Avro IDL
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.