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

Specific API doesn't handle schemas with IList or Nullable in name

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.9.0
    • 1.9.2
    • csharp
    • None
    • Fixed issues with the C# specific API when schema names contained 'Nullable' or 'IList'

    Description

      The Specific API in the C# bindings do not properly handle:

      • Schemas with IList in their name
      • Schemas with Nullable in their name
      • Arrays of nullables (see example schema below)

      These throw an exception from the ObjectCreator indicating that it could not find the type.

      This sample application on GitHub demonstrates these problems: https://github.com/blachniet/AVRO-2522.

      Here's a sample schema containing an array of nullables that triggers this problem.

      {
        "namespace": "AvroListOfLists.Records",
        "name": "MyRecord",
        "type": "record",
        "fields": [
          {
            "name": "MyList",
            "type": {
              "type": "array",
              "items": ["null", "int"]
            }
          }
        ]
      }
      

      Attachments

        Issue Links

          Activity

            People

              blachniet Brian Lachniet
              blachniet Brian Lachniet
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: