Description
org.apache.avro.mapred.Pair.equals uses strict equals to compare schemas as opposed to using the equals method. GenericData.Record and GenericData.Array both use the equals method to compare schema. It would be advantageous that two objects with the same schema, if not the same schema object instance, would be considered equal.
org.apache.avro.mapred.Pair.equals:
if (this.schema != that.schema)
org.apache.avro.generic.GenericData.Record.equals:
if (!schema.equals(that.schema))
org.apache.avro.generic.GenericData.Array.equals:
if (!schema.equals(that.schema))