You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gravitino.apache.org by "justinmclean (via GitHub)" <gi...@apache.org> on 2025/08/11 06:10:01 UTC
[I] [Improvement] fix hashcode in TableEntity.java [gravitino]
justinmclean opened a new issue, #8012:
URL: https://github.com/apache/gravitino/issues/8012
### What would you like to be improved?
Currently, hashcode doesn't include namespace as this test shows:
```
@Test
public void testHashCodeIncludesNamespace() {
AuditInfo audit =
AuditInfo.builder().withCreator("test").withCreateTime(Instant.now()).build();
TableEntity table1 =
TableEntity.builder()
.withId(1L)
.withName("t")
.withNamespace(Namespace.of("catalog", "schema1"))
.withColumns(Collections.emptyList())
.withAuditInfo(audit)
.build();
TableEntity table2 =
TableEntity.builder()
.withId(1L)
.withName("t")
.withNamespace(Namespace.of("catalog", "schema2"))
.withColumns(Collections.emptyList())
.withAuditInfo(audit)
.build();
Assertions.assertNotEquals(
table1.hashCode(), table2.hashCode(), "hashCode should include namespace");
}
```
### How should we improve?
hashcode is missing namespace, so it should be added.
--
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: commits-unsubscribe@gravitino.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Improvement] fix hashcode in TableEntity.java [gravitino]
Posted by "justinmclean (via GitHub)" <gi...@apache.org>.
justinmclean closed issue #8012: [Improvement] fix hashcode in TableEntity.java
URL: https://github.com/apache/gravitino/issues/8012
--
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: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Improvement] fix hashcode in TableEntity.java [gravitino]
Posted by "justinmclean (via GitHub)" <gi...@apache.org>.
justinmclean commented on issue #8012:
URL: https://github.com/apache/gravitino/issues/8012#issuecomment-3173464811
It's yours. If you need any help ask.
--
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: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Improvement] fix hashcode in TableEntity.java [gravitino]
Posted by "joonseolee (via GitHub)" <gi...@apache.org>.
joonseolee commented on issue #8012:
URL: https://github.com/apache/gravitino/issues/8012#issuecomment-3173443224
Can I take this ticket?
--
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: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org