avro-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tatu Saloranta <tsalora...@gmail.com>
Subject Re: Diffing 2 avro records
Date Fri, 07 Dec 2012 00:22:01 GMT
Your best bet might be to serialize as JSON, use JSON diff tools (alas
I don't have links handy, but assume such exist).

-+ Tatu +-

On Thu, Dec 6, 2012 at 3:30 PM, Pierre Mariani <pmariani@intelius.com> wrote:
> Hello,
>
> I have a need to 'diff' 2 avro records.
>
> For example:
> record A contains {"title" : "The Hobbit", "author" : "J.R.R. Tolkien",
> "published" : "1954"}
> record B contains {"title" : "The Hobbit", "author" : "J.R.R. Tolkien"}
>
> The result should be {"published" : "1954"}, or some other way to represent
> the patch to apply to record A to get record B.
>
> Is this functionality available somewhere?
>
> --
> Thank you.
> Pierre
>

Mime
View raw message