You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Pierre Plagnes (Jira)" <ji...@apache.org> on 2021/05/12 10:25:00 UTC

[jira] [Created] (AVRO-3137) csharp RecordSchema loses custom properties in WriteJson/ToString

Pierre Plagnes created AVRO-3137:
------------------------------------

             Summary: csharp RecordSchema loses custom properties in WriteJson/ToString
                 Key: AVRO-3137
                 URL: https://issues.apache.org/jira/browse/AVRO-3137
             Project: Apache Avro
          Issue Type: Bug
          Components: csharp
    Affects Versions: 1.10.2
            Reporter: Pierre Plagnes


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.

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

 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)