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

SpecificDatumReader fails to deserialze Records with mapped namespaces

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.10.1
    • None
    • csharp
    • None

    Description

      The SpecificDatumReader is unable to deserialize schemas, which should be deserialized to SpecificRecord implementations when the SpecifcRecord namespace was mapped by the avrogen tool. In this case the namespace of the schema does not match the namespace of the C# class (as expected), but the SpecificRecordAccess class tries to instanciate that SpecificRecord class via the namespace from the Schema instead of the mapped namespace, provided to the avrogen tool:

      https://github.com/apache/avro/blob/b90278af3446fe82b061c08076d61b7d1ecaa445/lang/csharp/src/apache/main/Specific/SpecificDatumReader.cs#L112

      Attachments

        Activity

          People

            Unassigned Unassigned
            PSanetra Philip Sanetra
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: