Enum iceberg_rust::catalog::commit::TableUpdate
source · pub enum TableUpdate {
Show 15 variants
AssignUUID {
uuid: String,
},
UpgradeFormatVersion {
format_version: i32,
},
AddSchema {
schema: Schema,
last_column_id: Option<i32>,
},
SetCurrentSchema {
schema_id: i32,
},
AddPartitionSpec {
spec: PartitionSpec,
},
SetDefaultSpec {
spec_id: i32,
},
AddSortOrder {
sort_order: SortOrder,
},
SetDefaultSortOrder {
sort_order_id: i32,
},
AddSnapshot {
snapshot: Snapshot,
},
SetSnapshotRef {
ref_name: String,
snapshot_reference: SnapshotReference,
},
RemoveSnapshots {
snapshot_ids: Vec<i64>,
},
RemoveSnapshotRef {
ref_name: String,
},
SetLocation {
location: String,
},
SetProperties {
updates: HashMap<String, String>,
},
RemoveProperties {
removals: Vec<String>,
},
}Expand description
Update the metadata of a table in the catalog
Variants§
AssignUUID
Assigning a UUID to a table/view should only be done when creating the table/view. It is not safe to re-assign the UUID if a table/view already has a UUID assigned
UpgradeFormatVersion
Update format version
AddSchema
The highest assigned column ID for the table. This is used to ensure columns are always assigned an unused ID when evolving schemas. When omitted, it will be computed on the server side.
SetCurrentSchema
Schema ID to set as current, or -1 to set last added schema
AddPartitionSpec
Fields
spec: PartitionSpecNew partition spec
Add new partition spec
SetDefaultSpec
Partition spec ID to set as the default, or -1 to set last added spec
AddSortOrder
Add a new sort order
SetDefaultSortOrder
Sort order ID to set as the default, or -1 to set last added sort order
AddSnapshot
Add a new snapshot
SetSnapshotRef
Fields
snapshot_reference: SnapshotReferenceSnapshot refernce to set
Set the current snapshot reference
RemoveSnapshots
Remove snapshots with certain snapshot ids
RemoveSnapshotRef
Remove snapshot reference
SetLocation
Set a new location for the table
SetProperties
Set table properties
RemoveProperties
Remove table properties