avro-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lin Guo <guolin2...@gmail.com>
Subject why avro has a special type NULL
Date Mon, 13 Sep 2010 22:53:09 GMT
Hi, I am now converting our native data to Avro and have some trouble
with null value. Our data schema allows null value for every type and
since Avro has a special type NULL, I have to convert each type into a
union. For example, Integer (in our schema) => union { INT, NULL}
(avro schema)

I am wondering why Avro has a special type NULL instead of allowing
each type has null value? What benefit can we gain from this design?


View raw message