Skip to content
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@ public boolean equals(Object o) {

SparkBatchQueryScan that = (SparkBatchQueryScan) o;
return table().name().equals(that.table().name())
&& Objects.equals(table().uuid(), that.table().uuid())
&& Objects.equals(branch(), that.branch())
&& readSchema().equals(that.readSchema()) // compare Spark schemas to ignore field ids
&& filtersDesc().equals(that.filtersDesc())
Expand All @@ -268,6 +269,7 @@ && runtimeFiltersDesc().equals(that.runtimeFiltersDesc())
public int hashCode() {
return Objects.hash(
table().name(),
table().uuid(),
branch(),
readSchema(),
filtersDesc(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ public boolean equals(Object o) {

SparkChangelogScan that = (SparkChangelogScan) o;
return table.name().equals(that.table.name())
&& Objects.equals(table.uuid(), that.table.uuid())
&& readSchema().equals(that.readSchema()) // compare Spark schemas to ignore field IDs
&& filtersDesc().equals(that.filtersDesc())
&& Objects.equals(startSnapshotId, that.startSnapshotId)
Expand All @@ -156,7 +157,8 @@ && filtersDesc().equals(that.filtersDesc())

@Override
public int hashCode() {
return Objects.hash(table.name(), readSchema(), filtersDesc(), startSnapshotId, endSnapshotId);
return Objects.hash(
table.name(), table.uuid(), readSchema(), filtersDesc(), startSnapshotId, endSnapshotId);
}

private String filtersDesc() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ public boolean equals(Object o) {

SparkCopyOnWriteScan that = (SparkCopyOnWriteScan) o;
return table().name().equals(that.table().name())
&& Objects.equals(table().uuid(), that.table().uuid())
&& readSchema().equals(that.readSchema()) // compare Spark schemas to ignore field ids
&& filtersDesc().equals(that.filtersDesc())
&& Objects.equals(snapshotId(), that.snapshotId())
Expand All @@ -170,7 +171,12 @@ && filtersDesc().equals(that.filtersDesc())
@Override
public int hashCode() {
return Objects.hash(
table().name(), readSchema(), filtersDesc(), snapshotId(), filteredLocations);
table().name(),
table().uuid(),
readSchema(),
filtersDesc(),
snapshotId(),
filteredLocations);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ public boolean equals(Object other) {

SparkStagedScan that = (SparkStagedScan) other;
return table().name().equals(that.table().name())
&& Objects.equals(table().uuid(), that.table().uuid())
&& Objects.equals(taskSetId, that.taskSetId)
&& readSchema().equals(that.readSchema())
&& splitSize == that.splitSize
Expand All @@ -101,7 +102,13 @@ && readSchema().equals(that.readSchema())
@Override
public int hashCode() {
return Objects.hash(
table().name(), taskSetId, readSchema(), splitSize, splitLookback, openFileCost);
table().name(),
table().uuid(),
taskSetId,
readSchema(),
splitSize,
splitLookback,
openFileCost);
}

@Override
Expand Down