Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions site/docs/spark-procedures.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@ Roll back a table to the snapshot that was current at some time.

#### Example

Roll back `db.sample` to a day ago
Roll back `db.sample` to one day
```sql
CALL catalog_name.system.rollback_to_timestamp('db.sample', date_sub(current_date(), 1))
CALL catalog_name.system.rollback_to_timestamp('db.sample', TIMESTAMP '2021-06-30 00:00:00.000')
```

### `set_current_snapshot`
Expand Down Expand Up @@ -197,10 +197,10 @@ the `expire_snapshots` procedure will never remove files which are still require

#### Examples

Remove snapshots older than 10 days ago, but retain the last 100 snapshots:
Remove snapshots older than one day, but retain the last 100 snapshots:

```sql
CALL hive_prod.system.expire_snapshots('db.sample', date_sub(current_date(), 10), 100)
CALL hive_prod.system.expire_snapshots('db.sample', TIMESTAMP '2021-06-30 00:00:00.000', 100)
```

Erase all snapshots older than the current timestamp but retain the last 5 snapshots:
Expand Down