Uploaded image for project: 'Apache Avro'
  1. Apache Avro
  2. AVRO-3481

Input and output variable type mismatch

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 1.11.0
    • 1.11.1, 1.12.0
    • csharp
    • None
    • Windows 10

      MSVS 2022

      .NET6

    Description

      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:

      1. Create a .NET6 console app using MSVS2022
      2. Install Apache.Avro nuget
      3. Import the attached file called "Program.cs"
      4. Run the project
      5. 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.

      Attachments

        1. Program.cs
          2 kB
          Sviat

        Issue Links

          Activity

            People

              zoltan_csizmadia Zoltan Csizmadia
              sviatpk Sviat
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: