Rajeev-01 opened a new pull request, #14404:
URL: https://github.com/apache/iceberg/pull/14404
### **Summary**
- This PR fixes TableMetadata equality checks by implementing proper
equals() and hashCode() methods instead of relying on reference equality.
- Since normal equality check `==` checks only the references but not the
actual contents comparision, this results in committing the same changes again.
- Refactored all the TableMetadata equality checks with proper
`Objects.equal()` which handles the null values as well.
### **Tests:**
- Added comprehensive equality and hashCode tests in
TestTableMetadata.java:
- Same object equality
- Structural equality with copied metadata
- Inequality with modified metadata (properties, schema)
- Equality with serialized metadata from the metadata file.
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]