justinmclean opened a new issue, #8007:
URL: https://github.com/apache/gravitino/issues/8007

   ### What would you like to be improved?
   
   There is an issue with the hashcode of 
common/src/main/java/org/apache/gravitino/dto/rel/indexes/IndexDTO.java
   
   Running this test shows the issue:
   ```
     @Test
     public void testHashCodeConsistentWithEquals() {
       String[][] fields1 = new String[][] {{"a"}, {"b"}};
       String[][] fields2 = new String[][] {{"a"}, {"b"}};
   
       IndexDTO index1 = IndexDTO.builder()
           .withIndexType(IndexDTO.IndexType.PRIMARY_KEY)
           .withName("idx")
           .withFieldNames(fields1)
           .build();
   
       IndexDTO index2 = IndexDTO.builder()
           .withIndexType(IndexDTO.IndexType.PRIMARY_KEY)
           .withName("idx")
           .withFieldNames(fields2)
           .build();
   
       Assertions.assertEquals(index1, index2);
       Assertions.assertEquals(index1.hashCode(), index2.hashCode());
     }
   ```
   
   ### How should we improve?
   
   fix teh code in hashCode


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to