rymarm opened a new pull request #2117: URL: https://github.com/apache/drill/pull/2117
# [DRILL-7801](https://issues.apache.org/jira/browse/DRILL-7812): Broken equals/hashcode contract ## Description MaterializedField had broken hashCode/equals contract: > If two objects are equal according to the equals(Object) method, then calling the hashCode method on each of the two objects must produce the same integer result. In our case, equals are based on 2 parameters, while hashCode on 3. I updated hashCode and now it respond equals function. `this.name.toLowerCase()` was added, because equals method compares name with ignoreCase. ## Testing Manual tests ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
