in src/iceberg/snapshot.cc [47:63]
bool SnapshotRef::Equals(const SnapshotRef& other) const {
if (this == &other) {
return true;
}
if (type() != other.type()) {
return false;
}
if (type() == SnapshotRefType::kBranch) {
return snapshot_id == other.snapshot_id &&
std::get<Branch>(retention) == std::get<Branch>(other.retention);
} else {
return snapshot_id == other.snapshot_id &&
std::get<Tag>(retention) == std::get<Tag>(other.retention);
}
}