KitFieldhouse commented on issue #383:
URL: https://github.com/apache/avro-rs/issues/383#issuecomment-3700097981

   Yes of course, my apologies. Here is the excerpt from 
[this](https://avro.apache.org/docs/1.12.0/specification/#schema-resolution) 
section of the specification I had in mind:
   
       It is an error if the two schemas do not match. To match, one of the 
following must hold:
   
       both schemas are arrays whose item types match
       both schemas are maps whose value types match
       both schemas are enums whose (unqualified) names match
       both schemas are fixed whose sizes and (unqualified) names match
       both schemas are records with the same (unqualified) name
       either schema is a union
       both schemas have same primitive type
       the writer’s schema may be promoted to the reader’s as follows:
           int is promotable to long, float, or double
           long is promotable to float or double
           float is promotable to double
           string is promotable to bytes
           bytes is promotable to string
   
   The specification then goes on to describe additional checks to perform if 
both schemas are records, unions, etc.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to