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

Anders Sundelin commented on AVRO-2072:
---------------------------------------

Please substitute [long] with [int] in my prior comment - long-to-double 
conversion would always be lossy (both are 64-bit quantities). But my argument 
about the method name still remains, it will pick the "first match", not 
necessarily the "best match" (though its behaviour is according to the Avro 
spec, afaik)

> ResolvingGrammarGenerator doesn't implement schema resolution correctly for 
> unions
> ----------------------------------------------------------------------------------
>
>                 Key: AVRO-2072
>                 URL: https://issues.apache.org/jira/browse/AVRO-2072
>             Project: Avro
>          Issue Type: Bug
>          Components: java
>    Affects Versions: 1.7.7, 1.8.1
>            Reporter: Nandor Kollar
>            Assignee: Nandor Kollar
>         Attachments: 0001-AVRO-1931-Additional-test-cases.patch, 
> AVRO-2072_2.patch, AVRO-2072.patch
>
>
> According to 
> [specification|https://avro.apache.org/docs/current/spec.html#Schema+Resolution],
>  int and long is promotable to float, but when using SchemaValidator, a union 
> with a single int or long branch is not readable by an union with a float 
> branch.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to