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

Allow stringable types deserialization if java-class is specified

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • java

    Description

      Currently, compiler supports java-class and generates java classes with the given class. It works properly with serialization as toString() is being called, however, on deserialization compiler generates casting instead of calling a constructor with the string argument.

      It works with the ReflectData but not with the SpecificData which throws ClassCastException in runtime.

      To solve this, the same behaviour as ReflectData could be used (calling a constructor with a String argument)

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              kaliy Artur Kalimullin
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

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