Index: src/java/org/apache/hcatalog/data/schema/HCatSchema.java =================================================================== --- src/java/org/apache/hcatalog/data/schema/HCatSchema.java (revision 1354289) +++ src/java/org/apache/hcatalog/data/schema/HCatSchema.java (working copy) @@ -160,8 +160,11 @@ @Override public boolean equals(Object other) { - return !((other == null) || !(other instanceof HCatSchema)) - && this.hashCode() == other.hashCode(); + if((other == null) || !(other instanceof HCatSchema)) + return false; + + return ((HCatSchema)other).getFields().equals(fieldSchemas); + } @Override