Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Plain View
Avro >> mail # dev >> Re: [jira] [Commented] (AVRO-1368) String schema accepts any Java object, and converts it with toString()


Copy link to this message
-
Re: [jira] [Commented] (AVRO-1368) String schema accepts any Java object, and converts it with toString()
On Tue, Aug 27, 2013 at 4:41 PM, Doug Cutting (JIRA) <[EMAIL PROTECTED]>wrote:

> I suspect that conversion was intended to convert Integer, Short and
> Character to int, and that also converting Float, Double etc. was
> unintended.

> Do you think all cases should convert any Number?  That would be a
> compatible change, but might have performance implications.  Or do you
> think this case should be narrowed to only handle Integer, Short and
> Character?  That would be incompatible.
>

I, very personally, dislikes silent, implicit conversions, and especially
the lossy ones.
If we had the choice, I would rather narrow these to only handle Integer,
Short and Character.

> 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
>
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB