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

ddl add index on generated column with case-when expr will hang forever without cancel #19325

Closed
AilinKid opened this issue Aug 20, 2020 · 0 comments · Fixed by #19330
Closed
Assignees
Labels
sig/sql-infra SIG: SQL Infra type/bug The issue is confirmed as a bug.

Comments

@AilinKid
Copy link
Contributor

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

create table (
....
a generated always as (case when ....)

create index on a

2. What did you expect to see? (Required)

hang forever
the log is like below:
ddl add index error: UnkownType: ast.whenClause

3. What did you see instead (Required)

Even if we don't support the index column with case-when, it can also be cancelled by the DDL limit counts.

4. What is your TiDB version? (Required)

4.0.1 and previous version

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/bug The issue is confirmed as a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants