[
https://issues.apache.org/jira/browse/AVRO-2077?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16176463#comment-16176463
]
Bridger Howell commented on AVRO-2077:
--------------------------------------
Would it be strange to make this tool bidirectional? I frequently find myself
in situations where I've got two schemas and want to know how they are related.
In the minimal case it might viewed something like:
{noformat}
// B can read data written by A
A -> B [A-to-B Compatible]
// A can read data written by B
A <- B [B-to-A Compatible]
// A and read can read each other
A == B [Fully Compatible]
// A and B are incompatible
A =/= B [Incompatible]
{noformat}
The idea could be expanded on to try to show _why_ one schema couldn't read the
other in one direction.
{noformat}
// A can read B, because it shares all of B's fields, but B can't read A
because it has an extra field "x" of type "int"
A: B:
[common] <= [common]
field x: int
{noformat}
> Avro tools should have an option to check reader-writer compatibility
> ---------------------------------------------------------------------
>
> Key: AVRO-2077
> URL: https://issues.apache.org/jira/browse/AVRO-2077
> Project: Avro
> Issue Type: New Feature
> Components: java, tools
> Reporter: Nandor Kollar
> Priority: Minor
> Fix For: 1.9.0
>
>
> It seems that avro-tools doesn't have any option to check for a given Avro
> file and a given reader schema (JSON file or URL) that the reader's schema is
> compatible with the writer's schema. This tool should report every
> compatibility problem (if there's any).
> According my knowledge, there's no such option for avro-tools as of now.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)