Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Not A Problem
-
None
-
None
-
None
Description
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.