[ 
https://issues.apache.org/jira/browse/AVRO-3481?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Martin Tzvetanov Grigorov resolved AVRO-3481.
---------------------------------------------
    Fix Version/s: 1.11.1
                   1.12.0
         Assignee: Zoltan Csizmadia
       Resolution: Fixed

> Input and output variable type mismatch
> ---------------------------------------
>
>                 Key: AVRO-3481
>                 URL: https://issues.apache.org/jira/browse/AVRO-3481
>             Project: Apache Avro
>          Issue Type: Bug
>          Components: csharp
>    Affects Versions: 1.11.0
>         Environment: Windows 10
> MSVS 2022
> .NET6
>            Reporter: Sviat
>            Assignee: Zoltan Csizmadia
>            Priority: Critical
>             Fix For: 1.11.1, 1.12.0
>
>         Attachments: Program.cs
>
>
> Hi all,
> It looks like Apache.Avro nuget v1.11.0 fails to recognize variable types 
> correctly. Outgoing variable types don't match incoming types.
> I've created a simple roundtrip app to reproduce it. Here are the steps:
>  # Create a .NET6 console app using MSVS2022
>  # Install Apache.Avro nuget
>  # Import the attached file called "Program.cs"
>  # Run the project
>  # Check the console output
> TLDR: There's a field called "Property" that can be either double or long. I 
> assign a long value, convert the object to bytes, convert it back, and for 
> some reason the said field becomes double.
> I consider this issue to be of critical importance, as it may lead to data 
> loss.



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to