You need to enable JavaScript to run this app.
ByteHouse Cloud Data Warehouse Version

ByteHouse Cloud Data Warehouse Version

Copy page
Download PDF
System tables
system.mutations
Copy page
Download PDF
system.mutations

The System table system.mutations stores information about ongoing Data change Actions, such as UPDATE, DELETE, and ALTER.

Important notes
  • When the ByteHouse engine Version is less than v2.3.2.0, only the mutation Progress result for the responding Server is supported.
  • When the ByteHouse engine Version is v2.3.2.0 or above, mutation Progress results for all Server are supported.
  • You can View your current engine Version in the ByteHouse Console on the Tenant manage > basic information Page.

Column names

| | | | \

NameData typeDescription of field meaning
\
databaseStringThe Database name to which the change Action belongs.
\
tableStringThe table name corresponding to the change Action.
\
mutation_idStringThe ID of the change.\
\
* For Copy tables, mutation_id corresponds to the znode Name in the <table_path>/mutations/ directory in ByteHouse Keeper.\
* For Not Copy tables, mutation_id corresponds to the file Name in the Data directory of the table.
\
query_idUUIDThe Search UUID that triggers the change Action.
\
commandStringThe specific Content of the change command (the Core statement after ALTER TABLE [db.]table).
\
create_timeDateTimeThe Date and Time when the change command is submitted for execution.
\
cnchUInt8Indicates whether it is a change marker for a Cnch engine table.\
\
* 1 = Yes (Cnch engine table);\
* 0 = No (Other engine tables).
\
block_numbers.partition_idArray(String)For Copy tables, the array contains the Partition IDs (one Record per Partition). For Not Copy tables, this value is empty.
\
block_numbers.numberArrart(Int64)For Copy tables, the array contains one Record per Partition, displaying the block number acquired by the change. Only the Part in the Partition that contains blocks smaller than this number will be changed.\
In Not Copy tables, the block numbers of all Partitions form a single sequence. This means that for changes to Not Copy tables, this column will contain one Record, which is the single block number acquired by the change.
\
parts_to_do_namesArray(String)An array of pending shard Names (shards for which the change is not yet complete).
\
parts_to_doInt64The total number of pending shards, used to calculate Progress.
\
is_doneUInt8The completion State of the change Action:\
\
* 1 = Done;\
* 0 = In progress.
\
latest_failed_partStringName of the last shard that could not be changed.
\
latest_fail_timeDateTimeDate and Time of the last Part change failed.
\
latest_fail_reasonStringThe abnormal Message that caused the last Part change to fail.
\
settingsStringThe session settings used when executing the change Action.

Example

Query the change status of a specified table:

SELECT 
  database, 
  table, 
  mutation_id, 
  create_time, 
  command 
FROM system.mutations 
WHERE database = 'sales_db' 
  AND table = 'order_details_test' 
ORDER BY create_time DESC;

Query results example:
Image

Last updated: 2026.03.31 16:16:45