You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by GitBox <gi...@apache.org> on 2019/11/06 06:10:08 UTC

[GitHub] [incubator-iceberg] jun-he commented on a change in pull request #612: Fix ObjectsHashCodePrimitive error

jun-he commented on a change in pull request #612: Fix ObjectsHashCodePrimitive error
URL: https://github.com/apache/incubator-iceberg/pull/612#discussion_r342929793
 
 

 ##########
 File path: api/src/main/java/org/apache/iceberg/PartitionSpec.java
 ##########
 @@ -215,7 +214,7 @@ public boolean equals(Object other) {
 
   @Override
   public int hashCode() {
-    return Objects.hashCode(Arrays.hashCode(fields));
+    return Integer.hashCode(Arrays.hashCode(fields));
 
 Review comment:
   Wondering if it can directly return `Arrays.hashCode(fields)`.
   

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org