[
https://issues.apache.org/jira/browse/AVRO-1368?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13751832#comment-13751832
]
Christophe Taton commented on AVRO-1368:
----------------------------------------
I don't have enough context to make a reasonable guess here.
>From a generic API perspective, this becomes an opaque field in the form of
a java String.
I'm referring to this conversion:
https://github.com/apache/avro/blob/trunk/lang/java/avro/src/main/java/org/apache/avro/generic/GenericDatumWriter.java#L78
- where an Avro int is expected, I can write int, long, float, double, any
subclass of Number, and it will be silently encoded as the truncated
integer value.
- where an Avro long is expected, I can only write a long/java.lang.Long
and nothing else (int/java.lang.Integer) is rejected, for example.
> String schema accepts any Java object, and converts it with toString()
> ----------------------------------------------------------------------
>
> Key: AVRO-1368
> URL: https://issues.apache.org/jira/browse/AVRO-1368
> Project: Avro
> Issue Type: Bug
> Components: java
> Affects Versions: 1.7.5
> Reporter: Christophe Taton
>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira