You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Sviat (Jira)" <ji...@apache.org> on 2022/04/07 09:43:00 UTC

[jira] [Created] (AVRO-3481) Input and output variable type mismatch

Sviat created AVRO-3481:
---------------------------

             Summary: 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
         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.1#820001)