Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Not A Problem
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: java
    • Labels:
      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.

        Activity

        Hide
        Jeff Hammerbacher added a comment -

        "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".

        Show
        Jeff Hammerbacher added a comment - "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".

          People

          • Assignee:
            Unassigned
            Reporter:
            Yang Yang
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development