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

csharp RecordSchema loses custom properties in WriteJson/ToString

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Patch Available
    • Major
    • Resolution: Unresolved
    • 1.10.2
    • None
    • csharp
    • None

    Description

      RecordSchema class does not manage LogicalType.

      This breaks any functionality which relies on the equality of the schema re-parsed from its ToString/WriteJson output.

      It breaks usage of schema registry for example, as when a producer will send the schema to the SR without its logicatype, and so on the SR won't be able to return the corresponding schema.

       

      // Example of a record schema 
      
      {"type":"record",\"name":"Test","namespace":"test","fields":[\{"name":"dt","type":"long","logicalType":"timestamp-millis"}

      ]}"

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            pierre.plagnes Pierre Plagnes
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: