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

not in union ["string","null"]

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Not A Problem
    • 1.7.1
    • None
    • java
    • None

    Description

      Caused by: org.apache.avro.AvroTypeException: Not in union ["string","null"]: "hello lizard lips" in field desco of avro.bobo_types
      The string "hello lizard lips" is rejected. The schema definition is:

      {
      "type": "record",
      "namespace": "avro",
      "name": "bobo_types",
      "fields": [

      {"name": "desco","type": ["string", "null"]}

      ]
      }

      Attachments

        1. bobo.java
          3 kB
          Bob Kwiencien
        2. bobo.avsc
          0.1 kB
          Bob Kwiencien
        3. working_bobo.java
          4 kB
          Bob Kwiencien

        Activity

          People

            Unassigned Unassigned
            bkwiencien@gmail.com Bob Kwiencien
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: