TDSQL Boundless DDL_JOBS

INFORMATION_SCHEMA.DDL_JOBS 展示每个 DDL 任务的状态信息。

相关产品
TDSQL Boundless 产品页,含版本规格、价格与购买入口。

一、字段说明

字段名 类型 描述
id bigint unsigned 唯一的 DDL 任务 ID。
schema_name varchar(64) DDL 任务对应的 schema 名。
table_name varchar(64) DDL 任务对应的 table 名。
version bigint DDL 任务对应的版本信息。
ddl_status enum DDL 任务执行状态。FAIL:失败。SUCCESS:成功。EXECUTING:正在执行。
start_timestamp timestamp DDL 任务开启时间。
last_timestamp timestamp 最近一次 DDL 任务更新时间。
ddl_sql longtext DDL SQL。
info_type enum DDL 任务类型。
info longtext 记录 DDL 任务执行过程中的必要信息。
is_history bool DDL 任务是否已经结束。1:已结束。0:尚未结束。

二、示例

tdsql> create table sbtest1 (id int primary key);tdsql> select * from information_Schema.ddl_jobs order by id desc limit 1\\G;*************************** 1. row *************************** ID: 2 SCHEMA_NAME: tdsql TABLE_NAME: sbtest1 VERSION: 4 DDL_STATUS: SUCCESSSTART_TIMESTAMP: 2025-06-24 15:00:35 LAST_TIMESTAMP: 2025-06-24 15:00:35 DDL_SQL: create table sbtest1 (id int primary key) INFO_TYPE: CREATE TABLE INFO: {"rm_idx":[],"wf_rmed":false,"exec_addr":{"ip":"10.10.10.10","port":15035},"row_apply_saved":true,"current_schema_name":"tdsql","ddl_with_complete_info":"","crt_data_obj_task_id":29372684622102841,"dstr_data_obj_task_id":0,"data_obj_to_be_dstr_arr":[],"tbl_tidxid":10028,"row_applied":false,"recov_addr":{"ip":"10.10.10.10","port":15035}} IS_HISTORY: 11 row in set (0.00 sec)

赞 (0)
上一篇 4天前
下一篇 4天前