Avro
  1. Avro
  2. AVRO-299

Add test for schema promotion to Python implementation

    Details

    • Type: Test Test
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.3.0
    • Component/s: spec
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      the writer's schema may be promoted to the reader's as follows:

      • int is promotable to long, float, or double
      • long is promotable to float or double
      • float is promotable to double
      1. AVRO-299.patch
        2 kB
        Jeff Hammerbacher

        Activity

        Jeff Hammerbacher created issue -
        Jeff Hammerbacher made changes -
        Field Original Value New Value
        Assignee Jeff Hammerbacher [ hammer ]
        Hide
        Jeff Hammerbacher added a comment -

        Tests added.

        Question: are we cool with 219 as a default value for float and double fields, or does it have to be 219.0?

        Show
        Jeff Hammerbacher added a comment - Tests added. Question: are we cool with 219 as a default value for float and double fields, or does it have to be 219.0?
        Jeff Hammerbacher made changes -
        Attachment AVRO-299.patch [ 12429817 ]
        Jeff Hammerbacher made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Hide
        Doug Cutting added a comment -

        I just committed this. Thanks, Jeff!

        Show
        Doug Cutting added a comment - I just committed this. Thanks, Jeff!
        Doug Cutting made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Hadoop Flags [Reviewed]
        Fix Version/s 1.3.0 [ 12314318 ]
        Resolution Fixed [ 1 ]
        Doug Cutting made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Jeff Hammerbacher
            Reporter:
            Jeff Hammerbacher
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development