Documentation Index
Fetch the complete documentation index at: https://private-7c7dfe99-test-mutation-observers.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Querying in ClickHouse CloudThe data in this system table is held locally on each node in ClickHouse Cloud. Obtaining a complete view of all data, therefore, requires the
clusterAllReplicas function. See here for further details.Description
Thesystem.part_log table is created only if the part_log server setting is specified.
This table contains information about events that occurred with data parts in the MergeTree family tables, such as adding or merging data.
The system.part_log table contains the following columns:
Columns
hostname(LowCardinality(String)) — Hostname of the server executing the query.query_id(String) — Identifier of the INSERT query that created this data part.event_type(Enum8(‘NewPart’ = 1, ‘MergeParts’ = 2, ‘DownloadPart’ = 3, ‘RemovePart’ = 4, ‘MutatePart’ = 5, ‘MovePart’ = 6, ‘MergePartsStart’ = 7, ‘MutatePartStart’ = 8)) — Type of the event that occurred with the data part. Can have one of the following values: NewPart — Inserting of a new data part, MergePartsStart — Merging of data parts has started, MergeParts — Merging of data parts has finished, DownloadPart — Downloading a data part, RemovePart — Removing or detaching a data part using DETACH PARTITION.MutatePartStart — Mutating of a data part has started, MutatePart — Mutating of a data part has finished, MovePart — Moving the data part from the one disk to another one.merge_reason(Enum8(‘NotAMerge’ = 1, ‘RegularMerge’ = 2, ‘TTLDeleteMerge’ = 3, ‘TTLRecompressMerge’ = 4, ‘TTLDropMerge’ = 5)) — The reason for the event with type MERGE_PARTS. Can have one of the following values: NotAMerge — The current event has the type other than MERGE_PARTS, RegularMerge — Some regular merge, TTLDeleteMerge, TTLDropMerge — Cleaning up expired data. TTLRecompressMerge — Recompressing data part with the.merge_algorithm(Enum8(‘Undecided’ = 0, ‘Vertical’ = 1, ‘Horizontal’ = 2)) — Merge algorithm for the event with type MERGE_PARTS. Can have one of the following values: Undecided, Horizontal, Verticalevent_date(Date) — Event date.event_time(DateTime) — Event time.event_time_microseconds(DateTime64(6)) — Event time with microseconds precision.duration_ms(UInt64) — Duration of this operation.database(String) — Name of the database the data part is in.table(String) — Name of the table the data part is in.table_uuid(UUID) — UUID of the table the data part belongs to.part_name(String) — Name of the data part.partition_id(String) — ID of the partition that the data part was inserted to. The column takes theallvalue if the partitioning is bytuple().partition(String) — The partition name.part_type(String) — The type of the part. Possible values: Wide and Compact.part_storage_type(String) — The type of DataPartStorage. Possible values: Packed - all files are stored in a single blob, Full - a blob per file.disk_name(String) — The disk name data part lies on.path_on_disk(String) — Absolute path to the folder with data part files.rows(UInt64) — The number of rows in the data part.size_in_bytes(UInt64) — Size of the data part on disk in bytes.merged_from(Array(String)) — An array of the source parts names which the current part was made up from.bytes_uncompressed(UInt64) — Uncompressed size of the resulting part in bytes.read_rows(UInt64) — The number of rows was read during the merge.read_bytes(UInt64) — The number of bytes was read during the merge.peak_memory_usage(UInt64) — The maximum amount of used during merge RAMdeduplication_block_ids(Array(String)) — An array of block IDs used for deduplication when inserting this part.error(UInt16) — The error code of the occurred exception.exception(String) — Text message of the occurred error.mutation_ids(Array(String)) — An array of mutation IDs applied to the source part (merged_from) for the event with type MUTATE_PART_START and MUTATE_PART.ProfileEvents(Map(LowCardinality(String), UInt64)) — All the profile events captured during this operation.projections_duration_ms(Map(LowCardinality(String), UInt64)) — Per-projection merge/rebuild duration in milliseconds.
ProfileEvents.Names— Alias formapKeys(ProfileEvents).ProfileEvents.Values— Alias formapValues(ProfileEvents).name— Alias forpart_name.
system.part_log table is created after the first inserting data to the MergeTree table.