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 >> what's the efficiency difference between type: "string" and ["string", "null"]


Copy link to this message
-
Re: what's the efficiency difference between type: "string" and ["string", "null"]
I think the specification is clear about that.

Unions
http://avro.apache.org/docs/1.7.6/spec.html

So there is an overhead but that may not be the main issue.

The issue might be more about defining a correct schema. If a field can be
null then all clients should handle the case when the field is indeed null.
That's a 'hygiene issue' (or data quality issue if your prefer), like with
a database schema.

Regards

Bertrand

Bertrand Dechoux
On Fri, Mar 14, 2014 at 9:15 AM, Fengyun RAO <[EMAIL PROTECTED]> wrote:
 
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