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

ResolvingGrammarGenerator doesn't implement schema resolution correctly for unions

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.7.7, 1.8.1
    • Fix Version/s: 1.9.0
    • Component/s: java
    • Labels:
      None
    • Hadoop Flags:
      Incompatible change, Reviewed
    • Release Note:
      However, schema resolution is now working according to spec it is a backward incompatible change in the behaviour that int is promotable to float (in addition to long and double) and log to float (in addition to double) when used in unions.

      Description

      According to specification, int and long is promotable to float, but when using SchemaValidator, a union with a single int or long branch is not readable by an union with a float branch.

        Attachments

        1. AVRO-2072.patch
          0.9 kB
          Nandor Kollar
        2. AVRO-2072_3.patch
          10 kB
          Nandor Kollar
        3. AVRO-2072_2.patch
          10 kB
          Nandor Kollar
        4. 0001-AVRO-1931-Additional-test-cases.patch
          12 kB
          Anders Sundelin

          Issue Links

            Activity

              People

              • Assignee:
                nkollar Nandor Kollar
                Reporter:
                nkollar Nandor Kollar
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: