Uploaded image for project: 'Crunch (Retired)'
  1. Crunch (Retired)
  2. CRUNCH-401

Make it possible to override AvroMode.REFLECTs ReaderWriterFactory

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.10.0, 0.8.3
    • Core
    • None

    Description

      After struggling with some Scrunch issues w/respect to Avro reflection, I discovered that it wasn't possible for me to override the Java ReflectDataFactory that is associated with AvroMode.REFLECT like I can for AvroMode.SPECIFIC and AvroMode.GENERIC.

      I put together a patch that enables us to overwrite the Reader/Writer behavior associated with AvroMode.REFLECT globally, and demonstrated how to use this behavior to fix a Scrunch bug where Scala's byte array class wasn't getting properly serialized on reflection in Scrunch.

      Attachments

        1. CRUNCH-401.patch
          20 kB
          Josh Wills
        2. CRUNCH-401b.patch
          31 kB
          Josh Wills

        Activity

          People

            jwills Josh Wills
            jwills Josh Wills
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: