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

a new table with FK will not create stats_meta by ddl event #53652

Closed
hawkingrei opened this issue May 29, 2024 · 0 comments · Fixed by #53654
Closed

a new table with FK will not create stats_meta by ddl event #53652

hawkingrei opened this issue May 29, 2024 · 0 comments · Fixed by #53654
Labels
affects-6.5 This bug affects the 6.5.x(LTS) versions. affects-7.1 This bug affects the 7.1.x(LTS) versions. affects-7.5 This bug affects the 7.5.x(LTS) versions. affects-8.1 This bug affects the 8.1.x(LTS) versions. report/customer Customers have encountered this bug. severity/critical sig/planner SIG: Planner type/bug The issue is confirmed as a bug.

Comments

@hawkingrei
Copy link
Member

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

create table t_parent (id int primary key);
create table t_child (id int primary key, pid int, foreign key (pid) references t_parent(id) on delete cascade on update cascade);
show stats_meta;

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

t_parent and t_child

3. What did you see instead (Required)

only t_parent

4. What is your TiDB version? (Required)

master

@hawkingrei hawkingrei added type/bug The issue is confirmed as a bug. sig/planner SIG: Planner severity/moderate labels May 29, 2024
@ti-chi-bot ti-chi-bot added affects-7.1 This bug affects the 7.1.x(LTS) versions. affects-7.5 This bug affects the 7.5.x(LTS) versions. affects-8.1 This bug affects the 8.1.x(LTS) versions. labels May 29, 2024
@ti-chi-bot ti-chi-bot bot added may-affects-5.4 This bug maybe affects 5.4.x versions. may-affects-6.1 may-affects-6.5 labels May 29, 2024
@ti-chi-bot ti-chi-bot added the affects-6.5 This bug affects the 6.5.x(LTS) versions. label May 29, 2024
@ti-chi-bot ti-chi-bot bot added the report/customer Customers have encountered this bug. label Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects-6.5 This bug affects the 6.5.x(LTS) versions. affects-7.1 This bug affects the 7.1.x(LTS) versions. affects-7.5 This bug affects the 7.5.x(LTS) versions. affects-8.1 This bug affects the 8.1.x(LTS) versions. report/customer Customers have encountered this bug. severity/critical sig/planner SIG: Planner type/bug The issue is confirmed as a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants