[prev in list] [next in list] [prev in thread] [next in thread]
List: avro-user
Subject: Re: AvroTypeException thrown with version change on optional record
From: Doug Cutting <cutting () apache ! org>
Date: 2011-12-07 23:12:29
Message-ID: 4EDFF2DD.2000608 () apache ! org
[Download RAW message or body]
On 12/07/2011 02:40 PM, Francois Forster wrote:
> It seems to work when I do the reverse (add @aliases(["v2.Result"]) to the v1 \
> schema), but that's not useful when dealing with versioning.
Note that you could programmatically add the alias, e.g.:
v2Response.addAlias(v1Response.getFullName());
v2Result.addAlias(v1Result.getFullName());
So you don't actually have to change the stored data.
Doug
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic