[
https://issues.apache.org/jira/browse/AVRO-2810?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Alex Xu updated AVRO-2810:
--------------------------
Description:
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.
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;
was: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.
> 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
> Priority: Major
>
> 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.
>
> 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;
--
This message was sent by Atlassian Jira
(v8.3.4#803005)