apply_table_updates

Function apply_table_updates 

Source
pub fn apply_table_updates(
    metadata: &mut TableMetadata,
    updates: Vec<TableUpdate>,
) -> Result<(), Error>
Expand description

Applies a sequence of updates to table metadata

This function processes each update in order, modifying the table metadata accordingly. Updates can include:

  • Format version changes
  • UUID assignments
  • Schema modifications
  • Partition spec and sort order changes
  • Snapshot management
  • Location and property updates

§Arguments

  • metadata - Mutable reference to table metadata to modify
  • updates - Vector of updates to apply

§Returns

  • Ok(()) if all updates were applied successfully
  • Err(Error) if any update failed to apply