replicated_fetches
此系统表中的数据本地保存在 ClickHouse Cloud 的每个节点上。因此,要获得所有数据的完整视图,需要使用 clusterAllReplicas
函数。有关更多详细信息,请参阅此处。
包含有关当前正在运行的后台获取的信息。
列
-
database
(String) — 数据库名称。 -
table
(String) — 表名称。 -
elapsed
(Float64) — 自显示当前正在运行的后台获取开始以来经过的时间(秒)。 -
progress
(Float64) — 已完成工作的百分比,范围从 0 到 1。 -
result_part_name
(String) — 将作为显示当前正在运行的后台获取结果而形成的分区名称。 -
result_part_path
(String) — 将作为显示当前正在运行的后台获取结果而形成的分区的绝对路径。 -
partition_id
(String) — 分区的 ID。 -
total_size_bytes_compressed
(UInt64) — 结果分区中压缩数据的总大小(字节)。 -
bytes_read_compressed
(UInt64) — 从结果分区读取的压缩字节数。 -
source_replica_path
(String) — 源副本的绝对路径。 -
source_replica_hostname
(String) — 源副本的主机名。 -
source_replica_port
(UInt16) — 源副本的端口号。 -
interserver_scheme
(String) — Interserver 方案的名称。 -
URI
(String) — 统一资源标识符。 -
to_detached
(UInt8) — 该标志指示当前正在运行的后台获取是否正在使用TO DETACHED
表达式执行。 -
thread_id
(UInt64) — 线程标识符。
示例
SELECT * FROM system.replicated_fetches LIMIT 1 FORMAT Vertical;
Row 1:
──────
database: default
table: t
elapsed: 7.243039876
progress: 0.41832135995612835
result_part_name: all_0_0_0
result_part_path: /var/lib/clickhouse/store/700/70080a04-b2de-4adf-9fa5-9ea210e81766/all_0_0_0/
partition_id: all
total_size_bytes_compressed: 1052783726
bytes_read_compressed: 440401920
source_replica_path: /clickhouse/test/t/replicas/1
source_replica_hostname: node1
source_replica_port: 9009
interserver_scheme: http
URI: http://node1:9009/?endpoint=DataPartsExchange%3A%2Fclickhouse%2Ftest%2Ft%2Freplicas%2F1&part=all_0_0_0&client_protocol_version=4&compress=false
to_detached: 0
thread_id: 54
另请参阅