You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Brian Lachniet (Jira)" <ji...@apache.org> on 2019/08/24 12:14:00 UTC
[jira] [Created] (AVRO-2522) Specific API doesn't handle schemas
with IList or Nullable in name
Brian Lachniet created AVRO-2522:
------------------------------------
Summary: Specific API doesn't handle schemas with IList or Nullable in name
Key: AVRO-2522
URL: https://issues.apache.org/jira/browse/AVRO-2522
Project: Apache Avro
Issue Type: Bug
Components: csharp
Affects Versions: 1.9.0
Reporter: Brian Lachniet
Assignee: Brian Lachniet
Fix For: 1.9.1
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.
Here's a sample schema containing an array of nullables that triggers this problem.
{code:java}
{
"namespace": "AvroListOfLists.Records",
"name": "MyRecord",
"type": "record",
"fields": [
{
"name": "MyList",
"type": {
"type": "array",
"items": ["null", "int"]
}
}
]
}
{code}
--
This message was sent by Atlassian Jira
(v8.3.2#803003)