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

NoSuchFieldException when emitting record with array of union of records in mapred

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.5.2
    • java
    • None
    • Reviewed

    Description

      I tried to convert data records currently in a custom format into avro records via a map-only job. To allow for optional record fields I followed the workaround sketched by Doug in AVRO-519 using the generic API.

      When emitting the resulting records a "NoSuchFieldException" is thrown when trying to resolve the union types: Only the methods declared in ReflectData seem to be called, the implementation in GenericData is skipped.

      Attachments

        1. AVRO-864.diff
          7 kB
          Doug Cutting
        2. AVRO-864.diff
          7 kB
          Isabel Drost-Fromm

        Activity

          People

            isabel Isabel Drost-Fromm
            isabel Isabel Drost-Fromm
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: