Skip to content
ClickHouse Docs
ClickHouse DocsClickHouse Docs

system.warnings

説明

このテーブルには、ClickHouseサーバーに関する警告が表示されます。 同じ種類の警告は、1 つの警告にまとめられます。 たとえば、attached 状態のデータベース数 N が設定可能なしきい値 T を超えた場合、N 個の個別のエントリではなく、現在の値 N を含む 1 つのエントリが表示されます。 現在の値がしきい値を下回ると、そのエントリはテーブルから削除されます。

このテーブルは、次の設定で構成できます。

カラム

  • message (String) — 警告メッセージ。
  • message_format_string (LowCardinality(String)) — メッセージの整形に使用されるフォーマット文字列。

Querysql
 SELECT * FROM system.warnings LIMIT 2 \G;
Responsetext
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 {}.
Navigation