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

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 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants