ClickHouse/docs/en/operations/system-tables/errors.md
2021-03-16 22:31:49 +03:00

1.1 KiB

system.errors

Contains error codes with the number of times they have been triggered.

Columns:

  • name (String) — name of the error (errorCodeToName).
  • code (Int32) — code number of the error.
  • value (UInt64) — the number of times this error has been happened.
  • last_error_time (DateTime) — time when the last error happened.
  • last_error_message (String) — message for the last error.
  • remote (UInt8) — remote exception (i.e. received during one of the distributed query).

Example

SELECT name, code, value
FROM system.errors
WHERE value > 0
ORDER BY code ASC
LIMIT 1

┌─name─────────────┬─code─┬─value─┐
 CANNOT_OPEN_FILE    76      1 
└──────────────────┴──────┴───────┘