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

Recent changes in GenericDatumReader.java break compatibility

    XMLWordPrintableJSON

Details

    Description

      We use a custom SpecificDatumReader which overrides the string creation logic. It looks like this:

      class CustomSpecificDatumReader<T> extends SpecificDatumReader<T> {
          @Override
          protected Object newInstanceFromString(Class c, String s) {
              // custom logic
          }
      } 

      With this commit, the newInstanceFromString() method is no longer called. Instead, strings are created with the hard-coded logic within GenericDatumReader.ReaderCache.

      It would be appreciated if you made it possible to override the string creation logic used by GenericDatumReader.ReaderCache. Preferably make use of the newInstanceFromString() method again to maintain backward compatibility.

      Attachments

        Activity

          People

            clesaec Christophe Le Saec
            krait Viktor Dvoretskii
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 20m
                20m