mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-20 16:50:48 +00:00
Merge pull request #48906 from ClickHouse/thomoco-patch-3
Update mutations.md
This commit is contained in:
commit
155c958d52
@ -5,7 +5,7 @@ slug: /en/operations/system-tables/mutations
|
||||
|
||||
The table contains information about [mutations](/docs/en/sql-reference/statements/alter/index.md#mutations) of [MergeTree](/docs/en/engines/table-engines/mergetree-family/mergetree.md) tables and their progress. Each mutation command is represented by a single row.
|
||||
|
||||
Columns:
|
||||
## Columns:
|
||||
|
||||
- `database` ([String](/docs/en/sql-reference/data-types/string.md)) — The name of the database to which the mutation was applied.
|
||||
|
||||
@ -43,6 +43,19 @@ If there were problems with mutating some data parts, the following columns cont
|
||||
|
||||
- `latest_fail_reason` ([String](/docs/en/sql-reference/data-types/string.md)) — The exception message that caused the most recent part mutation failure.
|
||||
|
||||
## Monitoring Mutations
|
||||
|
||||
To track the progress on the system.mutations table, use a query like the following - this requires read permissions on the system.* tables:
|
||||
|
||||
``` sql
|
||||
SELECT * FROM clusterAllReplicas('cluster_name', 'db', system.mutations)
|
||||
WHERE is_done=0 AND table='tmp';
|
||||
```
|
||||
|
||||
:::tip
|
||||
replace `tmp` in `table='tmp'` with the name of the table that you are checking mutations on.
|
||||
:::
|
||||
|
||||
**See Also**
|
||||
|
||||
- [Mutations](/docs/en/sql-reference/statements/alter/index.md#mutations)
|
||||
|
Loading…
Reference in New Issue
Block a user