system.distributed_ddl_queue
Contains information about distributed ddl queries (ON CLUSTER clause) that were executed on a cluster.
Columns:
- entry(String) — Query id.
- entry_version(Nullable(UInt8)) — Version of the entry.
- initiator_host(Nullable(String)) — Host that initiated the DDL operation.
- initiator_port(Nullable(UInt16)) — Port used by the initiator.
- cluster(String) — Cluster name, empty if not determined.
- query(String) — Query executed.
- settings(Map(String, String)) — Settings used in the DDL operation.
- query_create_time(DateTime) — Query created time.
- host(Nullable(String)) — Hostname.
- port(Nullable(UInt16)) — Host Port.
- status(Nullable(Enum8('Inactive' = 0, 'Active' = 1, 'Finished' = 2, 'Removing' = 3, 'Unknown' = 4))) — Status of the query.
- exception_code(Nullable(UInt16)) — Exception code.
- exception_text(Nullable(String)) — Exception message.
- query_finish_time(Nullable(DateTime)) — Query finish time.
- query_duration_ms(Nullable(UInt64)) — Duration of query execution (in milliseconds).
Example
