Returns true if the write data type can be read using the read data type.
Returns true if the write data type can be read using the read data type.
The write type is compatible with the read type if: - Both types are arrays, the array element types are compatible, and element nullability is compatible (read allows nulls or write does not contain nulls). - Both types are maps and the map key and value types are compatible, and value nullability is compatible (read allows nulls or write does not contain nulls). - Both types are structs and each field in the read struct is present in the write struct and compatible (including nullability), or is nullable if the write struct does not contain the field. Write-side structs are not compatible if they contain fields that are not present in the read-side struct. - Both types are atomic and the write type can be safely cast to the read type.
Extra fields in write-side structs are not allowed to avoid accidentally writing data that the read schema will not read, and to ensure map key equality is not changed when data is read.
a write-side data type to validate against the read type
a read-side data type
true if data written with the write type can be read using the read type
Returns true if the two data types share the same "shape", i.e.
Returns true if the two data types share the same "shape", i.e. the types are the same, but the field names don't need to be the same.
whether to ignore nullability when comparing the types
1.3.0