avro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yang Yang (JIRA)" <j...@apache.org>
Subject [jira] Created: (AVRO-128) support NULL in AVRO record
Date Mon, 28 Sep 2009 21:01:16 GMT
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.

View raw message