[ 
https://issues.apache.org/jira/browse/AVRO-1006?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13203426#comment-13203426
 ] 

Raymie Stata commented on AVRO-1006:
------------------------------------

A clarification, which addresses issues raised by Doug and Scott.  The need I'm 
solving for is to capture that part of a writer's schema which a reader needs 
to read data.  This is a relatively straight-forward notion of "equivalence," 
and a very useful one.  And the good news is that this notion of equivalence 
allows us to ignore many aspects of schemas (e.g., attributes, aliases, default 
values).

I've attached code that generates the canonical string as defined in the design 
document.  The attached code is untested, but I included it so folks have a 
rough idea of what it would look like.  Leaving aside my APL-ish style, I don't 
think it's terribly long or complicated.

                
> Fingerprints for Avro Schemas
> -----------------------------
>
>                 Key: AVRO-1006
>                 URL: https://issues.apache.org/jira/browse/AVRO-1006
>             Project: Avro
>          Issue Type: New Feature
>          Components: java
>            Reporter: Raymie Stata
>            Assignee: Raymie Stata
>              Labels: features
>         Attachments: AVRO-1006-prelim.patch, schema-fingerprinting.html, 
> schema-fingerprinting.html, schema-fingerprinting.html
>
>
> Add function that returns a standardized, 64-bit fingerprint for schemas.  
> Fingerprints are designed such that the chances of collisions is very, very 
> low.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to