Uploaded image for project: 'Parquet'
  1. Parquet
  2. PARQUET-856

parquet-avro logical type support broke ability to use avro reflection with generics.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Patch Available
    • Minor
    • Resolution: Unresolved
    • 1.9.0
    • None
    • parquet-avro
    • None
    • Patch

    Description

      Impacts 1.9.0 and 1.8.2.

      Assuming the fieldClass is a concrete class (which it is for all of the logical types) is an incorrect assumption when generics are used.

      Statistics<T extends Serializable> {
      T field1
      T field2
      }

      SetStatistics extends Statistics<HashSet<String>> {}

      Solution is to check if the fieldClass is abstract/interface/raw object.

      Attachments

        Activity

          People

            aeroevan Evan McClain
            aeroevan Evan McClain
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: