You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Alex Xu (Jira)" <ji...@apache.org> on 2020/04/21 17:18:00 UTC

[jira] [Created] (AVRO-2810) AvroGen created invalid .cs file for nullable decimal type field

Alex Xu created AVRO-2810:
-----------------------------

             Summary: AvroGen created invalid .cs file for nullable decimal type field
                 Key: AVRO-2810
                 URL: https://issues.apache.org/jira/browse/AVRO-2810
             Project: Apache Avro
          Issue Type: Bug
          Components: csharp
    Affects Versions: 1.9.2
         Environment: My schema file is like this:
{
"name": "Previous",
"type":
[
{
"type": "bytes",
"logicalType": "decimal",
"precision": 19,
"scale": 4
},
"null"
]
}
The cs file created has an error:
case 1: this.Previous = (System.Nullable`1[Avro.AvroDecimal])fieldValue; break;
            Reporter: Alex Xu


I was using the apache avro 1.9.2 dotnet tool to generate the cs files. There is a nullable logical type 'decimal' in my schema file. The cs file generated has an error as follows.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)