[
https://issues.apache.org/jira/browse/AVRO-128?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jeff Hammerbacher resolved AVRO-128.
------------------------------------
Resolution: Not A Problem
"null" is a type and a field in a record can be null using the idiom of a union
schema where one of the types is "null".
> support NULL in AVRO record
> ---------------------------
>
> Key: AVRO-128
> URL: https://issues.apache.org/jira/browse/AVRO-128
> Project: Avro
> Issue Type: Improvement
> Reporter: Yang Yang
> Priority: Minor
>
> some of our records have optional fields, and these fields can be simple
> types or record types.
> right now if we don't assign values to these fields, at least in "specific"
> implementation, it generates errors (I remember it's null pointer error)
> it would be nice to support dumping NULL to some default values (of course
> what "default" values to choose needs to be worked out).
> using UNION could possibly solve it, but there are too many combinations of
> NULL/non-null for all the fields, so we would run into exponential number
> of schemas, so this is impossible, I believe.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.