[ https://issues.apache.org/jira/browse/AVRO-2810?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17258932#comment-17258932 ]
sumanth paluru edited comment on AVRO-2810 at 1/5/21, 1:54 PM: --------------------------------------------------------------- [~alex_xgl] even i'm facing the same issue. did you find any work around for this? was (Author: sumanth paluru): [~alex_xgl] even i facing the same issue. did you find any work around for this? > 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)