You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "sumanth paluru (Jira)" <ji...@apache.org> on 2021/01/05 13:55:00 UTC
[jira] [Commented] (AVRO-2810) AvroGen created invalid .cs file for
nullable decimal type field
[ https://issues.apache.org/jira/browse/AVRO-2810?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17258932#comment-17258932 ]
sumanth paluru commented on AVRO-2810:
--------------------------------------
[~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)