avro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christophe Taton (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AVRO-1368) String schema accepts any Java object, and converts it with toString()
Date Tue, 27 Aug 2013 21:43:51 GMT

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

Christophe Taton commented on AVRO-1368:
----------------------------------------

Adding SpecificDatumWriter.getSpecificData() seems reasonable on one hand, but not necessary
with what follows:
GenericDatumWriter/GenericData totally ignores the Stringable concept. Perhaps, the stringable
concept should be moved to GenericData instead?

Last question: is there a reason for Avro integer to accept any Java Number, and silently
convert/truncate them to Integer, while other Avro primitive types will require an exact class
match (eg. Avro long will require Java Long, and not accept Java Integer).


                
> 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

Mime
View raw message