This is an automated email from the ASF dual-hosted git repository.
jmclean pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/gravitino.git
The following commit(s) were added to refs/heads/main by this push:
new acbd7522ee [#7332] feat(common): Add properties to hashCode() (#7524)
acbd7522ee is described below
commit acbd7522eed42c3943bf836acce85e3a25f86403
Author: BIN <[email protected]>
AuthorDate: Wed Jul 2 09:29:02 2025 +0800
[#7332] feat(common): Add properties to hashCode() (#7524)
### What changes were proposed in this pull request?
Add properties to hashCode()
### Why are the changes needed?
Fix: #7517
### Does this PR introduce _any_ user-facing change?
no
### How was this patch tested?
Code review
Co-authored-by: senlizishi <[email protected]>
---
common/src/main/java/org/apache/gravitino/dto/MetalakeDTO.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/common/src/main/java/org/apache/gravitino/dto/MetalakeDTO.java
b/common/src/main/java/org/apache/gravitino/dto/MetalakeDTO.java
index 45538c689a..6da5265784 100644
--- a/common/src/main/java/org/apache/gravitino/dto/MetalakeDTO.java
+++ b/common/src/main/java/org/apache/gravitino/dto/MetalakeDTO.java
@@ -200,7 +200,7 @@ public class MetalakeDTO implements Metalake {
@Override
public int hashCode() {
- return Objects.hashCode(name, comment, audit);
+ return Objects.hashCode(name, comment, audit, properties);
}
/** @return the builder for creating a new instance of MetalakeDTO. */