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

Allow more than one logical type for a Java class

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.8.0
    • java
    • None
    • Reviewed

    Description

      The initial logical types implementation assumed that there would only be one logical type per concrete class and kept a lookup table from class to conversion. There are cases where this assumption doesn't work. For example, both time-millis and time-micros can be represented by the same class, LocalTime, and the write path should use the correct logical type's conversion depending on the schema.

      Attachments

        1. AVRO-1692.1.patch
          6 kB
          Ryan Blue
        2. AVRO-1692.2.patch
          22 kB
          Ryan Blue

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: