Note
This view is introduced since OceanBase Database V3.1.4.
Purpose
The oceanbase.CDB_OB_KV_TTL_TASK_HISTORY view displays the historical time-to-live (TTL) tasks of all tenants. You can query this view only from the sys tenant.
Columns
| Column | Type | Nullable? | Description |
|---|---|---|---|
| TENANT_ID | bigint(20) | No | The ID of the tenant. |
| TABLE_NAME | varchar(256) | No | The name of the table. |
| TABLE_ID | bigint(20) | No | The ID of the table. |
| TABLET_ID | bigint(20) | No | The ID of the tablet. |
| TASK_ID | bigint(20) | No | The ID of the task, starting from 1. |
| START_TIME | timestamp(6) | No | The start time of the task. |
| END_TIME | timestamp(6) | No | The end time of the task. |
| TRIGGER_TYPE | varchar(8) | No | The triggering type of the task. Valid values: PERIODIC and USER. |
| STATUS | varchar(13) | No | The task status. For more information, see the task status description. |
| TTL_DEL_CNT | bigint(20) | No | The number of records deleted based on the value of the time_to_live parameter. |
| MAX_VERSION_DEL_CNT | bigint(20) | No | The number of records deleted based on MAX_VERSION. |
| SCAN_CNT | bigint(20) | No | The number of scanned records for the task. |
| RET_CODE | varchar(512) | No | The return code of the task. |