tidb-lightning icon indicating copy to clipboard operation
tidb-lightning copied to clipboard

Add an option to turn alter table auto_increment off.

Open 3pointer opened this issue 4 years ago • 1 comments

Feature Request

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

We had this mechanism, when import table successfully, lightning will do alter auto_increment job to trigger TiDB to refresh its auto_increment cache due to TiDB issue https://github.com/pingcap/tidb/issues/2285. But sometimes we don't have a privilege to execute alter SQL. then lightning will return error.

Describe the feature you'd like:

Add an option to turn alter table auto_increment off.

Describe alternatives you've considered:

can we alse add an option to handle auto_random?

Teachability, Documentation, Adoption, Optimization:

3pointer avatar Dec 04 '20 11:12 3pointer

Can we just add that permission into the docs 🤔

kennytm avatar Dec 04 '20 11:12 kennytm