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?

Best,
Lin

Reply via email to