Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions paimon-core/src/main/java/org/apache/paimon/Snapshot.java
Original file line number Diff line number Diff line change
Expand Up @@ -424,12 +424,16 @@ public int hashCode() {
totalRecordCount,
deltaRecordCount,
changelogRecordCount,
watermark);
watermark,
statistics);
}

@Override
public boolean equals(Object o) {
if (!(o instanceof Snapshot)) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Snapshot that = (Snapshot) o;
Expand All @@ -451,7 +455,8 @@ public boolean equals(Object o) {
&& Objects.equals(totalRecordCount, that.totalRecordCount)
&& Objects.equals(deltaRecordCount, that.deltaRecordCount)
&& Objects.equals(changelogRecordCount, that.changelogRecordCount)
&& Objects.equals(watermark, that.watermark);
&& Objects.equals(watermark, that.watermark)
&& Objects.equals(statistics, that.statistics);
}

/** Type of changes in this snapshot. */
Expand Down