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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.8.0
    • Component/s: None
    • Labels:
      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

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: