Skip to content

Commit

Permalink
[doc] Document branches system table. (#3784)
Browse files Browse the repository at this point in the history
  • Loading branch information
LinMingQiang authored Jul 19, 2024
1 parent f0a082c commit 6659eed
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions docs/content/maintenance/system-tables.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,24 @@ SELECT * FROM my_table$tags;
*/
```

### Branches Table

You can query the branches of the table.

```sql
SELECT * FROM my_table$branches;

/*
+----------------------+---------------------------+--------------------------+-------------------------+
| branch_name | created_from_tag | created_from_snapshot | create_time |
+----------------------+---------------------------+--------------------------+-------------------------+
| branch1 | tag1 | 2 | 2024-07-18 20:31:39.084 |
| branch2 | tag2 | 5 | 2024-07-18 21:11:14.373 |
+----------------------+---------------------------+--------------------------+-------------------------+
2 rows in set
*/
```

### Consumers Table

You can query all consumers which contains next snapshot.
Expand Down

0 comments on commit 6659eed

Please sign in to comment.