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.cnch_parts
Copy page
Download PDF
system.cnch_parts

The system table system.cnch_parts contains information about all stored data parts, covering key attributes such as part storage, state, transactions, and associated tables. It can be used to monitor the part life cycle and troubleshoot data storage problems. It is recommended to use this system table instead of system.parts.

Column names

| | | | \

Field nameData typeDescription
\
databaseStringThe database name to which the part belongs.
\
tableStringThe name of the table to which the part belongs.
\
table_uuidUUIDThe unique UUID identifier of the table to which the part belongs.
\
partitionStringThe partition name where the part is located.
\
nameStringThe name of the part.
\
chain_depthUInt64The version chain length relative to the mutation baseline.
\
bytes_on_diskUInt64The size of the part on disk, in bytes.
\
rows_countUInt64Total number of rows contained in the part.
\
delete_rowsUInt64Number of rows marked as deleted in the part.
\
columnsStringColumn information contained in the part.
\
marks_countUInt64Number of marks in the part.
\
index_granularityArray(UInt64)Index granularity array of the part.
\
commit_timeDateTimeTime when the part is submitted to ByteKV (metadata storage).
\
kv_commit_timeDateTimeSubmission time corresponding to the schema version used by the part.
\
columns_commit_timeDateTimeSubmission time for mutation tasks that do not change the table schema, such as data updates.
\
mutation_commit_timeDateTimeSubmission time for mutation tasks involving table schema changes.
\
previous_versionUInt64After a mutation is executed, the new part points to the commit_time of the original part for version tracing.
\
partition_idStringThe unique identifier (ID) of the partition where the part is located.
\
bucket_numberUInt64Bucket hash result of the part.
\
total_bucket_cntUInt64Total number of buckets.
\
table_definition_hashUInt64Hash value of the table definition.
\
outdatedUInt8Whether the part is outdated:\
\
* 1 = outdated;\
* 0 = not outdated.
\
visibleUInt8Whether the part is visible to queries:\
\
* 1 = visible;\
* 0 = not visible.
\
part_typeEnum8Part type. Enumeration values include:\
\
* VisiblePart (1): visible and active part\
* InvisiblePart (2): temporary part that is not visible\
* Tombstone (3): tombstone part (marked as deleted)\
* DroppedPart (4): deleted part
\
data_typeStringData type.
\
layout_typeStringStorage layout type.
\
part_idUUIDThe unique UUID identifier of the part.
\
commit_tsUInt64Commit timestamp of the part in the transaction.
\
end_tsUInt64Timestamp when the part is marked as unavailable, such as when triggered by truncate or merge operations.
\
last_modification_timeDateTimeLast time the part was modified.
\
activeUInt8Whether the part is available:\
\
* 1 = available;\
* 0 = not available.
\
bytesUInt64Logical data size of the part, in bytes.
\
rowsUInt64Logical number of rows in the part.

Example

The following example shows how to query the system table system.cnch_parts for the table order_details:

SELECT * 
FROM system.cnch_parts 
WHERE database = 'sales_db'  -- Replace with the database name of the table you want to query 
AND table = 'order_details'; -- Replace with the table name you want to query

Example query results:
Image

Last updated: 2026.03.31 16:19:34