Sealina opened a new issue #2347:
URL: https://github.com/apache/iceberg/issues/2347
Hello,
I'm using iceberg 0.10.0 and Junit 5 for unit testing my app based on
iceberg. I noticed something out of expectation as the following
```
...
@Test
public MyUnitTest() {
assertEquals(
new org.apache.iceberg.types.Types.IntegerType(),
new org.apache.iceberg.types.Types.IntegerType()
)
}
```
Output:
```
...
java.lang.AssertionError: expected:
org.apache.iceberg.types.Types$IntegerType<int> but was:
org.apache.iceberg.types.Types$IntegerType<int>
Expected :org.apache.iceberg.types.Types$IntegerType<int>
Actual :org.apache.iceberg.types.Types$IntegerType<int>
...
```
It looks like the iceberg types are using the default Java Object way of
equality check (pointer equality instead of value equality). I want to know if
this is by design, or if there's other ways of checking equality for iceberg
types.
Thank you
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]