Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ADMIN SHOW DDL has structured data in Go format #52920

Open
dveeden opened this issue Apr 26, 2024 · 0 comments · May be fixed by #52921
Open

ADMIN SHOW DDL has structured data in Go format #52920

dveeden opened this issue Apr 26, 2024 · 0 comments · May be fixed by #52921
Labels
component/ddl This issue is related to DDL of TiDB. type/enhancement

Comments

@dveeden
Copy link
Contributor

dveeden commented Apr 26, 2024

Enhancement

mysql> admin show ddl\G
*************************** 1. row ***************************
   SCHEMA_VER: 5055
     OWNER_ID: eef31ae6-14a2-4664-85d7-dc842ccd62e4
OWNER_ADDRESS: 192.168.1.229:4000
 RUNNING_JOBS: ID:10106, Type:add index, State:running, SchemaState:write reorganization, SchemaID:2, TableID:10104, RowCount:1447630, ArgLen:0, start time: 2024-04-26 11:20:02.291 +0200 CEST, Err:<nil>, ErrCount:0, SnapshotVersion:449347112749760513, LocalMode: false, UniqueWarnings:0
      SELF_ID: eef31ae6-14a2-4664-85d7-dc842ccd62e4
        QUERY: alter table t1 add index (c1(100))
1 row in set (0.00 sec)

The information in the RUNNING_JOBS column should be made into something like JSON that is easier to work with.

@dveeden dveeden added type/enhancement component/ddl This issue is related to DDL of TiDB. labels Apr 26, 2024
@dveeden dveeden linked a pull request Apr 26, 2024 that will close this issue
13 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/ddl This issue is related to DDL of TiDB. type/enhancement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant