> ## Documentation Index
> Fetch the complete documentation index at: /documents/llms.txt
> Use this file to discover all available pages before exploring further.

# SHOW ANALYZE STATUS

> SHOW ANALYZE STATUS views the status of collection tasks.

SHOW ANALYZE STATUS views the status of collection tasks.

This statement cannot be used to view the status of custom collection tasks. To view the status of custom collection tasks, use SHOW ANALYZE JOB.

This statement is supported from v2.4.

## Syntax

```SQL theme={null}
SHOW ANALYZE STATUS [WHERE]
```

You can use `LIKE` or `WHERE` to filter the information to return.

This statement returns the following columns.

| **List name** | **Description** |
| - | - |
| Id | The ID of the collection task. |
| Database | The database name. |
| Table | The table name. |
| Columns | The column names. |
| Type | The type of statistics, including FULL, SAMPLE, and HISTOGRAM. |
| Schedule | The type of scheduling. `ONCE` means manual and `SCHEDULE` means automatic. |
| Status | The status of the task. |
| StartTime | The time when the task starts executing. |
| EndTime | The time when the task execution ends. |
| Properties | Custom parameters. For external table (for example, Iceberg, Hive, or Paimon) collection tasks, this also includes collection metadata such as `table_format`, `partition_count`, `column_count`, and, for Iceberg tables, `snapshot_id`, `total_files`, and `total_rows`. |
| Reason | The reason why the task failed. NULL is returned if the execution was successful. |

## References

[ANALYZE TABLE](/documents/4.2/sql-reference/sql-statements/cbo_stats/ANALYZE_TABLE.md): create a manual collection task.

[KILL ANALYZE](/documents/4.2/sql-reference/sql-statements/cbo_stats/KILL_ANALYZE.md): cancel a custom collection task that is running.

For more information about collecting statistics for CBO, see [Gather statistics for CBO](/documents/4.2/using_starrocks/Cost_based_optimizer.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.