Class CompareSchemasVisitor


public class CompareSchemasVisitor extends SchemaWithPartnerVisitor<Integer,CompareSchemasVisitor.Result>
Visitor class which compares an input schema to a table schema and emits a compatibility CompareSchemasVisitor.Result.
  • SAME: The two schemas are semantically identical
  • DATA_CONVERSION_NEEDED: We can evolve the data associated with the input schema to match the table schema.
  • SCHEMA_UPDATE_NEEDED: We need to migrate the table schema to match the input schema.
The input schema fields are compared to the table schema via their names.