add column schedule_info in __all_ddl_task_status

This commit is contained in:
simonjoylet
2024-03-14 06:15:32 +00:00
committed by ob-robot
parent 014f781be4
commit e2fbbf12f4
4 changed files with 32 additions and 0 deletions

View File

@ -599,6 +599,21 @@ int ObInnerTableSchema::all_virtual_ddl_task_status_schema(ObTableSchema &table_
consensus_schema_version_default,
consensus_schema_version_default); //default_value
}
if (OB_SUCC(ret)) {
ADD_COLUMN_SCHEMA("schedule_info", //column_name
++column_id, //column_id
0, //rowkey_id
0, //index_id
0, //part_key_pos
ObLongTextType, //column_type
CS_TYPE_INVALID, //column_collation_type
0, //column_length
-1, //column_precision
-1, //column_scale
true, //is_nullable
false); //is_autoincrement
}
table_schema.set_index_using_type(USING_BTREE);
table_schema.set_row_store_type(ENCODING_ROW_STORE);
table_schema.set_store_format(OB_STORE_FORMAT_DYNAMIC_MYSQL);

View File

@ -2476,6 +2476,21 @@ int ObInnerTableSchema::all_ddl_task_status_schema(ObTableSchema &table_schema)
consensus_schema_version_default,
consensus_schema_version_default); //default_value
}
if (OB_SUCC(ret)) {
ADD_COLUMN_SCHEMA("schedule_info", //column_name
++column_id, //column_id
0, //rowkey_id
0, //index_id
0, //part_key_pos
ObLongTextType, //column_type
CS_TYPE_INVALID, //column_collation_type
0, //column_length
-1, //column_precision
-1, //column_scale
true, //is_nullable
false); //is_autoincrement
}
table_schema.set_index_using_type(USING_BTREE);
table_schema.set_row_store_type(ENCODING_ROW_STORE);
table_schema.set_store_format(OB_STORE_FORMAT_DYNAMIC_MYSQL);

View File

@ -2997,6 +2997,7 @@ def_table_schema(
('ret_code', 'int', 'false', '0'),
('message', 'longtext', 'true'),
('consensus_schema_version', 'int', 'false', '-1'),
('schedule_info', 'longtext', 'true'),
],
)

View File

@ -4864,6 +4864,7 @@ ddl_stmt_str longtext YES NULL
ret_code bigint(20) NO 0
message longtext YES NULL
consensus_schema_version bigint(20) NO -1
schedule_info longtext YES NULL
select /*+QUERY_TIMEOUT(60000000)*/ IF(count(*) >= 0, 1, 0) from oceanbase.__all_virtual_ddl_task_status;
IF(count(*) >= 0, 1, 0)
1