Class AvroSchemaCompatibility
Checks whether data written with one schema can be read with another, and why not: every incompatibility, with where it is, and warnings about differences the specification allows that can change the values read.
public static class AvroSchemaCompatibility
- Inheritance
-
AvroSchemaCompatibility
- Inherited Members
Remarks
The check follows the same rules as Create(AvroSchema, AvroSchema, GenericDatumReaderOptions?)
and generated types' resolving reads, so a schema pair it calls Incompatible
fails there (or can read no value), and a Compatible one reads every value.
Where Java's SchemaCompatibility says compatible, so does this check; where Java says incompatible, this
check says Partial or Incompatible.
Methods
- Check(AvroSchema, AvroSchema, AvroCompatibilityOptions?)
Checks whether data written with
writerSchemacan be read withreaderSchema.
- CheckVersions(AvroSchema, IReadOnlyList<AvroSchema>, AvroCompatibilityLevel, AvroCompatibilityOptions?)
Checks a new version of a schema against earlier ones at a schema registry's
level: backward levels check thatschemareads the earlier versions' data, forward levels that the earlier versions read its data, and transitive levels check every earlier version rather than the latest.