Enum iceberg_rust::catalog::commit::TableRequirement
source · pub enum TableRequirement {
AssertCreate,
AssertTableUuid {
uuid: Uuid,
},
AssertRefSnapshotId {
ref: String,
snapshot_id: i64,
},
AssertLastAssignedFieldId {
last_assigned_field_id: i32,
},
AssertCurrentSchemaId {
current_schema_id: i32,
},
AssertLastAssignedPartitionId {
last_assigned_partition_id: i32,
},
AssertDefaultSpecId {
default_spec_id: i32,
},
AssertDefaultSortOrderId {
default_sort_order_id: i32,
},
}Expand description
Requirements on the table metadata to perform the updates
Variants§
AssertCreate
The table must not already exist; used for create transactions
AssertTableUuid
The table UUID must match the requirement’s uuid
AssertRefSnapshotId
The table branch or tag identified by the requirement’s ref must reference the requirement’s snapshot-id;
if snapshot-id is null or missing, the ref must not already exist
AssertLastAssignedFieldId
The table’s last assigned column id must match the requirement’s last-assigned-field-id
AssertCurrentSchemaId
The table’s current schema id must match the requirement’s current-schema-id
AssertLastAssignedPartitionId
The table’s last assigned partition id must match the requirement’s last-assigned-partition-id
AssertDefaultSpecId
The table’s default spec id must match the requirement’s default-spec-id
AssertDefaultSortOrderId
The table’s default sort order id must match the requirement’s default-sort-order-id