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

    • Type: Bug
    • Status: Patch Available
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.9.0
    • Fix Version/s: None
    • Component/s: parquet-avro
    • Labels:
      None
    • Flags:
      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

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

              Dates

              • Created:
                Updated: