CanonicalSchema
and SchemaCRC64Avro
fail to inline sub-schemas referenced by name
#138
Labels
CanonicalSchema
and SchemaCRC64Avro
fail to inline sub-schemas referenced by name
#138
If the type of a record field, array, or map-value refers to a previously-declared type by name (eg,
"type": "com.example.MyEmbeddedType"
), then the structure used to compute theschemaCanonical
string (and thus the schema fingerprint) should embed the fully-specified sub-schema, rather than just the type name.The current implementation fails to dereference the named schema, resulting in incorrect canonicalization and fingerprinting.
I can follow up later with a concrete example, and I'm working on a fix which I will hopefully submit for review soon.
The text was updated successfully, but these errors were encountered: