in src/iceberg/table_metadata.cc [95:111]
bool SnapshotRefEquals(
const std::unordered_map<std::string, std::shared_ptr<SnapshotRef>>& lhs,
const std::unordered_map<std::string, std::shared_ptr<SnapshotRef>>& rhs) {
if (lhs.size() != rhs.size()) {
return false;
}
for (const auto& [key, value] : lhs) {
auto iter = rhs.find(key);
if (iter == rhs.end()) {
return false;
}
if (*iter->second != *value) {
return false;
}
}
return true;
}