Skip to content

Commit 3cbb73f

Browse files
committed
1
1 parent fea772e commit 3cbb73f

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/iceberg/catalog/rest/types.cc

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,24 +52,20 @@ bool CreateTableRequest::operator==(const CreateTableRequest& other) const {
5252
if (write_order && *write_order != *other.write_order) {
5353
return false;
5454
}
55-
5655
return true;
5756
}
5857

5958
bool LoadTableResult::operator==(const LoadTableResult& other) const {
60-
// Compare primitive fields
6159
if (metadata_location != other.metadata_location || config != other.config) {
6260
return false;
6361
}
6462

65-
// Compare metadata (required) - deep comparison
6663
if (!metadata != !other.metadata) {
67-
return false; // One is null, the other isn't
64+
return false;
6865
}
6966
if (metadata && *metadata != *other.metadata) {
7067
return false;
7168
}
72-
7369
return true;
7470
}
7571

0 commit comments

Comments
 (0)