跳转到主要内容
在 ClickHouse Cloud 中查询此系统表中的数据分别保存在 ClickHouse Cloud 各节点的本地。因此,如需查看所有数据的完整情况,需要使用 clusterAllReplicas 函数。更多详情请参见此处

说明

此表显示有关 ClickHouse 服务器的警告。 相同类型的警告会合并为一条。 例如,如果已附加的数据库数量 N 超过可配置的阈值 T,则会显示一条包含当前值 N 的记录,而不是 N 条单独的记录。 如果当前值降到阈值以下,该记录就会从表中移除。 该表可通过以下设置进行配置:

示例

Query
 SELECT * FROM system.warnings LIMIT 2 \G;
Response
Row 1:
──────
message:               The number of active parts is more than 10.
message_format_string: The number of active parts is more than {}.

Row 2:
──────
message:               The number of attached databases is more than 2.
message_format_string: The number of attached databases is more than {}.
最后修改于 2026年6月10日