Closed apupier closed 8 months ago
it gives the reason of schema incompatibility when the schema is expected to be compatible. It can help investigation on #167
difference of output when test is faling (for isntance when upgrading avro dependency to 1.9): current main branch;
[[1;31mERROR[m] [1;31m AvroAliasTest.testAliasedRecordForwardsCompatible:69 expected:<[]COMPATIBLE> but was:<[IN]COMPATIBLE>
with this Pull Request:
[[1;31mERROR[m] [1;31m AvroAliasTest.testAliasedRecordForwardsCompatible:69->checkSchemaIsCompatible:119 Expected schema to be compatible but was not. Reason: Data encoded using writer schema: { "type" : "record", "name" : "Employee", "namespace" : "com.fasterxml.jackson.dataformat.avro.AvroTestBase", "fields" : [ { "name" : "name", "type" : "string" }, { "name" : "age", "type" : "int" }, { "name" : "emails", "type" : { "type" : "array", "items" : "string", "java-class" : "[Ljava.lang.String;" } }, { "name" : "boss", "type" : "Employee" } ] } will or may fail to decode using reader schema: { "type" : "record", "name" : "NewEmployee", "namespace" : "com.fasterxml.jackson.dataformat.avro.interop.annotations.AvroAliasTest", "fields" : [ { "name" : "name", "type" : "string" }, { "name" : "age", "type" : "int" }, { "name" : "emails", "type" : { "type" : "array", "items" : "string", "java-class" : "[Ljava.lang.String;" } }, { "name" : "boss", "type" : "NewEmployee" } ], "aliases" : [ "com.fasterxml.jackson.dataformat.avro.AvroTestBase$.Employee" ] }
Makes sense, thanks!
it gives the reason of schema incompatibility when the schema is expected to be compatible. It can help investigation on #167
difference of output when test is faling (for isntance when upgrading avro dependency to 1.9): current main branch;
with this Pull Request: