You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@avro.apache.org by Jun Rao <ju...@gmail.com> on 2014/12/30 03:36:37 UTC

canonical string representation of the full schema

Hi,

Is there a way to get a unique string representation of the full Avro
schema (including docs and aliases)? The canonical form strips off docs and
aliases. Schema.toString() doesn't seem to order the record fields in a
unique way.

Thanks,

Jun

Re: canonical string representation of the full schema

Posted by Lewis John Mcgibbney <le...@gmail.com>.
Hi,
I am prety sure that this has to do with following line in the Avro
specification.

"A schema's "doc" fields are ignored for the purposes of schema resolution.
Hence, the "doc" portion of a schema may be dropped at serialization."

Is this the case?

http://avro.apache.org/docs/current/spec.html#Schema+Resolution

hth
Lewis

On Monday, December 29, 2014, Jun Rao <ju...@gmail.com> wrote:

> Hi,
>
> Is there a way to get a unique string representation of the full Avro
> schema (including docs and aliases)? The canonical form strips off docs and
> aliases. Schema.toString() doesn't seem to order the record fields in a
> unique way.
>
> Thanks,
>
> Jun
>