voonhous commented on code in PR #17630:
URL: https://github.com/apache/hudi/pull/17630#discussion_r2629306504


##########
hudi-common/src/main/java/org/apache/hudi/BaseHoodieTableFileIndex.java:
##########
@@ -575,31 +555,11 @@ private static HoodieTableMetadata createMetadataTable(
    * Partition path information containing the relative partition path
    * and values of partition columns.
    */
-  public static final class PartitionPath implements Serializable {
-
-    final String path;
-    final Object[] values;
-
-    public PartitionPath(String path, Object[] values) {
-      this.path = path;
-      this.values = values;
-    }
-
-    public String getPath() {
-      return path;
-    }
-
-    @Override
-    public boolean equals(Object other) {
-      return other instanceof PartitionPath
-          && Objects.equals(path, ((PartitionPath) other).path)
-          && Arrays.equals(values, ((PartitionPath) other).values);
-    }
+  @Value
+  public static class PartitionPath implements Serializable {
 
-    @Override
-    public int hashCode() {
-      return path.hashCode() * 1103 + Arrays.hashCode(values);

Review Comment:
   Alexey added this and i think it's just a random odd prime number. No 
significance i feel.



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