Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 884 Bytes

File metadata and controls

27 lines (18 loc) · 884 Bytes

Rollback & Snapshot Management

IceFrame provides tools to manage table history, allowing you to rollback to previous states or manage branch pointers.

Rollback

Revert the table state to a specific snapshot or point in time.

# Rollback to a specific snapshot ID
ice.rollback_to_snapshot("my_table", 1234567890)

# Rollback to a timestamp (milliseconds since epoch)
ice.rollback_to_timestamp("my_table", 1704067200000)

Snapshot Management

Explicitly set the current snapshot of the table. This is useful for advanced workflows like cherry-picking or manually moving branch pointers.

# Set the current snapshot of the table
ice.call_procedure("my_table", "set_current_snapshot", snapshot_id=9876543210)

Warning

Rolling back changes the current state of the table. Ensure you have the correct snapshot ID or timestamp before proceeding.