avro-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Stevenson <matt.r.steven...@gmail.com>
Subject Re: C++/Java schema compatibility
Date Wed, 12 Oct 2011 21:27:43 GMT
The avrogencpp tool will only parse individual records.
If you save
record Message {
string to;
 string from;
string body;
}

as a .json file, it will generate the class.
I think only records are supported in C++ and not full protocols.


On Wed, Oct 12, 2011 at 1:37 PM, Shaun Williams <shaunwilli42@gmail.com>wrote:

> I'm trying to compile the Mail.avpr schema from the avro-rpc-quickstart
> example using the c++ tools, and precompile fails with the following error:
> "Failed to parse or compile schema: Schema is invalid, due to bad node of
> type symbolic."
>
> I even tried generating the avpr from an avdl, but precompile still fails
> with the same error.  Any idea what the problem might be?
>
> Here's my avdl FYI:
>
> @namespace("example.proto")
> protocol Mail{
> record Message {
> string to;
>  string from;
> string body;
> }
>
> string send(Message message);
> }
>
> Thanks!
>



-- 
Matt Stevenson.

Mime
View raw message