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

Support EXPLAIN for DDL #8429

Open
morgo opened this issue Nov 23, 2018 · 1 comment
Open

Support EXPLAIN for DDL #8429

morgo opened this issue Nov 23, 2018 · 1 comment
Assignees
Labels
sig/sql-infra SIG: SQL Infra type/enhancement The issue or PR belongs to an enhancement. type/feature-request Categorizes issue or PR as related to a new feature.

Comments

@morgo
Copy link
Contributor

morgo commented Nov 23, 2018

Feature Request

Is your feature request related to a problem? Please describe:

Describe the feature you'd like:

TiDB's DDL has two major algorithms, which (using MySQL terminology) I will call INSTANT and INPLACE. Currently, it is impossible to sight-check a DDL query and tell which one will be used.

While not supported in MySQL, the TiDB EXPLAIN format already differs from MySQL. I think it would be a useful extension to permit EXPLAIN for DDL. The information I am looking for is:

  • Algorithm (INSTANT or INPLACE)
  • LOCK info (it's always NONE in TiDB for now, but perhaps it should be included for context since it may change in future)
  • Rows Affected (an estimate of rows in the table)

Describe alternatives you've considered:

This has some relation to #8428

Teachability, Documentation, Adoption, Migration Strategy:

Output is relatively simple, but would need to be documented.

@morgo morgo added the type/enhancement The issue or PR belongs to an enhancement. label Nov 23, 2018
@winkyao winkyao self-assigned this Dec 4, 2018
@winkyao
Copy link
Contributor

winkyao commented Dec 4, 2018

@morgo Thanks. This feature will be developed in the TiDB 3.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sig/sql-infra SIG: SQL Infra type/enhancement The issue or PR belongs to an enhancement. type/feature-request Categorizes issue or PR as related to a new feature.
Projects
None yet
Development

No branches or pull requests

4 participants