avro-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joey Echeverria <j...@cloudera.com>
Subject Re: Passing Schema objects through Avro RPC
Date Sat, 21 Jun 2014 14:16:45 GMT
That would definitely help, I'll take a look at it!

I worked around it for the moment by creating a CustomEncoding that encodes
using Schema#toString() and decodes using Parser#parse(String). I then
annotated my Schema field
with @AvroEncode(using=SchemaAsStringEncoding.class).

-Joey


On Sat, Jun 21, 2014 at 9:57 AM, Harsh J <harsh@cloudera.com> wrote:

> Hey Joey,
>
> Are you perhaps looking for https://issues.apache.org/jira/browse/AVRO-251
> ?
>
> On Sat, Jun 21, 2014 at 2:20 AM, Joey Echeverria <joey@cloudera.com>
> wrote:
> > Has anyone built an Avro RPC interface that includes a method that
> returns
> > Avro Schema objects?
> >
> > I've built my protocol using the reflect APIs, but because Schema doesn't
> > have an empty constructor, I get a NoSuchMethodException when trying to
> > deserialize on the client.
> >
> > -Joey
>
>
>
> --
> Harsh J
>



-- 
Joey Echeverria

Mime
View raw message