The DDL log records every change the platform made to your tables, one run at a time: what changed, which statements ran, and what failed. It sits in the ClickHouse tab of Observability, next to the views described in ClickHouse activity.
The DDL log appears in the toggle only if your role holds View Table DDLs. See Permissions below.
Each row is one run, and the list opens with the newest first. Use the search box, the column filters and Period to narrow it; Periods, filters and exports describes how these shared controls behave.
| Column | What it shows |
|---|---|
| Started At | When the run started. |
| Status | running, succeeded or failed. |
| Kind | What the run did: create, drop, alter, truncate, delete, insert, refresh, replace or sync. |
| Database and Table | The database and the table the run changed. |
| Duration | How long the run took: milliseconds under a second, seconds under a minute, then minutes and seconds. |
| Error | The run's error, when it failed. The column is not sortable. |
| Finished At | When the run finished. |
| User | The user the run is recorded for. |
| Table ID | The table's identifier, shown as a number when present. |
| Run ID | The run's identifier. |
Status and Kind are colour-toned badges: red for a failure and for destructive kinds such as drop, truncate and delete, green for a success, informational for in-progress states and for create and replace, and amber for alter.
The Statements list is a timeline of what the run executed, in order. When the panel opens, the first failed statement is already expanded; if none failed, the first statement is.
No SQL was recorded for this statement.table_ddl_logs_2026-10-16. xlsx.| To do this | You need |
|---|---|
| See the DDL log | View Table DDLs, preset Table DDL Viewer |
| Export the log | Export Table DDLs, preset Table DDL Manager |
The Observability Administrator preset includes both. The Observability Viewer preset includes viewing the log but not exporting it. See Roles and permissions and the Permission reference.
Open Observability > ClickHouse > DDL log, set Period to cover the change, and find the run for that table. Open the run. When the platform recorded reasons for the recreation, its Recreation reasons notice lists them.
Find the change in the DDL log and read its User column, which shows the user the run is recorded for. Open the run to see the statements it executed.
CREATE TABLE when the SQL says CREATE OR REPLACE TABLE?The operation next to a statement collapses common modifiers, so CREATE OR REPLACE TABLE and CREATE TABLE IF NOT EXISTS both read CREATE TABLE. The recorded SQL itself is unchanged.
The label takes the first table name the statement mentions. For a rename, that is the table being renamed; the new name appears on the line below.
Long SQL is clamped at 12 lines so the panel stays readable. Use Show all N lines to expand it, and Show less to collapse it again.
Open the run. A Run error notice shows the run's error, and each failed statement carries a Statement error notice with its own reason. The Error column also shows the run's error in the list.
The record for that run holds no statements, and the panel says so. When present, the Recreation reasons and Schema changes parts still describe the change.
The schema changes the run recorded, kept as structured JSON. It stays collapsed by default; expand it to read it.
The Error column is not sortable. To find failures, filter Status to failed, or filter the Error column itself.
Exporting needs Export Table DDLs, which is separate from reading the log. Ask an administrator for the Table DDL Manager preset or the permission.
The DDL log follows the table changes the platform made and the statements inside each run. Query Management holds the queries themselves, including the platform's own queries. Use the DDL log for a table's history, and Query Management to find, reuse or investigate queries.
The view needs View Table DDLs. It appears in the ClickHouse view toggle only if your role holds it; ask an administrator for the Table DDL Viewer preset or the permission.