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

ReflectData.AllowNull fails to generate schemas when @Nullable is present.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.8.0
    • None
    • None

    Description

      The @Nullable annotation causes a failure because the makeNullable(Schema) method assumes that the type passed in is not already a union. When it is a union, either from using Nullable, AvroSchema, or a Union-annotated type, an exception is thrown that unions can't contain unions.

      Attachments

        1. AVRO-1604-1.patch
          5 kB
          Ryan Blue

        Activity

          People

            rdblue Ryan Blue
            rdblue Ryan Blue
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: