跳到主要内容
跳到主要内容

system.distributed_ddl_queue

包含有关分布式 ddl 查询 (ON CLUSTER 子句)的信息,这些查询在集群上执行。

列:

  • entry (String) — 查询 ID。
  • entry_version (Nullable(UInt8)) - 项目的版本
  • initiator_host (Nullable(String)) - 发起 DDL 操作的主机
  • initiator_port (Nullable(UInt16)) - 发起者使用的端口
  • cluster (String) — 集群名称。
  • query (String) — 执行的查询。
  • settings (Map(String, String)) - DDL 操作中使用的参数
  • query_create_time (DateTime) — 查询创建时间。
  • host (String) — 主机名
  • port (UInt16) — 主机端口。
  • status (Enum8) — 查询的状态。
  • exception_code (Enum8) — 异常代码。
  • exception_text (Nullable(String)) - 异常消息
  • query_finish_time (DateTime) — 查询完成时间。
  • query_duration_ms (UInt64) — 查询执行的持续时间(以毫秒为单位)。

示例