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 entryinitiator_host
(Nullable(String)) - Host that initiated the DDL operationinitiator_port
(Nullable(UInt16)) - Port used by the initiatorcluster
(String) — Cluster name.query
(String) — Query executed.settings
(Map(String, String)) - Settings used in the DDL operationquery_create_time
(DateTime) — Query created time.host
(String) — Hostnameport
(UInt16) — Host Port.status
(Enum8) — Status of the query.exception_code
(Enum8) — Exception code.exception_text
(Nullable(String)) - Exception messagequery_finish_time
(DateTime) — Query finish time.query_duration_ms
(UInt64) — Duration of query execution (in milliseconds).
Example
SELECT *
FROM system.distributed_ddl_queue
WHERE cluster = 'test_cluster'
LIMIT 2
FORMAT Vertical
Query id: f544e72a-6641-43f1-836b-24baa1c9632a
Row 1: