Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Plain View
Avro >> mail # user >> Diffing 2 avro records


+
Pierre Mariani 2012-12-06, 23:30
Copy link to this message
-
Re: Diffing 2 avro records
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 <[EMAIL PROTECTED]> 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
>