oceanbase.CDB_OB_VECTOR_INDEX_TASK_HISTORY

2026-04-02 06:23:58  Updated

Note

This view is available starting with V4.4.1.

Purpose

The CDB_OB_VECTOR_INDEX_TASK_HISTORY view displays the history of vector index partition rebuild tasks for all tenants in the cluster.

Columns

Column Type Nullable Description
TENANT_ID bigint(20) YES The tenant ID.
TABLE_ID bigint(20) YES The table ID.
TABLET_ID bigint(20) YES The partition ID.
TASK_ID bigint(20) YES The task ID.
START_TIME timestamp(6) YES The task start time.
MODIFY_TIME timestamp(6) YES The task end time.
TRIGGER_TYPE varchar(16) NO The task trigger type.
  • 0: automatically triggered.
  • 1: manually triggered.
STATUS varchar(16) NO The task status.
  • 0: the task is being prepared.
  • 1: the task is being executed.
  • 2: the task is paused.
  • 3: the task has ended.
TASK_TYPE bigint(20) NO The task type.
  • 0: asynchronous build.
  • 1: index partition rebuild.
TASK_SCN bigint(20) NO The task version number.
RET_CODE bigint(20) NO The task end status.
  • 0: successful.
  • Nonzero: failed.
TRACE_ID varchar(512) NO The task execution trace ID.

Sample query

In the sys tenant, query the history of vector index partition rebuild tasks for all tenants.

SELECT * FROM oceanbase.CDB_OB_VECTOR_INDEX_TASK_HISTORY;

The query result is as follows:

+-----------+----------+---------------------+---------+----------------------------+----------------------------+--------------+----------+-----------+------------------+----------+------------------------------------+
| TENANT_ID | TABLE_ID | TABLET_ID           | TASK_ID | START_TIME                 | MODIFY_TIME                | TRIGGER_TYPE | STATUS   | TASK_TYPE | TASK_SCN         | RET_CODE | TRACE_ID                           |
+-----------+----------+---------------------+---------+----------------------------+----------------------------+--------------+----------+-----------+------------------+----------+------------------------------------+
|      1004 |   500009 | 1152921504606846980 |   20332 | 1970-08-23 17:08:27.174915 | 1970-08-23 17:08:27.174925 | AUTO         | FINISHED |         1 | 1746611355009627 |        0 | Y61460BA2DAD8-000634872C0CED50-0-1 |
|      1004 |   500017 | 1152921504606846987 |   22023 | 1970-08-23 17:08:27.175705 | 1970-08-23 17:08:27.175845 | AUTO         | FINISHED |         1 | 1746611825281271 |        0 | Y61460BA2DAD8-000634872BECF00C-0-1 |
+-----------+----------+---------------------+---------+----------------------------+----------------------------+--------------+----------+-----------+------------------+----------+------------------------------------+
2 rows in set

References

Contact Us