RussellSpitzer commented on issue #6670: URL: https://github.com/apache/iceberg/issues/6670#issuecomment-1404503530
I did a quick test using PartitionData ```java public void testBug() { Types.StructType STRUCT_TYPE = Types.StructType.of( Types.NestedField.required(1, "a", Types.IntegerType.get()), Types.NestedField.optional(2, "b", Types.IntegerType.get())); PartitionData record1 = new PartitionData(STRUCT_TYPE); PartitionData record2 = new PartitionData(STRUCT_TYPE); record1.set(0, 20220726); record1.set(1, 20220801); record2.set(0, 20220728); record2.set(1, 20220719); Assert.assertNotEquals(record1.hashCode(), record2.hashCode()); Assert.assertNotEquals(record1, record2); StructLikeMap map = StructLikeMap.create(STRUCT_TYPE); map.put(record1, 1); map.put(record2, 2); Assert.assertEquals(1, map.get(record1)); Assert.assertEquals(2, map.get(record2)); } ``` -- 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: issues-unsubscr...@iceberg.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For additional commands, e-mail: issues-h...@iceberg.apache.org