You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@avro.apache.org by "Rabe, Jens" <je...@iwes.fraunhofer.de> on 2017/01/18 11:27:01 UTC
Is it possible to reference records from other protocols?
Hello again, Avro community,
let's say I have this simple protocol:
@namespace("com.example.foo")
protocol FooProto {
record Foo {
string bar;
}
}
Now, I define a second protocol, but want to reference a Foo record in it. The added difficulty is that the Foo is defined in another project (I am using an sbt multi-project build with sbt-avrohugger to generate the code)
So, how should I achieve something like this?
@namespace("com.example.bar")
protocol BarProto {
record Bar {
Foo foo; // <- how to get the Foo from foo.avdl?
}
}
Thanks in advance,
Jens