Enum iceberg_rust::catalog::commit::ViewUpdate
source · pub enum ViewUpdate {
AssignUUID {
uuid: String,
},
UpgradeFormatVersion {
format_version: i32,
},
AddSchema {
schema: Schema,
last_column_id: Option<i32>,
},
SetLocation {
location: String,
},
SetProperties {
updates: HashMap<String, String>,
},
RemoveProperties {
removals: Vec<String>,
},
AddViewVersion {
view_version: Version,
},
SetCurrentViewVersion {
view_version_id: i64,
},
}Expand description
Update the metadata of a view 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.
SetLocation
Set a new location for the table
SetProperties
Set table properties
RemoveProperties
Remove table properties
AddViewVersion
Add a new version to the view
SetCurrentViewVersion
The view version id to set as current, or -1 to set last added view version id
Trait Implementations§
source§impl Debug for ViewUpdate
impl Debug for ViewUpdate
source§impl<'de> Deserialize<'de> for ViewUpdate
impl<'de> Deserialize<'de> for ViewUpdate
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ViewUpdate
impl RefUnwindSafe for ViewUpdate
impl Send for ViewUpdate
impl Sync for ViewUpdate
impl Unpin for ViewUpdate
impl UnwindSafe for ViewUpdate
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more