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

namespaces with reserved words cause deserialisation issue when inside an array.

    XMLWordPrintableJSON

Details

    Description

      Lets say you have an avro file like in the attachment.

       

      The namespace ends with .return. The Mangler will turn this into .@return. Then during deserialization you get an exception as follows:

      ```

      Avro.AvroException : Unable to find type 'Avro.Test.Specific.@return.ArrayItem' in all loaded assemblies in field ArrayItems

      ```

      I have worked out what the issue is and have a commit with a possible fix.. mainly though I've used to as a better way to describe the issue.. 

      see this commit for the issue and possible fix.

      https://github.com/CraftyFella/avro/commit/f3d66efe84cd194f3c98715d90945e277e43a408

       

       

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              craftyfella Dave Craft
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 1h
                  1h
                  Remaining:
                  Remaining Estimate - 1h
                  1h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified