rdblue commented on a change in pull request #2011:
URL: https://github.com/apache/iceberg/pull/2011#discussion_r550684832
##########
File path: core/src/main/java/org/apache/iceberg/BaseSnapshot.java
##########
@@ -211,6 +211,32 @@ private void cacheChanges() {
this.cachedDeletes = deletes.build();
}
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o instanceof BaseSnapshot) {
+ BaseSnapshot other = (BaseSnapshot) o;
+ return this.snapshotId == other.snapshotId() &&
+ this.parentId.equals(other.parentId()) &&
+ this.sequenceNumber == other.sequenceNumber() &&
+ this.timestampMillis == other.timestampMillis();
+
+ }
+ return false;
Review comment:
Style nits: we like to separate control flow blocks with a blank line,
and avoid a blank line before the end of a block or method.
----------------------------------------------------------------
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]