Uploaded image for project: 'Apache Avro'
  1. Apache Avro
  2. AVRO-128

support NULL in AVRO record

    XMLWordPrintableJSON

Details

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

      Attachments

        Activity

          People

            Unassigned Unassigned
            yangyangyyy Yang Yang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: