Index: src/java/org/apache/hcatalog/data/schema/HCatSchema.java =================================================================== --- src/java/org/apache/hcatalog/data/schema/HCatSchema.java (revision 1354294) +++ src/java/org/apache/hcatalog/data/schema/HCatSchema.java (working copy) @@ -159,9 +159,21 @@ } @Override - public boolean equals(Object other) { - return !((other == null) || !(other instanceof HCatSchema)) - && this.hashCode() == other.hashCode(); + public boolean equals(Object obj) { + if (this == obj) { + return true; + } + if (obj == null) { + return false; + } + if (!(obj instanceof HCatSchema)) { + return false; + } + HCatSchema other = (HCatSchema) obj; + if (!this.getFields().equals(other.getFields())) { + return false; + } + return true; } @Override