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

ResolvingGrammarGenerator doesn't implement schema resolution correctly for unions

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.7.7, 1.8.1
    • 1.9.0
    • java
    • None
    • Incompatible change, Reviewed
    • 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
          Nándor Kollár
        2. 0001-AVRO-1931-Additional-test-cases.patch
          12 kB
          Anders Sundelin
        3. AVRO-2072_2.patch
          10 kB
          Nándor Kollár
        4. AVRO-2072_3.patch
          10 kB
          Nándor Kollár

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            nkollar Nándor Kollár
            nkollar Nándor Kollár
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment