We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35e88f7 commit 5a33e96Copy full SHA for 5a33e96
src/iceberg/table_requirement.cc
@@ -127,11 +127,7 @@ Status AssertCurrentSchemaID::Validate(const TableMetadata* base) const {
127
Status AssertLastAssignedPartitionId::Validate(const TableMetadata* base) const {
128
// Validate that the last assigned partition ID matches the expected value
129
130
- if (base == nullptr) {
131
- return CommitFailed("Requirement failed: current table metadata is missing");
132
- }
133
-
134
- if (base->last_partition_id != last_assigned_partition_id_) {
+ if (base && base->last_partition_id != last_assigned_partition_id_) {
135
return CommitFailed(
136
"Requirement failed: last assigned partition ID does not match (expected={}, "
137
"actual={})",
0 commit comments