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 Threaded View
Avro >> mail # user >> JSon representation of avro enum : not a string?


Copy link to this message
-
Re: JSon representation of avro enum : not a string?
That is a bug.  It's been fixed.  Twice!

https://issues.apache.org/jira/browse/AVRO-713
https://issues.apache.org/jira/browse/AVRO-1201

Doug

On Fri, Apr 19, 2013 at 7:16 AM, Bertrand Dechoux <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am using to 1.4.0 version of avro (not by choice) and tried a toString()
> on a GenericRecord containing somewhere a GenericEnumSymbol. My problem is
> that this instance is not represented as a string in JSON but by its name
> itself. As a consequence it does not produce a valid json as far as I know.
> Is it the excepted behaviour? Is that because I am using an old version of
> avro? Or is it that the toString() representation is not meant to be the
> same as the JSON representation?
>
> Thanks in advance
>
> Bertrand
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