This is an automated email from the ASF dual-hosted git repository.

JingsongLi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/paimon.git


The following commit(s) were added to refs/heads/master by this push:
     new 0ca5f21b48 [doc] Document PyPaimon CLI table rollback (#11357)
0ca5f21b48 is described below

commit 0ca5f21b48f6e5813f47672d1483843a21c524e3
Author: Sky Luke <[email protected]>
AuthorDate: Mon Nov 23 14:58:04 2026 +0800

    [doc] Document PyPaimon CLI table rollback (#11357)
---
 docs/docs/pypaimon/cli-versions.md | 16 ++++++++++++++++
 docs/docs/pypaimon/cli.md          |  1 +
 2 files changed, 17 insertions(+)

diff --git a/docs/docs/pypaimon/cli-versions.md 
b/docs/docs/pypaimon/cli-versions.md
index 09df89ed0f..624de4ea7f 100644
--- a/docs/docs/pypaimon/cli-versions.md
+++ b/docs/docs/pypaimon/cli-versions.md
@@ -27,6 +27,22 @@ under the License.
 
 Retain a dataset snapshot with a tag or work on a separate table history with 
a branch. Configure the CLI first, and use a table that already has committed 
data. Commands below illustrate separate operations; choose the ones you need.
 
+## Table Rollback
+
+Use `paimon table rollback` to restore a previous table state. For filesystem
+catalogs, rollback removes snapshots and tags newer than the target. Before
+rolling back, inspect the available targets with
+`paimon table list-snapshots mydb.users` or `paimon tag list mydb.users`.
+
+Choose exactly one target. For `--timestamp`, use Unix epoch milliseconds.
+The command selects the latest snapshot committed at or before that time.
+
+```shell
+paimon table rollback mydb.users --snapshot-id 3
+paimon table rollback mydb.users --tag v1
+paimon table rollback mydb.users --timestamp 1767225600000
+```
+
 ## Tag Commands
 
 Manage tags (named snapshots) on a table. Tags are useful for time travel and 
pinning a snapshot for later access.
diff --git a/docs/docs/pypaimon/cli.md b/docs/docs/pypaimon/cli.md
index bd4d1b0491..3a573c655b 100644
--- a/docs/docs/pypaimon/cli.md
+++ b/docs/docs/pypaimon/cli.md
@@ -149,6 +149,7 @@ paimon table explain demo.people --where "id = 2"
 | Show schemas, snapshots, and partitions | [Table 
metadata](./cli-query#table-get) |
 | Create a table or import local files | [Create and change 
tables](./cli-tables) |
 | Alter a schema or table options | [Table alter](./cli-tables#table-alter) |
+| Roll back a table | [Table rollback](./cli-versions#table-rollback) |
 
 ## Catalog Commands
 

Reply via email to