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

inconsistency explain bewteen lite-init-stats and non-lite-init-stats #54532

Open
hawkingrei opened this issue Jul 9, 2024 · 0 comments · May be fixed by #54531
Open

inconsistency explain bewteen lite-init-stats and non-lite-init-stats #54532

hawkingrei opened this issue Jul 9, 2024 · 0 comments · May be fixed by #54531
Labels
severity/moderate sig/planner SIG: Planner type/bug This issue is 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(a int);
insert into t values(1), (2), (3), (4), (5), (6), (7), (8), (9), (10);
explain format='brief' select * from t where a in (1, 2, 3, 4, 5, 6, 7, 8)

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

the same result with lite-init-stats or non-lite-init-stats

"TableReader 0.08 root  data:Selection",
└─Selection 0.08 cop[tikv]  in(test.t.a, 1, 2, 3, 4, 5, 6, 7, 8)",
  └─TableFullScan 10.00 cop[tikv] table:t keep order:false, stats:pseudo"

3. What did you see instead (Required)

non-lite-init-stats is difference from lite-init-stats

"TableReader 8.00 root  data:Selection",
└─Selection 8.00 cop[tikv]  in(test.t.a, 1, 2, 3, 4, 5, 6, 7, 8)",
  └─TableFullScan 10.00 cop[tikv] table:t keep order:false, stats:pseudo"

4. What is your TiDB version? (Required)

@hawkingrei hawkingrei added type/bug This issue is a bug. sig/planner SIG: Planner severity/moderate labels Jul 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
severity/moderate sig/planner SIG: Planner type/bug This issue is a bug.
1 participant